Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
KR C4 DeviceNet
Configuration
For KUKA System Software 8.3
Issued: 04.04.2013
© Copyright 2013
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 Terms used ................................................................................................................ 6
5 Configuration ............................................................................................... 13
5.1 Overview .................................................................................................................... 13
5.2 Making device description files available ................................................................... 13
5.3 Configuring the bus with WorkVisual ......................................................................... 13
5.3.1 Configuring the EtherCAT coupler ........................................................................ 13
5.3.2 Configuring the DeviceNet master ........................................................................ 14
5.3.2.1 “Gateway settings” tab (DeviceNet master) ..................................................... 15
5.3.2.2 “Slave settings” tab .......................................................................................... 15
5.3.3 Configuring the DeviceNet slave .......................................................................... 16
5.3.3.1 “Gateway settings” tab (DeviceNet slave) ....................................................... 17
5.3.4 Device settings ..................................................................................................... 17
5.3.5 Example of a bus configuration ............................................................................ 20
6 Operation ...................................................................................................... 21
6.1 Coupling/decoupling devices ..................................................................................... 21
6.2 Executing queries / changes ...................................................................................... 22
6.2.1 Polling the I/O status of the gateway module ....................................................... 23
6.2.2 Polling the I/O status of the gateway module and status of SYS-X44 .................. 23
6.2.3 Polling whether a device is optionally present on system start ............................. 23
6.2.4 Polling whether a device is activated or deactivated ............................................ 24
6.2.5 Polling whether a device has an error state .......................................................... 24
6.2.6 Polling the number of devices with errors ............................................................. 24
6.2.7 Polling the number of configured devices ............................................................. 24
6.2.8 Polling the timeout time for device activation ........................................................ 25
6.2.9 Polling whether Quick Connect is enabled or disabled ......................................... 25
6.2.10 Changing the timeout time for device activation ................................................... 25
7 Diagnosis ..................................................................................................... 27
7.1 Displaying diagnostic data ......................................................................................... 27
7.1.1 ECATIO ................................................................................................................ 27
7.1.2 Extension Bus (SYS-X44) DEVICENET Master (SYS-X44_DN-Master1) ........... 27
7.1.3 Extension Bus (SYS-X44) DEVICENET Slave (SYS-X44_DN-Slave1) ............... 28
7.2 Advanced device diagnosis in WorkVisual ................................................................ 28
8 Messages ..................................................................................................... 31
9 KUKA Service .............................................................................................. 33
Index ............................................................................................................. 41
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
Notes These hints serve to make your work easier or contain references to further
information.
Term Description
CAN Controller Area Network
PLC Programmable logic controller
2 Product description
DeviceNet is a CAN-based field bus and is primarily used in automation tech-
nology. Data exchange is carried out on a master-slave basis.
KR C4 DeviceNet supports the following device classes / functions:
DeviceNet IO (cyclical communication)
Quick Connect
Devices on which the device address can be set via the hardware (e.g.
DIP switches)
Hardware For the KR C4 there are the following hardware variants of DeviceNet:
variants DeviceNet master – EtherCAT
DeviceNet slave – EtherCAT
DeviceNet master/slave – EtherCAT
For the KR C4 compact there are the following hardware variants of Devi-
ceNet:
KRC4 comp DevNet master - EtherCAT
KRC4 comp DevNet slave - EtherCAT
KRC4 comp DevNet master/slave - EtherCAT
Restrictions In the KUKA Extension Bus SYS-X44, only one of the above-mentioned hard-
ware variants may be used.
The following device classes / functions are not supported, for example:
Explicit Messaging (acyclic communication)
Devices whose MAC-ID is set using software
Devices which can only be put into operation with a device description file
Device types The following device types are used with DeviceNet:
Master: A higher-level controller that controls all the components of a sys-
tem. In general, the designation DeviceNet scanner is also used.
Slave: A field device subordinated to a master. A slave consists of a num-
ber of modules and submodules. In general, the designation DeviceNet
adapter is also used. A slave will also be referred to as the device in this
document.
The 2 device types have relationships for transferring configuration data and
process data.
A physical device, e.g. the robot controller, can be a master and/or a slave.
The configuration of communication relationships is carried out solely in the
master.
Interfaces Depending on the variant, the following interfaces are available on the KR C4:
DeviceNet master: interface X14A/X14B
DeviceNet slave: interface X14C/X14D
DeviceNet master/slave: interface X14A/X14B/X14C
Depending on the variant, the following interfaces are available on the KR C4
compact:
DevNet master: interface X14A
DevNet slave: interface X14C/X14D
DevNet master/slave: interface X14A/X14C/X14D
The connection panel and the connector pin allocations are described
in the documentation “Optional Interfaces”.
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 DeviceNet devices are connected in parallel, i.e. with short drop lines. To
avoid reflections, the bus must be fitted at each end with a 120-ohm (or 121-
ohm) terminator.
The cable length must be adapted to the baud rate:
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.
2 Make the device description files available.
(>>> 5.2 "Making device description files available" Page 13)
3 Configure DeviceNet.
(>>> 5.3 "Configuring the bus with WorkVisual" Page 13)
4 Map the inputs and outputs in WorkVisual.
5 Transfer the bus configuration from WorkVisual to the robot
controller.
WorkVisual requires the following device description files for the configuration
of DeviceNet:
Beckhoff EKxxxx.xml
Beckhoff EL6xxx.xml
The files can be downloaded from the website of the manufacturer (Beckhoff).
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.
Procedure 1. Expand the tree structure of the robot controller on the Hardware tab in
the Project structure window.
2. Right-click on EBus and select Add… from the context menu.
3. A window opens. Select the EtherCAT gateway EL6752 DeviceNet Mas-
ter and confirm with OK. The gateway is inserted in the tree structure.
4. Right-click on the EtherCAT gateway and select Settings… from the con-
text menu.
5. A window opens. Select the Gateway settings tab.
6. Fill out the following boxes:
MacId; Enable Quick Connect; Baud rate
(>>> 5.3.2.1 "“Gateway settings” tab (DeviceNet master)" Page 15)
15. Right-click on EL6752 DeviceNet Master in the tree structure and select
Settings… from the context menu. A window opens.
16. On the Slave settings tab, enter the device name in the Device name col-
umn and the device address in the MacId column.
(>>> 5.3.2.2 "“Slave settings” tab" Page 15)
17. Save the settings by selecting OK.
The default settings can be retained for those boxes which are not described
here.
Box Description
MacId Enter the address of the gateway.
0 … 63
Enable Quick Con- Activated: Quick Connect is used.
nect Deactivated: Quick Connect is not used.
Baud rate Select the baud rate.
125 k: for a cable length of < 500 m.
250 k: for a cable length of < 250 m.
500 k: for a cable length of < 100 m.
Column Description
Device name Names of the DeviceNet devices in the master
ring
The name from the device description file is dis-
played as the default name. The name can be
changed. If the box is left empty, or only spaces
are entered, then the default name is used.
MacId Device address of the DeviceNet devices in the
master ring
0 … 63
Is Active 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.
Procedure 1. Expand the tree structure of the robot controller on the Hardware tab in
the Project structure window.
2. Right-click on EBus and select Add… from the context menu.
3. A window opens. Select the EtherCAT gateway EL6752-0010 DeviceNet
Slave and confirm with OK. The gateway is inserted in the tree structure.
4. Right-click on the EtherCAT gateway and select Settings… from the con-
text menu.
5. A window opens. Select the Gateway settings tab.
6. Fill out the following boxes:
Device name; MacId; Enable Quick Connect; Baud rate
(>>> 5.3.3.1 "“Gateway settings” tab (DeviceNet slave)" Page 17)
7. Save the settings by selecting OK.
8. Open the tree structure as far as possible. Right-click on DeviceNet IO
and select Add… from the context menu.
9. A window opens. Select the DeviceNet slave Generic DeviceNet Device
and confirm with OK. The DeviceNet slave is inserted in the tree structure.
10. Right-click on the DeviceNet slave in the tree structure and select Set-
tings… from the context menu.
11. A window opens with the device settings. Various checks can be activated
on the Device type check tab. On the Connection configuration tab, se-
lect the communication type for I/O data and enter the number of inputs
and outputs.
(>>> 5.3.4 "Device settings" Page 17)
The default settings can be retained for those boxes which are not described
here.
Box Description
Device name Enter the name of the DeviceNet slave.
If the box is left empty, or only spaces are
entered, then the default name is used.
Default name: DeviceNet Slave
MacId Enter the address of the gateway.
0 … 63
Enable Quick Con- Activated: Quick Connect is used.
nect Deactivated: Quick Connect is not used.
Baud rate Set the same baud rate as is set in the configu-
ration of the corresponding master.
125 k
250 k
500 k
The data required for the checks can be found either in the data sheet
of the device or on the device itself.
Box Description
Check vendor ID: Activated: The vendor ID is checked when
the system is started. Enter the vendor ID in
the input box.
Deactivated: The vendor ID is not checked.
Check device type: Activated: The device type is checked when
the system is started. Enter the device type in
the input box.
Deactivated: The device type is not checked.
Check product code: Activated: The product code is checked
when the system is started. Enter the product
code in the input box.
Deactivated: The product code is not
checked.
Check revision Activated: The major and minor revisions
are checked when the system is started. En-
ter the revisions in the input boxes.
Deactivated: The major and minor revisions
are not checked.
Note: The major and minor revisions cannot be
checked separately.
The default settings (>>> Fig. 5-5 ) can be retained for those boxes which are
not described here.
Box Description
Polled Communication type for the input and output
data
The master cyclically sends the output data to
the assigned devices and receives the input data
in the answer message.
Produced Number of inputs in bytes
The check box is deactivated by default.
Box Description
Consumed Number of outputs in bytes
The check box is deactivated by default.
Expected Packet Cycle time of the I/O connection
Rate
Default value: 100 ms
Box Description
Acknowledge-Time- Interval before data are sent again if there was
out no checkback signal for a message with the
communication type Change of state or Cyclic.
Default value: 16 ms
Acknowledge-Retry- Maximum number of times the data are sent
Limit before the I/O connection switches to the fault
state.
Default value: 1
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 default timeout of 10 s.
If Quick Connect has been enabled, the message already appears after 5 s.
Quick Connect When a device is coupled or run up, it must reach its operational state as
quickly as possible. A normal device can require up to 10 seconds for this.
With Quick Connect, the devices reach their operational state in less than a
second. This allows tools to be changed more quickly. Quick Connect can be
set on the Gateway settings tab in WorkVisual.
(>>> 5.3.2.1 "“Gateway settings” tab (DeviceNet master)" Page 15)
Quick Connect can only be enabled for devices that support Quick
Connect.
For optimal use of Quick Connect, both the DeviceNet master and DeviceNet
slave should support Quick Connect. The DeviceNet slave must also support
the connection type UCMM or Predefined Master/Slave Connection.
If Quick Connect is only supported by one of the devices, the time for connec-
tion can already be reduced.
Is Active The option Is Active affects the way the robot controller reacts to a decoupled
device in the event of a cold start or I/O reconfiguration. Is Active can be set
on the Slave settings tab in WorkVisual.
(>>> 5.3.2.2 "“Slave settings” tab" Page 15)
Is Active: Is Active:
Yes No
Device coupled No error message No error message
Device decoupled Error message No error message
Description [bus instance name]: Depending on whether the command is to be executed for
the DeviceNet master or slave gateway, the appropriate name must be en-
tered here:
Value Meaning
-3 Timeout - device not reacting
-2 Device address not found
-1 General error
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.
Commands H8003 to H8009 and H800B are only available for the
DeviceNet master gateway.
6.2.2 Polling the I/O status of the gateway module and status of SYS-X44
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
The timeout time is reset to the default value after a cold start or an I/
O reconfiguration.
7 Diagnosis
7.1.1 ECATIO
Name Description
Driver version Name of the driver
Bus instance Name and state of the bus instance
Name Description
Device name Name of the master
(QC): Quick Connect is enabled.
Device version Version of the master (hardware and software
version)
Number of slaves Number of slaves
Number of slaves with Number of slaves where an error has
error occurred
MAC ID Address of the master
Baud rate Baud rate of the master
Slave info(0) Name and address of the first slave
Slave state(0) Status of the first slave
Slave info(1) Name and address of the second slave
Slave state(1) Status of the second slave
Name Description
Device name Name of the slave
Device version Version of the slave (hardware and software
version)
MAC ID Address of the slave
Slave status Status of the slave
Baud rate Baud rate of the slave
Operating mode Configured communication type for the input
and output data of the DeviceNet slave gate-
way
Poll
COE/Cyclic
Bit strobe
Produced input width Byte size of the inputs made available by the
DeviceNet slave module
Consumed output width Byte size of the outputs made available by
the DeviceNet slave module
Expected Packet Rate Expected cycle time in ms as per configura-
tion
Procedure 1. Expand the tree structure of the robot controller on the Hardware tab in
the Project structure window.
2. Right-click on KUKA Extension Bus (SYS-X44) in the tree structure and
select Settings from the context menu. A window opens.
3. On the Master settings tab, enter the IP address of the KLI in the IP ad-
dress box.
4. Save the settings by selecting OK.
5. Right-click on KUKA Extension Bus (SYS-X44) and select Connect from
the context menu.
6. Repeat step 5 for the bus coupler, the gateway and the device.
7. Right-click on the device and select Diagnosis... from the context menu.
A window is displayed with the tabs Identity, Status, I/Os and Explicit
Message.
The Identity tab is only displayed if the device supports this function.
Description General information about the device is displayed on the Identity tab:
Vendor ID
Device type
Product code
Major revision
Minor revision
Serial number
Product name
Status information and errors of the device are displayed on the Status tab.
This are device-specific; for further information, see the device manufacturer
documentation. The data are not updated automatically. To call the current da-
ta, activate the check box Refresh every 1000 milliseconds.
The image of the device is displayed on the I/Os tab. The inputs and outputs
are displayed byte by byte in hexadecimal notation. The length specifies the
number of actual bytes. The values are not updated automatically. To call the
current values, activate the check box Refresh every 1000 milliseconds.
On the Explicit Message tab, information about the device can be queried,
e.g. states, errors or supported attributes. For this, enter a value in the relevant
box and click on Send to Device. The result of the query is displayed in the
Status box.
The values for Class, Instance and Attribute of a device must be obtained from
the manufacturer 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
B W
Bus configuration, example 20 Warnings 5
C
CAN 6
Configuration 13
Connection Configuration, tab 18
Coupling, device 21
D
Decoupling, device 21
Device description files, making available 13
Device settings 17
Device Type Check, tab 17
DeviceNet master, configuring 14
DeviceNet slave, configuring 16
Diagnosis 27
Diagnostic monitor (menu item) 27
Documentation, industrial robot 5
E
EtherCAT coupler, configuring 13
G
Gateway settings (master), tab 15
Gateway settings (slave), tab 17
I
Introduction 5
K
KUKA Customer Support 33
M
Messages 31
O
Operation 21
P
PLC 6
Product description 7
R
Recommissioning 11
S
Safety 9
Safety instructions 5
Service, KUKA Roboter 33
Slave settings, tab 15
Start-up 11
Support request 33
T
Target group 5
Timeout, coupling 22
Timeout, decoupling 22