0% found this document useful (0 votes)
57 views

Chapter 8 - EtherNet - IP - Module

The document discusses connecting an xCore robot controller to a PLC using an HD67664-A1 EtherNet/IP to Modbus TCP gateway. It describes preparing the hardware and network topology, configuring the gateway, robot controller, and PLC, and demonstrating communication between the devices by reading and writing registers. Precautions are provided regarding the gateway's performance limitations for large register configurations.

Uploaded by

nucleorobotica
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views

Chapter 8 - EtherNet - IP - Module

The document discusses connecting an xCore robot controller to a PLC using an HD67664-A1 EtherNet/IP to Modbus TCP gateway. It describes preparing the hardware and network topology, configuring the gateway, robot controller, and PLC, and demonstrating communication between the devices by reading and writing registers. Precautions are provided regarding the gateway's performance limitations for large register configurations.

Uploaded by

nucleorobotica
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 41

Connect to xCore using EtherNet/IP gateway

Tom Cai 2023.07.08


01 Introduction to Gateway HD67664-A1

02 Preparation of hardware and networking

03 Configuration for Gateway ,


xCore robot controller, PLC
CONTENTS
04 Communication demo
05 Precautions & troubleshooting

ROKAE robotics│Page : 2
01 Introduction to Gateway HD67664-A1
HD67664-A1

ROKAE robotics│Page : 3
1. HD67664-A1

HD67664-A1 is an Ehernet/IP slave to Modbus TCP master converter. It has the following specifications:

• Up to 500 bytes in reading and 500 bytes in writing;


• Isolation between Modbus/EtherNet/IP - Power Supply;
• Two-directional information between Modbus TCP bus and EtherNet/IP bus;
• Mountable on 35mm Rail DIN;
• Wide power supply input range: 8…24V AC or 12…35V DC;
• Wide temperature range: -40°C / 85°C [-40°F / +185°F];

More details can be found in the appendix “MN67664-A1_ENG.pdf”

MN67664-A1_ENG.pdf

ROKAE robotics│Page : 4
02 Preparation
hardware & networking

ROKAE robotics│Page : 5
2.1 Hardware -- Gateway

ROKAE robotics│Page : 6
2.1 Hardware -- Rockwell PLC

ROKAE robotics│Page : 7
2.2 Topology of network

Eth1 is EtherNet/IP port, IP is 192.168.2.101


192.168.2.160 Eth2 is Modbus master, IP is 192.168.2.102

Eth1 Eth1 Switch


Robot 192.168.2.x Segment
Eth2
Eth0 Gateway
192.168.0.160
24V DC
Power supply

192.168.2.170 192.168.2.241
Flexpendant
(optional) PLC PC / HMI

ROKAE robotics│Page : 8
2.2 Topology of network

read write read write


Gateway
Robot PLC
Modbus master -> EtherNet/IP
Modbus master EtherNet/IP master(client)
slave(server)
write read write read

ROKAE robotics│Page : 9
2.3 Network confirmation
Use ‘MobaXterm’ to do network scan. Confirm network is operational.

ROKAE robotics│Page : 10
03 Configurations
Gateway , xCore robot controller, PLC

ROKAE robotics│Page : 11
3.1 Configuration - HD67664-A1

OFF: running mode


Step1: Double click config tool, turn the switch to “on”. ON : setting mode
ON

ROKAE robotics│Page : 12
3.1 Configuration - HD67664-A1
Step2: Choose ore new a configuration file. We can choose build-in example file ‘Example1’.

2. Choose ‘Example1’.
1. Open configuration, or
you can use ‘new
configuration’ next to it.

3. Click bottom ‘OK’.

ROKAE robotics│Page : 13
3.1 Configuration - HD67664-A1
Step3:
Config port1 as EtherNet/IP slave
Port1 is EtherNet/IP slave
while port2 as modbus TCP master.

Config maximun input and output


byte number to 496.
1. Click here.
EtherNet/IP port is using 44818 by
default.

Port2 is Modbus TCP master

Timeout

ROKAE robotics│Page : 14
3.1 Configuration - HD67664-A1
Step4: Config modbus slave whom to communicate with.Input slave IP, port ,register type, address start , register quantities.
Both in read and write.

Modbus slave IP
is robot IP

ROKAE robotics│Page : 15
3.1 Configuration - HD67664-A1
Step5: Update configuration to gateway to run in ‘running mode’ later on.
If network is ok, green word ‘device has found’ will appear after click ‘Ping’ button.

ROKAE robotics│Page : 16
3.1 Configuration - HD67664-A1

Step6: Turn switch to ‘OFF’. Use running mode.

ROKAE robotics│Page : 17
3.2 Configuration – Robot controller
New
Step1: Add a new bus or edit the exist one. -> Communication -> Fieldbus Device -> Edit

IP is 192.168.2.160 or 0.0.0.0
Match configuration of
the gateway

ROKAE robotics│Page : 18
3.2 Configuration – Robot controller
New
Step2: Add new registers. -> Communication -> Register -> Edit

