Hello Everyone,
I am trying to communicate via Modbus protocol with a uC2 SE Carel controller. For that, I am using softwares like ModScan and Tester, as well as minimalmodbus code from Python. With all of them I can only read registers, but cannot write them. Also, softwares response seems to be right with no errors at all. Here, I show a bit of code and response read by Python. Any help with this, am I missing some permission for factory parameters? ? Thank you very much in advance:
COOLING_SETPOINT_REG = 41
NEW_TEMPERATURE = 20.1
instrument.write_register(COOLING_SETPOINT_REG, NEW_TEMPERATURE,1,functioncode = 6)
20.0 MinimalModbus debug mode. Will write to instrument (expecting 8 bytes back): '\x01\x06\x00)\x00É\x98T' (01 06 00 29 00 C9 98 54) MinimalModbus debug mode. Opening port COM8 MinimalModbus debug mode. Clearing serial buffers for port COM8 MinimalModbus debug mode. No sleep required before write. Time since previous read: 47.00 ms, minimum silent period: 4.01 ms. MinimalModbus debug mode. Closing port COM8 MinimalModbus debug mode. Response from instrument: '\x01\x06\x00)\x00É\x98T' (01 06 00 29 00 C9 98 54) (8 bytes), roundtrip time: 47.0 ms. Timeout for reading: 1000.0 ms.
I am trying to communicate via Modbus protocol with a uC2 SE Carel controller. For that, I am using softwares like ModScan and Tester, as well as minimalmodbus code from Python. With all of them I can only read registers, but cannot write them. Also, softwares response seems to be right with no errors at all. Here, I show a bit of code and response read by Python. Any help with this, am I missing some permission for factory parameters? ? Thank you very much in advance:
COOLING_SETPOINT_REG = 41
NEW_TEMPERATURE = 20.1
instrument.write_register(COOLING_SETPOINT_REG, NEW_TEMPERATURE,1,functioncode = 6)
20.0 MinimalModbus debug mode. Will write to instrument (expecting 8 bytes back): '\x01\x06\x00)\x00É\x98T' (01 06 00 29 00 C9 98 54) MinimalModbus debug mode. Opening port COM8 MinimalModbus debug mode. Clearing serial buffers for port COM8 MinimalModbus debug mode. No sleep required before write. Time since previous read: 47.00 ms, minimum silent period: 4.01 ms. MinimalModbus debug mode. Closing port COM8 MinimalModbus debug mode. Response from instrument: '\x01\x06\x00)\x00É\x98T' (01 06 00 29 00 C9 98 54) (8 bytes), roundtrip time: 47.0 ms. Timeout for reading: 1000.0 ms.