ROBOT COMMUNICATION · 9 lessons
I/O · TCP/IP · RS-232 · MODBUS — no real robot needed
9 hands-on lessons of robot communication on a single PC, no real robot needed — I/O handshake·Ethernet TCP/IP·RS-232 through MODBUS basics·Server (robot = slave)·Client (robot = master)·monitoring·vision·robot·gripper automation cell. Verified with python main.py and mapped 1:1 to real-equipment (HRSS) code.
Lab Environment Setup
Installing Python and pymodbus, understanding the shared modules and checking the environment
I/O Communication
Pick-and-place with a $DI/$DO handshake
Ethernet TCP/IP
Exchanging vision and `{data}` messages with `COPEN/CWRITE/CREAD`
RS-232 Serial Communication
Packet framing and a virtual COM serial link
MODBUS Basics
The four register types and reading/writing them with function codes
MODBUS Server (Robot = Slave)
Driving robot PTP motion from a master command cycle
MODBUS Client (Robot = Master)
Gripper control with `MBC_*` and IEEE 754 conversion
Monitoring & Debugging
Capturing and manually decoding packets with Wireshark
Capstone — Automated Cell
Integrated orchestration from vision to robot to gripper
Appendix
Reference materials