19. Robot Slave Mode

19.1. Overview

To facilitate PLC control of robot motion through different industrial bus protocols (CC-Link, Profinet, Ethernet/IP, EtherCAT), FRJ-PCIeN-EIP/CC/PN-RJ-V10 board and FRJ-PCIeN-EC/PN/EIP/CC-RJ-V20 board devices are added to the integrated mini control box. The robot slave mode is developed to achieve the following functions:

    1. The master device sends input signals to the robot slave to control the robot to perform corresponding actions, for example: controlling the output of the robot control box DO, controlling robot motion, etc.;

    1. The master device reads the value of the corresponding address to obtain the corresponding robot real-time status data, for example: robot joint data, TCP position, whether the robot has moved to the target position, etc.

19.2. Environment Configuration

The board model and software version are described as follows:

Protocol Type

Board Model

Robot Software Version

CC-Link IEF Basic

FRJ-PCIeN-EIP/CC/PN-RJ-V10 Board

V3.8.4 and above

CC-Link IEF Basic

FRJ-PCIeN-EC/PN/EIP/CC-RJ-V20 Board

V3.9.6 and above

Profinet

FRJ-PCIeN-EIP/CC/PN-RJ-V10 Board

V3.8.4 and above

Profinet

FRJ-PCIeN-EC/PN/EIP/CC-RJ-V20 Board

V3.9.6 and above

Ethernet/IP

FRJ-PCIeN-EIP/CC/PN-RJ-V10 Board

V3.8.4 and above

Ethernet/IP

FRJ-PCIeN-EC/PN/EIP/CC-RJ-V20 Board

V3.9.6 and above

EtherCAT

FRJ-PCIeN-EC/PN/EIP/CC-RJ-V20 Board

V3.9.6 and above

19.2.1. Board Installation

  1. Check materials: The appearance of the FRJ-PCIeN board and the accompanying sheet metal parts is shown below.

../_images/0015.png

Figure 19.2-1 Installation Sheet Metal (Front)

../_images/0025.png

Figure 19.2-2 Installation Sheet Metal (Back)

../_images/0035.png

Figure 19.2-3 FRH-PCIeN-EC/EIP/CC/PN-RJ-V10 Board

../_images/0045.png

Figure 19.2-4 FRJ-PCIeN-EIP/CC/PN-RJ-V10 Board

  1. Install the board into the integrated mini control box as shown in the figure.

../_images/0055.png

Figure 19.2-5 Sheet Metal Installation Diagram

../_images/0083.png

Figure 19.2-6 Core Motherboard Installation Diagram

../_images/0093.png

Figure 19.2-7 RJ45 Network Port Expansion Card Installation Diagram

Note

Note: All screws must be tightened.

  1. The wiring between the robot control box and the PLC is shown in the figure below.

../_images/0103.png

Figure 19.2-8 Control Box & Mitsubishi PLC Wiring Diagram

../_images/0113.png

Figure 19.2-9 Control Box & Siemens PLC Wiring Diagram

../_images/0123.png

Figure 19.2-10 Control Box & Inovance PLC Wiring Diagram

../_images/0133.png

Figure 19.2-11 Control Box & Inovance PLC Wiring Diagram

Note

1: Robot control box (board network port); 2: Switch; 3: Laptop PC; 4: Mitsubishi PLC (CC-Link IEF Basic network port); 5: Siemens PLC (Profinet network port); 6: Inovance PLC (Ethernet/IP); 7: Inovance PLC (EtherCAT network port);

19.2.2. PLC Environment Setup

The test environment built to implement the slave commands of each protocol is shown in the following table, including the PLC model, firmware version and test software used in each protocol.

Table 2-1 Test Environment

Protocol

Profinet

CC-link

Brand

Siemens

Mitsubishi

Model

CPU 1515-2 PN

FX5S-30TR/DS

Firmware

6ES75152AM020AB0

30MR/ES V1.3

Software

TIA Portal V17

