FANUC Robot to Siemens PLC Communication via Protocol Gateway
The Challenge of Multi-Protocol Integration
In modern manufacturing, it’s common to find equipment from different vendors that speak different industrial protocols. A typical scenario: a Siemens S7-1500 PLC using Profinet needs to control a FANUC robot that natively supports EtherNet/IP. Without a proper gateway, these two systems cannot exchange data. This article provides a detailed, step-by-step guide on how to bridge this communication gap using a Profinet-to-EtherNet/IP protocol gateway, based on real-world commissioning experience.
Understanding the Communication Architecture
The integration involves three main components:
- Siemens S7-1500 PLC – acts as the Profinet controller (master).
- FANUC Robot – operates as an EtherNet/IP adapter (slave).
- Protocol Gateway – serves as a Profinet device on one side and an EtherNet/IP scanner on the other, translating data between the two networks.
The gateway used in this example is a typical intelligent converter that supports both protocols. It must be configured carefully to ensure data consistency and proper mapping.
Step 1: Configuring the FANUC Robot as an EtherNet/IP Adapter
Before any wiring, verify that the robot has the EtherNet/IP option installed. On the teach pendant, navigate to MENU > Status > Version ID and look for the EtherNet/IP adapter option. If missing, contact FANUC for a license.
Network Settings
Connect the robot to a configuration PC. Go to MENU > Setup > Host Comm > TCP/IP. Select Port #1 and set the IP address (e.g., 192.168.1.100) and subnet mask (255.255.255.0). Important: After changing the IP, you must reboot the robot controller for the settings to take effect.
Adapter Configuration
Navigate to MENU > I/O > EtherNet/IP. You will see Connection 1. If it is active (green “Run” status), you must first set it to Inactive by pressing F5. Only then can you modify parameters.
Press F4 to enter the adapter configuration screen. Set the following:
- Input Size: 4 Words (64 bits)
- Output Size: 4 Words (64 bits)
These sizes define the data exchange: the robot will receive 64 bits of control data and send 64 bits of status data. After setting, press F5 to activate the connection and reboot the robot. Verify the status changes to “Run”.
Finally, obtain the EDS file from the robot (via file backup menu) or note the Connection Point (instance number) from the EDS file’s [Connection Point] section. This number is needed for gateway configuration.
Step 2: Configuring the Profinet-to-EtherNet/IP Gateway
Using the gateway’s configuration software, create a new project (e.g., PN2EIPm). The gateway acts as a Profinet device on the PLC side and an EtherNet/IP scanner on the robot side.
Profinet Side Settings
- Device Name: Leave blank; it will be assigned by TIA Portal later.
- Data handling on disconnect: Set to “Hold Last Value” to prevent unexpected robot stops if communication is lost.
EtherNet/IP Side Settings
- Gateway IP: Set to 192.168.1.10 (same subnet as robot).
- Add Slave: Enter robot IP 192.168.1.100.
- Connection Point: Enter the instance number from the EDS file.
- Data Length: 4 words input, 4 words output (matching robot settings).
Critical mapping note: The gateway’s output data corresponds to the robot’s input data, and vice versa. Double-check the direction to avoid reversed mapping.
Download the configuration to the gateway. The status LEDs should indicate normal operation.
Step 3: Integrating with Siemens TIA Portal
Now configure the PLC side in TIA Portal.
- Install GSDML file: Download the gateway’s GSDML file and install it via Options > Manage general station description files. The gateway will appear in the hardware catalog.
- Hardware configuration: Drag the gateway into the network view and connect it to the Profinet network. Right-click the gateway, select Assign device name, enter the name you plan to use, and click Assign. Once successful, assign the IP address.
- I/O mapping: Double-click the gateway device and add I/O modules. Select 4 Words Input / 4 Words Output to match the previous configurations. Note the assigned PLC addresses (e.g., IW256 for robot status, QW256 for control commands).
Download the hardware configuration to the PLC. Use a watch table to monitor the data. When you see real-time updates in the input words and can control the robot by writing to the output words, the integration is complete.
Key Points for Successful Integration
- State machine logic: On FANUC robots, always set the connection to Inactive before changing parameters.
- Data size consistency: The input/output sizes must match exactly across the robot, gateway, and PLC.
- Direction awareness: Remember that the gateway’s output is the robot’s input, and the robot’s output is the gateway’s input.
- Reboot after IP change: FANUC controllers require a restart for network settings to take effect.
Troubleshooting Common Issues
| Symptom | Possible Cause | Solution |
|---|---|---|
| Gateway not recognized in TIA Portal | GSDML file not installed or device name mismatch | Reinstall GSDML; ensure device name in gateway matches TIA Portal assignment |
| Robot connection status not “Run” | IP address mismatch or connection not activated | Verify IP settings; set connection to Active and reboot |
| Data not updating in PLC | I/O size mismatch or mapping error | Check data lengths in robot, gateway, and PLC; confirm cross-mapping direction |
Integrating a FANUC robot with a Siemens PLC using a protocol gateway is a systematic process that demands attention to detail. By following these steps and understanding the underlying protocol mechanics, you can achieve reliable communication and unlock the full potential of your automated system. Always document your configuration and test thoroughly before production deployment.