KR C4 Profibus v1 PT
KR C4 Profibus v1 PT
KR C4 PROFIBUS
Configuration
Issued: 24.01.2011
Version: KR C4 PROFIBUS V1 en
KR C4 PROFIBUS
© Copyright 2011
KUKA Roboter GmbH
Zugspitzstraße 140
D-86165 Augsburg
Germany
This documentation or excerpts therefrom may not be reproduced or disclosed to third parties without
the express permission of KUKA Roboter GmbH.
Other functions not described in this documentation may be operable in the controller. The user has
no claims to these functions, however, in the case of a replacement or service work.
We have checked the content of this documentation for conformity with the hardware and software
described. Nevertheless, discrepancies cannot be precluded, for which reason we are not able to
guarantee total conformity. The information in this documentation is checked on a regular basis, how-
ever, and necessary corrections will be incorporated in the subsequent edition.
Subject to technical alterations without an effect on the function.
Translation of the original documentation
KIM-PS5-DOC
Contents
1 Introduction .................................................................................................. 5
1.1 Target group .............................................................................................................. 5
1.2 Industrial robot documentation ................................................................................... 5
1.3 Representation of warnings and notes ...................................................................... 5
1.4 Trade mark ................................................................................................................. 5
1.5 Terms used ................................................................................................................ 6
5 Configuration ............................................................................................... 15
5.1 Overview .................................................................................................................... 15
5.2 Making GSD files available ........................................................................................ 15
5.3 Configuring the bus with WorkVisual ......................................................................... 15
5.3.1 Configuring the PROFIBUS master ...................................................................... 16
5.3.2 Configuring a PROFIBUS slave ............................................................................ 16
5.3.3 Device settings ..................................................................................................... 17
5.4 Setting the device address in WorkVisual .................................................................. 18
5.4.1 Settings for PROFIBUS master ............................................................................ 18
5.4.2 Settings for PROFIBUS slave ............................................................................... 19
5.5 Mapping inputs/outputs in WorkVisual ....................................................................... 19
6 Operation ...................................................................................................... 21
6.1 Coupling/decoupling devices ..................................................................................... 21
6.2 Executing queries / changes ...................................................................................... 22
7 Diagnosis ..................................................................................................... 25
7.1 Displaying diagnostic data ......................................................................................... 25
8 Messages ..................................................................................................... 27
9 KUKA Service .............................................................................................. 29
9.1 Requesting support .................................................................................................... 29
9.2 KUKA Customer Support ........................................................................................... 29
Index ............................................................................................................. 37
1 Introduction
This documentation is aimed at users with the following knowledge and skills:
Advanced KRL programming skills
Advanced knowledge of the robot controller system
Advanced knowledge of field buses
Knowledge of WorkVisual
Hints These hints serve to make your work easier or contain references to further
information.
Term Description
GSD Device description file for PROFIBUS
PLC Programmable logic controller
Step 7 Configuration software from Siemens
2 Product description
PROFIBUS is a universal field bus which enables communication between de-
vices from different manufacturers without special interface adaptations. Data
exchange is carried out on a master-slave basis.
Expansion KR C4 PROFIBUS can be combined with the “Expansion of Digital I/Os 16/16”
option, but not with other expansion options for digital inputs/outputs.
Device types The following device types are used with KR C4 PROFIBUS:
Controller: A controller that controls all the components of a system. A
controller will also be referred to as the master in this document.
Device: A field device subordinated to a controller. A device consists of a
number of modules and submodules. A device will also be referred to as
a slave in this document.
Supervisor: Can be a programming device or industrial PC. Parallel to the
controller, this has access to all process and parameter files.
The 3 device types have relationships for transferring configuration data and
process data.
A physical device, e.g. the robot controller, can be a controller and/or a device.
The configuration of communication relationships is carried out solely in the
controller.
Connection panel Depending on the variant, either the connection X11 or X55 is provided. X11
or X55 is the connection for the power supply.
3 Safety
This documentation contains safety instructions which refer specifically to the
product described here. The fundamental safety information for the industrial
robot can be found in the “Safety” chapter of the operating or assembly instruc-
tions for the robot controller.
The PROFIBUS cables are routed to the devices from the controller or
from the switch using a star or ring topology.
5 Configuration
5.1 Overview
Step Description
1 Configure the higher-level controller with the manufacturer’s
configuration software.
Note: This step only needs to be carried out if a higher-level
controller is being used.
The required device description file can be found on the
WorkVisual CD-ROM, in the following directory: DeviceDe-
scriptions\GSD.
2 Make GSD files available.
(>>> 5.2 "Making GSD files available" Page 15)
3 Configure the PROFIBUS.
(>>> 5.3 "Configuring the bus with WorkVisual" Page 15)
4 Set the device address in WorkVisual.
(>>> 5.4 "Setting the device address in WorkVisual"
Page 18)
5 Map the inputs and outputs in WorkVisual.
(>>> 5.5 "Mapping inputs/outputs in WorkVisual" Page 19)
6 Transfer the bus configuration from WorkVisual to the robot
controller.
For the configuration of a device, WorkVisual requires the GSD file for this de-
vice. The GSD file must be obtained from the manufacturer of the device.
Procedure 1. Expand the tree structure of the robot controller on the Hardware tab in
the Project structure window.
2. Right-click on Bus structure and select Add… from the context menu.
3. A window opens. Select the entry KUKA Extension Bus (SYS-X44) and
confirm with OK. The entry is inserted in the tree structure.
4. Open the tree structure as far as possible. Right-click on EtherCAT and
select Add… from the context menu.
5. A window opens. Select the bus coupler EK1100 EtherCAT-Koppler (2A
E-Bus) and confirm with OK. The bus coupler is inserted in the tree struc-
ture.
6. Open the tree structure as far as possible. Right-click on EBus and select
Add… from the context menu.
7. A window opens. Select the PROFIBUS Master Gateway EL6731 PROFI-
BUS DP Master and confirm with OK. The gateway is inserted in the tree
structure.
8. Open the tree structure as far as possible. Right-click on Profibus IO and
select Add… from the context menu.
9. A window opens with a list of devices. Select the PROFIBUS device used
and confirm with OK. The device is inserted in the tree structure.
10. Right-click on the device in the tree structure and select Settings… from
the context menu. A window opens with device settings.
The Module Configuration 2 tab displays the slots on the device. Assign
the slots to the modules used.
(>>> 5.3.3 "Device settings" Page 17)
11. If necessary, repeat steps 9 to 11 for further devices.
12. Save the device settings by selecting OK.
Procedure 1. Expand the tree structure of the robot controller on the Hardware tab in
the Project structure window.
If no PROFIBUS master has been configured: Continue with step 2.
If a PROFIBUS master has been configured: Continue with step 6.
2. Right-click on Bus structure and select Add… from the context menu.
3. A window opens. Select the entry KUKA Extension Bus (SYS-X44) and
confirm with OK. The entry is inserted in the tree structure.
4. Open the tree structure as far as possible. Right-click on EtherCAT and
select Add… from the context menu.
5. A window opens. Select the bus coupler EK1100 EtherCAT-Koppler (2A
E-Bus) and confirm with OK. The bus coupler is inserted in the tree struc-
ture.
6. Right-click on EBus and select Add… from the context menu.
7. A window opens. Select the PROFIBUS Slave Gateway EL6731-0010
PROFIBUS DP Slave and confirm with OK. The gateway is inserted in the
tree structure.
Slot configuration
Element Description
Slot Number of slots on the device
The number of slots displayed depends on the device se-
lected. The number of slots displayed is always the maxi-
mum number possible for the device.
To add a module to a slot, click on the slot and double-
click on the desired module. To remove the module, click
on the slot and double-click on the empty space above the
first module.
Parameter The parameter window displays module-specific parame-
window ters, which can be set via a selection menu.
Element Description
Search box The search box can be used to search for modules. The
search is a full-text search. The search result is cleared
when another slot is selected.
Module win- The available modules are displayed in the module win-
dow dow.
Procedure for 1. Open the tree structure as far as possible. Right-click on EL6731 PROFI-
PROFIBUS BUS DP Master and select Settings… from the context menu. A window
master opens.
2. On the Profibus settings tab, enter the device address of the PROFIBUS
devices in the Device Id column (address range: 2...127) and confirm with
OK.
(>>> 5.4.1 "Settings for PROFIBUS master" Page 18)
Procedure for 1. Open the tree structure as far as possible. Right-click on EL6731-0010
PROFIBUS slave PROFIBUS DP Slave and select Settings… from the context menu. A
window opens.
2. On the Profibus settings tab, enter the device address of the PROFIBUS
slave in the Device Id box (address range: 2...127) and confirm with OK.
(>>> 5.4.2 "Settings for PROFIBUS slave" Page 19)
Column Description
Device ID Device address
Always connected Activated: The robot controller expects the
device to be connected when the controller
boots up. If the device is not connected, the
robot controller issues an error message.
Deactivated: The robot controller does not
check whether the device is connected when
the controller boots up.
Box Description
Device ID Device address
Signal names PROFIBUS signal names have the following structure in WorkVisual:
Example 03:0001 Input
In the
Name Meaning
example
1st value from left Slot number 03
Note: Modules without inputs/
outputs, e.g. power supply
modules, have a number but
are not displayed in the list.
2nd value from left Index number (consecutive 0001
ascending numbering of the
individual inputs/outputs)
Input/Output Direction of processing Input
6 Operation
For certain applications, e.g. tool change, it is necessary to couple and decou-
ple devices. Coupling and decoupling can only be carried out via KRL.
Coupling The IOCTL function is executed synchronously. It only returns when the de-
vice is functional and can be written to once again.
If a coupled device is not functional, e.g. because it is disconnected from the
bus or supply voltage, a message is displayed after a timeout of approx. 2 sec-
onds.
Always The option Always connected affects the way the robot controller reacts to a
connected decoupled device in the event of a cold start or I/O reconfiguration. Always
connected can be set in WorkVisual in the settings of the PROFIBUS master.
(>>> 5.4.1 "Settings for PROFIBUS master" Page 18)
Value Meaning
-3 Timeout - device not reacting
-2 Device address not found
-1 General fault
0 Device successfully coupled/decoupled
Description A command can be used to execute a query or a change. Parameters are re-
quired for some queries and changes. If no parameter is required, “0” is en-
tered as the parameter in the syntax.
Overview
Query Command Parameter
I/O status of gateway module &H8001 -
I/O status of gateway module and &H8002 -
status of SYS-X44
Device is optionally present on sys- &H8003 Device address
tem start
Device activated / deactivated &H8004 Device address
Device has error status &H8005 Device address
Number of devices with error &H8006 -
Number of configured devices &H8007 -
Timeout time for device activation &H8009 -
Command Syntax
&H8001 PROFIBUS Master Gateway:
ret = ioCtl("SYS-X44_PB-Master1", &H8001, 0)
PROFIBUS Slave Gateway:
ret = ioCtl("SYS-X44_PB-Slave1", &H8001, 0)
Return values for RET:
Value Meaning
-1 General error during ioCtl
0 PROFIBUS OK
>0 PROFIBUS error code
Command Syntax
&H8002 PROFIBUS Master Gateway:
ret = ioCtl("SYS-X44_PB-Master1", &H8002, 0)
PROFIBUS Slave Gateway:
ret = ioCtl("SYS-X44_PB-Slave1", &H8002, 0)
Return values for RET:
Value Meaning
-1 General error during ioCtl
0 SYS-X44 and PROFIBUS Gateway OK
>0 Bus error code
Value Meaning
Bit 0 SYS-X44 does not have the status OPERATIONAL
Bit 1 At least one device in the SYS-X44 has an error
Bit 2 Error during configuration / initiatization on system start
Bit 3 Error present on gateway bus
Bit 4 Error during initiatization / configuration in gateway module on
system start
Command Syntax
&H8003 ret = ioCtl("SYS-X44_PB-Master1", &H8003, device address)
Return values for RET:
Value Meaning
-1 Device address not found / general error
0 Device is not optionally present on system start
1 Device is optionally present on system start
Command Syntax
&H8004 ret = ioCtl("SYS-X44_PB-Master1", &H8004, device address)
Return values for RET:
Value Meaning
-1 Device address not found / general error
0 Device is deactivated
1 Device is activated
Command Syntax
&H8005 ret = ioCtl("SYS-X44_PB-Master1", &H8005, device address)
Return values for RET:
Value Meaning
-1 Device address not found / general error
0 Device has no error
>0 PROFIBUS error code
Command Syntax
&H8006 ret = ioCtl("SYS-X44_PB-Master1", &H8006, 0)
Return values for RET:
Value Meaning
-1 General error during ioCtl
0 All configured devices OK
>0 Number of faulty devices
Command Syntax
&H8007 ret = ioCtl("SYS-X44_PB-Master1", &H8007, 0)
Return values for RET:
Value Meaning
-1 General error during ioCtl
>0 Number of configured devices
Command Syntax
&H8008 ret = ioCtl("SYS-X44_PB-Master1", &H8008, timeout time)
Value Meaning
-1 General error during ioCtl
0 Value in ms was set
Command Syntax
&H8009 ret = ioCtl("SYS-X44_PB-Master1", &H8009, 0)
Return values for RET:
Value Meaning
-1 General error during ioCtl
>0 Timeout value in ms
7 Diagnosis
ECatIODriver
“Name” column Description
Driver version Name of the driver
Bus instance Name and state of the bus instance
SYS-X44_PB-
“Name” column Description
Master1
Device name Name of the controller
Device version Controller version
Number of slaves Number of devices
Number of slaves Number of devices where an error has occurred.
with error
Cycle-Fail-Counter Counter for bus cycle errors
Cycle time Time (in µs) required by the controller for an
update
Min. cycle time Minimum time (in µs) required by the controller
for an update
Max. cycle time Maximum time (in µs) required by the controller
for an update
Station address Address of the controller
Baud rate Baud rate of the controller
Slave info(0) Name and device address of the first device
Slave state(0) Status of the first device
Slave info(1) Name and device address of the second device
Slave state(1) Status of the second device
Slave info(2) Name and device address of the third device
Slave state(2) Status of the third device
SYS-X44_PB-
“Name” column Description
Slave1
Device name Name of the device
Device version Version of the device
Station address Device address
Slave status Status of the device
Baud rate Baud rate of the device
8 Messages
Error causes
9 KUKA Service
Introduction The KUKA Roboter GmbH documentation offers information on operation and
provides assistance with troubleshooting. For further assistance, please con-
tact your local KUKA subsidiary.
Availability KUKA Customer Support is available in many countries. Please do not hesi-
tate to contact us if you have any questions.
Index
C
Configuration 15
Coupling, device 21
D
Decoupling, device 21
Diagnosis 25
Diagnostic monitor (menu item) 25
Documentation, industrial robot 5
G
GSD 6
GSD files, making available 15
I
Introduction 5
K
KUKA Customer Support 29
M
Mapping, inputs/outputs 19
Messages 27
O
Operation 21
P
PLC 6
Product description 7
R
Recommissioning 13
S
Safety 11
Safety instructions 5
Service, KUKA Roboter 29
Start-up 13
Step 7 6
Support request 29
T
Target group 5
Timeout, coupling 22
Timeout, decoupling 22
Trade mark 5
W
Warnings 5