Connect IAI RCON to a Delta AS228T PLC over EtherNet/IP

  • PLC
  • Delta
  • IAI
  • EtherNet/IP
  • Motion control
Delta AS series PLC connected to an IAI RCON controller over EtherNet/IP

IAI electric actuators are often controlled with discrete I/O (PIO): one bundle of wires per axis, only the positions taught in advance, and the PLC cannot read the axis's real position or alarm code. Connect the IAI RCON controller to the PLC over EtherNet/IP and a single network cable serves every axis: the PLC sends position, speed and acceleration as numbers and reads back the present position, current and alarm code.

This post records the steps I use to connect a 2-axis IAI RCON to a Delta AS228T-A PLC: wiring, setting up the RCON gateway in IA-OS, installing the EDS file and the data exchange area in ISPSoft, and the register map for the PLC program. It is written for engineers who know Delta AS series PLCs and are using RCON over EtherNet/IP for the first time.

Hardware and software used

  • A Delta AS228T-A PLC, using its built-in Ethernet port (EtherNet/IP) as the scanner.
  • An IAI RCON system: an EtherNet/IP gateway and 2 axis drivers (RCON-PC), as the adapter.
  • A switching hub and Ethernet cables.
  • IAI's IA-OS software (started from IAI Toolbox) to set up the gateway, and Delta's ISPSoft V3.20 with HWCONFIG to configure the PLC.
  • The EDS file of the RCON gateway, downloaded from IAI's website.

Network addresses used in this example:

DeviceIP addressSubnet mask
Delta AS228T-A PLC192.168.0.5255.255.255.0
IAI RCON gateway192.168.0.10255.255.255.0

Both devices must be on the same subnet, here 192.168.0.x.

1. Network wiring

  1. Switch off the PLC and the RCON before wiring.
  2. Run an Ethernet cable from the PLC's Ethernet port to the switching hub, and from the hub to the EtherNet/IP port on the RCON gateway. Push each plug in until it clicks.
  3. Use straight STP cable, CAT5 or better, no longer than 100 m. Double-shielded cable (aluminium tape and braid) is recommended.

2. Setting up the RCON gateway in IA-OS

2.1. Connecting the PC to the RCON

  1. Connect the PC to the USB port (mini-B) on the RCON gateway. Mind the orientation of the plug: forcing it in the wrong way can damage the port.
  2. Supply 24 VDC to the RCON.
  3. Set the operation mode switch on the front of the gateway to MANU.
  4. Start IAI Toolbox and choose IA-OS. In the connection method window click Serial comm, pick the right COM port and click OK. Confirm the warning dialogs and the MANU mode dialog.

When the connection works, the IA-OS main window shows the status tree of the gateway and of each axis. If the status tree does not appear, check the USB cable and the COM port.

On the first connection IA-OS shows the Confirmation at Initial Connection window, where you set the number of axes connected to the gateway. Do not skip it: without the number of axes the gateway cannot talk to the drivers.

2.2. IP address, number of axes and operation mode

Open the gateway parameters (User parameter edit [GW No.0]), Network setting tab:

  • 1. Communication setting: Network type is EtherNet/IP; enter IP address 192.168.0.10 and Subnet mask 255.255.255.0.
  • 2. Axis control settings: choose Auto and Number of axes setting = 2. Under Axis operation mode setting choose All-axis lump setting = Direct Numerical Command (Positioning) (Size: 8W), so both axes run in the same mode.
  • 3. Occupied size information: IA-OS works out the data size, here Output size 48 bytes and Input size 48 bytes. Note these two numbers: the PLC side must use exactly the same.
IA-OS: RCON gateway parameters with EtherNet/IP, 2 axes, Direct Numerical Command mode and a 48-byte size
IA-OS: RCON gateway parameters with EtherNet/IP, 2 axes, Direct Numerical Command mode and a 48-byte size

Click Transfer to write the parameters to the gateway, confirm the dialogs, and let IA-OS restart the gateway (software reset). Clicking Save without Transfer does not put the settings into effect.

2.3. Choosing the operation mode

Each RCON axis runs in one of six modes. The mode decides what the PLC can control and how many data words the axis takes:

