I have been trying to get Modbus configured in HA and it has been a bear. I have tried to decipher the Modbus page for a few days now. All I am looking to start with is to be able to turn a coil on in my KOYO PLC controller at address 3074. I have tried using sample code and pretty much every thing I can find on this. Not much. I can manually turn on and off the coil 3074 with a Modbus simulator program so I know its working. Any help would be great. What I have so far that I know I need is. below. The PLC is slave 255.
modbus:
- name: hub1
type: tcp
host: 192.168.1.243
port: 502
I need help here haha.
I would like to know how to read the state of the coil and write to this coil.
Thanks.