Codesys Ros2 [top] Jun 2026
CoDeSys is a software tool developed by 3S - Smart Software Solutions GmbH, a leading provider of automation software. It allows users to design, test, and deploy control applications for various industrial automation controllers, including programmable logic controllers (PLCs), industrial PCs, and other embedded systems. CoDeSys supports multiple programming languages, including IEC 61131-3 languages (e.g., Ladder Logic, Function Block Diagram, and Structured Text).
The convergence of classical Programmable Logic Controller (PLC) ecosystems and modern robotic software frameworks is a critical challenge in Industry 4.0. CODESYS, a dominant IEC 61131-3 development environment, excels at hard real-time control and fieldbus management (EtherCAT, CANopen). The Robot Operating System 2 (ROS2), built on Data Distribution Service (DDS), provides a flexible, distributed middleware for perception, planning, and collaboration. This paper proposes a formal architecture for integrating CODESYS runtime with ROS2. We analyze communication patterns, data representation mapping, real-time constraints, and security implications. A reference implementation using ROS2-native client libraries for CODESYS is presented, alongside performance benchmarks comparing native DDS versus OPC UA gateway approaches. codesys ros2
int main(int argc, char* argv[]) // Initialize ROS 2 rclcpp::init(argc, argv); CoDeSys is a software tool developed by 3S