Integrating CODESYS with ROS 2: Bridging Industrial Automation and Robotics
CODESYS GmbH (now part of Schneider Electric) provides a dedicated for CODESYS. This library introduces special function blocks that act as DDS (Data Distribution Service) publishers and subscribers—directly from IEC 61131-3 code. codesys ros2
Months later, with the system matured, the plant ran like a team moving with purpose. A line change that used to require half a day and two technicians now took minutes: engineers edited a ROS 2 behavior tree, CODESYS loaded the motion parameters, and the translator negotiated the transition. Mobile robots, once cautious, now flowed through aisles with CODESYS-supervised maneuvers and ROS 2-aware intentions—human workers felt safer, and throughput rose. QoS profiles: Reliability, durability, history, deadline
ROS2_Publish block in Structured Text sends a JointState message or a custom interface.ROS2_Subscribe block listens to /cmd_vel (twist messages) and writes the linear/angular velocities into PLC variables..msg via a CLI tool.Presentation QoS to attach hardware timestamps from EtherCAT cycle.