Codesys Master and Slave Devices

I'm using CodeSys for data read from PLC's(Beckhoff and Siemens). I can read Beckhoff straight from Codesys via Modbus TCP Master --> Modbus TCP slave device and everything works OK. In the same project I try to get data from Siemens --> Using RPi Python code and sending data via pyModbus lib to Codesys --> ModbusTCP_Slave_Device. I tried to receive data using 502 port for both connections, but that didn't seemed to work. Then I changed in Python code to send data to Codesys in 504 port(there is open connection via this port) but that also don't work. Then I added another Ethernet device to Codesys and tried to communicate using WiFi - also nothing.

Made an experiment - putted Master_Device(with all slaves) under Slave_Device. Now I was able to get data from Siemens, and Codesys showed everything, but all data from Master_Device was uncertain(bad values or NaN).

Any ideas how to solve this problem?
 

Similar Topics

Hi. I want my CODESYS program to detect whether the EtherCAT master is in error. The CODESYS engineering tool can show the EtherCAT master is in...
2
Replies
1,673
Views
Hello. I cannot change the SendClock settings for a PROFINET IO device. I need to slow down the CODESYS PROFINET IO controller. What am I doing...
0
Replies
833
Views
Does anyone happen to have this library from EDEC? 3S_CANOpenMaster.lib We have issues in it and I would like to confirm our file is fine. I...
0
Replies
1,363
Views
Hi everyone, I'm New here I am currently working on a personal/learning project involving industrial communication and experimenting with a...
4
Replies
227
Views
Hi everyone! I'm not going to lie and claim this is my work at all or that I was the one to figure this out. Definitely all ChatGPT lol. But I...
1
Replies
214
Views
Top