fg71
Lets do a example to show how Raspberry Pi could communicate with Siemens LOGO.
We setup the Siemens LOGO to be Modbus Server and listen to port default port 502.
We have memory flag as input (bool)
 
From OpenPLC Runtime we configure Modbus slave to communicate to Siemens address space 8256 (offset 0).
The LOGO use IP 192.168.0.2 and use the default port 502
To configure the start address for coils we type 8256 (this is for Siemens LOGO hardware).
 
[203128%2F9083934%2Fmceclip0]
 
To make a simple function to test a communication we use blink program.
The starting address for OpenPLC Runtime is %QX100.0
 
So what we have done is, if the state of bool change from True to False we also will change the state of address 8256 (LOGO).
 
[203128%2F9083976%2Fmceclip0]
 
What we get is a blinking program in LOGO.
 
Screen Recording 2024-11-24 190316.gif
Reply 1 0
Reply