GXWorks3V1.097B

Board IP Address

Configurable

Configurable

PLC IP Address

No need to be on the same subnet

Same subnet

Protocol

Ethernet/IP

EtherCAT

Brand

Inovance

Inovance

Model

Easy521-0808TN

Easy521-0808TN

Firmware

/

/

Software

AutoShop 4.11.0.1

AutoShop 4.11.0.1

Board IP Address

Configurable

Configurable

PLC IP Address

Same subnet

Same subnet

19.2.2.1. Inovance Ethernet/IP

  1. Import EDS File

Open Inovance programming software AutoShop, create a new PLC project, and select “EtherNet/IP Devices” in the toolbox on the right.

Left-click “EtherNet/IP”, then right-click to pop up the “Import EDS” dialog box. Left-click to confirm and find the folder containing the board EDS file. After successful import, the board name will appear under the “EtherNet/IP Devices” directory. Close the project and reopen it to complete the EDS file import.

../_images/0016.png ../_images/0026.png
  1. EtherNet/IP Parameter Settings

Double-click the slave under “EtherNet/IP” in the left toolbar to pop up the parameter setting window:

../_images/0036.png

Fill in the board IP address:

../_images/0046.png

Click to select “Connection” to set the data input and output byte size:

../_images/0056.png

Click “Edit Connection” to enter the pop-up window, change both input and output bytes to 256:

../_images/0065.png

Click to select “Data Set”, set the input and output data type to “INT”, and the bit length to “2048”:

../_images/0075.png ../_images/0084.png ../_images/0094.png

After successfully setting the “Data Set” parameters, click to select “EtherNet/IP I/O Mapping” and enter D0 and D200 respectively. D0 and D200 correspond to the start addresses of the receive and send arrays on the PLC side.

../_images/0104.png ../_images/0114.png
  1. Program Download

Open the test program, modify the PLC IP address to be on the same subnet as the board, and run the program after downloading.

19.2.2.2. Siemens Profinet

  1. Import GSD File (XML File)

Open Siemens programming software TIA Portal V17, create a new PLC project, select “Devices & Networks”, and double-click 6ES7 515-2AM02-0AB0 in the “Hardware Catalog” on the right to add the PLC module.

../_images/0124.png

In the TIA PORTAL software menu bar, select “Options” -> “Manage general station description files (GSD)” to install or delete installed GSD files.

../_images/0134.png

To install GSD files, select “Manage general station description files (GSD)” as above, and the “Manage general station description files” window appears.

Select the folder containing the GSD files to be installed from the “Source path”, select one or more files to install from the displayed list of GSD files, and click the “Install” button. As shown in the figure below.

../_images/0143.png

After successful installation, the device with the installed GSD file can be found under “Other field devices” in the hardware catalog, as shown in the figure below.

../_images/0153.png

Assign IO: Look for modules in the directory and drag Input and Output.

../_images/0164.png

Compile the program: Double-click to enter “Devices & Networks” in the left project tree, right-click the “PLC_1” module, select “Compile” from the drop-down menu, and click “Hardware and software (only changes)”. After compilation is complete, “Compilation completed” will be displayed at the bottom of the software view:

../_images/0174.png ../_images/0184.png

Download the program to the device: Double-click to enter “Devices & Networks” in the left project tree, right-click the “PLC_1” module, select “Download to device” from the drop-down menu, and click “Hardware and software (only changes)”:

../_images/0193.png

Search and download the device: After the pop-up window, configure the PG/PC interface type as shown below, click “Start search”, select the device to which the program needs to be downloaded, and click “Download”:

../_images/0203.png ../_images/0213.png

19.2.2.4. Inovance EtherCAT

  1. Import XML File

Open Inovance programming software AutoShop, create a new PLC project, and select “EtherCATDevices” in the toolbox on the right:

../_images/0303.png

Left-click “EtherCATDevices”, then right-click to pop up the “Import Device XML” dialog box. Left-click to confirm and find the folder containing the board XML file.

