Unable to reset Modbus Status variable using Python
Posted: 29 Jan 2024, 20:50
Hi,
I noticed I was getting a Status code of 110 on some of the Modbus values. This means a timeout according to this link: https://revolutionpi.com/tutorials/modb ... r-turorial
Currently the action interval is set to 1000ms.
I tried to do this to reset the code:
rpi.io["FAN_P_STATUS_RESET"].value = True
But it does not change.
I have been able to reset the code using piTest with
piTest -w FAN_P_STATUS_RESET,1
Status byte is read back with:
piTest -r FAN_P_STATUS
I have two questions:
1. How do I sort out the Python issue of not being able to reset the Status byte?
2. Any advice on sorting out this timeout?
The hardware it is timing out with is this: https://cdn.shopify.com/s/files/1/0558/ ... 1659968620
They suggest a max of 60ms timeout.
I noticed I was getting a Status code of 110 on some of the Modbus values. This means a timeout according to this link: https://revolutionpi.com/tutorials/modb ... r-turorial
Currently the action interval is set to 1000ms.
I tried to do this to reset the code:
rpi.io["FAN_P_STATUS_RESET"].value = True
But it does not change.
I have been able to reset the code using piTest with
piTest -w FAN_P_STATUS_RESET,1
Status byte is read back with:
piTest -r FAN_P_STATUS
I have two questions:
1. How do I sort out the Python issue of not being able to reset the Status byte?
2. Any advice on sorting out this timeout?
The hardware it is timing out with is this: https://cdn.shopify.com/s/files/1/0558/ ... 1659968620
They suggest a max of 60ms timeout.