hdunn
Running LED Example:

Log:
OpenPLC Runtime starting...
Interactive Server: Listening on port 43628
Device winplc is disconnected. Attempting to reconnect...
Connected to MB device winplc
Modbus Read Discrete Input Registers failed on MB device winplc: Connection timed out
Issued start_modbus() command to start on port: 502
Modbus Server: error binding socket => Address already in use
Modbus Server: waiting for new client...
Issued start_dnp3() command to start on port: 20000
Modbus Write Coils failed on MB device winplc: Connection timed out
Modbus Read Input Registers failed on MB device winplc: Connection timed out
Modbus Read Holding Registers failed on MB device winplc: Connection timed out
Modbus Write Holding Registers failed on MB device winplc: Connection timed out
Modbus Read Discrete Input Registers failed on MB device winplc: Connection timed out
Modbus Write Coils failed on MB device winplc: Connection timed out
Modbus Read Input Registers failed on MB device winplc: Connection timed out
Modbus Read Holding Registers failed on MB device winplc: Connection timed out
Modbus Write Holding Registers failed on MB device winplc: Connection timed out
.........
Reply 0 0
thiagoralves
What is this? Which device is “winplc”?
Reply 0 0
hdunn
Sorry just getting software up and running. I also have radzio for debug now - if that helps.
winplc is the name of the slave device setup on OpenPLC. I have also downloaded the helloworld plc prg to try as well. Same log output connection time out.
winplc follows the tutorial setup on the OpenPLC website. I changed the name, sorry. Wanted to start a setup for different soft PLC configs.
Let me know what you need. I'm running on windows 64 bit and everything installed and seems to run fine - except for the connect to modSlave. Not sure how to appraoch a debug.

Thanks Howard 
Reply 0 0
thiagoralves
Right, but which slave device is "winplc"? Is it an arduino board, another PLC, a modbus software running on your computer? What is it? You only setup a slave device if you're trying to connect to something. If you don't have anything to connect to, then there is no point in setting up a slave device.
Reply 0 0
hdunn
Ok. I think I miss understood the documentation and after reading again believe -
I was looking to also have soft Modbus I/O.  I thought the slave was set up to be a soft Modbus IO,
but now realize this was clearly not the case, as no documentation for automation data setup or even
static data IO.

In short I don't have a hard slave device, so nothing is able to r/w to the slave setup.
However i'm looking at ModbusPal - to see if I can find a good workflow.

If you have any suggestions that would be greatly appreciated and I thank you for the nice project and replies.

Regards,

Howard
Reply 0 0
thiagoralves
The slave setup is used to connect to a modbus device and expand the I/Os available on OpenPLC. Since OpenPLC running on a PC does not have any I/O, connecting to a modbus slave device is the only way to work with it. ModbusPal seems like a good software to use. I've been using PLCSimulator ( http://www.plcsimulator.org/ ) which is pretty simple and works well. Just keep in mind that if you're running the simulator on the same computer that you're running OpenPLC, you will have to change the simulator port (default is 502), since OpenPLC also has a Modbus server opened on port 502.
Reply 0 0
Reply