ModeWords per axisPositionsNotes
Direct numerical control8UnlimitedThe PLC sends position, speed and acceleration/deceleration as numbers; present position can be read (0.01 mm)
Simple direct4128The PLC sends the target position as a number; present position can be read (0.01 mm)
Positioner 14128Moves by position number from the position table; present position can be read (0.01 mm)
Positioner 22128Moves by position number; no present position reading
Positioner 31128Moves by position number with the fewest signals; no present position reading
Positioner 5216Moves by position number; present position can be read (0.1 mm)

This post uses Direct numerical control for both axes: the PLC sends position and speed as numbers, with nothing to teach in the position table.

How the data size adds up: the first 8 words belong to the gateway, followed by each axis in turn. With 2 axes in an 8-word mode: 8 + 8 + 8 = 24 words = 48 bytes in each direction, which matches the figure shown by IA-OS. Over EtherNet/IP, Direct numerical control takes up to 8 axes per gateway (the other modes up to 16).

3. Configuring the Delta PLC in ISPSoft

3.1. Creating the project and installing the EDS file

  1. Start ISPSoft and create a new project with Controller Type = AS and PLC Type = AS228T.
  2. In the project tree, double-click HWCONFIG.
  3. In HWCONFIG open the Tool tab and click Device Description File Manager.
  4. Choose Install Device Description, select EDS (Electronic Data Sheet), click Browse to find the EDS file of the RCON gateway, tick Install and click Next until it reports Finish.
Delta HWCONFIG: the Tool tab with Device Description File Manager, used to install the EDS file
Delta HWCONFIG: the Tool tab with Device Description File Manager, used to install the EDS file

After that, the IAI device appears in the Product List as IANP3802-EP0.

3.2. Setting the PLC's IP address

Double-click the PLC picture to open Hardware Configuration, select Ethernet Port Basic Setting and enter IP Address 192.168.0.5, Subnet Mask 255.255.255.0, with Mode set to Static.

AS228T-A Hardware Configuration: Ethernet Port Basic Setting with IP address 192.168.0.5
AS228T-A Hardware Configuration: Ethernet Port Basic Setting with IP address 192.168.0.5

3.3. Adding the RCON to the EtherNet/IP network

  1. In the HWCONFIG project tree select EtherNet/IP to open the network view.
  2. Drag IANP3802-EP0 from the Product List into the view, then drag from the device to the network line (Network 0) to connect it to the PLC.
  3. Double-click the IP address next to the device and enter the RCON's IP: 192.168.0.10.
EtherNet/IP network view in HWCONFIG: the AS228T-A PLC and the IANP3802-EP0 adapter, with the dialog that changes the adapter's IP address
EtherNet/IP network view in HWCONFIG: the AS228T-A PLC and the IANP3802-EP0 adapter, with the dialog that changes the adapter's IP address

3.4. Setting up the data exchange area

Double-click the PLC picture in the network view to open the Data Exchange table, then double-click the IANP3802-EP0 row:

  • Read (RCON to PLC): Scanner Start Address D0, Length 48 bytes.
  • Write (PLC to RCON): Scanner Start Address D200, Length 48 bytes.
  • Leave the rest at the defaults: Connection Name Exclusive Owner, RPI 10 ms, Connection Type Point To Point. The instance numbers (Input 100, Output 150, Configure 5) come from the EDS file.
Data Exchange dialog: read 48 bytes into D0 and write 48 bytes from D200, RPI 10 ms
Data Exchange dialog: read 48 bytes into D0 and write 48 bytes from D200, RPI 10 ms

Length must equal the Output size and Input size that IA-OS showed in section 2.2. If they differ, the connection does not come up. D0 and D200 are my choice; any other D area works as long as it does not overlap the rest of the program.

Click Save, connect the PC to the PLC and click Download to load the configuration into the PLC.

Data Exchange table after setup: IANP3802-EP0 at 192.168.0.10, Input to D0 and Output from D200, 48 bytes each way
Data Exchange table after setup: IANP3802-EP0 at 192.168.0.10, Input to D0 and Output from D200, 48 bytes each way

4. Register map in the PLC

With the setup above (2 axes, Direct numerical control), the 24 words in each direction are laid out as follows.

