Professional Documents
Culture Documents
KR C2
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.1 Target group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.2 Safety . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.3 System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.3.1 Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.3.2 Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.4 About this documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.1 Licensing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2 Installing Step 7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2.1 Hardware update (HW update) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.2.2 Installing the KUKA Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3 Functional principle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.1 Functional principle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.2 Inputs and outputs (I/O) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.2.1 KR C I/O system (input/output system) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.2.2 Field bus drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.3 WinAC.ini file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.4 IOSys.ini file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
9 OPC Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
9 KUKA Router . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
1 Introduction
KUKA.PLC WinAC comprises a real--time runtime system for KUKA robots, a development
environment for PLC applications, and additional optional components which are helpful for
the development of PLC applications.
In addition to control and visualization functions, tasks with large quantities of data and fast
technological functions can be performed on the PC platform. KUKA.PLC WinAC offers the
following advantages:
G No PLC hardware is required for the communication with the periphery.
G If the KR C and KUKA.PLC WinAC use the field bus system at the same time, no
additional field bus hardware is required.
G KUKA.PLC WinAC can access all the available KR C field bus systems.
Information about Robot Programmer training courses at KUKA College is available on the
Internet under www.kuka--roboter.de.
1.2 Safety
This document must be kept available at all times either as a hard copy or in electronic form
at the robot system or the development computer. For example, a hard copy can be inserted
at the back of the KR C Operating Handbook.
Observe the safety instructions in the document “Safety, General” of the KR C Operating
Handbook.
WARNING!
In exceptional cases, incorrect configuration or operation can lead to material
damage and/or personal injury. It is therefore absolutely essential for configuration
to be carried out exclusively by trained personnel.
1.3.2 Hardware
G KUKA KR C2 robot controller
G Processor min. 733 MHz CPU
G Main memory min. 256 MB RAM
Information about the KUKA System Software (KSS) can be found in the operating and
programming handbooks supplied with the robot.
2 Installation
Place the CD in the CD--ROM drive of the control cabinet. Open Setup.exe on the KUKA.PLC
WinAC CD--ROM. Follow the installation instructions.
Setup procedure:
G If KUKA.PLC WinAC is installed over an identical existing version, the setup program
offers to uninstall the existing version.
G If no version of KUKA.PLC WinAC is installed, installation of KUKA.PLC WinAC is
started.
The system must be rebooted (cold start) to complete the installation.
2.1 Licensing
Attach the supplied licensing sticker to the KR C control cabinet!
Carry out the installation as described in the Step 7 manual from Siemens.
If you have any questions regarding the hardware update, refer to the [Siemens “Help”
menu] or contact [Siemens Support].
3 Functional principle
3.1 Functional principle
The following diagram illustrates the time distribution on the KUKA robot controller without
KUKA.PLC WinAC.
Tasks/Priority
R_INT
S_INT
Win
12 1 2 3 4 5 6 7 8 9 10 11 12 1
Ticks
IPO cycle 1 IPO cycle 2
The following diagram illustrates the time distribution on the KUKA robot controller with
KUKA.PLC WinAC.
Tasks/Priority
KUKA.PLC WinAC
R_INT
S_INT
Win
12 1 2 3 4 5 6 7 8 9 10 11 12 1
Ticks
IPO cycle 1 IPO cycle 2
Fig. 6 clearly shows that the two interpreters in the KUKA robot controller, R_INT and S_INT,
are not adversely affected by KUKA.PLC WinAC. Multiple tasks are supported and must
share the KUKA.PLC WinAC time slices.
Effect of the time distribution on the PLC:
The processing time distribution applied in Fig. 5 and Fig. 6 is 12 ms. This means that the
minimum cycle time corresponds to this time distribution, as a new cycle cannot begin until
12 ms after the time slice in which the last cycle was started.
It is not possible to use Step 7 for configuring the field buses. This is carried out using *.ini
files. See Section 3.3 “WinAC.ini file” for information about this.
[CONFIGURATION]
LOGLEVEL=1
DEBUG=1
TSM=0
SLEEP_TIME=12
TIME_OFFSET=+01:00
[WINAC]
;-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
------
; Example
;
; WinAC In/Out ByteNo. = FieldbusDriver In/Out ByteNo, SlaveAddress,Number of elements, 0 = no swaping
;
; OutByte 10 = PBMASL,OutByte2,123,1,0
; OutByte 10 = InterBusPCI,OutByte2,0,1,0
;
; KrcIoSys is no FieldBUs Driver, so swapping necessary
;
; InByte0=KrcIoSys,OutByte0,0,1,0
; OutByte0=KrcIoSys,InByte0,0,1,0
;-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
------
TSM entry:
If WinAC switches to the STOP state, a TSM log / WindView file is generated and saved on
the hard drive (under LOG). This is necessary for debugging purposes. During production
operation, this value should be set to 0.
SLEEP_TIME entry:
The minimum idle time defines the idle time that is added during execution of the free cycle
(OB1). For further information, see Siemens WinAC RTX documentation under ”Tuning the
Performance of the Controller”.
KUKA.PLC WinAC supports the Motorola protocol: most significant byte at the lowest
memory address.
Swapping is required if a field bus device supports the Intel protocol (most significant
byte at the highest memory address). If swapping is set to 1, the bytes in a word or the
words in a DWord are swapped.
Examples:
Output byte 10 of KUKA.PLC WinAC is output byte 2 on Profibus device 123, without
swapping.
Explanation of the example
In this example, KUKA.PLC WinAC has an output byte with the number 10:
Syntax: outByte10
Field bus driver is a Profibus device
Syntax: PBMASL
Field bus driver has an output byte with the number 2:
Syntax: OutByte2
The element is the Profibus device and it has the number 123:
Syntax: 123
“Without swapping” corresponds to the number 0:
Syntax: 0
[CONFIG]
VERSION=2.00
[DRIVERS]
WINAC=101,winacInit,WinACLoader.o
;CNKE2=21,cnke2CPInit,cnke2drv.o
.
.
.
.
.
.
.
.
.
.
[CNKE1]
; =ConNo, additional offset,xSize
[CNKE2]
; =ConNo, additional offset,xSize
[IOLINKING]
[WINAC]
INB511=0
[END SECTION]
;==========================================================
.
.
.
.
;-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
; 04/02/02 section [IOLINKING] added
There are two user levels. A User can only view the status of the PLC. An Expert or
Administrator can also modify the operating status of the PLC.
The functions RUN, RUNP, STOP, MRES and Close can be selected on the KUKA.PLC
WinAC user interface using softkeys.
Function Description
RUN PLC executes its programs and is not programmable
RUNP PLC executes its programs and is programmable
STOP PLC executes no programs and is programmable
MRES PLC is set to the STOP state and its programs are deleted
Close Closes the KUKA.PLC WinAC user interface
On creation of a new project, you will be asked where the project is to be created. This is
also where the file will be saved. Save your project after every modification!
Fig. 9 PC Station
Select the line “Beispiel_KUKA” in this window. Then press the right mouse button. Selecting
“Insert new object” and the line “SIMATIC PC Station” causes the Configuration line to be
displayed on the right--hand side of the window. Double--clicking on this line displays the
following window.
In line 2 (Index column in Fig. 10) in the window “HW Config”, enter the WinAC for the robot.
Fig. 11 Properties
The Order No. 6ES7 671--0XC00--0YB0 / V4.0 and the full designation “WinLC VxR V4.0;
Software Logic Controller for VxWin (Windows XP with VxWorks); firmware V4.0” are
displayed under Properties.
Fig. 12 IE General
IE General (IE = Industrial Ethernet) must then be entered in line 3 (Index column in Fig. 10).
Fig. 13 IP address
Then enter the IP address of the robot controller.
6.1 KRCLib
KUKA Library KRCLib must be installed.
6.2.14 SFC 5013 -- ReadBool; SFC 5014 -- ReadInt; SFC 5015 -- ReadReal
ReadBool, ReadInt and ReadReal can be used to read individual values from an array. They
all have the same parameters. The following is the example for ReadBool:
CALL SFC 5013
IN0 := // index
OUT1:= // value
OUT2:= // result
6.2.15 SFC 5016 -- WriteBool; SFC 5017 -- WriteInt; SFC 5018 -- WriteReal
WriteBool, WriteInt and WriteReal can be used to write individual values to an array. They
all have the same parameters. The following is the example for WriteBool:
CALL SFC 5016
IN0 := // index
IN1 := // value
OUT2:= // result
The boot project is located on the robot, in the directory C:\krc\tp\winac, and is called
WinLCVXR.v7. It can also be saved manually. The procedure here is the same as for a
normal file.
8 OPC Server
KUKA.PLC WinAC contains an OPC Server. This is installed automatically.
For more information, read the original Siemens documentation that is installed with the
software. It can be found under START > Programs > Simatic > Documentation.
9 KUKA Router
The KUKA Router is installed with the correct configuration. Should it be necessary, however,
to set up a route manually for KUKA.PLC WinAC, it must be ensured that Port 102 is routed
to the kernel system (generally 192.0.1.1).
Fig. 15 Router
Double--clicking on the tray icon causes the router to be displayed.
Alternatively, you can right--click to open a pop--up menu and then select “Configure”.
C O
ClearAllStatusMessages, 31 OPC Server, 35
ClearStatusMessage, 30
Creating a program, 21 P
PC Station, 22
Port mapping, 38
D
Port name, 38
Debug and log levels, 14 Port number, 38
Priority, 11, 12
F
R
Field bus drivers, 13
ReadAxisAct, 27
ReadAxisActEx, 27
H ReadBaseAct, 28
ReadBool, 31
Hardware, 6
ReadInt, 31
Hardware configuration, 22
ReadModeOP, 28
Hardware update (HW update), 8 ReadOvPro, 28
ReadPosAct, 27
ReadProState, 29
I
ReadReal, 31
IE General, 24 ReadToolAct, 28
Inputs and outputs (I/O), 13 RUN, 19
Installation, 7 RUN--P, 19
Installing Step 7, 7
Installing the KUKA Library, 9 S
IOSys.ini file, 17
Save project, 21
IP address, 24 Saving boot projects, 33
IPO cycle, 11, 12 SetNotifyMessage, 29
SetStatusMessage, 30
SFC 50xx blocks, 27
K
Software, 6
KR C I/O system, 13 Source Port, 38
KRCLib, 27 Step 7, 7
KUKA KR C2 robot controller, 6 STOP, 19
KUKA Router, 37 System functions (SFCs), 27
KUKA.PLC WinAC, 11
T
L Target Port, 38
Tasks, 11, 12
Licensing, 7 Ticks, 11, 12
Time distribution with KUKA.PLC WinAC, 12
Time distribution without KUKA.PLC WinAC,
M 11
MRES, 19 Tray icon, 37
Index -- i
Index
W
WinAC user interface, 19
WinAC.ini, 14
WriteBool, 31
WriteInt, 31
WriteOvPro, 29
WriteReal, 31
Index -- ii