Kuka - Usertech 2.3: Kuka Robot Group Kuka System Technology (KST)
Kuka - Usertech 2.3: Kuka Robot Group Kuka System Technology (KST)
KUKA.UserTech 2.3
For KUKA System Software (KSS) 5.x, 7.0
V0.1 26.01.200
KUKA.UserTech 2.3
© Copyright 2007
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 the KUKA ROBOT GROUP.
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 de-
scribed. Nevertheless, discrepancies cannot be precluded, for which reason we are not able to guaran-
tee 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.
KIM-PS4-DOC
V0.4
2 / 71
22.03.200
6 pub de V0.1 26.01.2007 KST-AD-UserTech23 en
Contents
Contents
1 Introduction ...................................................................................................... 7
1.1 Target group ................................................................................................................... 7
1.2 Robot system documentation ......................................................................................... 7
1.3 Representation of warnings and notes ........................................................................... 7
1.4 Terms used ..................................................................................................................... 8
3 Safety ................................................................................................................ 11
4 Installation ....................................................................................................... 13
4.1 Installation for KUKA System Software (KSS) 5.4, 5.5, 7.0 ............................................ 13
4.1.1 Installing or updating KUKA.UserTech ...................................................................... 13
4.1.2 Uninstalling KUKA.UserTech ..................................................................................... 13
4.2 Installation for KUKA System Software (KSS) 5.2, 5.3 ................................................... 13
4.2.1 Installing KUKA.UserTech ......................................................................................... 13
4.2.2 Uninstalling KUKA.UserTech ..................................................................................... 14
4.2.3 Reinstalling KUKA.UserTech ..................................................................................... 14
5 Programming .................................................................................................... 15
5.1 Symbols and fonts .......................................................................................................... 15
5.2 Special characters .......................................................................................................... 15
5.3 Important terms ............................................................................................................... 16
5.3.1 Data types ................................................................................................................. 16
5.3.2 Areas of validity ......................................................................................................... 16
5.3.3 String ......................................................................................................................... 16
5.3.4 Naming conventions and keywords ........................................................................... 17
5.3.5 Parameter reference placeholder .............................................................................. 17
5.4 Overview - Programming the technology ........................................................................ 18
5.4.1 Designing the technology .......................................................................................... 18
5.4.2 Creating a KFD file .................................................................................................... 18
5.4.3 DEFTP ... ENDTP ...................................................................................................... 19
5.4.4 Generating KRL code ................................................................................................ 20
5.5 Overview - Programming inline forms ............................................................................ 20
5.5.1 Designing the inline form ........................................................................................... 21
5.5.2 DECL PARAM ........................................................................................................... 21
5.5.3 Field types - VALUE field type ................................................................................... 22
5.5.3.1 VALUE {static: } ......................................................................................................... 22
5.5.3.2 VALUE {free: } ........................................................................................................... 22
5.5.3.3 VALUE {name: } ........................................................................................................ 22
5.5.3.4 VALUE {number: } ..................................................................................................... 23
5.5.3.5 VALUE {real: } ........................................................................................................... 24
5.5.3.6 VALUE {list: } ............................................................................................................. 25
5.5.4 DECL FOLD ............................................................................................................... 27
5.5.5 DECL INLINEFORM .................................................................................................. 28
5.5.6 Formatting program code .......................................................................................... 30
Index .................................................................................................................. 69
1 Introduction
This documentation is aimed at users with the following knowledge and skills:
Advanced knowledge of the robot controller system
Advanced KRL programming skills
For optimal use of our products, we recommend that our customers take part
in a course of training at KUKA College. Information about the training pro-
gram can be found at www.kuka.com or can be obtained directly from our
subsidiaries.
Safety warnings Warnings marked with this pictogram are relevant to safety and must be ob-
served.
Danger!
This warning means that death, severe physical injury or substantial material
damage will occur, if no precautions are taken.
Warning!
This warning means that death, severe physical injury or substantial material
damage may occur, if no precautions are taken.
Caution!
This warning means that minor physical injuries or minor material damage
may occur, if no precautions are taken.
Notes Notes marked with this pictogram contain tips to make your work easier or ref-
erences to further information.
Term Description
HMI The Human-Machine Interface (HMI) is an inter-
face which allows a human to communicate with
a machine.
KFD file File format used to describe technologies
2 Product description
3 Safety
All persons working with the robot system must have read and understood
the robot system documentation, including the safety chapter.
The robot system with KUKA.UserTech must be operated in accordance
with the applicable national laws, regulations and standards.
All KRL programs created with KUKA.UserTech must be tested at reduced
program velocity in the operating modes T1 and T2.
4 Installation
4.1 Installation for KUKA System Software (KSS) 5.4, 5.5, 7.0
Procedure 1. Select the menu sequence Setup > Install Additional Software.
2. Press the New SW softkey. Then press the Refresh softkey.
3. Select the software to be installed and press the softkey Install. Answer
the request for confirmation with Yes. The files are copied onto the hard
drive.
4. Confirm the reboot prompt with OK.
5. Reboot the robot controller. The installation is resumed and completed.
Procedure 1. Select the menu sequence Setup > Install Additional Software. All in-
stalled additional programs are displayed.
2. Select the software to be uninstalled and press the softkey Uninstall. An-
swer the request for confirmation with Yes. Uninstallation is prepared.
3. Reboot the robot controller. Uninstallation is resumed and completed.
Procedure 1. Start the Setup program from the CD-ROM. The files are copied onto the
hard drive.
2. Confirm the reboot prompt with OK.
3. Reboot the robot controller. The installation is resumed and completed.
5 Programming
Description Example
KRL code: GLOBAL; ANIN ON;
OFFSET
Courier font
Upper-case characters
Elements that must be replaced by program-spe- Distance; Time; Format
cific entries:
Upper- and lower-case characters
Italics
Optional elements: < ... >
In angle brackets
Elements that are mutually exclusive: IN |OUT
Separated by the "|" symbol
Variables and data objects have local validity, i.e. only in a particular technol-
ogy, if they are declared between the DEFTP and ENDTP statements.
If variables and data objects are to have global validity, i.e. in all technologies,
they must be declared outside the DEFTP and ENDTP statements.
5.3.3 String
Strings in KRL are always enclosed in double quotation marks, e.g. "This
is a string".
If the quotation mark should be part of the string, its meaning as a special
character must be canceled using the "/" character, e.g. "The character /"".
Names Examples of names in KRL: variable names, program names, point names
Names in KRL can have a maximum length of 24 characters.
Names in KRL can consist of letters (A-Z), numbers (0-9) and the signs "_"
and "$".
Names in KRL must not begin with a number.
Names in KRL must not be keywords.
The names of all system variables begin with the "$" sign. To avoid confu-
sion, do not begin the names of user-defined variables with this sign.
Keywords Keywords are sequences of letters having a fixed meaning. They must not be
used in programs in any way other than with this meaning. No distinction is
made between uppercase and lowercase letters. A keyword remains valid ir-
respective of the way in which it is written.
Example: The sequence of letters CASE is an integral part of the KRL syntax
SWITCH … CASE (ELSE) … ENDSWITCH. For this reason, CASE must not
be used in any other way, e.g. as a variable name.
The use of keywords reserved for KRL is not permitted. Further information
is contained in the Operating and Programming Instructions for System Inte-
grators.
Parameter reference
Description
placeholder
%TP Name of the technology
First parameter in every inline form
%INLINEFORM Name of the inline form
Second parameter in every inline form
%MODULE Name of the application program currently
loaded in the editor.
Description Technologies created with KUKA.UserTech are described and saved as KFD
files.
Any editor can be used to edit the KFD file.
The KFD file must be saved in ASCII format.
The name of the KFD file can be freely chosen within the conventions of
the Windows XP operating system.
The KFD file can contain one or more technologies. The name of a tech-
nology may, however, only appear once within a given file.
KFD files are saved by default in the directory C:\KRC\TP\USERTECH\TEM-
PLATE.
With complex technologies it is recommended that all the KFD files belonging
to a single technology are saved in the directory C:\KRC\TP\TPName\TEM-
PLATE. TPName must first be created in this path by adding a key in the Win-
dows registry file.
The status key can be used to switch between the technologies MYTECH and
OTHERTECH.
Define the structure of the inline forms, e.g. number, type and layout of the
input boxes.
Define the program lines (folds) that are to be inserted.
Define the individual parameters in the inline form and their respective
ranges of values.
Design scripts to be called by particular actions, e.g. on opening and clos-
ing the inline form.
Description A text field is displayed in the inline form, which cannot be edited by the user.
Description A text is displayed in the input box, which can be edited by the user.
Description A valid variable name, function name or subprogram name is displayed in the
input box, which can be edited by the user. The syntax is checked.
Description An integer value is displayed in the input box, which can be edited by the user
via the status key or the numeric keypad.
Element Description
DEFAULT Type: INT
Default value entered in the input box on opening the
inline form
Default value: 0
AUTOLIMIT Default value: TRUE
A value that is too large or too small is automatically set
to the minimum or maximum output value.
Value < minimum value:
Value is set to minimum value.
Value > maximum value:
Value is set to maximum value.
Description A floating-point value is displayed in the input box, which can be edited by the
user via the status key or the numeric keypad.
Element Description
STEP Type: REAL
Increment by which the output value is increased or
decreased via the status key
Default value: 0.1
DEFAULT Type: REAL
Default value entered in the input box on opening the
inline form
Default value: 0
AUTOLIMIT Default value: TRUE
A value that is too large or too small is automatically set
to the minimum or maximum output value.
Value < minimum value:
Value is set to minimum value.
Value > maximum value:
Value is set to maximum value.
Description List entries are displayed in the input box, which cannot be edited by the user.
The list entries are selected using the status key or the cursor keys.
Default: Triangle
The status key can be used to switch between the list entries.
The value "Triangle" displayed in the list box is not the value actually proc-
essed. In the fold, the global variable "Hugo" is assigned the value 3.
Element Description
SPLINE Only relevant for KSS 5.x from 5.5
Specifies whether the inline form of technology pack-
ages is interpreted as an inline form containing a
SPLINE control structure. Whether the inline form actu-
ally contains a SPLINE control structure is specified in
the definition of the fold contents (>>> 5.5.4 "DECL
FOLD" page 27).
TRUE: Interpretation as inline form with SPLINE
control structure
FALSE: Interpretation as inline form without
SPLINE control structure
Default, if nothing is specified for SPLINE or an
invalid value is assigned
ILF_TYPE Only relevant for KSS 5.x from 5.5
Specifies whether the fold of the inline form can be
inserted into a fold with SPLINE control structure
Possible settings:
IN_SPLINE: Fold can be inserted into a SPLINE
fold.
OFF_SPLINE: Fold cannot be inserted into a
SPLINE fold.
Default, if nothing is specified for ILF_TYPE or an
invalid value is assigned
ALL: Fold can be inserted into any fold.
STYLE Formatting of the inserted program code
Possible settings:
WYSIWYG (default setting)
(>>> 5.5.6.1 "WYSIWYG parameter" page 30)
SUB (>>> 5.5.6.2 "SUB parameter" page 30)
DSUB (>>> 5.5.6.3 "DSUB parameter" page 30)
FCT (>>> 5.5.6.4 "FCT parameter" page 31)
DFCT (>>> 5.5.6.5 "DFCT parameter" page 31)
ASS (>>> 5.5.6.6 "ASS parameter" page 31)
ASSAG (>>> 5.5.6.7 "ASSAG parameter"
page 32)
ONACCEPT Name of the script which is run on pressing the Enter
key or the softkey Cmd Ok
(>>> 5.9.1 "Calling a script on opening or closing the
inline form" page 48)
ONTOUCHUP Name of the script which is run on pressing the softkey
Touch Up
ONOPEN Name of the script which is run on opening the inline
form
(>>> 5.9.1 "Calling a script on opening or closing the
inline form" page 48)
Description The formatting of the inserted code corresponds exactly to the text of the inline
form.
Example
Example
Example
Example
Example
Example
ENDTP
Description An input box in the inline form can be assigned to a parameter list
(>>> 5.5.3.3 "VALUE {name: }" page 22).
The properties of the parameter list must be programmed.
Step Description
3 Store the structure data set and default data set in $CON-
FIG.DAT.
(>>> 5.6.2 "Definition of the data type in $CONFIG.DAT"
page 33)
4 Define the parameter list and assign it to the input box.
(>>> 5.6.3 "DECL PLIST" page 34)
Example (>>> 5.6.4 "Example - Inline form with parameter list" page 35)
Description Every parameter list contains a data set. DECL PARAM PL_ is used to define
the structure of the data set.
Syntax DECL PLIST Name_of_data_set[n] -> Assignment to input box in inline form
Name_of_data_set[1] = Name_of_parameter1
...
Name_of_data_set[n] = Name_of_parameterN
Example
Line Description
1, 53 Definition of the technology MyTech
2-3 Definition of the input box "ParamList" in the inline form
5 - 28 Definition of the parameters in the PLTOOL option window
30 - 33 Definition of the structure of the data set
The data type "LSC_TOOL_TYP" of the data set and its default
values are defined in $CONFIG.DAT.
35 - 38 Definition of the folds
40 - 48 Definition of the parameter list
The assignment "-> ParamList" links the parameter list to the
input box in the inline form.
50 - 52 Definition of the inline forms
<ONKEYUP Script,>
<ONKEYSHOW Script,>
<ONKEYDOWNMINUS Script,>
<ONKEYUPMINUS Script,>
<ONKEYREPEAT Script,>
<ONKEYREPEATMINUS Script,>
<NEXT Name>}
Element Description
TOPTEXT[] Text displayed centered in the upper part of
the status key
CENTERTEXT[] Text displayed centered in the middle part of
the status key
BOTTOMTEXT[] Text displayed centered in the lower part of
the status key
PICTURE[] Path of the graphic appearing on the status
key
KEYDOWN_PICTURE[] Path of the graphic displayed on the status
key when "+" is pressed
If no path is given here, the graphic specified
under PICTURE[ ] is displayed.
KEYDOWNMINUS_PICTUR Path of the graphic displayed on the status
E[] key when "-" is pressed
If no path is given here, the graphic specified
under PICTURE[ ] is displayed.
STYLE #SWITCH (default):
Simple status key
#TOGGLE:
Double status key
The upper KCP key assigned to the status
key performs the "-" function, and the low-
er KCP key performs the "-" function.
For the graphics, icons (*.ico) or bitmaps (*.bmp) can be used. The use of
icons is recommended.
The following image sizes are required:
34 x 48 pixels for a simple status key
34 x 128 pixels for a double status key
Element Description
ENABLE TRUE: Status key is activated.
FALSE: Status key is deactivated.
NEED_SAFETYSWITCH TRUE: Status key is activated on pressing
the enabling switch.
FALSE: Default
NEED_DRIVESOK TRUE: Status key is activated on switching
on the drives.
FALSE: Default
NEED_PROSTATEO Type: INT
Activation of the status key is dependent on
the operating state of the Submit interpreter.
Default value = 32: Status key is only availa-
ble when the Submit interpreter is running.
NEED_PROSTATE Type: INT
Activation of the status key is dependent on
the operating state of the robot interpreter.
Default value = 30: Status key is only acti-
vated when the Start key is released.
NEED_MODEOP Type: INT
Activation of the status key is dependent on
the operating mode selected.
Default value = 7: Status key is available in
the operating modes T1, T2 and Automatic.
USERMODE Type: INT
Identification number of the lowest user group
for which the status key is activated.
Default value = 0: Status key is available for
every user group.
NEED_PROSTATE
NEED_MODEOP
Calling scripts
Element Description
ONKEYDOWN Name of the script which is run on pressing "+"
ONKEYUP Name of the script which is run on releasing "+"
ONKEYSHOW Name of the script which is run on displaying the
status key
ONKEYDOWNMINUS Name of the script which is run on pressing "-"
ONKEYUPMINUS Name of the script which is run on releasing "-"
ONKEYREPEAT Name of the script which is run on holding down
"+"
The script is repeatedly triggered until the key is
released. The interval between repetitions
becomes shorter and shorter.
ONKEYREPEATMINUS Name of the script which is run on holding down
"-"
The script is repeatedly triggered until the key is
released. The interval between repetitions
becomes shorter and shorter.
Element Description
NEXT Name of the next status key to be defined
<STATKEY[4] Name4,> }
5.7.4 SET
Overview
Commands
DEFSCRIPT (>>> 5.8.1 "DEFSCRIPT ... ENDSCRIPT"
page 44)
...
ENDSCRIPT
SETVAR (>>> 5.8.2 "SETVAR" page 44)
SHOWVAR (>>> 5.8.3 "SHOWVAR" page 45)
REDECL (>>> 5.8.4 "REDECL" page 45)
DO (>>> 5.8.5 "DO" page 46)
SET (>>> 5.7.4 "SET" page 43)
MESSAGE (>>> 5.8.6 "MESSAGE" page 46)
SWITCH (>>> 5.8.7 "SWITCH ... CASE (ELSE) ... ENDS-
WITCH" page 46)
…
CASE(ELSE)
...
ENDSWITCH
Commands
SWITCH DIALOG (>>> 5.8.8 "SWITCH DIALOG ... CASE ...
ENDSWITCH" page 47)
…
CASE
…
ENDSWITCH
ACCEPTINLINE- (>>> 5.8.9 "Predefined scripts" page 48)
FORM
CANCELINLINE-
FORM
END
NOTHING
5.8.2 SETVAR
5.8.3 SHOWVAR
After running the script with the program "Test.src" selected in T1 mode, the
following message is displayed in the message window:
$MODE_OP=#T1
5.8.4 REDECL
After running the script with the program "Test.src" selected, the variable
"HOME" is created in the file "Test.dat".
1 DEFDAT TEST
2 EXTERNAL DECLARATIONS
3 DECL AXIS HOME={A1 5.5, A2 -95.5, A3 95.5, A4 5.5, A5 5.5, A6 5.5}
4 ENDDAT
5.8.5 DO
Syntax DO Name
5.8.6 MESSAGE
Description Calls one of several possible scripts, depending on the polling of a variable.
The CASE line whose result corresponds to the variable is selected.
Once the associated script has been executed, the program is resumed after
ENDSWITCH.
If there is no result corresponding to the variable, the CASE ELSE line is se-
lected. If this is not present, or no associated script has been defined, no script
is executed and the program is resumed after ENDSWITCH.
SWITCH ... CASE (ELSE) ... ENDSWITCH blocks must not be nested.
<...>
<CASE ELSE ScriptN>
ENDSWITCH
Description Enables a dialog between the program and the user. A dialog text is output in
the message window. The user answers via the softkeys, which call the asso-
ciated script.
Once the script has been executed, the program is resumed after ENDS-
WITCH.
2 to 7 CASE lines must be programmed. These correspond to the softkeys,
proceeding from right to left.
SWITCH DIALOG ... CASE ... ENDSWITCH blocks must not be nested.
The messages and softkey texts are saved in the currently selected language
via language database keys. In order to be able to access this database, it
must contain a module with the name of the technology package in which the
script was defined.
In the case of global scripts, the module KUKATPUSERGlobal is accessed.
In the case of softkeys, the corresponding key must be created in the database
for each language. If access to the language database fails, the messages or
the individual softkeys cannot be displayed in the selected language.
In the case of parameterized outputs, the parameters must be tagged on to the
key, separated by the characters "/|". The translated text and the parameters
are then combined in the language database.
Command Function
ACCEPTINLINE- The open inline form is closed.
FORM The changed parameters are applied.
CANCELINLINE- The open inline form is closed.
FORM The changed parameters are not applied.
END The currently running script is aborted.
NOTHING Functions as a placeholder for a script
When defining inline forms, it is possible to specify the names of scripts which
are to be called in the event of particular actions.
Description The script "op_test" defines the message "Fired when ILF is opened". The
keyword ONOPEN (>>> 5.5.5 "DECL INLINEFORM" page 28) in the defini-
tion of the inline form causes this message to be displayed in the message
window when the inline form is opened.
The script "cl_test" defines the message "Fired when ILF is closed". The key-
word ONACCEPT (>>> 5.5.5 "DECL INLINEFORM" page 28) in the definition
of the inline form causes this message to be displayed in the message window
when the inline form is closed.
;---------------------
;------ Scripts -----
;---------------------
DEFSCRIPT op_test
MESSAGE "Fired when ILF is opened!"
ENDSCRIPT
DEFSCRIPT cl_test
MESSAGE "Fired when ILF is closed!"
DO ACCEPTINLINEFORM
ENDSCRIPT
;---------------------
;------ FOLDs -----
;---------------------
;---------------------
;------ INLINEFORMs -----
;---------------------
ENDTP
Description By default, the ONOPEN event is always triggered on opening an inline form
by means of the CHANGE command.
If a certain script is to be started only if a new inline form is inserted or if an
existing inline form is modified, this can be done using the SWITCH CASE
statement and the keyword ISCHANGE.
;---------------------
;------ Scripts -----
;---------------------
DEFSCRIPT ch_test
MESSAGE "Fired only when ILF is changed!"
ENDSCRIPT
DEFSCRIPT new_test
MESSAGE "Fired only when ILF is created!"
ENDSCRIPT
DEFSCRIPT op_test
SWITCH "ISCHANGE"
DEFSCRIPT cl_test
MESSAGE "Fired when ILF is closed!"
DO ACCEPTINLINEFORM
ENDSCRIPT
;---------------------
;------ FOLDs -----
;---------------------
;---------------------
;------ INLINEFORMs -----
;---------------------
ENDTP
Description The ONOPEN event is triggered by default on toggling between inline forms
within a technology.
If a certain script is to be started every time the user toggles between inline
forms, this can be done using the SWITCH CASE statement and the keyword
DOALWAYS.
;---------------------
;------ Scripts -----
;---------------------
DEFSCRIPT test_1
MESSAGE "Fired only once!"
ENDSCRIPT
DEFSCRIPT al_test
MESSAGE "Fired always!"
ENDSCRIPT
DEFSCRIPT test_2
SWITCH "DOALWAYS"
;---------------------
;------ FOLDs -----
;---------------------
;---------------------
;------ INLINEFORMs -----
;---------------------
ENDTP
Description This function can be used to refresh the user interface, e.g. to display status
keys created by the user.
The graphical user interface is reinitialized without rebooting the system. The
progress of the reinitialization is indicated in the message window.
Procedure Select the menu sequence Configure > Tools > Reinit > BOF Reinitial-
ization.
Description This function allows KUKA.UserTech to be refreshed while the robot controller
is running, e.g. in order to activate changes to the definition of inline forms.
UserTech is reinitialized without rebooting the system. The progress of the
reinitialization is indicated in the message window.
Procedure Select the menu sequence Configure > Tools > Reinit > UserTech Rein-
itialization.
New menu items and submenus can be integrated into the user interface by
means of entries in the file MenueKeyUser.INI in the directory C:\KRC\RO-
BOTER\INIT. Furthermore, the technologies created with KUKA.UserTech
can be linked to the menu items.
Tech_Name
Name of the technology in which the function module is
defined
Command
Name of the function module displayed by default
NextLineType Type of next line:
Default: If nothing is specified, no line follows.
NOLINE: No line follows.
POPUP: A submenu follows.
Nextlineld Name of the following submenu
UserLevel Identification number of the lowest user group for which
the function module is available
Identification numbers of the predefined user groups:
10: User
20: Expert
30: Administrator
Element Description
Menu_Item_Name System name of the menu item
Menu_Item_Label Name of the menu item appearing in the
menu
POPUP Optional. The keyword causes a submenu to
be opened on selecting the menu item.
List_Menu_Options List of the menu options in the submenu
Only relevant if POPUP is used.
Element Description
Option_1 Menu option appearing in position 1 in the submenu
Option_2 Menu option appearing in position 2 in the submenu
Option_3 Menu option appearing in position 3 in the submenu
Element Description
Position_Number Integer value specifying the position of the
new menu item in the menu.
The value 0 stands for the 1st position.
Element Description
Menu_Option_Label Name of the menu item in the submenu, used
to call the technology
Tech_Name Name of the technology in which the inline
form, status key bar or status key is defined
Inlineform_Name Name of the inline form called by the menu
item
Statkeybar_Name Name of the status key bar called by the
menu item
Statkey_Name Name of the status key called by the menu
item
ENDTP
Description The technology TWINKLE defines 3 inline forms. The command "twice" is to
appear by default when the menu item BLINKTech is selected.
The menu item BLINKTech is to be integrated into the user interface in the 2nd
position of the Technology menu.
Element Description
Flash_Light System name of the menu item
BLINKTech Name of the menu item appearing in the Technol-
ogy menu
twice Command appearing in the inline form when the
menu item BLINKTech is selected.
20 Identification number of the lowest user group for
which the inline form is available
2. In the file MenueKeyUser.INI, go to the section [MOVE] and define the po-
sition of the menu item BLINKTech in the Technology menu.
Flash_Light = ,MENU#mTechnology,1
Description On selecting the menu item BLINKTech, a submenu with the menu items one,
two and three is to open, with which the 3 inline forms of the technology
TWINKLE can be called individually.
On selecting the menu sequence Technology > BLINKTech > three, the
command "triple" is to appear in the inline form.
The menu item BLINKTech is to be integrated into the user interface in the 7th
position of the Technology menu.
3. In the file MenueKeyUser.INI, go to the section [MOVE] and define the po-
sition of the menu item BLINKTech in the Technology menu.
Flash_Light = ,MENU#mTechnology,6
Element Description
once Command appearing in the inline form when the
menu item one is selected.
Element Description
twice Command appearing in the inline form when the
menu item two is selected.
three Command appearing in the inline form when the
menu item three is selected.
DefScript sc_KeyUp
SetVar(fullpath[] "$OUT[2]", Value[] "FALSE")
Set Key4={Picture[] "C:\KRC\TP\USERTECH\TEMPLATE\ _
PICTURES\Rinse1.bmp",
BottomText[] "ON" }
EndScript
DefScript sc_KeyDown
SetVar(fullpath[] "$OUT[2]", Value[] "TRUE")
Set Key4={Picture[] "C:\KRC\TP\USERTECH\TEMPLATE\ _
PICTURES\Rinse2.bmp",
BottomText[] "OFF" }
EndScript
Endtp
Description The technology RINSE_GLUE defines the status key [4], with which the scripts
"sc_KeyUp" and "sc_KeyDown" can be called.
The status key is to appear on the user interface on selecting the menu se-
quence Configure > Status keys > RINSE.
The menu item RINSE is to be integrated in the 1st position of the menu item
Status keys in the Configure menu.
Element Description
Userstat4 System name of the menu item
RINSE Name of the menu item appearing on selection of
the menu item Status keys
bar4 Name of the status key bar called by the menu item
RINSE
2. In the file MenueKeyUser.INI, go to the section [MOVE] and define the po-
sition of the menu item RINSE in the menu item Status keys.
userstat4 = ,MENU#mTechstatuskeys,0
6 Example programs
Program The technology DISP_SET makes it possible to set the brightness and con-
trast on the KCP display via the status keys [1] and [3] in the status key bar. In
order to do this, the system variables '$PHGBRIGHT' and '$PHGCONT' have
been altered.
1 DEFTP disp_set
2 DECL PARAM bright = {VALUE {NUMBER:}}
3 DECL PARAM cont = {VALUE {NUMBER:}}
4 DECL PARAM temp = {VALUE {NUMBER:}}
5 DEFSCRIPT bright_hi
6 SHOWVAR(FULLPATH[] "$PHGBRIGHT", PARAM bright)
7 SETVAR(FULLPATH[] "$PHGBRIGHT", VALUE[] "%bright +1")
8 SHOWVAR(FULLPATH[] "$PHGBRIGHT", PARAM bright)
9 SHOWVAR(FULLPATH[] "$PHGCONT", PARAM cont)
10 SHOWVAR(FULLPATH[] "$PHGTEMP", PARAM temp)
11 MESSAGE "brightness level: %bright contrast level: _
12 %cont display temperature: %temp °C"
13 Endscript
14 DEFSCRIPT bright_lo
15 SHOWVAR(FULLPATH[] "$PHGBRIGHT", PARAM bright)
16 SETVAR(FULLPATH[] "$PHGBRIGHT", VALUE[] "%bright -1")
17 SHOWVAR(FULLPATH[] "$PHGBRIGHT", PARAM bright)
18 SHOWVAR(FULLPATH[] "$PHGCONT", PARAM cont)
19 SHOWVAR(FULLPATH[] "$PHGTEMP", PARAM temp)
20 MESSAGE "brightness level: %bright contrast level: _
21 %cont display temperature: %temp °C"
22 Endscript
23 DEFSCRIPT cont_hi
24 SHOWVAR(FULLPATH[] "$PHGCONT", PARAM cont)
25 SETVAR(FULLPATH[] "$PHGCONT", VALUE[] "%cont +1")
26 SHOWVAR(FULLPATH[] "$PHGCONT", PARAM cont)
27 SHOWVAR(FULLPATH[] "$PHGBRIGHT", PARAM bright)
28 SHOWVAR(FULLPATH[] "$PHGTEMP", PARAM temp)
29 MESSAGE "brightness level: %bright contrast level: _
30 %cont display temperature: %temp °C"
31 Endscript
32 DEFSCRIPT cont_lo
33 SHOWVAR(FULLPATH[] "$PHGCONT", PARAM cont)
34 SETVAR(FULLPATH[] "$PHGCONT", VALUE[] "%cont -1")
35 SHOWVAR(FULLPATH[] "$PHGCONT", PARAM cont)
36 SHOWVAR(FULLPATH[] "$PHGBRIGHT", PARAM bright)
37 SHOWVAR(FULLPATH[] "$PHGTEMP", PARAM temp)
38 MESSAGE "brightness level: %bright contrast level: _
39 %cont display temperature: %temp °C"
40 Endscript
41 DECL STATKEY brightness = {PICTURE[] "C:\KRC\TP\USERTECH _
42 TEMPLATE\PICTURES\phgbright.bmp",_
43 ENABLE TRUE, _
44 USERMODE 10, _
45 STYLE #TOGGLE, _
46 ONKEYDOWN bright_hi, _
47 ONKEYDOWNMINUS bright_lo}
48 DECL STATKEY contrast = {PICTURE[] "C:\KRC\TP\USERTECH _
49 TEMPLATE\PICTURES\phgcont.bmp", _
50 ENABLE TRUE, _
51 USERMODE 10, _
52 STYLE #TOGGLE, _
53 ONKEYDOWN cont_hi, _
54 ONKEYDOWNMINUS cont_lo}
55 DECL STATKEYBAR bar = {STATKEY[1] brightness, _
56 STATKEY[3] contrast}
57 ENDTP
Line Description
1, 57 Definition of the technology DISP_SET
2-4 Definition of the parameters required for programming the
scripts
5 - 40 Definition of the scripts executed on ONKEYDOWN and
ONKEYDOWNMINUS.
41 - 47 Definition of the status key used for setting the brightness
48 - 54 Definition of the status key used for setting the contrast
55 - 56 Definition of the status key bar; assignment of the functions to
the status keys
MenueKeyUser.INI The technology DISP_SET is called via the menu sequence Configure > Sta-
tus keys > Display.
Entries in the section [SOFTKEYS]:
DISPSET = Display,11,USERSTATKEYBAROCX,KUKATPUSER;disp_set.bar
Description The technology LASER defines the inline forms LASER.ON and LASER.OFF.
The inline form LASER.ON consists of the input boxes "Schweissdatensatz"
(welding data set), "Distance" and "WeavePattern":
Line Description
1, 28 Definition of the technology LASER
2 - 16 Definition of the input boxes
17 - 20 Definition of the fold for the inline form LASER.ON
21 - 24 Definition of the fold for the inline form LASER.OFF
25 -26 Definition of the inline form LASER.ON
27 Definition of the inline form LASER.OFF
7 KUKA Service
Introduction The KUKA Robot Group 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.
Argentina Ruben Costantini S.A. (Agency)
Luis Angel Huergo 13 20
Parque Industrial
2400 San Francisco (CBA)
Argentina
Tel. +54 3564 421033
Fax +54 3564 428877
[email protected]
Index
Symbols KUKA Customer Support 63
$ 17 KUKA.UserTech, commands 43
$CONFIG.DAT 33 KUKA.UserTech, refreshing 51
A M
Areas of validity 16 Menu entries, syntax 52
ASS parameter 31 Menu item with submenu, creating 52
ASSAG parameter 32 Menu items, creating 52
MESSAGE 46
B
BOF Reinitialization (menu item) 51 N
Names 17
D Notes 7
Data types 16
DECL FOLD 27 O
DECL INLINEFORM 28 Overview, KUKA.UserTech 9
DECL PARAM 21
DECL PARAM PL_ 33 P
DECL PLIST 34 Parameter reference placeholder 17
DECL STATKEY 39 Product description 9
DECL STATKEYBAR 42 Program code, formatting 30
DEFSCRIPT ... ENDSCRIPT 44 Programming 15
DEFTP ... ENDTP 19 Programming, inline forms 20
Design, inline form 21 Programming, parameter list 32
Design, status keys 38 Programming, scripts 43
Design, technology 18 Programming, status keys 38
DFCT parameter 31 Programming, technology 18
DO 46
Documentation, robot system 7 R
DSUB parameter 30 REDECL 45
Reinstalling KUKA.UserTech 14
E
Example program, DISP_SET 59 S
Example program, LASER 60 Safety 11
Example program, parameter list 35 Safety warnings 7
Script, called on changing the inline form 49
F Script, called on opening/closing the inline form 48
FCT parameter 31 Script, called on toggling between inline forms 50
Field types, VALUE field type 22 Scripts, predefined 48
Fonts 15 Service, KUKA Roboter 63
Formatting, program code 30 SET 43
SETVAR 44
H SHOWVAR 45
HMI 8 Special characters 15
String 16
I SUB parameter 30
Installation 13 Support request 63
Installation, KSS 5.2, 5.3 13 SWITCH ... CASE (ELSE) ... ENDSWITCH 46
Installation, KSS 5.4, 5.5, 7.0 13 SWITCH DIALOG ... CASE ... ENDSWITCH 47
Installation, KUKA.UserTech 13 Symbols 15
Introduction 7
T
K Target group 7
Keywords 17 Technology, integration into user interface 54
KFD file 8 Terms 8
KFD file, creation 18 Terms used 8
KRL code, generating 20 Terms, important 16
U
Uninstalling KUKA.UserTech 13, 14
Update, KUKA.UserTech 13
User interface, refreshing 51
V
VALUE field type 22
VALUE free 22
VALUE list 25
VALUE name 22
VALUE number 23
VALUE real 24
VALUE static 22
W
Warnings 7
WYSIWYG parameter 30