Change-Id: Ie7fe10f704aec62c19cae0bab16d43d55d911a36
This commit is contained in:
Oksana Shliakhtun
2024-08-26 14:23:21 +02:00
committed by Markus Zolliker
parent 807afba53b
commit 96412cb480
3 changed files with 25 additions and 3 deletions

View File

@ -126,6 +126,12 @@ class Resistance(Base, Readable):
self.write_irange(self.irange - 1)
def read_status(self):
"""
Both the mainframe (SR900) and the module (SR921) have the same commands for the status,
here implemented commands are made for module status, not the frame!
:return: status type and message
"""
esr = int(self.communicate('*esr?')) # standart event status byte
ovsr = int(self.communicate('ovsr?')) # overload status
cesr = int(self.communicate('cesr?')) # communication error status