KRC4 Device Net Configuration
KRC4 Device Net Configuration
KRC4 Device Net Configuration
KR C4 DeviceNet
Configuration
For KUKA System Software 8.2
Issued: 09.05.2012
KR C4 DeviceNet
Copyright 2012
KUKA Roboter GmbH
Zugspitzstrae 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, however, 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
2 / 41
Publication:
Bookstructure:
Version:
Contents
Contents
1
Introduction ..................................................................................................
1.1
1.2
1.3
1.4
Safety ............................................................................................................
11
4.1
11
Configuration ...............................................................................................
13
5.1
Overview ....................................................................................................................
13
5.2
13
5.3
13
13
5.3.2
15
5.3.3
16
5.3.3
17
5.3.4
19
20
20
Operation ......................................................................................................
21
5.3.1
5.4
5.4.1
6
6.1
21
6.2
22
6.2.1
22
6.2.2
Polling the I/O status of the gateway module and status of SYS-X44 ..................
23
6.2.3
23
6.2.4
23
6.2.5
23
6.2.6
24
6.2.7
24
6.2.8
24
6.2.9
24
6.2.10
24
Diagnosis .....................................................................................................
27
7.1
27
7.1.1
27
7.1.2
27
7.1.3
27
Messages .....................................................................................................
29
31
9.1
31
9.2
31
3 / 41
KR C4 DeviceNet
Index .............................................................................................................
4 / 41
39
1 Introduction
Introduction
1.1
Target group
This documentation is aimed at users with the following knowledge and skills:
1.2
Knowledge of WorkVisual
1.3
Safety
Notes
These hints serve to make your work easier or contain references to further
information.
Tip to make your work easier or reference to further information.
5 / 41
KR C4 DeviceNet
1.4
6 / 41
Terms used
Term
Description
CAN
PLC
2 Product description
Product description
DeviceNet is a CAN-based field bus and is primarily used in automation technology. Data exchange is carried out on a master-slave basis.
KR C4 DeviceNet supports the following device classes / functions:
Hardware
variants
Quick Connect
Devices on which the device address can be set via the hardware (e.g.
DIP switches)
Restrictions
KR C4 EtherNet/IP 1.0
KR C4 EtherCAT
A maximum of one DeviceNet master gateway and one DeviceNet slave gateway may be used in the KUKA Extension Bus SYS-X44.
The following device classes / functions are not supported, for example:
Configuration
software
Devices which can only be put into operation with a device description file
Device types
With use of a higher-level controller, the corresponding configuration software from the manufacturer of the higher-level controller is also required.
Slave: A field device subordinated to a master. A slave consists of a number of modules and submodules. 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
7 / 41
KR C4 DeviceNet
The connector pin allocations can be found in the documentation Optional Interfaces.
8 / 41
3 Safety
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 instructions for the robot controller.
The Safety chapter in the operating instructions or assembly instructions of the robot controller must be observed. Death to persons, severe physical injuries or considerable damage
to property may otherwise result.
9 / 41
KR C4 DeviceNet
10 / 41
4.1
Cable length
500 kbit/s
< 100 m
250 kbit/s
< 250 m
125 kbit/s
< 500 m
11 / 41
KR C4 DeviceNet
12 / 41
5 Configuration
Configuration
5.1
Overview
Step
1
Description
Configure the higher-level controller with the manufacturers
configuration software.
Note: This step only needs to be carried out if a higher-level
controller is being used.
Configure DeviceNet.
(>>> 5.3 "Configuring the bus with WorkVisual" Page 13)
5.2
Precondition
Procedure
5.3
5.3.1
Precondition
13 / 41
KR C4 DeviceNet
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 structure.
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 DeviceNet master gateway EL6752 DeviceNet Master and confirm with OK. The gateway is inserted in the tree
structure.
8. Right-click on the master gateway and select Settings from the context
menu.
9. A window opens. Select the Gateway settings tab.
10. Fill out the following boxes:
14 / 41
5 Configuration
5.3.2
Precondition
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 structure.
6. Right-click on EBus and select Add from the context menu.
7. A window opens. Select the DeviceNet slave gateway EL6752-0010 DeviceNet Slave and confirm with OK. The gateway is inserted in the tree
structure.
8. Right-click on the DeviceNet slave gateway and select Settings from
the context menu.
9. A window opens. Select the Gateway settings tab.
10. Fill out the following boxes:
15 / 41
KR C4 DeviceNet
5.3.3
Gateway settings
Description
MacId
0 63
Baud rate
16 / 41
5 Configuration
5.3.3
Device settings
Description
Check Vendor ID
17 / 41
KR C4 DeviceNet
Description
Polled
Produced
Number of inputs
The check box is deactivated by default.
Consumed
Number of outputs
The check box is deactivated by default.
Expected Packet
Rate
Bit-Strobed
Number of inputs
The check box is deactivated by default.
Expected Packet
Rate
Status/cyclic
18 / 41
5 Configuration
Box
Description
Produced
Number of inputs
The check box is deactivated by default.
Consumed
Number of outputs
The check box is deactivated by default.
Change of state
Cyclic
Heartbeat-Rate/
Send-Rate
Acknowledge
Acknowledge-RetryLimit
5.3.4
19 / 41
KR C4 DeviceNet
5.4
Bus coupler
DeviceNet slave
DeviceNet devices
Precondition
Procedure
1. Open the tree structure as far as possible. Right-click on EL6752 DeviceNet Master and select Settings from the context menu. A window
opens.
2. On the Slave settings tab, enter the device address in the MacId column
(address range: 0 ... 63) and confirm with OK.
(>>> 5.4.1 "Slave settings" Page 20)
5.4.1
Slave settings
20 / 41
Column
Description
MacId
Device address
Is Active
6 Operation
Operation
6.1
Coupling/decoupling devices
For certain applications, e.g. tool change, it is necessary to couple and decouple devices. Coupling and decoupling can only be carried out via KRL.
Decoupling
Coupling
If decoupled devices are disconnected from DeviceNet or the power supply, no error is triggered.
Decoupled devices cannot carry out error treatment in the case of read/
write errors.
The IOCTL function is executed synchronously. It only returns when the device 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.
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.4.1 "Slave settings" Page 20)
Is Active:
Yes
Is Active:
No
Device coupled
No error message
No error message
Device decoupled
Error message
No error message
Syntax
Description
Examples
Value
Meaning
-3
-2
-1
General fault
21 / 41
KR C4 DeviceNet
RET = IOCTL("SYS-X44_DN-Master1",8008,5000)
6.2
Description
A command can be used to execute a query or a change. Parameters are required for some queries and changes. If no parameter is required, 0 is entered as the parameter in the syntax.
Syntax
Overview
Query
Command
Parameter
H8001
H8002
H8003
Device address
H8004
Device address
H8005
Device address
H8006
H8007
H8009
H800B
Change
Command
Parameter
H8008
Timeout time
Commands H8003 to H8009 and H800B are only available for the
DeviceNet master gateway.
The description of the DeviceNet error codes can be found in the
manufacturers documentation.
6.2.1
Syntax
Return
values
Meaning
-1
DeviceNet OK
>0
22 / 41
6 Operation
6.2.2
Polling the I/O status of the gateway module and status of SYS-X44
DeviceNet master gateway:
ret = ioCtl("SYS-X44_DN-Master1", 'H8003', 0)
Syntax
Return
values
Bus
error codes
6.2.3
Value
Meaning
-1
>0
Value
Meaning
Bit 0
Bit 1
Bit 2
Bit 3
Bit 4
Syntax
Return
values
6.2.4
Value
Meaning
-1
Syntax
Return
values
6.2.5
Value
Meaning
-1
Device is deactivated
Device is activated
Syntax
Return
values
Meaning
-1
>0
23 / 41
KR C4 DeviceNet
6.2.6
Syntax
Return
values
Meaning
-1
>0
6.2.7
Syntax
Return
values
6.2.8
Value
Meaning
-1
>0
Syntax
Return
values
6.2.9
Value
Meaning
-1
>0
Timeout value in ms
Syntax
Return
values
6.2.10
Syntax
24 / 41
Value
Meaning
-2
-1
6 Operation
Meaning
-1
25 / 41
KR C4 DeviceNet
26 / 41
7 Diagnosis
Diagnosis
7.1
Procedure
Description
7.1.1
7.1.2
Description
Driver version
Bus instance
Description
Device name
7.1.3
Device version
Number of slaves
Number of devices
MAC ID
Baud rate
Slave info(0)
Slave state(0)
Slave info(1)
Slave state(1)
Description
Device name
Device version
MAC ID
27 / 41
KR C4 DeviceNet
28 / 41
Name
Description
Slave status
Baud rate
Operating mode
Poll
COE/Cyclic
Bit strobe
8 Messages
Messages
No. / type
Message text
2858
Stop message
1034
Status message
10043
Status message
Note: The description of the error codes can be found in the manufacturers documentation for the DeviceNet master.
4429
Status message
Error causes
Cause of error
Description
Remedy
System error
IODataCreate() Error
System error
System error
Error opening
'ecatms_sys_X44_swap.xml'
File
The file
ecatms_sys_X44_swap.xml
contains syntax errors.
System error
System error
29 / 41
KR C4 DeviceNet
Cause of error
Description
Remedy
System error
30 / 41
The file
ecat_DNM_Gateway.xml is
faulty.
9 KUKA Service
KUKA Service
9.1
Requesting support
Introduction
Information
9.2
Application used
Availability
KUKA Customer Support is available in many countries. Please do not hesitate to contact us if you have any questions.
Argentina
Australia
31 / 41
KR C4 DeviceNet
32 / 41
Belgium
Brazil
Chile
China
Germany
9 KUKA Service
France
India
Italy
Japan
Korea
33 / 41
KR C4 DeviceNet
34 / 41
Malaysia
Mexico
Norway
Austria
Poland
9 KUKA Service
Portugal
Russia
Sweden
Switzerland
Spain
35 / 41
KR C4 DeviceNet
36 / 41
South Africa
Taiwan
Thailand
Czech Republic
Hungary
9 KUKA Service
USA
UK
37 / 41
KR C4 DeviceNet
38 / 41
Index
Index
B
Bus configuration, example 19
C
CAN 6
Configuration 13
Connection Configuration, tab 18
Coupling, device 21
D
Decoupling, device 21
Device address, setting 20
Device description files, preparing 13
Device settings 17
Device Type Check, tab 17
Diagnosis 27
Diagnostic monitor (menu item) 27
Documentation, industrial robot 5
G
Gateway settings, tab 16
I
Introduction 5
K
KUKA Customer Support 31
M
Messages 29
O
Operation 21
P
PLC 6
Product description 7
R
Recommissioning 11
S
Safety 9
Safety instructions 5
Service, KUKA Roboter 31
Slave settings, tab 20
Start-up 11
Support request 31
T
Target group 5
Timeout, coupling 21
Timeout, decoupling 21
W
Warnings 5
39 / 41
KR C4 DeviceNet
40 / 41
KR C4 DeviceNet
41 / 41