I am connection my RPi 2 and an PLC. RPi 2 is the Master and the PLC as the Slave and I have my setup correct, but I have a hard time understanding how to make a channel when I need to read ex. Digital output in the PLC. The PLC ouput is from 00001 and is handled by the funktions code 1 and read some register 34029 Modbus offset 4000. Can anyone help me to understand how to make a channel setup.
//Peter
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am connection my RPi 2 and an PLC. RPi 2 is the Master and the PLC as the Slave and I have my setup correct, but I have a hard time understanding how to make a channel when I need to read ex. Digital output in the PLC. The PLC ouput is from 00001 and is handled by the funktions code 1 and read some register 34029 Modbus offset 4000. Can anyone help me to understand how to make a channel setup.
//Peter
Hi Peter,
a starting point could be attached example..
BR
Edwin
ControlWinModbusMasterSlaveCommunication.project [76.97 KiB] (forum.codesys.com)
Hi Edwin,
Thank you for your feedback, but still I am not able to have it work as expected.
I have attached my project and some PLC Modbus Document and I also add some commend:
I have tryed to setup the modbus TCP Slave with channels, but not able to see any values
Please let me have you feedback.
Best Regards
Peter Grote
project001_20160728_ModbusTCP.project [346.86 KiB] (forum.codesys.com)