Codesys Ros2 -
Then Mira, the automation engineer, had an idea that would change the plant’s heartbeat. She imagined CODESYS not as a siloed PLC runtime but as a bridge: controllers still enforcing safety interlocks and hard real-time motion, while ROS 2 orchestrated high-level behaviors, vision-guided corrections, and fleet coordination. She sketched a layered architecture on a napkin: CODESYS managing deterministic I/O and motion via its runtime, ROS 2 nodes running on edge computers for perception and planning, and a middleware translator whispering between them. The translator would expose ROS 2 topics as CODESYS variables and map CODESYS events into ROS 2 services—two ecosystems speaking through a well-defined protocol.
The ROS ecosystem includes rosbridge_suite , a package that exposes ROS topics, services, and actions over a WebSocket connection using JSON messages. This lightweight protocol is ideal for connecting non‑ROS applications (e.g., a web dashboard or a CODESYS program) to a ROS 2 system.
ros2 --> bridge bridge <--> sm sm <--> codesys codesys --> fieldbus fieldbus --> sensors fieldbus --> actuators codesys ros2
ROS 2 calculates a path that avoids a human worker who just walked into the frame. ROS 2 sends the new coordinates to
Historically, industrial automation and advanced software robotics existed in separate silos. PLCs excelled at rugged, predictable execution but lacked the capability to process complex 3D point clouds, execute dynamic path planning, or run machine learning models. Conversely, ROS 2 excelled at high-level robotics but lacked native, deterministic drivers for diverse industrial hardware protocols like EtherCAT, PROFINET, and EtherNet/IP. Then Mira, the automation engineer, had an idea
This public link is valid for 7 days and shares a thread, including any personal information you added. This link or copies made by others cannot be deleted. If you share with third parties, their policies apply. Can’t copy the link right now. Try again later.
Getting CODESYS (Structured Text/Ladder Logic) to talk to ROS2 (C++/Python) requires a middleware bridge. There are three primary ways to do this: 1. The Micro-ROS Approach The translator would expose ROS 2 topics as
Rapid prototyping and systems where millisecond latency isn't the primary concern. 3. Shared Memory (For Single-Platform Systems)
