18. Robot Remote Mode
18.1. Overview
To facilitate PLC control of the robot via various industrial bus protocols (CC-Link, Profinet, Ethernet/IP, and EtherCAT), the FRH-PCIeN-EC/EIP/CC/PN-RJ-V10 and FRJ-PCIeN-EIP/CC/PN-RJ-V10 board modules are added to the integrated mini control box to achieve the following functions:
CC-Link slave protocol support;
Profinet slave protocol support;
Ethernet/IP slave protocol support;
EtherCAT slave protocol support (not supported by the FRJ-PCIeN-EIP/CC/PN-RJ-V10 board).
18.2. Environment Setup
18.2.1. Board Installation
Check materials: The FRH-PCIeN board, FRJ-PCIeN board, and matching sheet metal parts are shown below.
Figure 18.2-1 Mounting Sheet Metal (Front)
Figure 18.2-2 Mounting Sheet Metal (Back)
Figure 18.2-3 FRH-PCIeN-EC/EIP/CC/PN-RJ-V10 Board
Figure 18.2-4 FRJ-PCIeN-EIP/CC/PN-RJ-V10 Board
Install the board into the integrated mini control box as shown.
Figure 18.2-5 Sheet Metal Installation Diagram
Figure 18.2-6 FRH-PCIeN Core Board Installation Diagram
Figure 18.2-7 FRH-PCIeN Network Port (RJ45) Expansion Card Installation Diagram
Figure 18.2-8 FRJ-PCIeN Core Board Installation Diagram
Figure 18.2-9 FRJ-PCIeN Network Port (RJ45) Expansion Card Installation Diagram
Note
Note: All screws must be tightened.
Wiring between the robot control box and the PLC is shown below.
Figure 18.2-10 Control Box & Mitsubishi PLC Wiring Diagram
Figure 18.2-11 Control Box & Siemens PLC Wiring Diagram
Figure 18.2-12 Control Box & Omron PLC Wiring Diagram
Figure 18.2-13 Control Box & Omron PLC Wiring Diagram
Note
1: Robot control box (board network port); 2: Switch; 3: Laptop PC; 4: Mitsubishi PLC (CC-Link IEF Basic port); 5: Siemens PLC (Profinet port); 6: Omron PLC (Ethernet/IP port); 7: Omron PLC (EtherCAT port);
When the protocol is switched to EtherCAT bus, the board’s network ports need to be distinguished as EtherCAT_IN and EtherCAT_OUT. In this case, the EtherCAT port of the Omron PLC must be directly connected to the board’s EtherCAT_IN port via an Ethernet cable.
18.2.2. PLC Environment Setup
The test environment set up to implement slave commands for each protocol is shown in the table below, including the PLC models, firmware versions, and test software used for 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 |
“192.168.0.2” |
“192.168.0.113” |
PLC IP Address |
IP need not be on same subnet |
“192.168.0.15” (IP on same subnet) |
Protocol |
Ethernet/IP |
EtherCAT |
|---|---|---|
Brand |
Omron |
Omron |
Model |
NX102-1100 |
NX102-1100 |
Firmware |
V1.3 |
V1.3 |
Software |
SysmacStudioV1.50 |
SysmacStudioV1.50 |
Board IP Address |
“192.168.0.112” |
“192.168.0.2” |
PLC IP Address |
“192.168.0.88” (IP on same subnet) |
“192.168.0.88” (IP on same subnet) |
18.2.2.1. Siemens Profinet
Importing 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 already installed GSD files.
To install the GSD file, select “Manage general station description files (GSD)” as above. The “Manage general station description files” window appears.
Select the folder containing the GSD file(s) to install from the “Source path”, choose one or more files from the displayed list of GSD files, and click the “Install” button. As shown below.
After successful installation, the device of the installed GSD file can be found under “Other field devices” in the hardware catalog, as shown below.
Assign I/O: Drag Input and Output modules from the catalog.
Download program to device: Double-click “Devices & Networks” in the left project tree, right-click the “PLC_1” module, select “Download to device” from the dropdown menu, click “Hardware and software (only changes)”:
Search and download device: After the popup, configure the PG/PC interface type as shown, click “Start search”, select the device to download the program to, click “Download”:
18.2.2.2. Mitsubishi CC-link
(1) Import configuration file Open GxWorks3, select “Tools” -> “Configuration File Management” -> “Login”. After the popup, select the corresponding communication file, click “Login” to complete the configuration file import.
CC-Link IEF Basic Settings
Create a PLC project, enable CC-link: Select “Ethernet Port” in the left navigation menu, set the PLC IP address to ensure it is on the same subnet as the Hilscher board address. Click “CC-Link IEF Basic Use” and select “Use”.
CC-Link Network Configuration Settings: Still in CC-Link IEF Basic Settings, select “Network Configuration Settings”. Select the Hilscher CIFX Digital I/O module for the module. Drag it to the bottom left of the view to complete the hardware configuration.
CC-Link Refresh Settings: Still in CC-Link IEF Basic Settings, click “Refresh Settings”. Customize transfer settings: 256 bytes receive, 256 bytes send.
Program Download
After opening the test program, click “Online” -> “Write to PLC” to enter the download interface.
After opening the download interface, click “Parameters + Program” at the top left, then click “Execute” at the bottom right to download. Wait for the download to complete.
18.2.2.3. Omron Ethernet/IP
Create a new PLC project (This example uses model: NX102-1100, 1.47 Omron PLC):
Create new global variables:
Import EDS file
Click “Tools” -> “EtherNet/IP Connection Settings”:
Enter the settings for the PLC to be connected:
Right-click in the blank area of the tag group to create a new tag group:
Right-click the newly created tag group, create tags. Same for input and output, both 256 bytes in length:
Enter connection settings, right-click in the blank area of the toolbox, right-click to display the EDS library:
Install the EDS file:
Click the “+” in the toolbox, add the target device, fill in the target device IP address:
Click “Add” at the bottom right. After successful addition, the target device is displayed:
EtherNet/IP Parameter Settings
Right-click the added target device, click “Edit”:
The current device data mapping length is 256 bytes. Change 0001 and 0002 to 256, confirm:
Double-click the target device, fill in the input and output, select the starting variable:
Program Download
Open the test program, modify the PLC IP address to the same subnet as the board, download the program and run it.
18.2.2.4. Omron EtherCAT
Create a new PLC project (This example uses model: NX102-1100, 1.47 Omron PLC):
Create new global variables:
Import XML file
Double-click “EtherCAT” to enter the master settings interface, right-click and select “Show ESI Library”.
In the right toolbox, select the added target device, double-click to add the slave:
EtherCAT Slave Settings
Set the slave’s “Distributed Clock valid” to “Start DC”:
I/O Mapping
Double-click “I/O Map” to bind variables to addresses:
Program Download
Open the test program, modify the PLC IP address to the same subnet as the board, download the program and run it.
18.3. Robot Remote Mode Operation Instructions
Enter IP address 192.168.58.2 in the browser. Username is admin, password is 123. Click “Login” to access the robot control box web interface.
Figure 18.2-14 Control Box Web Interface
Click “System Settings” -> “About” -> Software Upgrade interface. Click the “Upgrade” button, upload the software package to be upgraded, click “Upgrade” to start the upgrade. Restart the control box after the upgrade is complete.
Figure 18.2-15 Software Upgrade
Click the expand button in the upper right corner to open the menu bar. Click “Local Mode” to switch to “Remote Mode”.
Figure 18.2-16 Switching to Remote Mode
Select the controller slave protocol and whether the auto-start function is needed. Click the “Set” button.
Figure 18.2-17 Configuring Communication Protocol
Note
To switch between different protocols, you must first click the “Uninstall” button before configuring another protocol.
18.4. Appendix
18.4.1. Command List
Command Code |
Command Description |
|---|---|
0x1000 |
Robot Enable |
0x1001 |
Reset All Errors |
0x1002 |
Robot Stop Motion |
0x1003 |
Read Actual Position |
0x1004 |
Set Robot Speed |
0x1005 |
Robot Continue Motion |
0x1006 |
Robot Pause Motion |
0x1007 |
Calculate Cartesian Position based on Joint Position |
0x1008 |
Calculate Joint Position based on Cartesian Position |
0x2000 |
Write Tool Information |
0x2001 |
Read Tool Information |
0x2002 |
Write Workpiece Information |
0x2003 |
Read Workpiece Information |
0x2004 |
Write Load Information |
0x2005 |
Read Load Information |
0x2006 |
Write Reference Dynamic Information |
0x2007 |
Read Reference Dynamic Information |
0x2008 |
Write Default Dynamic Information |
0x2009 |
Read Default Dynamic Information |
0x2010 |
Write Software Limit Information |
0x2011 |
Read Software Limit Information |
0x3000 |
MoveAxes (based on joint angles) |
0x3001 |
MoveLinear |
0x3002 |
MoveDirect (based on Cartesian coordinate system) |
0x3003 |
Jog Motion |
0x3004 |
Jog Stop |