PLC to RCON (D200–D223)

RegisterWordsContentUnit and example
D2001Gateway control signal 0Bit 15 is MON and must be on (see below)
D201–D2077Rest of the gateway areaNot used, leave at 0
D208–D2092Axis 1: target position0.01 mm (enter 2540 for 25.4 mm)
D210–D2112Axis 1: positioning width0.01 mm (enter 1 for 0.01 mm)
D2121Axis 1: speed1 mm/s by default (enter 200 for 200 mm/s); 0 keeps the axis stopped
D2131Axis 1: acceleration/deceleration0.01 G (enter 30 for 0.3 G)
D2141Axis 1: push current limit255 equals 100%, 510 equals 200%
D2151Axis 1: control signalsBy bit, see the table below
D216–D2172Axis 2: target positionSame as axis 1
D218–D2192Axis 2: positioning widthSame as axis 1
D2201Axis 2: speedSame as axis 1
D2211Axis 2: acceleration/decelerationSame as axis 1
D2221Axis 2: push current limitSame as axis 1
D2231Axis 2: control signalsBy bit

RCON to PLC (D0–D23)

RegisterWordsContentNotes
D01Gateway status signal 0RUN, errors, MANU mode, STOP (see below)
D11Gateway status signal 1LNK bit of each axis (bit 0 is axis 1)
D2–D76Rest of the gateway areaPower supply unit status, not used here
D8–D92Axis 1: present position0.01 mm
D10–D112Axis 1: currentmA
D121Axis 1: present speedSame unit as the speed in D212
D131Not used
D141Axis 1: alarm codeRead as hex
D151Axis 1: status signalsBy bit, see the table below
D16–D172Axis 2: present position0.01 mm
D18–D192Axis 2: currentmA
D201Axis 2: present speed
D211Not used
D221Axis 2: alarm codeRead as hex
D231Axis 2: status signalsBy bit

Target position, positioning width, present position and current are signed 32-bit values (2 words), so write and read them with 32-bit instructions such as DMOV. The speed unit can be switched to 0.1 mm/s in the gateway parameters in IA-OS; 200 mm/s is then entered as 2000.

Gateway area (D200 and D0, D1)

The first eight words are not just padding. The bits you need:

Register.bitSignalMeaning
D200.15MONTurn on to let the PLC control the axes. While it is off, the RCON ignores PLC commands
D0.15RUNGateway running normally
D0.13ERRTCommunication error between the gateway and the PLC or the axes
D0.12MODThe front switch is on MANU
D0.8SEMGThe STOP input on the System I/O connector is off, all axes are stopped
D0.0–D0.7ALMCGateway alarm code
D1.0, D1.1LNK0, LNK1The gateway is communicating with axis 1, axis 2

Do not mix up the two bit 15s: D200.15 is the gateway's MON, turned on once for the whole system, while D215.15 (and D223.15) is BKRL in each axis's control word, used only to release that axis's brake. Turning on BKRL instead of MON can let an axis with a brake drop under gravity.

Control signals (D215 for axis 1, D223 for axis 2)

BitSignalMeaning
0DSTRStart the move to the target position
1HOMEHome return
2STPPause
3RESAlarm reset
4SONServo on
5JISLJog / inching selection
6JVELJog speed selection
7JOG-Jog in the negative direction
8JOG+Jog in the positive direction
10GSL0Servo gain parameter set selection (with GSL1)
11GSL1Servo gain parameter set selection
12PUSHPush-motion operation
13DIRPush direction
14INCTarget position is a relative distance
15BKRLBrake release

Status signals (D15 for axis 1, D23 for axis 2)

BitSignalMeaning
0PENDIn position
1HENDHome return complete
2MOVEAxis moving
3ALMAlarm present
4SVServo is on
5PSFLPush missed (no contact with the work)
7ALMLLight (minor) alarm
8MENDCommand complete (positioning or push finished, or stopped after travel)
12ZONE1Axis inside zone 1
13ZONE2Axis inside zone 2
14CRDYController ready
15EMGSEmergency stop active

Delta AS series PLCs can address single bits of a D register: D215.4 is SON of axis 1 and D15.0 is PEND of axis 1.

