Skip to main content

Ethernet IP to PLC Setup

Our goal is to set up Kawasaki communication with the PLC program such that 16 bytes of input and 16 bytes of output data are communicated between the two controllers. 

Kawasaki Setup

On the robot side, all the setup can be found in Menu>Aux Function>6. Input/Output Signal

image.png

Number of I/O Signals

Number of Output Signals0
Number of Input Signals0
Number of Internal Signals256
Number of Master Signals128
Number of Slave Signals0

16 bytes * 8 bits per byte = 128 total signals

Signal Allocation

Allocate Signals to Ports

Output (Total: 128) - MASTER 128 - SLAVE 0 - LOCAL 0


MASSLALOCChannel
1-16X

1
17-32X

17
33-48X

33
49-64X

49
65-80X

65
81-96X

81
97-112X

97
113-128X

113

Input (Total: 128) - MASTER 128 - SLAVE 0 - LOCAL 0


MASSLALOCChannel
1001-1016X

1001
1017-1032X

1017
1033-1048X

1033
1049-1064X

1049
1065-1080X

1065
1081-1096X

1081
1097-1112X

1097
1113-1128X

1113
Assign Ports to Physical I

Master Port -> 12

Slave Port -> 0

This assigns (and assumes) "Software EtherNet/IP" to the master port

Set Signal Order

Master Port

First Signal # Bit In a Byte : LSB First

Bytes Order In a Word (16 Bits) : Little Endian

Slave Port

n/a

Software EtherNet/IP Settings

These are the same settings as the other location of Network Settings. This refers to the ethernet port located within the controller. 

Beckhoff Setup

IPC

 

TwinCAT

EIP Master

Add an Ethernet Master to the IO Tree

image.png

image.png

Here, I have renamed the EtherNet/IP Scanner (Master) to match the port that I've set the static IP on. 

In the settings for the EIP Master:

image.png

Search for and select the Ethernet Port that you had configured previously (I have already done it here)

image.png

Assign an IP address to the EIP Master

This must be a different IP address than the Ethernet Port on the same subnet. In this example, my IPC EIP port is set to X.X.X.40 and my EIP Master is set to X.X.X.41

Robot EDS

Within the EIP Master, import the Kawasaki EDS File:

image.png

Add new item if you have already imported the EDS file, otherwise import EDS File(s). 

Importing and EDS file will require Admin Privileges 

The Kawasaki EDS Files can be found at "G:\Robotics\12 - Programming\Beckhoff\Robot EDS Files"

Import both.

When adding, add the Kawasaki_EDS_Slave to the EIP Master.

In the robot EIP properties:

image.png

Input the IP of the robot that the IPC will be communicating with. 

Robot IO

image.png

This should add the IO EDS connection with all the IO built in. 

image.png

It should have these default settings.