-
Notifications
You must be signed in to change notification settings - Fork 22
Description
I get this error:
Traceback (most recent call last):
File ".\dps_GUI_program.py", line 377, in loop_function
self.read_all()
File ".\dps_GUI_program.py", line 406, in read_all
data = self.pass_2_dps('read_all')
File ".\dps_GUI_program.py", line 489, in pass_2_dps
a = eval("dps.%s('%s', %s)" % (function, cmd, value))
File "", line 1, in
File "C:\Users\XYZ\Downloads\DPS5005_pyGUI-master\source_files\dps_modbus.py", line 127, in read_all
data = self.functions(0x00, 16, RWaction, value) # reg_addr, number of bytes, RWaction, value
File "C:\Users\XYZ\Downloads\DPS5005_pyGUI-master\source_files\dps_modbus.py", line 158, in functions
return self.serial_data.read_block(reg_addr, num_of_addr)
File "C:\Users\XYZ\Downloads\DPS5005_pyGUI-master\source_files\dps_modbus.py", line 44, in read_block
return self.instrument.read_registers(reg_addr, size_of_block)
File "D:\Software\Python\Python36-32\lib\site-packages\minimalmodbus.py", line 498, in read_registers
numberOfRegisters=numberOfRegisters, payloadformat='registers')
File "D:\Software\Python\Python36-32\lib\site-packages\minimalmodbus.py", line 697, in _genericCommand
payloadFromSlave = self._performCommand(functioncode, payloadToSlave)
File "D:\Software\Python\Python36-32\lib\site-packages\minimalmodbus.py", line 798, in _performCommand
payloadFromSlave = _extractPayload(response, self.address, self.mode, functioncode)
File "D:\Software\Python\Python36-32\lib\site-packages\minimalmodbus.py", line 1075, in _extractPayload
raise ValueError(text)
ValueError: Checksum error in rtu mode: '\x8d\x00' instead of 'Jt' . The response is: '\x01\x03 \x00\x96\t─\x00\x95\x00Z\x00\r\x07ñ\x00\x00\x00\x00\x00\x00\x00\x01\x00\x04\x13\x8d\x00' (plain response: '\x01\x03 \x00\x96\t─\x00\x95\x00Z\x00\r\x07ñ\x00\x00\x00\x00\x00\x00\x00\x01\x00\x04\x13\x8d\x00')
PS C:\Users\XYZ\Downloads\DPS5005_pyGUI-master\source_files> D:\Software\Python\Python36-32\python.exe .\dps_GUI_program
.py
Traceback (most recent call last):