After successful import, the board name will appear under the “EtherCAT Devices” directory. Close the project and reopen it to complete the XML file import process.

../_images/0312.png
  1. Add EtherCAT Slave

Right toolbar → “EtherCAT Devices” → “Other Devices” → “JIYuan” → “Xone-PCIe-ECATs”. Double-click “Xone-PCIe-ECATs” to add the EtherCAT slave. You can now see that the slave has been successfully added under the EtherCAT master in the left project tree.

../_images/0323.png ../_images/0333.png
  1. Add PDO

../_images/0343.png ../_images/0353.png
  1. EtherCAT Address Mapping

Double-click the variable table in the left toolbar to create a new input array of 256 bytes with soft element address D0. Create a new output array of 256 bytes with soft element address D200.

../_images/0363.png

Under “EtherCAT” in the left toolbar, double-click “Xone-PCIe-ECATs”. In the pop-up dialog box, click “I/O Function Mapping”, click the box to bind the variable address. In the pop-up dialog box, click “Variable Table”, select the corresponding input/output, click “OK”. Bind other addresses in order using the same procedure.

../_images/0373.png
  1. Program Download

Open the test program, change the PLC IP address to be on the same subnet as the board, and run the program after downloading.

19.4. Board Firmware Upgrade and Communication Cycle Configuration

19.4.1. FRJ-PCIeN-EIP/CC/PN-RJ-V10 Board

When switching protocols, the board requires a firmware upgrade. Use the host computer to upgrade the FRJ-PCIeN-EIP/CC/PN-RJ-V10 board firmware. The steps are as follows:

  1. Open WinPcap_4_1_3.exe and install the network card driver package.

  2. Directly connect the PC (Win11 system) network port to the board network port. Open Device Assistant v1.1.0.exe, double-click “Ethernet”, and click the “Refresh” button in the upper left corner to scan the currently connected board device.

../_images/0433.png ../_images/0443.png
  1. Double-click the scanned board device to enter the firmware update interface. Configure the PC and the obtained board IP to be on the same subnet. Click the “…” button on the right side of the “Firmware Update” menu bar to upload the firmware to be upgraded. Click the “Update” button, and a “Upgrade successful” message will appear in the text box in the lower left corner.

../_images/0453.png
  1. After a successful board upgrade, a reset operation will be performed. Wait for the board reset to complete (5s), enter the required communication cycle (supports 1~100ms), click the “Set” button, and after the “Cycle setting successful” message appears in the lower left corner, restart the control box.

../_images/0463.png

19.4.2. FRJ-PCIeN-EC/PN/EIP/CC-RJ-V20 Board

When switching protocols, the board requires a firmware upgrade. Log in to the robot interface to upgrade the FRJ-PCIeN-EC/PN/EIP/CC-RJ-V20 board firmware. The steps are as follows:

  1. Enter the URL 192.168.58.2 to access the robot interface. Click the “Initial Settings” -> “Peripherals” -> “Board Communication” interface to obtain the FRJ-PCIeN-EC/PN/EIP/CC-RJ-V20 board firmware version number. Select the bin file to be upgraded, click “Upload”, wait for the firmware upgrade to succeed, and then restart the control box.

../_images/0472.png

Note

To upgrade the firmware of the FRJ-PCIeN-EC/PN/EIP/CC-RJ-V20 board, you need to unload the running open protocol.

  1. Enter the URL 192.168.58.2 to access the robot interface. Click the “Initial Settings” -> “Peripherals” -> “Board Communication” interface to obtain the board communication cycle. Enter the required communication cycle (1~100ms), click the “Configure” button, wait for the configuration to succeed, and then restart the control box.

../_images/0482.png

Note

To configure the communication cycle for the FRJ-PCIeN-EC/PN/EIP/CC-RJ-V20 board, you need to unload the running open protocol.

Board communication firmware and configuration files

Summary of PLC test programs for each protocol