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:
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.;
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
Check materials: The appearance of the FRJ-PCIeN board and the accompanying sheet metal parts is shown below.
Figure 19.2-1 Installation Sheet Metal (Front)
Figure 19.2-2 Installation Sheet Metal (Back)
Figure 19.2-3 FRH-PCIeN-EC/EIP/CC/PN-RJ-V10 Board
Figure 19.2-4 FRJ-PCIeN-EIP/CC/PN-RJ-V10 Board
Install the board into the integrated mini control box as shown in the figure.
Figure 19.2-5 Sheet Metal Installation Diagram
Figure 19.2-6 Core Motherboard Installation Diagram
Figure 19.2-7 RJ45 Network Port Expansion Card Installation Diagram
Note
Note: All screws must be tightened.
The wiring between the robot control box and the PLC is shown in the figure below.
Figure 19.2-8 Control Box & Mitsubishi PLC Wiring Diagram
Figure 19.2-9 Control Box & Siemens PLC Wiring Diagram
Figure 19.2-10 Control Box & Inovance PLC Wiring Diagram
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
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.
EtherNet/IP Parameter Settings
Double-click the slave under “EtherNet/IP” in the left toolbar to pop up the parameter setting window:
Fill in the board IP address:
Click to select “Connection” to set the data input and output byte size:
Click “Edit Connection” to enter the pop-up window, change both input and output bytes to 256:
Click to select “Data Set”, set the input and output data type to “INT”, and the bit length to “2048”:
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.
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
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.
In the TIA PORTAL software menu bar, select “Options” -> “Manage general station description files (GSD)” to install or delete installed GSD files.
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.
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.
Assign IO: Look for modules in the directory and drag Input and Output.
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:
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)”:
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”:
19.2.2.3. Mitsubishi CC-link
CC-Link IEF Basic Settings
Enable CC-link: Select “Ethernet Port” in the left navigation menu bar, set the PLC IP address to ensure it is on the same subnet as the Jiyuan board address. Click “Use CC-link IEF Basic” and select “Use”:
CC-Link Network Configuration Settings: Also in CC-Link IEF Basic settings, select “Network Configuration Settings” and choose the CC-Link IEF Basic general module. Drag it to the lower left of the view to complete the hardware configuration:
Set the slave station points and IP address:
CC-Link Refresh Settings: Also in CC-Link IEF Basic settings, click “Refresh Settings” and customize the transmission settings: 256 bytes receive, 256 bytes send.
Program Download
After opening the test program, click “Online” -> “Write to Programmable Controller” to enter the download interface.
After opening the download interface, click “Parameter + Program” in the upper left, then click “Execute” in the lower right to download, and wait for the download to complete.
19.2.2.4. Inovance EtherCAT
Import XML File
Open Inovance programming software AutoShop, create a new PLC project, and select “EtherCATDevices” in the toolbox on the right:
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.
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.
Add PDO
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.
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.
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:
Open WinPcap_4_1_3.exe and install the network card driver package.
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.
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.
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.
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:
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.
Note
To upgrade the firmware of the FRJ-PCIeN-EC/PN/EIP/CC-RJ-V20 board, you need to unload the running open protocol.
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.
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.




