On this page
ESTUN robot
This plugin uses a fixed Modbus TCP interface to collect ESTUN robot registers and status and provides project start/stop, error reset, project load/unload, and global-speed control. It is named ESTUN robot in the device selector.
Compatible devices and models
| Device series / model examples | Connection requirements |
|---|---|
| ESTUN robot controllers exposing the register and job commands used by this plugin | Match controller protocol, register ranges and remote mode. Job control requires device remote permissions. |
Connect to the robot Modbus service
- Enable the Modbus TCP service matching this plugin’s register map. Record its IP, port and unit ID. Program control also requires remote-command permission; a network connection does not grant control ownership.
- Create a TCP client channel to the actual port. Select ESTUN robot, keep
ModbusTcp, and match the robot station to the server. Do not select RTU passthrough simply because a switch is used. - Keep the default
CDABformat and read a status snapshot first. It reads100 WORDfrom protocol offset0, totaling200bytes. The controller must permit the entire holding-register range. - Map periodic variables from the controller register table: holding-register offset
0is40001, the next WORD is40002. A 32-bit value occupies two WORDs. Do not combine two independent status WORDs into a Float.
Registers and program commands
Ordinary variables use Modbus unit overrides, function-code overrides and packing limits. A variable unit override does not change the unit used by a complete status snapshot.
Use the dedicated methods below for start, stop, reset, project loading and speed. They include command-status and clearing handshakes. Check the current project and mode, send one command, then read its feedback. Resolve a pending command state or use its reset method before retrying; a successful ordinary register write does not establish program completion.
Compare registers and snapshots with Modbus Slave and Poll
Use Modbus Slave 7.4.1 to create 100 holding registers, then read the same range with Modbus Poll 9.5.1 and the gateway. Use 127.0.0.1:15020 when both run on one PC; otherwise use the tool PC’s actual address. For a robot connection, enter its Modbus TCP address, port and unit ID.
- In Modbus Slave → Setup → Slave Definition (F8), select
Slave ID=1,03 Holding Register (4x), decimalAddress=0, andQuantity=100. The robot status operation reads the entire offset range0–99.
- Double-click offsets
0and1and enter decimal1234and25. Offset0is the known WORD. Offset1, gateway address40002, supplies global-speed feedback. Leave the remaining registers at zero.
- In Connection → Connect (F3) select Modbus TCP/IP, address
127.0.0.1, port15020, then click OK. RTU Over TCP/IP uses different framing and is not suitable for this setup.
- In Modbus Poll → Connection → Connect (F3), select Modbus TCP/IP and the same address and port. In Read/Write Definition (F8) set unit
1, FC03, decimal address0, quantity100, scan rate1000ms. With PLC Addresses (Base 1) cleared, the table shows zero-based offsets. Offsets0/1display1234/25, withErr=0.
- Create a gateway TcpClient channel to
127.0.0.1:15020, with maximum concurrency1. Select ESTUN robot for the device, associate this channel, and use execution interval1000ms. Keep ModbusTcp, robot station1, holding-register frame limit100, and CDAB. Enable Allow method calls to use the robot status button.
- Create
KnownWordon this device: address40001, Int16, array length1, ReadOnly. In Field Editor, check HoldingRegisters (FC03) and offset0. A numeric scalar needs no String length, encoding or bit offset. Apply and save; the current value is1234. To collect speed separately, add40002 / Int16, which corresponds to25.
- Open Protocol Debug → Operations and click the refresh button next to Robot status. Global speed shows
25, from offset1. The separate input containing20is a draft argument for Set speed; reading status does not submit that command. Expand DI, DO, AI and AO to inspect channels, or Raw data to inspect the complete object.
Open the plugin and supported scope
Create a TCP client channel and device and select ESTUN robot. Supported types include Boolean, Byte, common integers, Float, Double, and String.
See Collection Configuration for common channel, variable, and data-format settings.
Plugin properties
| Setting | Default | Description |
|---|---|---|
| Modbus framing | ModbusTcp | Fixed to Modbus TCP. |
| Robot station | 1 | Must match the controller address. |
| Data format | CDAB | Required for robot status and command parameters; another format fails configuration validation. |
| FC1 maximum coils per read | 1600 bits | Range 1–2000, for FC1 only. The controller must expose the corresponding coil map. |
| FC2 maximum discrete inputs per read | 1600 bits | Range 1–2000, for FC2 input bits only. |
| Holding-register frame limit | 100 WORD | Range 1–125. Used for contiguous cyclic reads and status. A complete status snapshot always reads 100 WORD, which must fit this limit. |
| FC4 maximum input registers per read | 100 WORD | Range 1–125, for the controller’s actual FC4 area, independently of holding registers. |
| FC15 maximum coils per write | 1968 bits | Range 1–1968, for ordinary multi-coil writes; does not replace start/stop handshakes. |
| FC16 maximum registers per write | 123 WORD | Range 1–123, for ordinary multi-register writes. Dedicated commands also check command state and completion feedback. |
| Read/write timeout | 3000 ms | Deadline for one protocol response, separate from completion time of a robot action with a multi-step handshake. |
| Pre-frame delay | 0 ms | Wait before sending requests. Increasing it slows collection and handshakes without granting remote control permission. |
| String byte reversal | Off | Affects ordinary String byte layout according to the controller map; cannot fix digital status or command state. |
| DTU ID / heartbeat / Hex heartbeat | Empty / empty / off | Common connection fields. This TCP-client-only plugin does not use TCP service DTU identification or heartbeat matching. |
See Device parameters for retry count, duty cycle and write scheduling. Wait for command feedback before the next action; additional retries cannot correct mode, interlock or command-state errors.
Addresses and special methods
Cyclic variables use standard Modbus 00001, 10001, 30001, and 40001 addresses. Add ;s=2; for station 2 or ;w=16; for FC16 writes.
In the address editor, select the controller’s area and zero-based offset: 40001 is holding-register offset 0. A station override affects only that variable; snapshots and dedicated commands use the device station. Use bit numbers only for WORDs with defined bit semantics. Set String encoding and byte capacity explicitly; array length counts elements rather than bytes. Point-level format or function overrides do not change the dedicated robot command contract. See Modbus address rules for common fields.
| Method | Purpose | Parameters |
|---|---|---|
ReadRobotStatusAsync | Read robot status snapshot | - |
StartProgramAsync | Start the current project | - |
StopProgramAsync | Stop the current project | - |
ResetErrorAsync | Reset robot errors | - |
LoadProjectAsync | Load a project | projectName: 1–20 ASCII bytes |
UnloadProjectAsync | Unload the current project | - |
SetGlobalSpeedAsync | Set global speed | value: Int16 (−32768–32767), within the controller’s actual speed limits |
ResetCommandStatusAsync | Reset command state | - |
Every method except status reading can change robot state. Confirm the safety area, operating mode, emergency stop, and site authorization first.
Device debug
Open Development Configuration → Collection Configuration, select the Estun device open Protocol Debug at the top of the workspace.
| Feature | Purpose |
|---|---|
| Robot status | Refreshes robot and current-project state. |
| Project control | Starts, stops, loads, or unloads a project. |
| Maintenance control | Resets errors, sets global speed, or resets command state. |
Refresh status first. Use control buttons only after confirming that robot motion or production cannot be affected unexpectedly.
Verify the configuration
- Confirm that the device is online and compare robot status with the teach pendant.
- Read one known register variable.
- Test one control only during an approved maintenance window and verify robot feedback.
Troubleshooting
| Symptom | Check |
|---|---|
| Cannot connect | Controller IP, Modbus TCP port, station, and network. |
| Status snapshot fails | Holding-register range, frame limit, and controller permission. |
| Project control is rejected | Robot mode, project name, emergency stop, alarms, interlocks, and user permission. |
| Speed setting has no effect | Speed range, controller mode, and current program state. |
Related links
- Collection Configuration: Common channel, device, and variable operations.
- Plugin Manual Index: Other plugins.