The basic sequence to move axis 1 to a position, following the start-up sequence in the RCON manual:

  1. Wait for D0.15 (RUN) and D1.0 (LNK0) to turn on, then turn on D200.15 (MON).
  2. Turn on D215.4 (SON) and wait for D15.4 (SV) to turn on.
  3. Turn on D215.1 (HOME) to home the axis, wait for D15.1 (HEND), then turn HOME off.
  4. Write the target position to D208, the positioning width to D210, the speed to D212 and the acceleration/deceleration to D213.
  5. Turn on D215.0 (DSTR). The RCON reads the data from step 4 on the rising edge of DSTR, then D15.0 (PEND) turns off and D15.2 (MOVE) turns on. Once PEND is off or MOVE is on, turn DSTR off, but keep it on for at least 10 ms, and do not change the registers from step 4 until DSTR is off. PEND turns on again when the axis arrives.
  6. If D15.3 (ALM) turns on, read the alarm code in D14, fix the cause, then turn on D215.3 (RES) to reset it.

The full meaning of every signal and the timing charts are in IAI's RCON manual (ME0384, Operation Section, Direct numerical control mode); read it before writing the program.

5. Checking the connection

Set the switch on the front of the RCON gateway back to AUTO. In MANU (teaching mode) the RCON does not take commands from the PLC, and bit D0.12 (MOD) reads 1.

Then look at the MS and NS LEDs on the gateway:

LEDStateMeaning
MS (Module Status)Green, steadyNormal
MSGreen, blinkingNo configuration information, or the scanner is idle
MSOrange, blinkingMinor fault, recoverable
MSOrange, steadyMajor fault, not recoverable
NS (Network Status)Green, steadyOnline, connection with the PLC established
NSGreen, blinkingOnline, but no connection established yet
NSOrange, blinkingConnection timed out
NSOrange, steadySerious communication error or duplicate IP address
NSOffNo IP address

Both LEDs steady green means the PLC and the RCON are exchanging data. Open a device monitor table in ISPSoft and D8–D9 will follow the real position of axis 1.

6. Common problems

  • NS keeps blinking green: the data sizes on the two sides differ. Compare Length in Data Exchange with the Output size and Input size in IA-OS.
  • A parameter change in IA-OS has no effect: Transfer was not clicked, or the gateway was not restarted.
  • IA-OS does not show the axes: the number of axes was not set on the first connection.
  • The LEDs are green but the axes ignore commands: D200.15 (MON) is off. This is the easiest one to miss, because the gateway area looks like padding.
  • The PLC is connected but the axis does not move: the switch is still on MANU, the STOP input is off (D0.8 SEMG reads 1), or SON is off or the axis has not been homed.
  • The RCON does not answer a ping: the PLC and the RCON are on different subnets, or the IP address is already used by another device.
  • After changing the number of axes or the operation mode: the data size changes with it, so update Length and the register map in the PLC.

Conclusion

Connecting an IAI RCON to a Delta AS PLC over EtherNet/IP comes down to three things: set the IP address, the number of axes and the operation mode of the gateway in IA-OS; install the EDS file and set up Data Exchange with the right size in HWCONFIG; and build the register map for each axis before writing the program, not forgetting the gateway's MON bit. Once MS and NS are both green, the rest is writing numbers to registers and turning on the right bits.

The Delta AS228T PLC and IAI electric actuators both appear in my real projects: the Automated Pallet Conveyor Line runs on a Delta AS228T PLC, and the 13-Station MCB Function Test Machine has 8 IAI electric cylinder axes controlled by a Keyence KV-8000 PLC. More are on the Projects page.

Need IAI electric actuators, a Delta PLC or EtherNet/IP devices integrated into a machine? See my PLC programming and motion control services or contact me.

Need help with a similar project?

Have a machine, line or automation project in mind? Message me on any channel below with a short description and I'll get back to you.

To get a quote faster, include:

WeChat

WeChat QR code to add Duc Tran as a friend

WeChat name: Mr. Duke · +84 948 795 739

Open WeChat and tap Scan. On a phone, save the image, then scan it from your photo album.

Save QR code

← All posts