Codesys: Ros2 __exclusive__
: Use tools like rqt_graph or the MATLAB Message Viewer to confirm your CODESYS data is successfully streaming across topics.
Micro-ROS allows ROS2 nodes to run on microcontrollers and RTOS-based systems. For CODESYS users, this often involves using a . codesys ros2
This paper presented a practical, real-time capable bridge between CODESYS PLCs and ROS2. By embedding a ROS2 client library into the CODESYS runtime and using a lock-free FIFO between the real-time task and a lower-priority spin thread, we achieve mean latencies of 220μs—suitable for high-speed robotic control. The architecture preserves the determinism of IEC 61131-3 code while leveraging the full ROS2 ecosystem. Source code for the CODESYS ROS2 client library is available under Apache 2.0 license (anonymized for review). : Use tools like rqt_graph or the MATLAB
By running a micro-ROS client directly on the PLC hardware (if the OS allows), the PLC can publish and subscribe to ROS 2 topics natively. This paper presented a practical, real-time capable bridge
The CODESYS controller acts as a client that sends data to an agent running on a Linux-based gateway (or the same IPC).
Many CODESYS-compatible controllers support OPC UA , which can be bridged to ROS 2 using standard nodes like ros2_opcua_gateway .
Integrating CODESYS with ROS 2: Bridging Industrial Automation and Robotics

