
PROFINET AND PROFISAFE CONFIGURATION FOR FANUC
In almost every automation application with an industrial robot, it is necessary to setup a communication protocol to exchange signals with another device, it could be a PLC telling the robot if a working station is enabled or not, or a working station itself that might need a start signal when the robot has placed a part in it. We can say that the most common communication protocol nowadays is the PROFINET one, based on industrial Ethernet. A PROFINET I/O network is always composed by I/O Controllers, who are said to be the masters of the communication, and I/O Devices, who are connected to the I/O Controller and said to be slaves of it. We are going to see how to setup a Fanuc robot both as a PROFINET I/O Controller and as a PROFINET I/O Device. PROFINET Setup for Molex BoardPROFINET I/O Controller setupSetting up a robot to be a PROFINET I/O Controller is less common and more difficult than setting it up to be a Device and it involves a setup on pc side too.
First of all, connect with an ethernet cable both the slave device and the pc to the robot using the two lower ports of the board (the upper ones are for the robot to be configured as a Device).
Set a static IP to the ethernet port you used in your pc. On the Teach Pendant, go to Menu\I/O\PROFINET(M) and select Channel1.
Ensure that on F5 you read “DISABLE”, that means that the Controller is enabled.
Click on IP Address and F4 (EDIT), insert the IP address of the Controller, press F1 (SAVE) and reboot the controller.
On your pc, launch PROFINET configuration tool, press File\Configuration Manager and click on New. On the configuration field that appears, insert the project name and press OK, your project should appear under Available Configurations, select it and press OK.
By selecting Target Configuration and pressing the add new element button, it will be possible to start the network by checking the available target type and clicking OK.
In order to find the PROFINET board connected to the pc, select, under local network interface card, the IP address you set on your pc and click on Detect; a Target Automatic Detection window will appear. Check the detected board and press OK. Now you will read the board IP as Remote Target Address and you can click OK.
The target is now inserted, you can check it by selecting Channel1, the network will be shown on the right.
Now you need to add the GSDML file of the slave Device by clicking Add Device Library and following the instructions. You can verify the success of your operations by checking if you find an I/O Fanuc Robot Controller node between the device libraries:
Drag and dropping the GSDML on the right panel a configuration window will appear: there it is possible to define the Device name (note that it should be the same of the slave device) and its number. Going on Module Configuration page you can now insert the modules of I/O (in the right position) :
Once added all the modules you need, they will appear in the right panel, under Profinet Channel.
What remains to be done now is downloading the configuration into the robot. To do that you need to connect to the PROFINET board, so click on the connection button:
Before connecting to the board, you will need to save, and then just follow the instructions to download the project to the board.
Last steps of this configuration are on robot side.
In the Teach Pendant, on Menu\I/O\PROFINET(M), click on IO-Controller to check if the GSDML has been downloaded. If so, press F5 (UPDATE) and then F1 (SAVE).
I/O modules can be added by pressing F2 (ADD), and parameters of the added device can be modified under Configured Device. Select the parameter and press F4 (EDIT). Remember that the Device Name must be the same of the slave device connected to the robot; name that can be read pressing F2 (DETECT) under Unconfigured device.
After modifying all the parameters you need, press F1 (SAVE) and reboot the robot, all the Controller I/O will be mapped on Rack 101.
PROFINET I/O Device setupSetting up the robot to be a PROFINET I/O Device only requires configurations on teach pendant side.
First connect with an ethernet cable to the Controller, this time using one of the upper two ports of the board.
Go to Menu\I/O\PROFINET(M), select Channel2 and check if you see DISABLE on F5, that means the Slave is enabled. If not, press F5 (ENABLE). Set up the IP address and the name to the ones you need, selecting the parameter you want to change and pressing F4 (EDIT).
Now go to Channel2\IO-Device, selecting the slot and pressing F3 (EDIT) you can insert I/O modules (remember that order and size are crucial).
Once you have finished press F1 (SAVE) and reboot the robot, all the Device I/O will be mapped on Rack 102.
If you want to be sure your I/O assignment is correct, once the PROFINET I/O setup is ended, it’s better to clear all previous I/O setups, this can be easily done by Menu\I/O\Link Device\Clear Assignment and then reboot. After this operation you will find only the right I/O area assigned to digital I/O, that can be manually modified as required.
PROFINET Setup for BoardPROFINET I/O Controller setupThe Controller setup for the PROFINET board begins with a pc side setup, this time done using NCM Manager.
Open the software on your pc, go to Options\Set PG/PC Interface and select the right interface.
RunFirmware loader (by Siemens) and, following the instructions, load the firmware v2.5.2, then close the software and open back NCM Manager.
Go to PLC\Edit ethernet node and press Browse, it will find all the online nodes, select yours and press OK. Now you can use the fields under Set IP configuration and assign device name to configure your project and once you have finished press Close.
On NCM Manager, create a new project. Delete MPI from the project and use the Insert button to add first a Station\ 1 SIMATIC PC Station, and then a Subnet\ 3 Industrial Ethernet.
Double click on SIMATIC PC Station and then on Configuration.
On the right panel, look for your installed hardware (let’s suppose we have CP 1616, V2.5) and drag and drop it to the left panel:
On Properties\Parameters, set the IP address and select Ethernet as Subnet, then press OK.
Set the device name of the Controller board.
Select the installed device and drag and drop it on the ethernet network as shown: From the list in the right, opening the folders DI, DI/DO and DO, it is possible to select the modules you want to add and drag and drop them in the tab to the left; they will appear in slot 1, 2 and so on. Once you added all the required modules, save, compile and download the configuration to the robot, checking on Menu\I/O\PROFINET that the start mode is set to SUSPEND, I/O Controller is set to Enable and I/O Device to Disable: Under I/O Controller (always in Menu\I/O\PROFINET), set the number of digital IN/OUT required, then go back to the main PROFINET menu and set Start mode to READ IN in order to make the robot load the current configuration. Once the read in is done, set the Start mode to OPERATION and reboot the robot, the PROFINET Controller setup is completed. PROFINET I/O Device setupThe PROFINET I/O Device setup is much easier and there is no setup on pc side.
Go to Menu\I/O\PROFINET, set Start mode to SUSPEND, I/O Controller to Disable and I/O Device to Enable.
Enter the I/O Device menu and set the number of IN/OUT required.
Then go back to the main PROFINET menu, set Start mode to READ IN and, once the robot has read the configuration, to OPERATION and reboot the robot.
Under Menu\I/O\PROFINET\I/O Device\Modules you now need to setup the correct module configuration for all the modules you added, that is usually something like:
Subslot = Slot ModId (hex) = Module Ident Number SubdlotId(hex) = Submodule Ident Number To find out this numbers, open the GSDML with a viewer and look for the modules you added.The setup is complete after a cycle power of the robot. PROFISafe SetupBefore starting the PROFISafe setup, save a robot backup “all of above”, because the procedure is going to delete everything from the robot.
Fanuc provides a zip archive with some .img files we need to load to the robot, unzip it to an empty usb, and connect that to the cabinet. Turn off the cabinet and keep F1 and F5 pressed while turning it back on.
A menu will appear, select Controller Backup/Restore and Restore Controller Image, selecting UD1 as source (the usb of the cabinet) and then checking the path is correct.
Confirm the operation and wait until the controller handles it, then press enter and ends the procedure and the main menu appears.
Select Configuration menu and then Controlled Start, now press FTCN\Start Cold.
After the reboot it should appear the DCS menu (if not, go to Menu\System\DCS), press F2 (APPLY), you will be asked to enter a Code Number, that is usually 1111.
After the loading is completed, press F3 (ALL), F4 (OK) and then FTCN\Cycle Power. Now you can restore the robot backup done at the beginning.
To set PROFISafe parameters, go to Menu\I/O\PROFINET, go to the needed Channel (1 if the robot is Master, 2 if the robot is Slave, disable the unused one). On IO-Device you should set the Slot number 1 to be of type Safety, and of the required dimension (usually 1 byte).
Once the configuration is complete, press F1 (SAVE) and reboot the controller.
To enable the PROFISafe, go to Menu\System\DCS\PROFINET Safety and set Enable/Bypass to ENABLE, Safety input and output size(byte) to the dimension needed (usually 1 and 1). Set the F-Address to the one required by the I/O Controller. Under the main DCS menu (Menu\System\DCS) press F2 (APPLY) and follow the same procedure as before.
Once you reboot the robot the configuration is completed.
#FANUC


















