cvdd
I'm trying out the following example on a Linux PC. I chose the 'blank' driver during installation of OpenPLC. So now I want to turn on the virtual lamp using a Modbus command. I want to set the button to true and should see the output coil at address 0 to be true.

Looking at http://www.openplcproject.com/scada I see the inputs are readonly for Modbus. How would I go about this? Making the button an output and set it as a coil using Modbus works, but is this the right approach? It seems weird to make the button an output.

[757aea_c13ef6e4b8fb4255b4ceff9eeb8cf550~mv2] 
Reply 0 0
thiagoralves
That's the right approach. You can't force an input with Modbus, only outputs. This is a limitation of the protocol itself. It's totally ok to use outputs as contacts in your ladder code. Actually, there are some logic that require you to do that (for ex. latch).
Reply 0 0
Reply