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:

  1. CC-Link slave protocol support;

  2. Profinet slave protocol support;

  3. Ethernet/IP slave protocol support;

  4. 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

  1. Check materials: The FRH-PCIeN board, FRJ-PCIeN board, and matching sheet metal parts are shown below.

../_images/0015.png

Figure 18.2-1 Mounting Sheet Metal (Front)

../_images/0025.png

Figure 18.2-2 Mounting Sheet Metal (Back)

../_images/0035.png

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

../_images/0045.png

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

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

../_images/0055.png

Figure 18.2-5 Sheet Metal Installation Diagram

../_images/00612.png

Figure 18.2-6 FRH-PCIeN Core Board Installation Diagram

../_images/00712.png

Figure 18.2-7 FRH-PCIeN Network Port (RJ45) Expansion Card Installation Diagram

../_images/0083.png

Figure 18.2-8 FRJ-PCIeN Core Board Installation Diagram

../_images/0093.png

Figure 18.2-9 FRJ-PCIeN Network Port (RJ45) Expansion Card Installation Diagram

Note

Note: All screws must be tightened.

  1. Wiring between the robot control box and the PLC is shown below.

../_images/0103.png

Figure 18.2-10 Control Box & Mitsubishi PLC Wiring Diagram

../_images/0113.png

Figure 18.2-11 Control Box & Siemens PLC Wiring Diagram

../_images/0123.png

Figure 18.2-12 Control Box & Omron PLC Wiring Diagram

../_images/0133.png

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

  1. 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.

../_images/0147.png

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

../_images/0157.png

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.

../_images/0168.png

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

../_images/0178.png

Assign I/O: Drag Input and Output modules from the catalog.

../_images/0188.png

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)”:

../_images/0197.png

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”:

../_images/0207.png ../_images/0217.png

18.2.2.3. Omron Ethernet/IP

  1. Create a new PLC project (This example uses model: NX102-1100, 1.47 Omron PLC):

../_images/0308.png

Create new global variables:

../_images/0317.png
  1. Import EDS file

Click “Tools” -> “EtherNet/IP Connection Settings”:

../_images/0328.png

Enter the settings for the PLC to be connected:

../_images/0338.png

Right-click in the blank area of the tag group to create a new tag group:

../_images/0348.png

Right-click the newly created tag group, create tags. Same for input and output, both 256 bytes in length:

../_images/0358.png ../_images/0368.png

Enter connection settings, right-click in the blank area of the toolbox, right-click to display the EDS library:

../_images/0378.png

Install the EDS file:

../_images/0387.png

Click the “+” in the toolbox, add the target device, fill in the target device IP address:

../_images/0397.png

Click “Add” at the bottom right. After successful addition, the target device is displayed:

../_images/0407.png
  1. EtherNet/IP Parameter Settings

Right-click the added target device, click “Edit”:

../_images/0416.png

The current device data mapping length is 256 bytes. Change 0001 and 0002 to 256, confirm:

../_images/0427.png

Double-click the target device, fill in the input and output, select the starting variable:

../_images/0438.png
  1. 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

  1. Create a new PLC project (This example uses model: NX102-1100, 1.47 Omron PLC):

../_images/0448.png

Create new global variables:

../_images/0458.png
  1. Import XML file

Double-click “EtherCAT” to enter the master settings interface, right-click and select “Show ESI Library”.

../_images/0467.png ../_images/0476.png

In the right toolbox, select the added target device, double-click to add the slave:

../_images/0486.png
  1. EtherCAT Slave Settings

Set the slave’s “Distributed Clock valid” to “Start DC”:

../_images/0496.png
  1. I/O Mapping

Double-click “I/O Map” to bind variables to addresses:

../_images/0506.png
  1. 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

  1. 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.

../_images/0516.png

Figure 18.2-14 Control Box Web Interface

  1. 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.

../_images/0525.png

Figure 18.2-15 Software Upgrade

  1. Click the expand button in the upper right corner to open the menu bar. Click “Local Mode” to switch to “Remote Mode”.

../_images/0535.png

Figure 18.2-16 Switching to Remote Mode

  1. Select the controller slave protocol and whether the auto-start function is needed. Click the “Set” button.

../_images/0545.png

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