In a traditional setup, your Linux-based ROS computer handles Lidar and Camera data, then sends simple velocity commands (e.g., cmd_vel ) to a separate PLC via Ethernet/IP or Modbus. This introduces latency.
There is no native "ROS 2 Driver" built into standard CODESYS. The industry-standard method is the approach. ROS 2 speaks MQTT natively, and CODESYS acts as a client. codesys ros2