Codesys Ros2 Jun 2026
Today, the wall between them is crumbling. The convergence of Industry 4.0 and smart robotics demands that standard PLCs speak the Data Distribution Service (DDS) protocol of ROS 2. This article explores integration: what it is, how it works, why it matters, and how to implement it.
No integration is perfect. Be aware of:
Since ROS 2 uses DDS for transport, and many CODESYS runtimes support DDS natively (via the CODESYS Automation Server or third-party libraries), the simplest method is direct DDS subscription/publishing. codesys ros2
class PlcSubscriber(Node): def (self): super(). init ('plc_listener') self.sub = self.create_subscription(Float64, '/plc/joint1_angle', self.callback, 10) Today, the wall between them is crumbling
: CODESYS excels at real-time, deterministic control of EtherCAT, CANopen, and Profinet hardware, which are often difficult to debug natively in ROS 2. No integration is perfect
: Data transmission rates via shared memory have been verified to be more than double those of Modbus TCP. Multi-Protocol Flexibility
Enter ROS2, the latest iteration of the Robot Operating System, an open-source software framework developed by the Open Source Robotics Foundation (OSRF). ROS2 represents a significant departure from traditional industrial automation approaches, embracing a more modern, microservices-based architecture that enables seamless communication between various system components.