Comments
Start the Conversation
I am new and currently working with Kuka KRC4, not sure about mapping standard IOs to Allen Bradley PLC, slave 1 in kuka is activated, statting at word o, I used several for EOAT, what is the next step to map standard IOs. I do have cxommunication to …more
Hello Super Mecha, thank you for the tutorial.
I absolutely don't understand these frames under Machine Transformation. Can you please explain it more in details?
Here is what I have for robot on picture:
$ET1_NAME[]=""
FRAME $ET1_TA1KR={X 0.0,Y 0.0,Z 698.0,A 0.0,B 90.0,C 0.0}
FRAME $ET1_TA2A1={X 0.0,Y 0.0,Z 0.0,A 0.0,B 0.0,C 0.0}
FRAME $ET1_TA3A2={X 0.0,Y 0.0,Z 0.0,A 0.0,B 0.0,C 0.0}
FRAME $ET1_TFLA3={X 0.0,Y 0.0,Z 0.0,A 0.0,B -90.0,C 0.0}
FRAME $ET1_TPINFL={X 0.0,Y 0.0,Z 0.0,A 0.0,B 0.0,C 0.0}
Where are these frames located? What is the absolute zero? What is ROOT and what is FLANGE from Machine Transformation tab? I guess it is base frame of linear track and car, but not sure((
#KUKA #External axis
Hi Igor, it is not always easy to learn how to manage that parameters.
I'll try to help …more
Too difficult for me
I am just a simulant, not even a real robotic🙂
But thank you.
Can ypu please explain about Trunion and turntable? How can i configure it and Am I able to turn and rotate by using motions?