LEANTEC TCP Socket Plugin Example Program Application Manual

LEANTEC TCP Socket Plugin manual: communication settings, data format, client flow, robot arm connection, controller resource values and the C# plugin.


LEANTEC TCP Socket Plugin Example Program Application Manual - cover page
Brand
LEANTEC
Category
Programming
Document type
Programming Manual
Language
Chinese
Pages
11
File format
PDF
File size
440 KB
Published
16 November, 2026
Updated
16 November, 2026
MD5 checksum
270F72DD058201B612E6EB6A060FB838

About this manual

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.

What's inside

  • TCP Socket Communication Setup
  • Data Format
  • Client Communication Flow
  • Communication Setup with the Robot Arm
  • Connection Architecture
  • Handheld Box Connection Settings
  • Controller Resource Values
  • Extension Parameters and @ Values
  • C# Plugin

Specifications

Internet protocol versionIPv4, 32-bit address length
Transport protocolTCP
Connection modeShort connection, connects and disconnects for each data handshake
Send/receive buffer size8192 bytes, including data, separator and end code
Default separator and end codeSeparator ',' and end code \r
Extension parametersPr3401~Pr3406 (R81~R86)
Port number range0~65535
Communication timeout range1~2,147,483,647 ms
Maximum transmit data count50 values stored in @72251~@72300
Maximum receive data count100 values stored in @72301~@72400
Plugin development environmentVisual Studio 2005 project RobotSocketPlugin.zip

Frequently asked questions

What IP address setting is required on the handheld box?

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.

What does @72248 do?

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.

What does an error value of -4 in @72249 mean?

It means the data format does not match the user definition.

Which project must be built to use the plugin on the physical handheld box?

The DLL for the physical handheld box must be built from RobotSocketPluginCE.sln, while the simulator uses RobotSocketPlugin.sln.

Download PDF (440 KB)

More LEANTEC Manuals


View all LEANTEC manuals →