LEANTEC TCP Socket Plugin manual: communication settings, data format, client flow, robot arm connection, controller resource values and the C# plugin.
This application manual describes the LEANTEC TCP Socket Plugin, which lets the controller exchange data with a server or sensor over TCP. It covers the communication settings (IPv4, TCP, blocking transfer, short connection), the data format with separator and end code, and the client communication flow, including the socket error messages returned in @72249.
Later sections explain how to set up communication with the robot arm, including the connection architecture and the handheld box connection settings, document the extension parameters Pr3401~Pr3406 and the @ values used to send and receive data, and finally describe how to modify and build the C# plugin project (RobotSocketPlugin) in Visual Studio 2005 for the handheld box or the simulator. This manual is written in Chinese.
| Internet protocol version | IPv4, 32-bit address length |
|---|---|
| Transport protocol | TCP |
| Connection mode | Short connection, connects and disconnects for each data handshake |
| Send/receive buffer size | 8192 bytes, including data, separator and end code |
| Default separator and end code | Separator ',' and end code \r |
| Extension parameters | Pr3401~Pr3406 (R81~R86) |
| Port number range | 0~65535 |
| Communication timeout range | 1~2,147,483,647 ms |
| Maximum transmit data count | 50 values stored in @72251~@72300 |
| Maximum receive data count | 100 values stored in @72301~@72400 |
| Plugin development environment | Visual Studio 2005 project RobotSocketPlugin.zip |
The IP address must be set in the same network segment (for example 192.168.0.55) under 系统 > 维护 > 网路设定 > IP 位址取得方法 > 直接指定 IP 位址, and the controller must be restarted for it to take effect.
It sends the socket command: 1 sends the command and 2 means the command is in progress; after the command completes the value returns to 0.
It means the data format does not match the user definition.
The DLL for the physical handheld box must be built from RobotSocketPluginCE.sln, while the simulator uses RobotSocketPlugin.sln.