Professional Documents
Culture Documents
KR C2
Configuration
LPDN Scanner
1 of 28
e Copyright KUKA Roboter GmbH
This documentation or excerpts therefrom may not be reproduced or disclosed to third parties without the express permission of the publishers.
Other functions not described in this documentation may be operable in the controller. The user has no claim 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 subsequent editions.
Subject to technical alterations without an effect on the function.
PD Interleaf
LPDN--Scanner 10.02.00 en
2 of 28
Contents
5 Range of functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
5.1 Telnet driver functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
5.1.1 Overview of the functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
5.1.2 Status information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
5.1.3 Show I/O data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
5.1.4 Configuration mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
5.1.5 DPR display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
5.1.6 Module information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
5.1.7 Set MAC ID (implemented from version 2.00 onwards) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
LPDN--Scanner 10.02.00 en
3 of 28
Configuration
6 System response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
6.1 Reload – Cold start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
6.2 Reset – Warm start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
6.3 Module activation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
6.4 I/O data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
6.5 Bus Off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
8 Appendix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
8.1 ScanList entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
8.2 Version documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
LPDN--Scanner 10.02.00 en
4 of 28
LPDN--Scanner 10.02.00 en
5 of 28
Configuration
1.2.1 Troubleshooting
If your computer does not boot, check the interrupt settings in the computer’s BIOS.
LPDN--Scanner 10.02.00 en
6 of 28
1 Technical description of hardware (continued)
PIN
1
Connector 1 :
LED 2 LED 1
Connector 2
LED 4 LED 3
LPDN--Scanner 10.02.00 en
7 of 28
Configuration
The external LEDs are to be connected so that the cathode of the green LED is connected
to pin K--G of the corresponding LED. The corresponding LEDs are L1 to L4, as present on
the front plate and marked on the board next to the front plate LEDs.
Under no circumstances may the pins be short--circuited or jumpered.
This will inevitably destroy the card!
The status LEDs are implemented in accordance with the ODVA DeviceNet specification.
Meaning:
LPDN--Scanner 10.02.00 en
8 of 28
1 Technical description of hardware (continued)
LPDN--Scanner 10.02.00 en
9 of 28
Configuration
LPDN--Scanner 10.02.00 en
10 of 28
3 Installation of the driver
If present:
LPDN--Scanner 10.02.00 en
11 of 28
Configuration
If present:
copy from: [CD]:\Internat\KRCsetup\Drivers\LPDN\dnsc_3Sl.ini
and [CD]:\Internat\KRCsetup\Drivers\LPDN\dnsc_4Sl.ini
to: C:\Program Files\KRC\Init
LPDN--Scanner 10.02.00 en
12 of 28
3 Installation of the driver (continued)
ISA
ISA
PCI
PCI
PCI
1 1 card
2 1 Parallel opera-
tion of 2 cards
Parallel opera-
3 2 1 tion of 3 cards
The explanations in the following sections are for one installed LPDN scanner card. They can
also be applied by analogy to the second or third card.
Only certain slots and combinations are enabled for parallel operation of LPDN cards.
Other combinations must not be used.
(See slot allocation plan of the motherboard used, KUKA handbook, etc.)
LPDN--Scanner 10.02.00 en
13 of 28
Configuration
4.1 IOSYS.ini
Activation of the driver is carried out in the “DRIVERS” section.
In the following example, both channels of the LPDN scanner will be activated.
The first channel is designated by the number “1”, and the second channel by the number
“2”.
It is possible to operate only the first or second channel, or both channels. The procedure
is the same for additional channels.
[DRIVERS]
DNSC1=12,dnsc1Init,dnsc1drv.o
DNSC 2=13,dnsc2Init,dnsc2drv.o
The numbers of the driver handle may not be set to any other value. Otherwise proper ope-
ration of the driver cannot be guaranteed.
For each entry in the DRIVERS section, a “[LPDNX]” section must be present. The following
example shows the entries for both channels of the PCI card with the corresponding I/O maps
for the robot.
[DNSC1]
INB0=5,0,x8 ; $in[1--64]
[DNSC2]
INB8=5,0,x8 ; $IN[65--128]
OUTB0=5,0,x8 ; $OUT[1--64]
INW16=2,0 ; $IN[129--144] Weld Controller 1
OUTW8=2,0 ; $OUT [65--80] Weld Controller 1
If the third parameter is not specified, the length of the data to be processed will always
be “x1”.
e.g.:
INB8=5,0, ; Length: 1 byte = 8 bits
OUTW8=2,0 ; Length: 1 word = 2 bytes = 16 bits
Examples:
IINW8=5,4,x1 One word of the I/O system (this word begins at the 8th
byte) is read by the slave module with the MAC ID 5. The
reading starts with the 4th byte (offset = 4). The data
length is 1 word (multiplier = 1). In this case, the I/O
module must deliver at least 6 bytes of data:
Offset + number of I/O data ® 4 bytes + 1 word (2 bytes)
= 6 bytes (3 words).
Note: the length specification “x1” can be omitted.
INB10=3,0,x1 IN byte 10 of the I/O system is assigned to the device with
MAC ID 3. Within the slave the 1st byte is addressed (off-
set = 0). The data length is 1 byte (multiplier = 1).
Note: the length specification “x1” can be omitted.
LPDN--Scanner 10.02.00 en
14 of 28
4 Network and data configuration (continued)
OUTW10=10,0,x2 Two words of the I/O system (the word begins at the 10th
byte) are assigned to the device with MAC ID 10. Within
the slave the 1st byte is addressed (offset = 0). The data
length is 2 words (2 bytes).
Note: the length specification “x2” must be made.
OUTB10=17,0,x2 Two words of the I/O system (the word begins at the 10th
byte) are assigned to the device with MAC ID 17. Within
the slave the 1st byte is addressed (offset = 0). The data
length is 2 bytes.
Note: the length specification “x2” must be made.
[CONFIG]
MAC_ID=1 MAC ID of the robot DeviceNet channel
Use: required parameter
Permissible values: 0...63
BAUDRATE=500 Baud rate of the DeviceNet network in KBaud
Use: required parameter
Permissible values: 125, 250, 500
LOGFILE=dnsc1.log Path and name of the log file (unambiguous for each chan-
nel)
Use: parameter is optional
Default value: “log/dnsc1.log” or “log/dnsc2.log” (first or
second channel)
DEBUG=0 Advanced diagnostic information on / off
Use: parameter is optional
Permissible values: 0 / 1 respectively (off / on)
Default value: 0
USE_ERROR_DB=1 Defines whether the language database of the robot is to
be used.
Use: parameter is optional
Permissible values: 1 / 0 (use database / do not use data-
base).
Default value: 0
OPTIONS=0 Customer--specific options. May only be entered if
expressly instructed by LP Elektronik GmbH.
Use only if you have a GE--Fanuc PLC with a Horner
DeviceNet scanner and problems connecting the LPDN to
the PLC as a slave.
Use: parameter is optional
Permissible values: 0 / 1179992907 (off / compatibility
mode)
Default value: 0
SERIAL_BAUDRATE=0 Baud rate of the integrated serial channel in kBaud (ser-
vice personnel only).
Use: parameter is optional
Permissible values: 1200, 2400, 4800, 9600, 19200,
38400, 57600, 115200
Default value: 9600
LPDN--Scanner 10.02.00 en
15 of 28
Configuration
The mode of the DeviceNet channel (Master and/or Slave) is defined in the DeviceNet net-
work configuration.
Table 1 below contains a list of the parameters (except for the mapping entries, see 4.3.4)
which can be edited in the scanlist (file dnsc_1SL.ini or dnsc_XSL.ini).
Not all of the entries are absolutely necessary in order to configure the DeviceNet network.
Table 2 shows an abbreviated, but valid configuration. Parameters which are not specified
here are stored as default values in the driver program.
LPDN--Scanner 10.02.00 en
16 of 28
4 Network and data configuration (continued)
[SCANNERCFG] Section
NET_EPR Connection handling Expected packed rate 75
[ms*4]
NET_ISD Connection handling Inter scan delay 2
NET_BACK- Connection handling 1
GROUND_POLL_RATE
NET_TX_RE- Connection handling 1
TRY_COUNT
[1..64] Section
MAC_ID Device Info Node number of the module
CONFIG_VALID (1) Connection handling 1 = entry valid, 1
0 = entry invalid
VENDOR_ID Device Info Device info
PRODUCT_TYP Device Info Device info
PRODUCT_CODE Device Info Device info
SCAN_TYP Transmission type 2=Poll,4=Strobe,6=Strobe& 2
Poll,0=Neither
POLL Transmission type 0=every scan,1=at back- 0
ground rate
STROBE_RESPL Data length Data length in bytes for
strobe response
STROBE_CMDL Data length Always 8 bytes by strobe
definition
POLL_RESPL Data length Data length (bytes) for poll
response
POLL_CMDL Data length Data length (bytes) for poll
command
COS_CYC_RESPL Data length Data length (bytes) for cos/
cyc response
COS_CYC_CMDL Data length Data length (bytes) for cos/
cyc command
MAJOR_REV Device Info Device info 0
MINOR_REV Device Info Device info 0
EPR Timeout handling Cos/cyc heartbeat expected 0
packed rate
ACK_TIMER Timeout handling Ack timer value used for 0
node
IH_TIMER Connection handling Inhibit timer 0
(1): If the entry is 0, the entire section (and thus the device itself) is ignored. This has nothing
to do with the module activation.
LPDN--Scanner 10.02.00 en
17 of 28
Configuration
4.3.3 Example
dnsc1_Co.ini:
[CONFIG]
MAC_ID=1
BAUDRATE=500
LPDNLogfile=log/lpdn1.log
In the following scanlist file, three modules are configured.
The first entry in the scanlist [1] is used to configure the first channel of the LPDN scanner
card as a slave.
This is the case if the MAC_ID entry in the file dnsc_1Co.ini is the same as the MAC_ID entry
in the file dnsc_1Sl.ini.
Entry [2] describes a connection to the second channel of the LPDN scanner card. In this
case, channel 1 is the master for channel 2 of the LPDN scanner.
For this configuration, the files dnsc_2Co.ini and dnsc_2Sl.ini must be adapted accordingly.
This configuration serves only as an example, and would not be very useful in practice.
Entry [3] describes a connection to a FlexIO 1794 ADN module.
The section numbers [1..64] are independent of the values of the MAC_ID entries, and do
not have anything to do with each other.
dnsc1_Sl.ini:
[SCANNERCFG]
NET_EPR=75
NET_ISD=2
NET_BACKGROUND_POLL_RATE=1
NET_TX_RETRY_COUNT=1
The scanlist from Table 2 describes a configuration by means of poll connection (default
value of SCAN_TYP is poll mode). All 3 sections are valid (default value of CONFIG_VALID).
(1) The data lengths of the configured connection types must be specified in all cases.
Description for I/O data length:
Descriptions for input and output lengths are required to initialize the devices and establish
connections.
Device 1 (first column) and device 2 (second column) have 8 bytes each for input and output.
The keywords POLL_RESPL and POLL_CMDL all have the value 8.
Device 3 (third column) has 2 bytes of input data and 4 bytes of output data. Therefore the
keyword POLL_RESPL has the value 4 and the keyword POLL_CMDL has the value 2. The
values are specified in bytes.
LPDN--Scanner 10.02.00 en
18 of 28
4 Network and data configuration (continued)
Device Device
Mac_ID 2 Mac_ID 3
_RESPL=8 _CMDL=8 _RESPL=4 _RESPL=2
Output Input
DBRam DBRam
_RESPL=8 _CMDL=8
LPDN--Scanner 10.02.00 en
19 of 28
Configuration
5 Range of functions
5.1 Telnet driver functions
-- Open the Windows 95 Start menu.
-- Select the command “Run”.
-- Enter the command “telnet 192.0.1.1”.
-- Change to the command prompt.
-- Enter and start the function.
The commands for DeviceNet have the following notation:
“dnsc ...” ® commands for channel X (1 to max. 6)
The commands for Channel 1 will be described below. The other channels can be addressed
by replacing the “1” with another permissible value.
LPDN--Scanner 10.02.00 en
20 of 28
5 Range of functions (continued)
LPDN--Scanner 10.02.00 en
21 of 28
Configuration
5.2.4 Watchdog
Request: 513
Parameter: 1/0
Return value: 0 = Operation executed, --1 = Error occurred (wrong MAC ID)
Used to switch the watchdog on and off.
LPDN--Scanner 10.02.00 en
22 of 28
6 System response
6 System response
6.1 Reload – Cold start
In the case of a cold start, the driver entities configured in the iosys.ini file are removed.
The cold start can be forced in one of two ways:
· by calling “iosysReload” via Telnet
· by means of I/O Reconfigure via the robot menu
The DeviceNet driver is removed completely. The driver is then reloaded (firmware and
Call--P driver). Once the driver has been started successfully, the connections are config-
ured. Errors are displayed.
I/O data must not be delivered to deactivated modules, since this will result in generation
of cyclical errors.
This applies in particular to the submit interpreter. Execution of the interpreter is not
stopped in the event of an I/O error.
LPDN--Scanner 10.02.00 en
23 of 28
Configuration
110 (activation)
111 (deactivation)
514 (module status polling)
A detailed description of the Ioctl commands may be found in Section 5.2 “IOCTL
commands”.
Example:
BACK=IOCTL(12,110,3) Module with the MAC ID 3 is activated
RET=IOCTL(12,514,3) Module status of the module with the MAC
ID 3 is polled
Since DeviceNet modules require several seconds (typically 3--5 seconds) for initia-
lization after being physically connected to the bus, in the case of module coupling
under program control it is advisable to carry out polling of the module status be-
fore activation. This can be done using a loop which polls the module status during
the mechanical coupling operation until the polling result indicates that the module
has been integrated into the bus communication. Otherwise there is a risk that the
module will be activated before it is ready, resulting in an error message which
stops the robot.
LPDN--Scanner 10.02.00 en
24 of 28
7 Working with the driver (continued)
Example:
A tool which initially (upon booting) is not on the robot is to be picked up and activated during
subsequent operation. The tool contains the DeviceNet module with the MAC ID 3.
The entry “INACTIV=3” in the file dnsc_2Sl.ini causes the module to be ignored during boot-
ing, and no error message is generated, even though the module is present in the configura-
tion but not on the bus. After the program is started, the module is first mechanically coupled,
its status is polled, and if the result is positive the module is then activated. The example be-
low shows a program extract for the status polling and subsequent activation.
; Coupling, the physical coupling operation has already been initiated.
The following sequence would be possible for a complete tool changing process:
(Example: there are 5 modules on the bus, and 2 of them are to be uncoupled and coupled
alternately; in our example these modules have the MAC IDs 4 and 5.)
-- Booting with all modules except for the modules with the MAC IDs 4 and 5.
-- Program start
-- Coupling and polling of the module status, MAC ID 4
-- Activation of module 4
-- A program section is executed, then module 4 is deactivated and its tool is set
down
-- Coupling and polling of the module status, MAC ID 5
-- Activation of module 5
-- etc.
LPDN--Scanner 10.02.00 en
25 of 28
Configuration
8 Appendix
8.1 ScanList entry
LPDN--Scanner 10.02.00 en
26 of 28
8 Appendix (continued)
LPDN--Scanner 10.02.00 en
27 of 28
Configuration
LPDN--Scanner 10.02.00 en
28 of 28