Gateway writes data, so


controller should be read.

ROKAE robotics│Page : 19
3.2 Configuration – Robot controller
Step3: Open fieldbus. Wait for connection from modbus master.

ROKAE robotics│Page : 20
3.3 Configuration – PLC
Step1: Rockwell PLC L24ER-QB1B. Open ‘Studio 5000’, create a new project.

ROKAE robotics│Page : 21
3.3 Configuration – PLC
Step2: Search PLC model, choose the exact one. In this case , I use ‘QB1B’, enter ‘QB1B’.

ROKAE robotics│Page : 22
3.3 Configuration – PLC
Step3: Clique com o botão direito em 'Ethernet', escolha 'Novo módulo'. Um novo módulo EtherNet/IP
escravo será estabelecido.

ROKAE robotics│Page : 23
3.3 Configuration – PLC
Step4: Digite 'ethernet' na barra de pesquisa. Escolha... ‘Generic Ethernet module’.
Note: Existem diversos tipos de dispositivos EtherNet/IP. Escolha o que corresponde ao seu hardware.

ROKAE robotics│Page : 24
3.3 Configuration – PLC
Step5: Digite as informações dos registros de entrada e saída EtherNet/IP.
Neste caso, estou usando input ‘1~10’ ,output ‘100~109’.

ROKAE robotics│Page : 25
3.3 Configuration – PLC
Step6: Modificar o endereço IP do PLC. Neste caso, estou usando 192.168.2.170.

ROKAE robotics│Page : 26
3.3 Configuration – PLC
Step7: Abra o monitor de controller tag. Fique de olho no ‘gateway:I’ e ‘gateway:o’. Esses são registros de entrada e
saída.

ROKAE robotics│Page : 27
04 Communication demo

ROKAE robotics│Page : 28
4.1 Communicate demo – R/W from control panel
1. Certifique-se de que a chave do gateway esteja na posição
"OFF".
2. O dispositivo Fieldbus está ligado no xCore-HMI.
3. Toda a rede está operacional.

connected

Modbus master’s IP

ROKAE robotics│Page : 29
4.1 Communicate demo – R/W from control panel

PLC write data Robot read data

ROKAE robotics│Page : 30
4.1 Communicate demo – R/W from control panel

PLC read data Robot write data

ROKAE robotics│Page : 31
4.2 Communicate demo – R/W RL program

Robot write example. Robot read example.

Set register array to zero.


10 of them.

Set registers different value to


see the changes.
1~10

Set registers different value to


see the changes.
-1~-10

ROKAE robotics│Page : 32
4.2 Communicate demo – R/W RL program
Note: I rename the register’s names. From ‘register0’ to ‘int_write_1’, from ‘register1’ to ‘int_read_1’!

ROKAE robotics│Page : 33
4 Communicate demo

1byte 1byte 1byte 1byte 1byte 1byte 1byte 1byte


INT' register no robô INT' register no gateway leva 4 bytes INT' register no PLC
leva 2 bytes (modbus master) leva 2 bytes
write apenas, read only,
Inicia a partir do read apenas, Inicia a partir do endereço 'N' Inicia a partir do
endereço 'N' endereço 'N'
read apenas, write only,
Inicia a partir do write apenas, Inicia a partir do endereço 'M' Inicia a partir do
endereço 'M' endereço 'M'

ROKAE robotics│Page : 34
05 Precauções

ROKAE robotics│Page : 35
5 Precautions
Este gateway não tem um desempenho muito alto. Se você deseja mais registros, deve
configurar as configurações em muitos slots. Dessa forma, você pode obter uma latência menor
do que simplesmente colocá-los juntos.

ROKAE robotics│Page : 36
5 Precautions

Samples Timeout(ms) Poll time(ms) registers (ro/wo) Latency (s)


Suggestion:
1 50 100 125+123 20
2 200 500 125+123 2
1. Use ‘timeout = 10ms, poll time = 10ms, ro = 40, wo = 40’ ,
3 50 100 40+40 0.788
4 30 50 40+40 0.189
will be nice.
5 10 10 40+40 0.034
2. If you need more registers. Put them into different slots.
6 10 10 80+80 4.5 3. Large number of registers and low timeout & poll time is
7 10 100 (40+40)*2 0.054 not recommended.

ROKAE robotics│Page : 37
5 Precautions
If you get jumbled numbers, try to check endian.
We offer 4 different endian.
In my case, ‘DCBA’ endian just match this Rockwell PLC while our default endian is ‘CDAB’.

ROKAE robotics│Page : 38
5 Precautions
If PLC cannot go online, check if the network path configuration in PLC is right.
Use tool named ‘RSLink Classic’.

ROKAE robotics│Page : 39
5 Precautions
Add the NIC(Network Interface Card) to path with direct cable link, choose PC’s NIC.
Or add the router’s NIC to path with router or switch link, choose remote subnet.

ROKAE robotics│Page : 40
THANK YOU

You might also like