I am trying to learn how to introduce values to a PLC trough python ModBus module what I'm currently trying to do is just to read the value of coil 1 to check if its True or false so I am using
order_ready = client.read_coils(0, 1)
print(order_ready)
and I get this as response ReadBitResponse(8) how can I get a "True" value from reading a coil
You can access the individual coils from the response
ReadCoilResponse
using thebits
property . More on response could be found here