Skip to Content
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 examplesConnection requirements
ESTUN robot controllers exposing the register and job commands used by this pluginMatch controller protocol, register ranges and remote mode. Job control requires device remote permissions.

Connect to the robot Modbus service

  1. 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.
  2. 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.
  3. Keep the default CDAB format and read a status snapshot first. It reads 100 WORD from protocol offset 0, totaling 200 bytes. The controller must permit the entire holding-register range.
  4. Map periodic variables from the controller register table: holding-register offset 0 is 40001, the next WORD is 40002. 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.

  1. In Modbus Slave → Setup → Slave Definition (F8), select Slave ID=1, 03 Holding Register (4x), decimal Address=0, and Quantity=100. The robot status operation reads the entire offset range 0–99.

Modbus Slave station 1, FC03, offset 0 and 100 holding registers

  1. Double-click offsets 0 and 1 and enter decimal 1234 and 25. Offset 0 is the known WORD. Offset 1, gateway address 40002, supplies global-speed feedback. Leave the remaining registers at zero.

Modbus Slave register 0 at 1234 and register 1 at 25

  1. In Connection → Connect (F3) select Modbus TCP/IP, address 127.0.0.1, port 15020, then click OK. RTU Over TCP/IP uses different framing and is not suitable for this setup.

Modbus Slave TCP/IP listening address and port 15020

  1. 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 address 0, quantity 100, scan rate 1000 ms. With PLC Addresses (Base 1) cleared, the table shows zero-based offsets. Offsets 0/1 display 1234/25, with Err=0.

Modbus Poll TCP/IP destination address and port

Modbus Poll FC03, offset 0 and quantity 100

Modbus Poll reads 1234 and 25 with zero errors

  1. Create a gateway TcpClient channel to 127.0.0.1:15020, with maximum concurrency 1. Select ESTUN robot for the device, associate this channel, and use execution interval 1000 ms. Keep ModbusTcp, robot station 1, holding-register frame limit 100, and CDAB. Enable Allow method calls to use the robot status button.

ESTUN TCP channel destination and concurrency

ESTUN plugin identity, channel, interval and method-call permission

Fixed Modbus TCP framing, station and function-code limits

Robot response timeout, scheduling and fixed CDAB format

  1. Create KnownWord on this device: address 40001, Int16, array length 1, ReadOnly. In Field Editor, check HoldingRegisters (FC03) and offset 0. A numeric scalar needs no String length, encoding or bit offset. Apply and save; the current value is 1234. To collect speed separately, add 40002 / Int16, which corresponds to 25.

KnownWord address 40001, Int16, scalar length and read permission

Holding-register offset 0 and point-level conversion and unit overrides

Gateway cyclic KnownWord value 1234 at address 40001

  1. Open Protocol Debug → Operations and click the refresh button next to Robot status. Global speed shows 25, from offset 1. The separate input containing 20 is 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.

Robot status global-speed feedback 25 and separate set-speed input

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

SettingDefaultDescription
Modbus framingModbusTcpFixed to Modbus TCP.
Robot station1Must match the controller address.
Data formatCDABRequired for robot status and command parameters; another format fails configuration validation.
FC1 maximum coils per read1600 bitsRange 1–2000, for FC1 only. The controller must expose the corresponding coil map.
FC2 maximum discrete inputs per read1600 bitsRange 1–2000, for FC2 input bits only.
Holding-register frame limit100 WORDRange 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 read100 WORDRange 1–125, for the controller’s actual FC4 area, independently of holding registers.
FC15 maximum coils per write1968 bitsRange 1–1968, for ordinary multi-coil writes; does not replace start/stop handshakes.
FC16 maximum registers per write123 WORDRange 1–123, for ordinary multi-register writes. Dedicated commands also check command state and completion feedback.
Read/write timeout3000 msDeadline for one protocol response, separate from completion time of a robot action with a multi-step handshake.
Pre-frame delay0 msWait before sending requests. Increasing it slows collection and handshakes without granting remote control permission.
String byte reversalOffAffects ordinary String byte layout according to the controller map; cannot fix digital status or command state.
DTU ID / heartbeat / Hex heartbeatEmpty / empty / offCommon 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.

MethodPurposeParameters
ReadRobotStatusAsyncRead robot status snapshot-
StartProgramAsyncStart the current project-
StopProgramAsyncStop the current project-
ResetErrorAsyncReset robot errors-
LoadProjectAsyncLoad a projectprojectName: 1–20 ASCII bytes
UnloadProjectAsyncUnload the current project-
SetGlobalSpeedAsyncSet global speedvalue: Int16 (−32768–32767), within the controller’s actual speed limits
ResetCommandStatusAsyncReset 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.

FeaturePurpose
Robot statusRefreshes robot and current-project state.
Project controlStarts, stops, loads, or unloads a project.
Maintenance controlResets 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

  1. Confirm that the device is online and compare robot status with the teach pendant.
  2. Read one known register variable.
  3. Test one control only during an approved maintenance window and verify robot feedback.

Troubleshooting

SymptomCheck
Cannot connectController IP, Modbus TCP port, station, and network.
Status snapshot failsHolding-register range, frame limit, and controller permission.
Project control is rejectedRobot mode, project name, emergency stop, alarms, interlocks, and user permission.
Speed setting has no effectSpeed range, controller mode, and current program state.