I am working on reading the robot state via modbus. Now I run into the problem that when I read out the status of isEmergencyStopped (register 162) & isSecurityStopped (161) by putting it into a variable, that I always get the value 0. if the button is and isn’t pressed.
If i try to read it out with:
if read_holding_registers(162, 1) == [True]:
it always prints “running”
Can somebody tell me what i am doing wrong?
I did check the connection, and i do get values from other register numbers.
I think it should be 262. please try again.