KUKA KSS 8.3 Programming Manual For SI (250 491)
KUKA KSS 8.3 Programming Manual For SI (250 491)
Description
Only KSS 8.3 archives may be loaded into KSS 8.3. If
other archives are loaded, the following may occur:
Error messages
Robot controller is not operable.
Personal injury and damage to property.
Precondition If data are to be restored from the USB stick: A USB stick with the archive
is connected.
The stick can be connected to the smartPAD or robot controller.
Procedure 1. In the main menu, select File > Restore and then the desired subitems.
2. Confirm the request for confirmation with Yes. Archived files are restored
to the robot controller. A message indicates completion of the restoration
process.
3. If data have been restored from a USB stick: the stick can now be re-
moved.
4. Reboot the robot controller.
Description Projects that are present on the robot controller can be pinned. A project can
be pinned directly on the robot controller or in WorkVisual.
Pinned projects cannot be changed, activated or deleted. They can be copied
or unpinned, however. A project can thus be pinned e.g. to prevent it from be-
ing accidentally deleted.
Procedure 1. Touch the WorkVisual icon on the smartHMI, then go to Open. The Proj-
ect management window opens.
2. Select the desired project and press the Pin button. The project is pinned
and labeled with a pin symbol in the project list.
(>>> 7.11.3 "Project management window" Page 252)
Preparation There are 2 ways of reaching the first step of the procedure below.
Project activation is the direct continuation of another sequence, e.g. the
restoration of a project.
In this case, the preparation described as follows is not necessary.
Or: Project activation is executed as a stand-alone sequence.
In this case, the preparation described as follows is required in order to ar-
rive at the procedure.
Preparation:
1. Touch the WorkVisual icon on the smartHMI, then go to Open. The Proj-
ect management window opens.
2. Select the desired project and activate it using the Activate button.
Procedure 1. The KUKA smartHMI displays the request for confirmation Do you want to
activate the project […]?. In addition, a message is displayed as to whether
the activation would overwrite a project, and if so, which.
If no relevant project will be overwritten: Confirm with Yes within 30 min-
utes.
2. An overview is displayed of the changes which will be made in comparison
to the project that is still active on the robot controller. The check box De-
tails can be used to display details about the changes.
3. The overview displays the request for confirmation Do you want to conti-
nue?. Confirm with Yes. The project is activated on the robot controller.
In the case of a KSS/VSS update, the initial project and base project
are overwritten by copies of the active project.
Overview The Project management window is opened using the WorkVisual icon on
the smartHMI.
In addition to the regular projects, the Project management window contains
the following special projects:
Project Description
Initial project The initial project is always present. It cannot be
changed by the user. It contains the initial state of the
robot controller as shipped.
Base project The user can save the active project as the base proj-
ect. This functionality is generally used to save a func-
tional, tried-and-tested project state.
The base project cannot be activated, but copied. The
base project can no longer be changed by the user. It
can, however, be overwritten by saving a new base
project (after a request for confirmation).
If a project is activated which does not contain all the
configuration files, the missing information is inserted
from the base project. This is the case e.g. if a project
is activated from an earlier version of WorkVisual. (The
configuration files include machine data files, safety
configuration files and many others.)
In the case of a KSS/VSS update, the initial project and base project
are overwritten by copies of the active project.
Description
Item Description
1 The initial project is displayed.
2 Restores the factory settings of the robot controller.
Only available to the user group “Expert” or higher.
3 The base project is displayed.
4 Creates a copy of the base project.
Only available to the user group “Expert” or higher.
5 The active project is displayed.
6 Saves the active project as the base project. The active project re-
mains active.
Only available to the user group “Expert” or higher.
7 Creates a pinned copy of the active project.
Only available to the user group “Expert” or higher.
8 List of inactive projects (except base and initial project)
With all copying operations, a window opens in which a name and a descrip-
tion can be entered for the copy.
Button Description
Activate Activates the selected project.
If the selected project is pinned: Creates a copy of the
selected project. (A pinned project cannot be activated
itself, only a copy of it.) The user can then decide
whether to activate this copy or whether the current
project should remain active.
Only available to the user group “Expert” or higher.
Pin (>>> 7.11.1 "Pinning a project on the robot controller"
Page 250)
Only available if an unpinned project is selected. Only
available to the user group “Expert” or higher.
Unpin Unpins the project.
Only available if a pinned project is selected. Only
available to the user group “Expert” or higher.
Copy Copies the selected project.
Only available to the user group “Expert” or higher.
Delete Deletes the selected project.
Only available if a non-activated, unpinned project is
selected. Only available to the user group “Expert” or
higher.
Edit Opens a window in which the name and/or description
of the selected project can be changed.
Only available if an unpinned project is selected. Only
available to the user group “Expert” or higher.
Update Refreshes the project list. This enables e.g. projects to
be displayed which have been transferred to the robot
controller since the display was opened.
Overview The Backup Manager makes it possible to back up and restore projects, option
packages and RDC data.
The default settings for the Backup Manager are defined in the Backup con-
figuration window. The settings can be changed.
(>>> 7.12.5 "Configuring Backup Manager" Page 258)
Backup Restoration
Manual Yes Yes
Automatic, in inter-
Yes No
vals
Via inputs Yes
(only possible in AUT Yes (only projects and option pack-
or AUT EXT mode) ages, no RDC data)
Execution
Manual (>>> 7.12.2 "Manual backup of projects, option
packages and RDC data" Page 255)
(>>> 7.12.3 "Manually restoring projects and op-
tion packages" Page 256)
(>>> 7.12.4 "Restoring RDC data manually"
Page 257)
Automatic, in inter- If backups are to be started automatically, this
vals must be configured in the Backup configuration
window.
Via inputs If backups/restorations are to be started via in-
puts, this must be configured in the Backup con-
figuration window.
Description Projects
The following projects are backed up by default:
Active project
Initial project
Base project
Option packages
Option packages will be backed up under the following conditions:
The option package has a KOP file.
The option package was originally added to the project in WorkVisual. The
project is now active on the robot controller.
Or:
The option package has been installed in the active project via Start-up >
Additional software. The option package was available during installa-
tion as a single KOP file (not as a directory structure!).
RDC data
Every time a backup is made, a file with the name [Robot_serial_number].RDC
is created. It contains the CAL, MAM and PID files. Not all files are present in
all cases (dependent on the robot).
Procedure In the main menu, select File > Backup Manager, and then one of the fol-
lowing menu items:
Back up
The target directory is D:\ProjectBackup as long as no other directory
has been configured. The path is automatically created if it does not
already exist.
Or Save as...
A target directory can be selected here. It only applies to this backup.
The backup is carried out. The robot controller displays a message when the
backup has been successfully completed. It generates one message per proj-
ect or option package and one message relating to the RDC data.
However, option packages will not be backed up if the same package version
already exists in the target directory.
Description Projects
The following projects are restored by default:
Active project (i.e. the project which was active during the backup)
Initial project
Base project
After manual restoration of the project, the robot controller reactivates the pre-
viously active project if certain preconditions are met. If not, the project re-
mains inactive. This can be activated by the user at the desired point in time.
After restoration of the project via inputs, the previously active project also re-
mains inactive.
Option packages
The option packages for which there are KOP files in the source directory are
not necessarily all restored. An option package will be restored under the fol-
lowing conditions:
At the time of backup, the option package was present in the active proj-
ect.
At the time of restoration, this version of the option package is not installed
on the robot controller.
Following restoration, some option packages automatically install themselves
when the corresponding project is activated.
Option packages that do not automatically install themselves are available for
installation under Start-up > Additional software. A message on the robot
controller indicates that the option package must still be installed.
Menu items There are 2 menu items available for restoration. They differ with regard to the
source directory that is accessed.
Restore >
The source directory is D:\ProjectBackup as long as no other directory has
been configured.
Or Restore from ... >
A source directory can be selected here. It only applies to this restoration.
Precondition
No special preconditions are required for the restoration as such. If a
project is to be activated, the following preconditions must be met.
Procedure in 1. In the main menu, select File > Backup Manager > Restore > Projects
AUT / AUT EXT and options.
mode Or:
Select File > Backup Manager > Restore from ... > Projects and op-
tions and then select the source directory.
2. The robot controller displays a message for each project and option pack-
age when the restoration has been successfully completed.
When an option package has been restored, the package must first be
installed before the project can be activated. This is indicated by a
message on the robot controller.
If no option package has been restored, the robot controller begins to
activate the project without a request for confirmation.
3. For the further activation steps, see: (>>> 7.11.2 "Activating a project"
Page 251)
Procedure in 1. In the main menu, select File > Backup Manager > Restore > Projects
T1 / T2 mode and options.
Or:
Select File > Backup Manager > Restore from ... > Projects and op-
tions and then select the source directory.
2. The robot controller displays a message for each project and option pack-
age when the restoration has been successfully completed.
When an option package has been restored, the package must first be
installed before the project can be activated. This is indicated by a
message on the robot controller.
If no option package has been restored, the robot controller displays
the following request for confirmation:
Do you want to activate the project […]? In addition, a message is dis-
played as to whether the activation would overwrite a project, and if so,
which.
If no relevant project will be overwritten: Confirm with Yes within
30 minutes.
3. For the further activation steps, see: (>>> 7.11.2 "Activating a project"
Page 251)
Menu items There are 2 menu items available for restoration. They differ with regard to the
source directory that is accessed.
Restore >
The source directory is D:\ProjectBackup as long as no other directory has
been configured.
Or Restore from ... >
A source directory can be selected here. It only applies to this restoration.
Procedure 1. In the main menu, select File > Backup Manager > Restore > RDC data.
Or:
Select File > Backup Manager > Restore from ... > RDC data and then
select the source directory.
2. A window opens. Activate the check boxes next to the data that are to be
restored:
PID file, MAM file and/or CAL file
If an entry is grayed out and the check box is not activated, this means that
this file is not available in the backup.
3. Confirm the selection with Restore.
Once the restoration has been completed, the following message is dis-
played: RDC data successfully restored from {0}.
Procedure 1. In the main menu, select File > Backup Manager > Backup configura-
tion.
The Backup configuration window is opened.
2. Carry out the desired changes in the tabs.
Backup configuration contains the general settings.
Automatic saving can also be configured here if required.
I/O control can also be configured under Signal interface if required.
3. Close the window.
4. Respond to the request for confirmation asking whether the changes
should be saved by pressing Yes.
Backup configu-
ration
Item Description
1 Maximum number of subfolders for older backups
A backup does not overwrite existing backup files. Instead, a sub-
folder is automatically created and the files are transferred there.
When the maximum number of subfolders has been reached, the
oldest subfolder will be deleted during the next backup and a new
one will be created.
0 … 50
Default: 5
2 Activated: The active project is backed up during backup.
During restoration, only the project which was active during the
backup will be restored.
Deactivated (default): The following projects are backed up
during the backup: Active project, base project, initial project
These projects are restored during restoration.
Item Description
3 Activated (default): During backup, the robot controller stores
the projects and RDC data in the directory [Target path for
project backup]\[Robot name]\.
The robot controller accesses this directory during restoration.
Note: Select this setting if more than one robot controller uses
the same target path.
Deactivated: During backup, the robot controller stores the
projects and RDC data in the directory [Target path for proj-
ect backup]\.
The robot controller accesses this directory during restoration.
Note: Option packages are always stored under [Target path for
KOP backup]\OptionPackages\ irrespective of this setting.
4 Activated: The robot controller automatically carries out back-
ups. The following parameters determine the point in time:
Interval, Day, Time hh:mm
Note: After an automatic backup, the robot controller does not
display a message of successful completion.
If the robot controller was switched off at the configured time, it
carries out a backup as soon as it is switched on again. It only
carries out one backup, even if the time was missed more than
once.
Deactivated (default): No automatic backup.
5 Activated (default): The target directory for backups and the
source directory for restorations is D:\ProjectBackup.
Deactivated: The following parameters determine the target
directory for backups and the source directory for restorations:
Target path for project backup, Target path for KOP back-
up
The following parameters can only be edited if the option Back up and
restore locally (D:\ProjectBackup) is deactivated.
6 If during backup and/or restoration the robot controller must ac-
cess the network and an authentication is required, the data saved
here are used. If no authentication is required, the data have no ef-
fect.
User: User name
Default: user
Password: Password. On entry, only the number of characters
is displayed and not the characters themselves.
Default: kuka
7 For projects and RDC data: Target directory for backups and
source directory for restorations
It is possible to navigate to the desired directory or to enter it direct-
ly. In the latter case, the path is automatically created if it does not
already exist.
8 For KOP files: Target directory for backups and source directory for
restorations
It is possible to navigate to the desired directory or to enter it direct-
ly. In the latter case, the path is automatically created if it does not
already exist.
Signal interface
Item Description
1 Activated: Backups and restorations can be started via the in-
put signal configured under Start address.
Deactivated (default): Start is not possible via input signal.
The following parameters can only be edited if the option Activate
Remote Backup/Restore is activated.
2 Activated: The signals defined under Start address are as-
signed the following long text names:
BM input signal, BM output signal
If the signals already have long text names, these are not over-
written.
Deactivated (default): No long text names
If Activated was previously selected, Deactivated removes
the long text names.
3 Displays when the input signal starts a backup or restoration. (Dis-
play during the length of a signal)
(>>> "Input signals" Page 262)
4 Left-hand lamp: Status of the input Start address.
Right-hand lamp: Status of the input Start address + 1.
Status (cannot be edited): Green = 1; Gray = 0
Item Description
5 Input signal consisting of the following inputs:
Start address and Start address + 1.
Default: 1 026
6 Displays the action being executed or the result.
(>>> "Output signals" Page 262)
7 Left-hand lamp: Status of the output Start address.
Right-hand lamp: Status of the output Start address + 1.
Status (cannot be edited): Green = 1; Gray = 0
8 Output signal consisting of the following outputs:
Start address and Start address + 1.
Default: 4 095
9 Duration for which output signal 01 or 11 is present before the ro-
bot controller sets 00 again
Unit: ms
Default: 5,000 ms
Input signals
Signal → Created actions / display in the Status box
00 No action / Idle
01 Starts a backup / Backup
10 Starts a restoration / Restore
11 Undefined state
A continuously active input signal does not cause the action to repeat.
When a backup/restoration is running, no further backup/restoration can be
started.
Output signals The signals 01 and 11 are present during the time configured in Pulse dura-
tion [ms], after which point the signal switches to 00.
8 Program execution
Procedure 1. Touch the Program run mode status indicator. The Program run mode
window is opened.
2. Select the desired program run mode.
(>>> 8.2 "Program run modes" Page 263)
The window closes and the selected program run mode is applied.
Status
Designation Description
indicator
Go The program is executed through to
the end without stopping.
#GO
Motion The program is executed with a stop at
each point, including auxiliary points
#MSTEP
and spline segment points. The Start
key must be pressed again for each
point. The program is executed without
advance processing.
Single Step The program is executed with a stop
after each program line. The motion is
#ISTEP
also stopped after program lines that
cannot be seen and after blank lines.
The Start key must be pressed again
for each line. The program is executed
without advance processing.
Single Step is only available to the
user group “Expert”.
Backward This program run mode is automati-
cally selected if the Start backwards
#BSTEP
key is pressed. It is not possible to
select a different mode.
This mode works in the same way as
Motion, but with the following excep-
tion: CIRC motions are executed back-
wards in the same way as they were
last executed forwards, i.e. if the for-
ward motion was not stopped at the
auxiliary point, nor will the backward
motion be stopped there.
This exception does not apply in the
case of SCIRC motions. Here, the
backward motion is always stopped at
the auxiliary point.
The following additional program run modes are available for systems integra-
tors.
These program run modes can only be selected via the variable correction
function. System variable for the program run mode: $PRO_MODE.
Status
Designation Description
indicator
Program Step The program is executed step by step
without advance processing. Subpro-
#PSTEP
grams are executed completely.
Continuous Step Approximate positioning points are
executed with advance processing, i.e.
#CSTEP
they are approximated.
Exact positioning points are executed
without advance processing and with a
stop after the motion instruction.
The advance run is the maximum number of motion blocks that the robot con-
troller calculates and plans in advance during program execution. The actual
number is dependent on the capacity of the computer.
The advance run refers to the current position of the block pointer. It is set via
the system variable $ADVANCE:
Default value: 3
Maximum value: 5
The advance run is required, for example, in order to be able to calculate ap-
proximate positioning motions. If $ADVANCE = 0 is set, approximate position-
ing is not possible.
Certain statements trigger an advance run stop. These include statements
that influence the periphery, e.g. OUT statements.
Overview During program execution, the block pointer indicates various items of infor-
mation:
Which motion the robot is currently executing or has completed
Whether an auxiliary point or end point is currently being approached
The direction in which the robot is executing the program
Backwards
Backwards
Examples for
forward motion
Fig. 8-4: The robot has reached auxiliary point P6 with exact positioning
Examples for
backward motion
Fig. 8-10: The robot has reached auxiliary point P6 with exact position-
ing
Double upward/ If the program window shows a section in which the block pointer is not cur-
downward arrow rently located, a double arrow indicates the direction in which it is to be found.
Fig. 8-12: The block pointer is located lower down in the program
Description Program override is the velocity of the robot during program execution. The
program override is specified as a percentage of the programmed velocity.
In T1 mode, the maximum velocity is 250 mm/s, irrespective of the value that
is set.
Procedure 1. Touch the POV/HOV status indicator. The Overrides window is opened.
2. Set the desired program override. It can be set using either the plus/minus
keys or by means of the slide controller.
Plus/minus keys: The value can be set to 100%, 75%, 50%, 30%,
10%, 3%, 1%
Slide controller: The override can be adjusted in 1% steps.
3. Touch the POV/HOV status indicator again. (Or touch the area outside the
window.)
The window closes and the selected override value is applied.
The Jog options window can be opened via Options in the Over-
rides window.
Alternative Alternatively, the override can be set using the plus/minus key on the right of
procedure the smartPAD.
The value can be set to 100%, 75%, 50%, 30%, 10%, 3%, 1%.
Fig. 8-13
3. Carry out a BCO run: Press Start key and hold it down until the message
“Programmed path reached (BCO)” is displayed in the message window. The
robot stops.
5. Carry out a BCO run: Press Start key and hold it down until the message
“Programmed path reached (BCO)” is displayed in the message window. The
robot stops.
Description In order to restart an interrupted program from the beginning, it must be reset.
This returns the program to the initial state.
Alternative In the status bar, touch the Robot interpreter status indicator. A window
procedure opens.
Select Reset program.
Procedure 1. Select the program CELL.SRC in the Navigator. (This program is located
in the folder “R1”.)
2. Set program override to 100%. (This is the recommended setting. A differ-
ent value can be set if required.)
3. Carry out a BCO run:
Hold down the enabling switch. Then press the Start key and hold it down
until the message “Programmed path reached (BCO)” is displayed in the
message window.
The following applies to backward motion using the Start backwards key. It
does not apply to other backward motion functionalities, e.g. backward motion
as part of fault strategies in technology packages.
Procedure 1. Hold the enabling switch down and wait until the status bar indicates
“Drives ready”:
Functional During forward motion, the robot controller saves the executed motions in a
principle ring buffer. During backward motion, the motions are executed on the basis of
the saved information.
No backward motion possible once the buffer has been deleted:
The contents of the buffer are deleted in the following cases. Backward motion
is not possible again until motions have been executed in the forward direction
again.
Program is reset.
Program is deselected.
Lines are inserted into the program or deleted.
KRL instruction RESUME
Block selection to a motion other than the current one.
What is possible without restriction, however, is a block selection to any
segment point within the current spline block. This counts as block selec-
tion to the current motion, as the robot controller plans and executes the
spline block as one motion.
The robot controller deletes the buffer without generating a corresponding
message.
Torque/force The following applies to motions with torque or force mode or VectorMove:
mode, Backward motion is possible for conventional motions, but force/torque
VectorMove mode or VectorMove is automatically deactivated.
Spline motions cannot be executed backwards.
Description Weaving is not possible during backward motion. If weaving was carried out
during forward execution, the backward path will thus differ from the forward
path. The robot must therefore perform a BCO run for the backward path after
starting backward motion, even though it did not leave the path during forward
motion.
Precondition It is only possible to resume forward motion following backward motion if the
following preconditions are met:
Block selection is possible to the program line on which the backward
block pointer is currently located.
If the first motion to be executed forwards again is a conventional motion,
it must be completely programmed.
It is thus not possible, for example, to switch from backward motion to for-
ward motion if the first motion is a PTP_REL motion.
With few exceptions, this restriction does not apply in the case of spline
motions.
Response When the Start forward key is pressed for the first time following backward mo-
tion, the response is as follows:
If BCO exists, the program run mode most recently used in the forward di-
rection is automatically restored and the robot moves forwards on the
path.
If BCO does not exist, a BCO run is carried out. The program run mode
meanwhile remains set to #BSTEP. After the BCO run, the robot stops.
The Start forwards key must now be pressed again. The program run
mode most recently used in the forward direction is automatically restored
and the robot now moves forwards on the path.
If the switch from backwards to forwards occurs in a control structure, the robot
first moves forwards to the end of the control structure. It then stops with the
message Control structure next block {Block number}. The block number
specifies the first block after the control structure.
The start point of a motion is always the end point of the previous mo-
tion.
The robot guides the TCP along the fastest path to the end point. The fastest
path is generally not the shortest path and is thus not a straight line. As the
motions of the robot axes are rotational, curved paths can be executed faster
than straight paths.
The exact path of the motion cannot be predicted.
The robot guides the TCP at a defined velocity along a straight path to the end
point.
The robot guides the TCP at a defined velocity along a circular path to the end
point. The circular path is defined by a start point, auxiliary point and end point.
Approximate positioning means that the motion does not stop exactly at the
programmed point. Approximate positioning is an option that can be selected
during motion programming.
Approximate positioning is not possible if the motion instruction is followed by
an instruction that triggers an advance run stop.
Approximate positioning with a PTP motion
The TCP leaves the path that would lead directly to the end point and moves
along a faster path. During programming of the motion, the maximum distance
from the end point at which the TCP may deviate from its original path is de-
fined.
The path of an approximated PTP motion cannot be predicted. It is also not
possible to predict on which side of the approximated point the path will run.
Description The orientation of the TCP can be different at the start point and end point of
a motion. There are several different types of transition from the start orienta-
tion to the end orientation. A type must be selected when a CP motion is pro-
grammed.
The orientation control for LIN and CIRC motions is defined as follows:
In the option window Motion parameters
(>>> 10.2.8 "Option window “Motion parameters” (LIN, CIRC, PTP)"
Page 311)
Or via the system variable $ORI_TYPE
LIN motion
Orientation control Description
Option window: The orientation of the TCP remains con-
Constant orientation stant during the motion.
$ORI_TYPE = #CON- The programmed orientation is disregarded
STANT for the end point and that of the start point
is retained.
Option window: The orientation of the TCP changes contin-
Standard uously during the motion.
$ORI_TYPE = #VAR Note: If, with Standard, the robot passes
through a wrist axis singularity, use Wrist
PTP instead.
Option window: The orientation of the TCP changes contin-
Wrist PTP uously during the motion. This is done by
$ORI_TYPE = #JOINT linear transformation (axis-specific motion)
of the wrist axis angles.
Note: Use Wrist PTP if, with Standard, the
robot passes through a wrist axis singular-
ity.
The orientation of the TCP changes contin-
uously during the motion, but not uniformly.
Wrist PTP is thus not suitable if a specific
orientation must be maintained exactly, e.g.
in the case of laser welding.
CIRC motion During CIRC motions, the robot controller only takes the programmed orienta-
tion of the end point into consideration. The programmed orientation of the
auxiliary point is disregarded.
The same orientation control options are available for selection for CIRC mo-
tions as for LIN motions.
It is also possible to define for CIRC motions whether the orientation control is
to be base-related or path-related. This is defined via the system variable
$CIRC_TYPE.
Spline is a motion type that is particularly suitable for complex, curved paths.
Such paths can also be generated using approximated LIN and CIRC motions,
but splines have advantages, however.
The most versatile spline motion is the spline block. A spline block is used to
group together several motions as an overall motion. The spline block is
planned and executed by the robot controller as a single motion block.
The motions that may be included in a spline block are called spline segments.
They are taught separately.
A CP spline block can contain SPL, SLIN and SCIRC segments.
A PTP spline block can contain SPTP segments.
In addition to spline blocks, individual spline motions can also be programmed:
SLIN, SCIRC and SPTP.
Advantages of
spline blocks
The path is defined by means of points that are located on the path. The
desired path can be generated easily.
The programmed velocity is maintained better than with conventional mo-
tion types. There are few cases in which the velocity is reduced.
(>>> 9.7.1 "Velocity profile for spline motions" Page 285)
Furthermore, special constant velocity ranges can be defined in CP spline
blocks.
The path always remains the same, irrespective of the override setting, ve-
locity or acceleration.
Circles and tight radii are executed with great precision.
Disadvantages of
LIN/CIRC
The path is defined by means of approximated points that are not located
on the path. The approximate positioning ranges are difficult to predict.
Generating the desired path is complicated and time-consuming.
The path always remains the same, irrespective of the override setting, veloc-
ity or acceleration.
The robot controller already takes the physical limits of the robot into consid-
eration during planning. The robot moves as fast as possible within the con-
straints of the programmed velocity, i.e. as fast as its physical limits will allow.
This is an advantage over conventional LIN and CIRC motions for which the
physical limits are not taken into consideration during planning. It is only during
motion execution that these limits have any effect and can cause stops to be
triggered.
Reduction of the velocity
Prime examples of cases in which the velocity has to fall below the pro-
grammed velocity include:
Tight corners
Major reorientation
Large motions of the external axes
Motion in the vicinity of singularities
Reduction of the velocity due to major reorientation can be avoided with spline
segments by selecting the orientation control option Ignore orientation.
Reduction of the velocity due to major external axis motions can be avoided
for spline segments with $EX_AX_IGNORE.
Reduction of the velocity to 0
This is the case for:
Successive points with the same coordinates.
Successive SLIN and/or SCIRC segments. Cause: inconstant velocity di-
rection.
In the case of SLIN-SCIRC transitions, the velocity is also reduced to 0 if
the straight line is a tangent of the circle, as the circle, unlike the straight
line, is curved.
Exceptions:
In the case of successive SLIN segments that result in a straight line and
in which the orientations change uniformly, the velocity is not reduced.
Circles with the same center point and the same radius are some-
times programmed to obtain circles ≥ 360°. A simpler method is to
program a circular angle.
Spline block Block selection can be made to the segments of a spline block.
CP spline block:
The BCO run is executed as a conventional LIN motion. This is indicated
by means of a message that must be acknowledged.
PTP spline block:
The BCO run is executed as a conventional PTP motion. This is not indi-
cated by a message.
Following a block selection, the path is generally the same as if the spline were
to be executed during normal program execution.
Exceptions are possible if the spline has never yet been executed prior to the
block selection and the block selection is made here to the start of the spline
block:
The start point of the spline motion is the last point before the spline block, i.e.
the start point is outside the block. The robot controller saves the start point
during normal execution of a spline. In this way, it is already known in the case
of a block selection being carried out subsequently. If the spline block has nev-
er yet been executed, however, the start point is unknown.
If the Start key is pressed after the BCO run, the modified path is indicated by
means of a message that must be acknowledged.
Example: modified path in the case of block selection to P1
1 PTP P0
2 SPLINE
3 SPL P1
4 SPL P2
5 SPL P3
6 SPL P4
7 SCIRC P5, P6
8 SPL P7
9 SLIN P8
10 ENDSPLINE
Line Description
2 Header/start of the CP spline block
3…9 Spline segments
10 End of the CP spline block
SCIRC In the case of block selection to a SCIRC segment for which a circular angle
has been programmed, the motion is executed to the end point, taking into
consideration the circular angle, provided that the robot controller knows the
start point.
If the robot controller does not know the start point, the motion is executed to
the programmed end point. In this case, a message is generated, indicating
that the circular angle is not being taken into consideration.
In the case of a block selection to an individual SCIRC motion, the circular an-
gle is never taken into consideration.
SLIN P3
SPL P4
SCIRC P5, P6
SPL P7
SLIN P8
ENDSPLINE
Remedy:
Distribute the points more evenly
Program straight lines (except very short ones) as SLIN segments
All spline blocks and all individual spline motions can be approximated with
one another. It makes no difference whether they are CP or PTP spline blocks,
nor is the motion type of the individual motion relevant.
The motion type of the approximate positioning arc always corresponds to the
second motion. In the case of SPTP-SLIN approximation, for example, the ap-
proximate positioning arc is of type CP.
Spline motions cannot be approximated with conventional motions (LIN,
CIRC, PTP).
Approximation not possible due to time or advance run stops:
If approximation is not possible for reasons of time or due to an advance run
stop, the robot waits at the start of the approximate positioning arc.
In the case of time reasons: the robot moves again as soon as it has been
possible to plan the next block.
In the case of an advance run stop: the end of the current block is reached
at the start of the approximate positioning arc. This means that the ad-
vance run stop is canceled and the robot controller can plan the next block.
Robot motion is resumed.
In both cases, the robot now moves along the approximate positioning arc. Ap-
proximate positioning is thus technically possible; it is merely delayed.
This response differs from that for LIN, CIRC or PTP motions. If approximate
positioning is not possible for the reasons specified, the motion is executed to
the end point with exact positioning.
No approximate positioning in MSTEP and ISTEP:
In the program run modes MSTEP and ISTEP, the robot stops exactly at the
end point, even in the case of approximated motions.
In the case of approximate positioning from one spline block to another spline
block, the result of this exact positioning is that the path is different in the last
segment of the first block and in the first segment of the second block from the
path in program run mode GO.
In all other segments of both spline blocks, the path is identical in MSTEP,
ISTEP and GO.
Spline motion:
SPLINE
SLIN P1A
SPL P1B
SLIN P2
ENDSPLINE
Spline motion:
SPLINE WITH $VEL.CP=0.5
SLIN {Z 30}
SPL {Y 30, Z 10}
SLIN {Y 60}
ENDSPLINE
The start of the approximate positioning arc has been calculated from the ap-
proximate positioning criterion.
The SPL path does not yet correspond exactly to the approximate positioning
arc. For this reason, an additional SPL segment is inserted into the spline.
SPLINE WITH $VEL.CP=0.5
SLIN {Z 30}
SPL {Y 15, Z 15}
SPL {Y 30, Z 10}
SLIN {Y 60}
ENDSPLINE
With the additional point, the path now corresponds to the approximate posi-
tioning arc.
Description The orientation of the TCP can be different at the start point and end point of
a motion. When a CP spline motion is programmed, it is necessary to select
how to deal with the different orientations.
The orientation control type is defined as follows:
If programming with KRL syntax: by means of the system variable
$ORI_TYPE
If programming with inline forms: in the option window Motion parameters
SCIRC It is possible to define for SCIRC motions whether the orientation control is to
be space-related or path-related.
(>>> 9.8.1 "SCIRC: reference system for the orientation control" Page 296)
It is possible to define for SCIRC motions whether, and to what extent, the ori-
entation of the auxiliary point is to be taken into consideration. The orientation
behavior at the end point can also be defined.
(>>> 9.8.2 "SCIRC: orientation behavior" Page 296)
For CP spline motions with $ORI_TYPE = #VAR, the robot controller au-
tomatically decides for each motion (i.e. for each segment) whether to ex-
ecute it as #VAR or #JOINT.
$SPL_ORI_JOINT_AUTO = #ON is an alternative to using $ORI_TYPE =
#JOINT. While $ORI_TYPE = #JOINT can be used for specific individual mo-
tions, $SPL_ORI_JOINT_AUTO = #ON enables automatic optimization over
program sequences of any size with minimal effort for modification.
$SPL_ORI_JOINT_AUTO can only be modified using a robot program.
$SPL_ORI_JOINT_AUTO cannot be used in spline segments.
Default: $SPL_ORI_JOINT_AUTO = #OFF
Description During SCIRC motions, the robot controller can take the programmed orienta-
tion of the auxiliary point into consideration. The operator can define whether
and to what extent it is actually taken into consideration:
If programming with KRL syntax: by means of the system variable
$CIRC_MODE
If programming with inline forms: in the option window Motion parame-
ters, tab Circle configuration
In the case of SCIRC statements with circular angles, the same procedure can
also be used to define whether the end point is to have the programmed ori-
entation or whether the orientation is to be scaled according to the circular an-
gle.
$CIRC_MODE can only be written to by means of a SCIRC statement.
$CIRC_MODE cannot be read.
$CIRC_MODE.TARGET_PT.ORI = BehaviorEND
Explanation of
Element Description
the syntax
BehaviorAUX Data type: ENUM
#INTERPOLATE: At the auxiliary point, the TCP adopts
the programmed orientation.
#IGNORE: The robot controller ignores the pro-
grammed orientation of the auxiliary point. The transi-
tion from the start orientation of the TCP to the end
orientation is carried out over the shortest possible dis-
tance.
#CONSIDER (default):
There are essentially 2 paths for the transition from the
start orientation to the end orientation by means of a ro-
tation: a shorter one and a longer one. With #CONSID-
ER, the robot controller selects the path that comes
closest to the programmed orientation of the auxiliary
point. It is possible for the TCP to adopt the pro-
grammed orientation of the auxiliary point at some point
along the path. This is not necessarily the case, howev-
er.
BehaviorEND Data type: ENUM
#INTERPOLATE: The programmed orientation of the
end point is accepted at the actual end point.
(Only possibility for SCIRC without specification of cir-
cular angle. If #EXTRAPOLATE is set, #INTERPO-
LATE is nonetheless executed.)
#EXTRAPOLATE: The orientation is adapted to the cir-
cular angle:
If the circular angle makes the motion longer, the pro-
grammed orientation is accepted at the programmed
end point. The orientation is continued accordingly to
the actual end point.
If the circular angle makes the motion shorter, the pro-
grammed orientation is not reached.
(Default for SCIRC with specification of circular angle.)
Description The following orientations have been programmed for the TCP:
Start point: 0°
Auxiliary point: 98°
#INTERPOLATE At the auxiliary point, the TCP adopts the programmed orientation of 98°. The
re-orientation is 197°.
SP Start point
AuxP Auxiliary point
TP End point
#IGNORE The short re-orientation through 163° is used. The programmed orientation of
the auxiliary point is disregarded.
#CONSIDER
#CONSIDER is suitable if the user wants to specify the re-orientation
direction of the TCP without the need for a specific orientation at the
auxiliary point. The user can specify the direction using the auxiliary
point.
The programmed orientation of the auxiliary point is 98° and is thus on the lon-
ger path. The robot controller thus selects the longer path for the re-orienta-
tion.
#INTERPOLATE At TP, which is situated before TP_CA, the programmed orientation has not
yet been reached. The programmed orientation is accepted at TP_CA.
SP Start point
AuxP Auxiliary point
TP Programmed end point
TP_CA Actual end point. Determined by the circular angle.
#EXTRAPOLATE The programmed orientation is accepted at TP. For TP_CA, this orientation is
continued in accordance with the circular angle.
The circular angle specifies the overall angle of the motion. This makes it pos-
sible to extend the motion beyond the programmed end point or to shorten it.
The actual end point thus no longer corresponds to the programmed end point.
Unit: degrees. Circular angles greater than +360° and less than -360° can be
programmed.
The preceding sign determines the direction in which the circular path is exe-
cuted:
Positive: direction Start point › Auxiliary point › End point
Negative: direction Start point › End point › Auxiliary point
Overview The position (X, Y, Z) and orientation (A, B, C) values of the TCP are not suf-
ficient to define the robot position unambiguously, as different axis positions
are possible for the same TCP. Status and Turn serve to define an unambig-
uous position that can be achieved with different axis positions.
Status (S) and Turn (T) are integral parts of the data types POS and E6POS:
STRUC POS REAL X, Y, Z, A, B, C, INT S, T
STRUC E6POS REAL X, Y, Z, A, B, C, E1, E2, E3, E4, E5, E6, INT S, T
KRL program The robot controller only takes the programmed Status and Turn values into
consideration for PTP motions. They are ignored for CP motions.
The first motion instruction in a KRL program must therefore be one of the fol-
lowing instructions so that an unambiguous starting position is defined for the
robot:
A complete PTP instruction of type POS or E6POS
Or a complete PTP instruction of type AXIS or E6AXIS
“Complete” means that all components of the end point must be specified. The
default HOME position is always a complete PTP instruction.
Status and Turn can be omitted in the subsequent instructions:
The robot controller retains the previous Status value.
The Turn value is determined by the path in CP motions. In the case of
PTP motions, the robot controller selects the Turn value that results in the
shortest possible path.
9.10.1 Status
Bit 0 Bit 0 specifies the position of the intersection of the wrist axes (A4, A5, A6).
Position Value
Overhead area Bit 0 = 1
If the x-value of the intersection of the wrist axes, rela-
tive to the A1 coordinate system, is negative, the robot
is in the overhead area.
Basic area Bit 0 = 0
If the x-value of the intersection of the wrist axes, rela-
tive to the A1 coordinate system, is positive, the robot
is in the basic area.
Fig. 9-37: Example: The intersection of the wrist axes (red dot) is in the
basic area.
Bit 1 Bit 1 specifies the position of axis 3. The angle at which the value of bit 1
changes depends on the robot type.
For robots whose axes 3 and 4 intersect, the following applies:
Position Value
A3 ≥ 0° Bit 1 = 1
A3 < 0° Bit 1 = 0
For robots with an offset between axis 3 and axis 4, the angle at which the val-
ue of bit 1 changes depends on the size of this offset.
The sign preceding the angle of A5 is irrelevant! What counts is the direction
in which A5 is tilted, i.e. upwards or downwards. The direction is specified with
reference to the zero position of A4.
Bit 4 Bit 4 specifies whether or not the point was taught using an absolutely accu-
rate robot.
Depending on the value of the bit, the point can be executed by both absolute-
ly accurate robots and non-absolutely-accurate robots. Bit 4 is for information
purposes only and has no influence on how the robot calculates the point. This
means, therefore, that when a robot is programmed offline, bit 4 can be ig-
nored.
Description Value
The point was not taught with an absolutely accurate Bit 4 = 0
robot.
The point was taught with an absolutely accurate robot. Bit 4 = 1
9.10.2 Turn
Description The Turn specification makes it possible to move axes through angles greater
than +180° or less than -180° without the need for special motion strategies
(e.g. auxiliary points). With rotational axes, the individual bits determine the
sign before the axis value in the following way:
Bit = 0: angle ≥ 0°
Bit = 1: angle < 0°
Axis Angle
A1 negative
A2 negative
A3 positive
A4 positive
A5 negative
A6 positive
9.11 Singularities
Overhead In the overhead singularity, the wrist root point (intersection of axes A4, A5 and
A6) is located vertically above axis 1.
The position of axis A1 cannot be determined unambiguously by means of re-
verse transformation and can thus take any value.
If the end point of a PTP motion is situated in this overhead singularity position,
the robot controller may react as follows by means of the system variable
$SINGUL_POS[1]:
0: The angle for axis A1 is defined as 0 degrees (default setting).
1: The angle for axis A1 remains the same from the start point to the end
point.
Extended In the extended position singularity, the wrist root point (intersection of axes
position A4, A5 and A6) is located in the extension of axes A2 and A3 of the robot.
The robot is at the limit of its work envelope.
Although reverse transformation does provide unambiguous axis angles, low
Cartesian velocities result in high axis velocities for axes A2 and A3.
If the end point of a PTP motion is situated in this extended position singularity,
the robot controller may react as follows by means of the system variable
$SINGUL_POS[2]:
0: The angle for axis A2 is defined as 0 degrees (default setting).
1: The angle for axis A2 remains the same from the start point to the end
point.
Wrist axes In the wrist axis singularity position, the axes A4 and A6 are parallel to one an-
other and axis A5 is within the range ±0.01812°.
The position of the two axes cannot be determined unambiguously by reverse
transformation. There is an infinite number of possible axis positions for axes
A4 and A6 with identical axis angle sums.
If the end point of a PTP motion is situated in this wrist axis singularity, the ro-
bot controller may react as follows by means of the system variable
$SINGUL_POS[3]:
0: The angle for axis A4 is defined as 0 degrees (default setting).
1: The angle for axis A4 remains the same from the start point to the end
point.
Names for data sets can be entered in inline forms. These include, for exam-
ple, point names, names for motion data sets, etc.
The following restrictions apply to names:
Maximum length 23 characters
No special characters are permissible, with the exception of $.
The first character must not be a number.
The restrictions do not apply to output names.
Other restrictions may apply in the case of inline forms in technology packag-
es.
Procedure 1. Move the TCP to the position that is to be taught as the end point.
2. Position the cursor in the line after which the motion instruction is to be in-
serted.
3. Select the menu sequence Commands > Motion > PTP.
4. Set the parameters in the inline form.
(>>> 10.2.2 "Inline form “PTP”" Page 308)
5. Save instruction with Cmd Ok.
Item Description
1 Motion type PTP
2 Name of the end point
The system automatically generates a name. The name can be
overwritten.
(>>> 10.1 "Names in inline forms" Page 307)
Touch the arrow to edit the point data. The corresponding option
window is opened.
(>>> 10.2.7 "Option window “Frames”" Page 310)
3 CONT: end point is approximated.
[Empty box]: the motion stops exactly at the end point.
4 Velocity
1 … 100%
5 Name for the motion data set
The system automatically generates a name. The name can be
overwritten.
Touch the arrow to edit the point data. The corresponding option
window is opened.
(>>> 10.2.8 "Option window “Motion parameters” (LIN, CIRC,
PTP)" Page 311)
Procedure 1. Move the TCP to the position that is to be taught as the end point.
2. Position the cursor in the line after which the motion instruction is to be in-
serted.
3. Select the menu sequence Commands > Motion > LIN.
4. Set the parameters in the inline form.
(>>> 10.2.4 "Inline form “LIN”" Page 309)
5. Save instruction with Cmd Ok.
Item Description
1 Motion type LIN
2 Name of the end point
The system automatically generates a name. The name can be
overwritten.
(>>> 10.1 "Names in inline forms" Page 307)
Touch the arrow to edit the point data. The corresponding option
window is opened.
(>>> 10.2.7 "Option window “Frames”" Page 310)
3 CONT: end point is approximated.
[Empty box]: the motion stops exactly at the end point.
4 Velocity
0.001 … 2 m/s
5 Name for the motion data set
The system automatically generates a name. The name can be
overwritten.
Touch the arrow to edit the point data. The corresponding option
window is opened.
(>>> 10.2.8 "Option window “Motion parameters” (LIN, CIRC,
PTP)" Page 311)
Procedure 1. Move the TCP to the position that is to be taught as the auxiliary point.
2. Position the cursor in the line after which the motion instruction is to be in-
serted.
3. Select the menu sequence Commands > Motion > CIRC.
4. Set the parameters in the inline form.
(>>> 10.2.6 "Inline form “CIRC”" Page 310)
5. Press Teach Aux.
6. Move the TCP to the position that is to be taught as the end point.
7. Save instruction with Cmd Ok.
Item Description
1 Motion type CIRC
2 Name of the auxiliary point
The system automatically generates a name. The name can be
overwritten.
(>>> 10.1 "Names in inline forms" Page 307)
3 Name of the end point
The system automatically generates a name. The name can be
overwritten.
Touch the arrow to edit the point data. The corresponding option
window is opened.
(>>> 10.2.7 "Option window “Frames”" Page 310)
4 CONT: end point is approximated.
[Empty box]: the motion stops exactly at the end point.
5 Velocity
0.001 … 2 m/s
6 Name for the motion data set
The system automatically generates a name. The name can be
overwritten.
Touch the arrow to edit the point data. The corresponding option
window is opened.
(>>> 10.2.8 "Option window “Motion parameters” (LIN, CIRC,
PTP)" Page 311)
Item Description
1 Tool selection.
If True in the box External TCP: workpiece selection.
Range of values: [1] … [16]
2 Base selection.
If True in the box External TCP: fixed tool selection.
Range of values: [1] … [32]
3 Interpolation mode
False: The tool is mounted on the mounting flange.
True: The tool is a fixed tool.
4 True: For this motion, the robot controller calculates the axis
torques. These are required for collision detection.
False: For this motion, the robot controller does not calculate
the axis torques. Collision detection is thus not possible for this
motion.
Item Description
1 Acceleration
Refers to the maximum value specified in the machine data. The
maximum value depends on the robot type and the selected oper-
ating mode.
Item Description
2 This box is only displayed if it is specified in the inline form that the
point is to be approximated.
Furthest distance before the end point at which approximate posi-
tioning can begin
The maximum permissible value is half the distance between the
start point and the end point. If a higher value is entered, this is
ignored and the maximum value is used.
3 This box is only displayed for LIN and CIRC motions.
Orientation control selection.
Standard
Wrist PTP
Constant orientation
(>>> 9.6 "Orientation control LIN, CIRC" Page 280)
It is only possible to exploit the advantages of the spline motion type to the
full if spline blocks are used.
Interrupt programs must not contain any spline motions.
A spline block should cover only one process (e.g. an adhesive seam).
More than one process in a spline block leads to a loss of structural clarity
within the program and makes changes more difficult.
Use SLIN and SCIRC segments in cases where the workpiece necessi-
tates straight lines and arcs. (Exception: use SPL segments for very short
straight lines.) Otherwise, use SPL segments, particularly if the points are
close together.
Procedure for defining the path:
a. First teach or calculate a few characteristic points. Example: points at
which the curve changes direction.
b. Test the path. At points where the accuracy is still insufficient, add
more SPL points.
Avoid successive SLIN and/or SCIRC segments, as this often reduces the
velocity to 0.
Program SPL segments between SLIN and SCIRC segments. The length
of the SPL segments must be at least > 0.5 mm. Depending on the actual
path, significantly larger SPL segments may be required.
Avoid successive points with identical Cartesian coordinates, as this re-
duces the velocity to 0.
The parameters (tool, base, velocity, etc.) assigned to the spline block
have the same effect as assignments before the spline block. The assign-
ment to the spline block has the advantage, however, that the correct pa-
rameters are read in the case of a block selection.
Use the option Ignore orientation if no specific orientation is required for
a SLIN, SCIRC or SPL segment. The robot controller calculates the opti-
mal orientation for this point on the basis of the orientations of the sur-
rounding points. This improves the cycle time.
If there are external axes present and no specific position of the external
axis is required for a spline segment, set $EX_AX_IGNORE to “1” for that
external axis. The robot controller then calculates the optimal position for
this point on the basis of the surrounding external axis positions. This im-
proves the cycle time.
The jerk can be modified The jerk is the change in acceleration. Proce-
dure:
a. Use the default values initially.
b. If vibrations occur at tight corners: reduce values.
If the velocity drops or the desired velocity cannot be reached: in-
crease values or increase acceleration.
If the robot executes points which lie on a work surface, a collision with the
work surface is possible when approaching the first point.
In the case of PTP spline blocks with multiple SPTP segments, it is possi-
ble that the software limit switches may be violated even though the points
are within the limits!
In this case, the points must be re-taught, i.e. they must be moved further
away from the software limit switches. Alternatively, the software limit
switches can be modified, provided that the required machine protection
is still assured.
Description A spline block can be used to group together several motions as an overall
motion. The motions that may be included in a spline block are called spline
segments. They are taught separately.
A spline block is planned and executed by the robot controller as a single mo-
tion block.
A CP spline block may contain SPL, SLIN and SCIRC segments.
A PTP spline block may contain SPTP segments.
A spline block that contains no segments is not a motion statement. The num-
ber of segments in the block is only limited by the memory capacity. Apart from
the segments, a spline block may also contain the following elements:
Inline commands from technology packages that support the spline func-
tionality
The start point of a spline block is the last point before the spline
block.
The end point of a spline block is the last point in the spline block.
A spline block does not trigger an advance run stop.
Procedure 1. Position the cursor in the line after which the spline block is to be inserted.
2. Select the menu sequence Commands > Motion.
Then select SPLINE block for a CP spline block.
Or select PTP SPLINE block for a PTP spline block.
3. Set the parameters in the inline form.
(>>> 10.3.2.1 "Inline form for CP spline block" Page 314)
(>>> 10.3.2.2 "Inline form “PTP SPLINE block”" Page 315)
4. Press Cmd OK.
5. Press Open/close fold. Spline segments can now be inserted into the
block.
Item Description
1 Name of the spline block. The system automatically generates a
name. The name can be overwritten.
(>>> 10.1 "Names in inline forms" Page 307)
Position the cursor in this box to edit the motion data. The corre-
sponding option window is opened.
(>>> 10.3.2.3 "Option window “Frames” (CP and PTP spline
block)" Page 315)
2 CONT: end point is approximated.
[Empty box]: the motion stops exactly at the end point.
3 Cartesian velocity
0.001 … 2 m/s
4 Name for the motion data set. The system automatically gener-
ates a name. The name can be overwritten.
Position the cursor in this box to edit the motion data. The corre-
sponding option window is opened.
(>>> 10.3.2.4 "Option window “Motion parameters” (CP spline
block)" Page 316)
Item Description
1 Name of the spline block. The system automatically generates a
name. The name can be overwritten.
(>>> 10.1 "Names in inline forms" Page 307)
Position the cursor in this box to edit the motion data. The corre-
sponding option window is opened.
(>>> 10.3.2.3 "Option window “Frames” (CP and PTP spline
block)" Page 315)
2 CONT: end point is approximated.
[Empty box]: the motion stops exactly at the end point.
3 Axis velocity
1 … 100%
4 Name for the motion data set. The system automatically gener-
ates a name. The name can be overwritten.
Position the cursor in this box to edit the motion data. The corre-
sponding option window is opened.
(>>> 10.3.2.5 "Option window “Motion parameters” (PTP spline
block)" Page 317)
Fig. 10-10: Option window “Frames” (CP and PTP spline block)
Item Description
1 Tool selection.
Or: If True in the box External TCP: workpiece selection.
[1] … [16]
2 Base selection.
Or: If True in the box External TCP: fixed tool selection.
[1] … [32]
3 Interpolation mode
False: The tool is mounted on the mounting flange.
True: The tool is a fixed tool.
Item Description
1 Axis velocity. The value refers to the maximum value specified in
the machine data.
1 … 100%
2 Axis acceleration. The value refers to the maximum value speci-
fied in the machine data.
1 … 100%
3 Gear jerk. The jerk is the change in acceleration.
The value refers to the maximum value specified in the machine
data.
1 … 100%
4 Orientation control selection.
5 Orientation control reference system selection.
This parameter only affects SCIRC segments (if present).
6 This box is only displayed if CONT was selected in the inline form.
Furthest distance before the end point at which approximate posi-
tioning can begin.
The maximum distance is that of the last segment in the spline. If
there is only one segment present, the maximum distance is half
the segment length. If a higher value is entered, this is ignored
and the maximum value is used.
Item Description
1 Axis acceleration. The value refers to the maximum value speci-
fied in the machine data.
1 … 100%
2 This box is only displayed if CONT was selected in the inline form.
Furthest distance before the end point at which approximate posi-
tioning can begin.
The maximum distance is that of the last segment in the spline. If
there is only one segment present, the maximum distance is half
the segment length. If a higher value is entered, this is ignored
and the maximum value is used.
3 Gear jerk. The jerk is the change in acceleration.
The value refers to the maximum value specified in the machine
data.
1 … 100%
By default, not all boxes of the inline form are displayed. The boxes can be dis-
played or hidden using the Switch parameter button.
Item Description
1 Motion type
SPL, SLIN or SCIRC
2 Only for SCIRC: Point name for the auxiliary point.
The system automatically generates a name. The name can be
overwritten.
(>>> 10.1 "Names in inline forms" Page 307)
3 Point name for the end point. The system automatically generates
a name. The name can be overwritten.
Touch the arrow to edit the point data. The corresponding option
window is opened.
(>>> 10.3.3.6 "Option window “Frames” (CP and PTP spline seg-
ments)" Page 321)
Item Description
4 Cartesian velocity
By default, the value that is valid for the spline block is also valid
for the segment. A separate value can be assigned here for the
segment if required. The value applies only for this segment.
0.001 … 2 m/s
5 Name for the motion data set. The system automatically gener-
ates a name. The name can be overwritten.
By default, the values that are valid for the spline block are also
valid for the segment. Separate values can be assigned here for
the segment if required. The values apply only for this segment.
Touch the arrow to edit the data. The corresponding option win-
dow is opened.
(>>> 10.3.3.7 "Option window “Motion parameters” (CP spline
segment)" Page 321)
6 Circular angle
Only available if the motion type SCIRC has been selected.
- 9 999° … + 9 999°
If a value less than -400° or greater than +400° is entered, a
request for confirmation is generated when the inline form is
saved asking whether entry is to be confirmed or rejected.
7 Name of the data set containing logic parameters. The system
automatically generates a name. The name can be overwritten.
Touch the arrow to edit the data. The corresponding option win-
dow is opened.
(>>> 10.3.3.9 "Option window “Logic parameters”" Page 323)
By default, not all boxes of the inline form are displayed. The boxes can be dis-
played or hidden using the Switch parameter button.
Item Description
1 Motion type SPTP
2 Point name for end point. The system automatically generates a
name. The name can be overwritten.
(>>> 10.1 "Names in inline forms" Page 307)
Touch the arrow to edit the point data. The corresponding option
window is opened.
(>>> 10.3.3.6 "Option window “Frames” (CP and PTP spline seg-
ments)" Page 321)
3 Axis velocity
By default, the value that is valid for the spline block is also valid
for the segment. A separate value can be assigned here for the
segment if required. The value applies only for this segment.
1 … 100%
4 Name for the motion data set. The system automatically gener-
ates a name. The name can be overwritten.
By default, the values that are valid for the spline block are also
valid for the segment. Separate values can be assigned here for
the segment if required. The values apply only for this segment.
Touch the arrow to edit the point data. The corresponding option
window is opened.
(>>> 10.3.3.8 "Option window “Motion parameters” (SPTP)"
Page 322)
5 Name of the data set containing logic parameters. The system
automatically generates a name. The name can be overwritten.
Touch the arrow to edit the data. The corresponding option win-
dow is opened.
(>>> 10.3.3.9 "Option window “Logic parameters”" Page 323)
Fig. 10-15: Option window “Frames” (CP and PTP spline segments)
Item Description
1 True: For this motion, the robot controller calculates the axis
torques. These are required for collision detection.
False: For this motion, the robot controller does not calculate
the axis torques. Collision detection is thus not possible for this
motion.
Motion param-
eters
Item Description
1 Axis velocity. The value refers to the maximum value specified in
the machine data.
1 … 100%
2 Axis acceleration. The value refers to the maximum value speci-
fied in the machine data.
1 … 100%
3 Gear jerk. The jerk is the change in acceleration.
The value refers to the maximum value specified in the machine
data.
1 … 100%
4 Orientation control selection
5 Only in the case of SCIRC segments: Orientation control refer-
ence system selection
Circle configu-
ration
Item Description
6 Only in the case of SCIRC segments: Selection of orientation
behavior at auxiliary point
7 Only in the case of SCIRC segments: This box is only displayed if
ANGLE was selected in the inline form.
Selection of orientation behavior at end point
Item Description
1 Axis acceleration. The value refers to the maximum value speci-
fied in the machine data.
1 … 100%
Item Description
2 This box is not available for SPTP segments. In the case of indi-
vidual SPTP motions, this box is only displayed if CONT was
selected in the inline form.
Furthest distance before the end point at which approximate posi-
tioning can begin.
The maximum permissible value is half the distance between the
start point and the end point. If a higher value is entered, this is
ignored and the maximum value is used.
3 Gear jerk. The jerk is the change in acceleration.
The value refers to the maximum value specified in the machine
data.
1 … 100%
Trigger Trigger
Item Description
1 A (further) trigger can be assigned to the motion by means of the
button Select action > Add trigger. If it is the first trigger for this
motion, this command also causes the Trigger box to be dis-
played.
A maximum of 8 triggers per motion are possible.
(A trigger can be removed again by means of Select action > Re-
move trigger.)
2 Reference point of the trigger
TRUE: Start point
FALSE: End point
(>>> 11.11.2.1 "Reference point for approximate positioning –
overview" Page 428)
Item Description
3 Spatial offset relative to the end or start point
Negative value: Offset towards the start of the motion
Positive value: Offset towards the end of the motion
(>>> "Max. offset" Page 426)
The shift in space can also be taught. In this case, the box Start
point is reference point is automatically set to FALSE.
(>>> 10.3.3.10 "Teaching the shift in space for logic parameters"
Page 326)
4 Shift in time relative to Offset
Negative value: Shift towards the start of the motion.
Positive value: Trigger is switched after Time has elapsed.
(>>> "Max. offset" Page 426)
5 Statement that is to be initiated by the trigger. The following are
possible:
Assignment of a value to a variable
Note: There must be no runtime variable on the left-hand side
of the assignment.
OUT statement; PULSE statement; CYCFLAG statement
Subprogram call. In this case, the priority must be specified.
Example: my_subprogram() PRIO = 81
Priorities 1, 2, 4 to 39 and 81 to 128 are available. Priorities 40
to 80 are reserved for cases in which the priority is automati-
cally assigned by the system. If the priority is to be assigned
automatically by the system, the following is programmed:
PRIO = -1.
If several triggers call subprograms at the same time, the trig-
ger with the highest priority is processed first, then the triggers
of lower priority. 1 = highest priority.
Item Description
1 Stop condition. The following are permitted:
a global Boolean variable
a signal name
a comparison
a simple logic operation: NOT, OR, AND or EXOR
2 The conditional stop can refer to either the start point or the end
point of the motion.
TRUE: Start point
FALSE: End point
If the reference point is approximated, the same rules apply as for
the PATH trigger.
(>>> 11.11.2.1 "Reference point for approximate positioning –
overview" Page 428)
3 The stop point can be shifted in space. For this, the desired dis-
tance from the start or end point must be specified. If no shift in
space is desired, enter “0”.
Positive value: Offset towards the end of the motion
Negative value: Offset towards the start of the motion
There are limits to the distance the stop point can be offset. The
same limits apply as for the PATH trigger. (>>> "Max. offset"
Page 426)
The shift in space can also be taught. In this case, the box Start
point is reference point is automatically set to FALSE.
(>>> 10.3.3.10 "Teaching the shift in space for logic parameters"
Page 326)
Item Description
1 Start: Defines the start of the constant velocity range.
End: Defines the end of the constant velocity range.
2 Start and End can refer to either the start point or the end point of
the motion.
TRUE: Start or End refers to the start point.
If the start point is approximated, the reference point is gener-
ated in the same way as for homogenous approximate posi-
tioning with the PATH trigger.
(>>> 11.11.2.2 "Reference point for homogenous approxi-
mate positioning" Page 429)
FALSE: Start or End refers to the end point.
If the end point is approximated, Start or End refers to the start
of the approximate positioning arc.
3 The start or end of the constant velocity range can be shifted in
space. For this, the desired distance must be specified. If no shift
in space is desired, enter “0”.
Positive value: Offset towards the end of the motion
Negative value: Offset towards the start of the motion
(>>> 10.3.6.2 "Maximum limits" Page 337)
The shift in space can also be taught. In this case, the box Start
point is reference point is automatically set to FALSE.
(>>> 10.3.3.10 "Teaching the shift in space for logic parameters"
Page 326)
Description Shifts in space can be specified in the option window Logic parameters for
trigger, conditional stop and constant velocity range. Instead of entering these
offsets numerically, they can also be taught.
If an offset is taught, the box Start point is reference point in the cor-
responding tab is automatically set to FALSE, as the taught distance
refers to the end point of the motion.
Item Description
1 Motion type SLIN
2 Point name for end point. The system automatically generates a
name. The name can be overwritten.
(>>> 10.1 "Names in inline forms" Page 307)
Touch the arrow to edit the point data. The corresponding option
window is opened.
(>>> 10.2.7 "Option window “Frames”" Page 310)
3 CONT: end point is approximated.
[Empty box]: the motion stops exactly at the end point.
4 Velocity
0.001 … 2 m/s
Item Description
5 Name for the motion data set. The system automatically gener-
ates a name. The name can be overwritten.
Touch the arrow to edit the point data. The corresponding option
window is opened.
(>>> 10.3.4.3 "Option window “Motion parameters” (SLIN)"
Page 328)
6 This box can be displayed or hidden by means of Switch param-
eter.
Name of the data set containing logic parameters. The system
automatically generates a name. The name can be overwritten.
Touch the arrow to edit the data. The corresponding option win-
dow is opened.
(>>> 10.3.3.9 "Option window “Logic parameters”" Page 323)
Item Description
1 Axis velocity. The value refers to the maximum value specified in
the machine data.
1 … 100%
2 Axis acceleration. The value refers to the maximum value speci-
fied in the machine data.
1 … 100%
3 Gear jerk. The jerk is the change in acceleration.
The value refers to the maximum value specified in the machine
data.
1 … 100%
4 Orientation control selection.
5 This box is only displayed if CONT was selected in the inline form.
Furthest distance before the end point at which approximate posi-
tioning can begin.
The maximum permissible value is half the distance between the
start point and the end point. If a higher value is entered, this is
ignored and the maximum value is used.
Item Description
1 Motion type SCIRC
2 Point name for the auxiliary point.
The system automatically generates a name. The name can be
overwritten.
(>>> 10.1 "Names in inline forms" Page 307)
3 Point name for the end point.
The system automatically generates a name. The name can be
overwritten.
Touch the arrow to edit the point data. The corresponding option
window is opened.
(>>> 10.2.7 "Option window “Frames”" Page 310)
4 CONT: end point is approximated.
[Empty box]: the motion stops exactly at the end point.
5 Velocity
0.001 … 2 m/s
Item Description
6 Name for the motion data set. The system automatically gener-
ates a name. The name can be overwritten.
Touch the arrow to edit the point data. The corresponding option
window is opened.
(>>> 10.3.4.6 "Option window “Motion parameters” (SCIRC)"
Page 330)
7 Circular angle
- 9 999° … + 9 999°
If a circular angle less than -400° or greater than +400° is entered,
a request for confirmation is generated when the inline form is
saved asking whether entry is to be confirmed or rejected.
8 This box can be displayed or hidden by means of Switch param-
eter.
Name of the data set containing logic parameters. The system
automatically generates a name. The name can be overwritten.
Touch the arrow to edit the data. The corresponding option win-
dow is opened.
(>>> 10.3.3.9 "Option window “Logic parameters”" Page 323)
Motion param-
eters
Item Description
1 Axis velocity. The value refers to the maximum value specified in
the machine data.
1 … 100%
2 Axis acceleration. The value refers to the maximum value speci-
fied in the machine data.
1 … 100%
3 Gear jerk. The jerk is the change in acceleration.
The value refers to the maximum value specified in the machine
data.
1 … 100%
4 Orientation control selection
Item Description
5 Orientation control reference system selection
6 This box is only displayed if CONT was selected in the inline form.
Furthest distance before the end point at which approximate posi-
tioning can begin.
The maximum permissible value is half the distance between the
start point and the end point. If a higher value is entered, this is
ignored and the maximum value is used.
Circle configu-
ration
Item Description
7 Selection of orientation behavior at auxiliary point
8 This box is only displayed if ANGLE was selected in the inline
form.
Selection of orientation behavior at end point
Item Description
1 Motion type SPTP
2 Point name for end point. The system automatically generates a
name. The name can be overwritten.
(>>> 10.1 "Names in inline forms" Page 307)
Touch the arrow to edit the point data. The corresponding option
window is opened.
(>>> 10.2.7 "Option window “Frames”" Page 310)
3 CONT: end point is approximated.
[Empty box]: the motion stops exactly at the end point.
4 Velocity
1 … 100%
5 Name for the motion data set. The system automatically gener-
ates a name. The name can be overwritten.
Touch the arrow to edit the point data. The corresponding option
window is opened.
(>>> 10.3.3.8 "Option window “Motion parameters” (SPTP)"
Page 322)
6 This box can be displayed or hidden by means of Switch param-
eter.
Name of the data set containing logic parameters. The system
automatically generates a name. The name can be overwritten.
Touch the arrow to edit the data. The corresponding option win-
dow is opened.
(>>> 10.3.3.9 "Option window “Logic parameters”" Page 323)
Description The “conditional stop” enables the user to define a point on the path at which
the robot stops if a certain condition is met. This point is called the “stop point”.
As soon as the condition is no longer met, the robot resumes its motion.
During the runtime, the robot controller calculates the latest point at which the
robot must brake in order to be able to stop at the stop point. From this point
(braking point) onwards, it monitors whether or not the condition is met.
If the condition is met at the braking point, the robot brakes in order to stop
at the stop point.
If, however, the condition then switches back to “not met” before the stop
point is reached, the robot accelerates again and does not stop.
If the condition is not met at the braking point, the robot motion is continued
without braking.
Essentially, any number of conditional stops can be programmed. A maximum
of 10 “braking point → stop point” paths may overlap, however.
While the robot is braking, the robot controller displays the following message
in T1/T2 mode: Conditional stop active (line {Line number}).
(>>> 10.3.5.2 "Stop condition: example and braking characteristics"
Page 334)
This inline form may only be used before a spline block. There may be other
statements between the inline form and the spline block, but no motion instruc-
tions.
Item Description
1 Point to which the conditional stop refers
With ONSTART: last point before the spline block
Without ONSTART: last point in the spline block
If the spline is approximated, the same rules apply as for the
PATH trigger.
Note: Information about approximate positioning with the PATH
trigger is contained in the Operating and Programming Instruc-
tions for System Integrators.
ONSTART can be set or removed using the Toggle OnStart but-
ton.
2 The stop point can be shifted in space. For this, the desired dis-
tance from the reference point must be specified. If no shift in
space is desired, enter “0”.
Positive value: Offset towards the end of the motion
Negative value: Offset towards the start of the motion
There are limits to the distance the stop point can be offset. The
same limits apply as for the PATH trigger.
The shift in space can also be taught.
(>>> "Teach path" Page 334)
3 Stop condition. The following are permitted:
a global Boolean variable
a signal name
a comparison
a simple logic operation: NOT, OR, AND or EXOR
Example The indentations are not present by default and have been inserted here for
greater clarity.
Line Description
4 If the input $IN[77] is FALSE, the robot stops 50 mm after P2
and waits until $IN[77] is TRUE.
Point Description
BP Braking Point: The robot must start braking here in order to
stop at the stop point.
From this point onwards, the robot controller monitors
whether or not the stop condition is met.
The position of BP depends on the velocity and the override
setting and cannot be identified by the operator.
SP Stop Point
The distance P2 → SP is 50 mm long.
Braking charac-
Situation at BP Behavior of the robot
teristics
$IN[77] == FALSE The robot brakes and stops at SP.
$IN[77] == TRUE The robot does not brake and does
not stop at SP. The program is exe-
cuted as if the STOP WHEN PATH
statement were not present.
1. $IN[77] == FALSE at BP. 1. The robot brakes at BP.
2. The input switches to TRUE be- 2. If the input is TRUE, the robot
tween BP and SP. accelerates again and does not
stop at SP.
1. $IN[77] == TRUE at BP. 1. The robot does not brake at BP.
2. The input switches to FALSE 2. If the input is FALSE, the robot
between BP and SP. stops with a path-maintaining
EMERGENCY STOP and
comes to a standstill at an un-
predictable point.
If the stop condition is not met until the robot has already passed BP, it is too
late to stop at SP with a normal braking ramp. In this case, the robot stops with
a path-maintaining EMERGENCY STOP and comes to a standstill at an un-
predictable point.
If the EMERGENCY STOP causes the robot to stop after SP, the program
cannot be resumed until the stop condition is no longer met.
If the path-maintaining EMERGENCY STOP causes the robot to stop be-
fore SP, the following occurs when the program is resumed:
If the stop condition is no longer met, the robot resumes its motion.
If the stop condition is still met, the robot moves as far as SP and stops
there.
Description In a CP spline block, a range can be defined in which the robot maintains the
programmed velocity constant where possible. This range is called the “con-
stant velocity range”.
1 constant velocity range can be defined per CP spline block.
A constant velocity range is defined by a start statement and an end state-
ment.
The range cannot extend beyond the spline block.
There is no lower limit to the size of the range.
If it is not possible to maintain the programmed velocity constant, the robot
controller indicates this by means of a message during program execution.
Constant velocity range over several segments:
A constant velocity range can extend over several segments with different pro-
grammed velocities. In this case, the lowest of the velocities is valid for the
whole range.
Even in the segments with a higher programmed velocity, the motion is exe-
cuted with the lowest velocity in this case. No message is generated indicating
that the velocity has not been maintained. This only occurs if the lowest veloc-
ity cannot be maintained.
Description If a block selection to a constant velocity range is carried out, the robot con-
troller ignores it and generates a corresponding message. The motions are ex-
ecuted as if no constant velocity range were programmed.
A block selection to the path section defined by the offset values is considered
as a block selection to the constant velocity range. The motion blocks in which
the start and end of the range are programmed, however, are irrelevant.
Example
The folds in the program are expanded. The indentations are not present by
default and have been inserted here for greater clarity.
The start of the constant velocity range is at P1 in the program. The end is at
P4. What counts, however, when deciding what constitutes a block selection
to the constant velocity range is where the range is located on the path:
If the start or end point of the spline block is an exact positioning point:
The constant velocity range starts at the start point at the earliest.
The constant velocity range ends at the end point at the latest.
If the offset value is such that these limits would be exceeded, the robot con-
troller automatically reduces the offset and generates the following message:
CONST_VEL {Start/End} = {Offset} cannot be implemented; {New offset} will
be used.
The robot controller reduces the offset far enough to create a range in which
the constant programmed velocity can be maintained. In other words, it does
not necessarily shift the limit exactly to the start or end point of the spline block,
but possibly further inwards.
The same message is generated if the range is already in the spline block be-
forehand, but the defined velocity cannot be maintained due to the offset. In
this case, once again, the robot controller reduces the offset.
If the start or end point of the spline block is approximated:
The constant velocity range starts at the start of the approximate position-
ing arc of the start point at the earliest.
The constant velocity range ends at the start of the approximate position-
ing arc of the end point at the latest.
If the offset is such that these limits would be exceeded, the robot controller
automatically sets the limit to the start of the corresponding approximate posi-
tioning arc. It does not generate a message.
Procedure 1. Select the points (= the motion blocks) for which the distance is to be dis-
played. Multiple consecutive blocks can also be selected.
2. Select the menu sequence Edit > Marked region > Cart. distance.
A window opens. It displays the following information:
The Cartesian coordinates of the first selected point
The Cartesian coordinates of the last selected point
The distance between the coordinates in millimeters and degrees
The distance between the TCP position at the first and last point in mil-
limeters and degrees
3. Select other points if required.
4. Press Refresh to update the display.
Procedure 1. Position the cursor in the line containing the instruction that is to be
changed.
2. Press Change. The inline form for this instruction is opened.
3. Modify parameters.
4. Save changes by pressing Cmd Ok.
Procedure 1. Select the motion instructions to be modified. (Only consecutive motion in-
structions can be modified as a block.)
2. Press Change. The inline form of the first selected motion block opens.
3. Modify parameters.
4. Press Cmd OK. The changes will be applied to the selected motion blocks
where possible.
Some changes will not be applied in every motion block, e.g. it is not pos-
sible to apply the PTP parameter Velocity in a LIN motion block.
Description The coordinates of a taught point can be modified. This is done by moving to
the new position and overwriting the old point with the new position.
Procedure 1. Select the motion instructions to be modified. (Only consecutive motion in-
structions can be modified as a block.)
2. Select the menu sequence Edit > Marked region. Select transformation
type.
The corresponding window is opened.
(>>> 10.5.4.1 "“Axis mirroring” window" Page 342)
(>>> 10.5.4.2 "“Transform - Axis Specific” window" Page 343)
(>>> 10.5.4.3 "“Transform - Cartesian Base” window" Page 344)
3. Enter values for the transformation and press Calculate.
Axis A5 is rotated by the angle ∆α. The new position of point P is P*.
Mirroring Mirroring:
Mirroring in the XY plane of the ROBROOT coordinate system.
Points P1, P2 and P3 are mirrored in the XY plane (1). The new positions of
the points are P1*, P2* and P3*.
Following mirroring of the coordinates, the tool used must also be mir-
rored in the XZ plane.
Button Description
Calculate Mirrors the coordinates of the selected motion
points in the XZ plane, converts the coordinates
to axis angles and applies the new values.
Undo Undoes the mirroring and restores the old point
data.
Only selected points with a complete E6POS definition are copied. This in-
cludes, for example, all those that were generated via inline forms during pro-
gramming. Points without a complete E6POS definition are ignored during the
point offset.
Item Description
1 Selection of the transformation type
2 Rotation group: input boxes for the position offset of axes A1
... A6
Range of values: Dependent on the configuration of the
axis-specific workspaces
E1 .. E6 switches to the External axes group: input boxes for
the position offset of axes E1 ... E6
Note: Values can only be entered for configured axes.
Button Description
E1 .. E6/A1 .. A6 Toggles between the Rotation and External
axes groups.
Button Description
Undo Undoes the transformation and restores the old
point data.
Calculate Calculates the point transformation and applies it
to all selected motion points.
If the transformation would cause a point to be
situated outside the configured workspace, the
point is not transformed.
Only selected points with a complete E6POS definition are copied. This in-
cludes, for example, all those that were generated via inline forms during pro-
gramming. Points without a complete E6POS definition are ignored during the
point offset.
Item Description
1 Selection of the transformation type
2 Position group: input boxes for the point transformation in the X,
Y, Z direction
Range of values: Dependent on the configuration of the Carte-
sian workspaces
3 Orientation group: input boxes for the transformation of the A, B,
C orientation
Range of values: Dependent on the configuration of the Carte-
sian workspaces
Button Description
Undo Undoes the transformation and restores the old
point data.
Calculate Calculates the point transformation and applies it
to all selected motion points.
If the transformation would cause a point to be
situated outside the configured workspace, the
point is not transformed.
Only selected points with a complete E6POS definition are copied. This in-
cludes, for example, all those that were generated via inline forms during pro-
gramming. Points without a complete E6POS definition are ignored during the
point offset.
10.6.1 Inputs/outputs
Digital inputs/outputs
The robot controller can manage up to 8192 digital inputs and 8192 digital out-
puts. 4096 inputs/outputs are available by default.
Analog inputs/outputs
The robot controller can manage 32 analog inputs and 32 analog outputs.
The inputs/outputs are managed via the following system variables:
Inputs Outputs
Digital $IN[1] … $IN[8192] $OUT[1] … $OUT[8192]
Analog $ANIN[1] … $ANIN[32] $ANOUT[1] … $ANOUT[32]
$ANIN[…] indicates the input voltage, adapted to the range between -1.0 and
+1.0. The actual voltage depends on the settings of the analog module.
$ANOUT[…] can be used to set an analog voltage. $ANOUT[…] can have val-
ues from -1.0 to +1.0 written to it. The voltage actually generated depends on
the settings of the analog module. If an attempt is made to set voltages outside
the range of values, the robot controller displays the following message: Limit
{Signal name}
Procedure 1. Position the cursor in the line after which the logic instruction is to be in-
serted.
2. Select the menu sequence Commands > Logic > OUT > OUT.
3. Set the parameters in the inline form.
(>>> 10.6.3 "Inline form “OUT”" Page 345)
4. Save instruction with Cmd Ok.
Item Description
1 Output number
2 If a name exists for the output, this name is displayed.
Only for the user group “Expert”:
A name can be entered by pressing Long text. The name is freely
selectable.
3 State to which the output is switched
TRUE
FALSE
4 CONT: Execution in the advance run
[Empty box]: Execution with advance run stop
Procedure 1. Position the cursor in the line after which the logic instruction is to be in-
serted.
2. Select the menu sequence Commands > Logic > OUT > PULSE.
3. Set the parameters in the inline form.
(>>> 10.6.5 "Inline form “PULSE”" Page 346)
4. Save instruction with Cmd Ok.
Item Description
1 Output number
2 If a name exists for the output, this name is displayed.
Only for the user group “Expert”:
A name can be entered by pressing Long text. The name is freely
selectable.
3 State to which the output is switched
TRUE: “High” level
FALSE: “Low” level
4 CONT: Execution in the advance run
[Empty box]: Execution with advance run stop
5 Length of the pulse
0.10 … 3.00 s
Procedure 1. Position the cursor in the line after which the instruction is to be inserted.
2. Select Commands > Analog output > Static or Dynamic.
3. Set the parameters in the inline form.
(>>> 10.6.7 "Inline form “ANOUT” (static)" Page 347)
(>>> 10.6.8 "Inline form “ANOUT” (dynamic)" Page 347)
4. Save instruction with Cmd Ok.
This instruction sets a static analog output. The voltage is set to a fixed level
by means of a factor. The actual voltage level depends on the analog module
used. For example, a 10 V module with a factor of 0.5 provides a voltage of
5 V.
ANOUT triggers an advance run stop.
Item Description
1 Number of the analog output
CHANNEL_1 … CHANNEL_32
2 Factor for the voltage
0 … 1 (intervals: 0.01)
Item Description
1 Activation or deactivation of the analog output
ON
OFF
2 Number of the analog output
CHANNEL_1 … CHANNEL_32
3 Factor for the voltage
0 … 10 (intervals: 0.01)
4 VEL_ACT: The voltage is dependent on the velocity.
TECHVAL[1] … TECHVAL[6]: The voltage is controlled by a
function generator.
5 Value by which the voltage is increased or decreased
-1 … +1 (intervals: 0.01)
6 Time by which the output signal is delayed (+) or brought forward
(-)
-0.2 … +0.5 s
Procedure 1. Position the cursor in the line after which the logic instruction is to be in-
serted.
2. Select the menu sequence Commands > Logic > WAIT.
3. Set the parameters in the inline form.
(>>> 10.6.10 "Inline form “WAIT”" Page 348)
4. Save instruction with Cmd Ok.
WAIT can be used to program a wait time. The robot motion is stopped for a
programmed time. WAIT always triggers an advance run stop.
Item Description
1 Wait time
≥0s
Procedure 1. Position the cursor in the line after which the logic instruction is to be in-
serted.
2. Select the menu sequence Commands > Logic > WAITFOR.
3. Set the parameters in the inline form.
(>>> 10.6.12 "Inline form “WAITFOR”" Page 349)
4. Save instruction with Cmd Ok.
Item Description
1 Add external logic operation. The operator is situated between the
bracketed expressions.
AND
OR
EXOR
Add NOT.
NOT
[Empty box]
Enter the desired operator by means of the corresponding button.
2 Add internal logic operation. The operator is situated inside a
bracketed expression.
AND
OR
EXOR
Add NOT.
NOT
[Empty box]
Enter the desired operator by means of the corresponding button.
3 Signal for which the system is waiting
IN
OUT
CYCFLAG
TIMER
FLAG
4 Number of the signal
Item Description
5 If a name exists for the signal, this name is displayed.
Only for the user group “Expert”:
A name can be entered by pressing Long text. The name is freely
selectable.
6 CONT: Execution in the advance run
[Empty box]: Execution with advance run stop
Procedure 1. Position the cursor in the line after which the logic instruction is to be in-
serted.
2. Select the menu sequence Commands > Logic > OUT > SYN OUT.
3. Set the parameters in the inline form.
(>>> 10.6.14 "Inline form “SYN OUT”, option “START/END”" Page 350)
(>>> 10.6.15 "Inline form “SYN OUT”, option “PATH”" Page 353)
4. Save instruction with Cmd Ok.
The switching action can be triggered relative to the start or end point of the
motion. The switching action can be delayed or brought forward. The motion
can be a LIN, CIRC or PTP motion.
Possible applications include:
Closing or opening the weld gun during spot welding
Switching the welding current on/off during arc welding
Starting or stopping the flow of adhesive in bonding or sealing applica-
tions.
Item Description
1 Output number
2 If a name exists for the output, this name is displayed.
Only for the user group “Expert”:
A name can be entered by pressing Long text. The name is freely
selectable.
3 State to which the output is switched
TRUE
FALSE
Item Description
4 Point to which SYN OUT refers:
START: Start point of the motion
END: End point of the motion
5 Switching action delay
-1,000 … +1,000 ms
Note: The time specification is absolute, i.e. the switching point
varies according to the velocity of the robot.
Example 1 Start point and end point are exact positioning points.
LIN P1 VEL=0.3m/s CPDAT1
LIN P2 VEL=0.3m/s CPDAT2
SYN OUT 1 '' State= TRUE at START Delay=20ms
SYN OUT 2 '' State= TRUE at END Delay=-20ms
LIN P3 VEL=0.3m/s CPDAT3
LIN P4 VEL=0.3m/s CPDAT4
Fig. 10-49
Fig. 10-50
Fig. 10-51
Switching limits:
START: The switching point can be situated, at the earliest, at the end of
the approximate positioning range of P2.
The switching point can be delayed, at most, as far as the start of the ap-
proximate positioning range of P3 (+ ms).
END: The switching point can be brought forward, at most, as far as the
start of the approximate positioning range of P3 (-).
The switching point can be delayed, at most, as far as the end of the ap-
proximate positioning range of P3 (+).
If greater values are specified for the delay, the controller automatically switch-
es at the switching limit.
The switching action refers to the end point of the motion. The switching action
can be shifted in space and delayed or brought forward. The motion can be a
LIN or CIRC motion. It must not be a PTP motion.
Item Description
1 Output number
2 If a name exists for the output, this name is displayed.
Only for the user group “Expert”:
A name can be entered by pressing Long text. The name is freely
selectable.
3 State to which the output is switched
TRUE
FALSE
4 PATH: SYN OUT refers to the end point of the motion.
5 This box is only displayed if PATH has been selected.
Distance from the switching point to the end point
-2,000 … +2,000 mm
6 Switching action delay
-1,000 … +1,000 ms
Note: The time specification is absolute, i.e. the switching point
varies according to the velocity of the robot.
Fig. 10-53
Fig. 10-54
Switching limits:
The switching point can be brought forward, at most, as far as the start of
the approximate positioning range of P1.
The switching point can be delayed, at most, as far as the next exact po-
sitioning point P4. If P3 was an exact positioning point, the switching point
could be delayed, at most, as far as P3.
If greater values are specified for the shift in space or time, the controller au-
tomatically switches at the switching limit.
Procedure 1. Position the cursor in the line after which the logic instruction is to be in-
serted.
2. Select the menu sequence Commands > Logic > OUT > SYN PULSE.
3. Set the parameters in the inline form.
(>>> 10.6.17 "Inline form “SYN PULSE”" Page 355)
4. Save instruction with Cmd Ok.
SYN PULSE can be used to trigger a pulse at the start or end point of the mo-
tion. The pulse can be shifted in time and/or space, i.e. it does not have to be
triggered exactly at the point, but can also be triggered before or after it.
Item Description
1 Output number
2 If a name exists for the output, this name is displayed.
Only for the user group “Expert”:
A name can be entered by pressing Long text. The name is freely
selectable.
3 State to which the output is switched
TRUE
FALSE
4 Duration of the pulse
0.1 … 3 s
Item Description
5 Point to which SYN PULSE refers:
START: Start point of the motion
END: End point of the motion
See SYN OUT for examples and switching limits.
(>>> 10.6.14 "Inline form “SYN OUT”, option “START/END”"
Page 350)
PATH: SYN PULSE refers to the end point. An offset in space
is also possible.
See SYN OUT for examples and switching limits.
(>>> 10.6.15 "Inline form “SYN OUT”, option “PATH”" Page 353)
6 Distance from the switching point to the end point
-2,000 … +2,000 mm
This box is only displayed if PATH has been selected.
7 Switching action delay
-1,000 … +1,000 ms
Note: The time specification is absolute. The switching point var-
ies according to the velocity of the robot.
Procedure 1. Position the cursor in the line containing the instruction that is to be
changed.
2. Press Change. The inline form for this instruction is opened.
3. Change the parameters.
4. Save changes by pressing Cmd Ok.
Motion programming
PTP (>>> 11.5.1 "PTP" Page 368)
LIN, CIRC (>>> 11.5.3 "LIN, CIRC" Page 369)
PTP_REL (>>> 11.5.2 "PTP_REL" Page 368)
LIN_REL, CIRC_REL (>>> 11.5.4 "LIN_REL, CIRC_REL" Page 370)
SPLINE … ENDSPLINE (>>> 11.6.1 "SPLINE ... ENDSPLINE" Page 375)
PTP_SPLINE … ENDSPLINE (>>> 11.6.2 "PTP_SPLINE ... ENDSPLINE" Page 376)
SLIN, SCIRC, SPL (>>> 11.6.3 "SLIN, SCIRC, SPL" Page 377)
SLIN_REL, SCIRC_REL, SPL_REL (>>> 11.6.4 "SLIN_REL, SCIRC_REL, SPL_REL"
Page 378)
SPTP (>>> 11.6.5 "SPTP" Page 380)
SPTP_REL (>>> 11.6.6 "SPTP_REL" Page 381)
TIME_BLOCK (>>> 11.6.8 "TIME_BLOCK" Page 383)
CONST_VEL (>>> 11.6.9 "CONST_VEL" Page 386)
STOP WHEN PATH (>>> 11.6.10 "STOP WHEN PATH" Page 389)
Inputs/outputs
ANIN (>>> 11.8.1 "ANIN" Page 403)
ANOUT (>>> 11.8.2 "ANOUT" Page 404)
PULSE (>>> 11.8.3 "PULSE" Page 405)
SIGNAL (>>> 11.8.4 "SIGNAL" Page 409)
Interrupt programming
BRAKE (>>> 11.10.1 "BRAKE" Page 416)
INTERRUPT (>>> 11.10.3 "INTERRUPT" Page 418)
INTER- (>>> 11.10.2 "INTERRUPT ... DECL ... WHEN ... DO"
RUPT … DECL … WHEN … DO Page 417)
RESUME (>>> 11.10.4 "RESUME" Page 420)
Communication
(>>> 11.12 "Communication" Page 432)
Operators
Arithmetic operators (>>> 11.13.1 "Arithmetic operators" Page 433)
Geometric operator (>>> 11.13.2 "Geometric operator" Page 434)
Relational operators (>>> 11.13.3 "Relational operators" Page 437)
Logic operators (>>> 11.13.4 "Logic operators" Page 438)
Bit operators (>>> 11.13.5 "Bit operators" Page 438)
Priority of the operators (>>> 11.13.6 "Priority of the operators" Page 440)
System functions
DELETE_BACKWARD_BUFFER() (>>> 11.14.1 "DELETE_BACKWARD_BUFFER()"
Page 441)
ROB_STOP() (>>> 11.14.2 "ROB_STOP() and
ROB_STOP_RELEASE()" Page 442)
SET_BRAKE_DELAY() (>>> 11.14.3 "SET_BRAKE_DELAY()" Page 443)
VARSTATE() (>>> 11.14.4 "VARSTATE()" Page 446)
The following symbols and fonts are used in the syntax descriptions:
A KRL program generally consists of an SRC file and a DAT file of the same
name.
SRC file: contains the program code.
DAT file: contains permanent data and point coordinates. The DAT file is
also called a data list.
The SRC file and associated DAT file together are called a module.
Depending on the user group, programs in the Navigator are displayed as
modules or individual files:
User group "User"
A program is displayed as a module. The SRC file and the DAT file exist
in the background. They are not visible for the user and cannot be edited
individually.
User group "Expert"
By default, the SRC file and the DAT file are displayed individually. They
can be edited individually.
Names Examples of names in KRL: variable names, program names, point names
Names in KRL can have a maximum length of 24 characters.
In some cases, less than 24 characters are allowed, e.g. a maximum of
23 characters in inline forms.
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.
Other restrictions may apply in the case of inline forms in technology packag-
es.
The names of all system variables begin with the “$” sign. To avoid
confusion, 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 … ENDSWITCH. For this reason, CASE must not be used
in any other way, e.g. as a variable name.
The system distinguishes between reserved and non-reserved keywords:
Reserved keywords
These may only be used with their defined meaning.
Non-reserved keywords
With non-reserved keywords, the meaning is restricted to a particular con-
text. Outside of this context, a non-reserved keyword is interpreted by the
compiler as a name.
AXIS ENDFCT
BOOL ENDFOR
CHAR ENDIF
CAST_FROM ENDLOOP
CAST_TO ENDSWITCH
CCLOSE ENDWHILE
CHANNEL EXT
CIOCTL EXTFCT
CONFIRM FALSE
CONST FRAME
COPEN GLOBAL
CREAD INT
CWRITE MAXIMUM
DEF MINIMUM
DEFAULT POS
DEFDAT PRIO
DEFFCT PUBLIC
E6AXIS SREAD
E6POS SWRITE
END REAL
ENDDAT TRUE
STRUC E6POS REAL X, Y, Z, A, B, C, E1, E2, E3, E4, E5, E6, INT S, T
Local
Data object Area of validity
Variable If the object was defined in an SRC file:
Signal It is valid in the program routine in which it was defined, i.e. between DEF
and END (main program OR local subprogram).
Variables defined in an SRC file are called “runtime variables”.
If the object was defined in a DAT file:
It is valid in the SRC file that belongs to the DAT file.
Constant Valid in the module to which the data list in which the constant was declared
belongs.
User-defined If the data type was defined in an SRC file: it is valid at, or below, the pro-
data type gram level in which it was declared.
If the data type was defined in a DAT file: it is valid in the SRC file that be-
longs to the DAT file.
Subprogram Valid in the main program of the shared SRC file.
Function Valid in the main program of the shared SRC file.
Interrupt Valid at, or below, the programming level in which it was declared.
Example of function:
...
END
-------------------------------
GLOBAL DEFFCT INT MY_FCT(my_var:IN)
...
Example of interrupt:
GLOBAL INTERRUPT DECL 23 WHEN $IN[12]==TRUE DO UP1(20,VALUE)
11.3.4.2 Making variables, constants, signals and user data types available globally
Variables, signals and user-defined data types can be made available globally
via a data list or $CONFIG.DAT.
Constants must always be declared and, at the same time, initialized in a data
list. For this reason, they can only be made available globally via a data list.
Data list Making the object available globally via a data list:
1. Insert the keyword PUBLIC into the program header of the data list:
DEFDAT MY_PROG PUBLIC
GLOBAL can only be used for variables, signals and user-defined data types
if they have been declared in a data list.
PUBLIC is used exclusively for the purpose described here, i.e. together with
GLOBAL in data lists for making specific data objects available globally. PUB-
LIC on its own has no effect.
Restriction Data types defined in a data list using the keyword GLOBAL must not be used
in $CONFIG.DAT.
Example:
In DEFDAT PROG(), the enumeration type SWITCH_TYP has been defined
with the keyword GLOBAL:
DEFDAT PROG()
If this data type is used in $CONFIG.DAT, the compiler signals the error “Type
unknown: *** DECL SWITCH_TYP MY_VAR”.
DEFDAT $CONFIG
11.3.5 Constants
11.4.1 DECL
Example 1 Declarations with predefined data types. The keyword DECL can also be omit-
ted.
DECL INT X
DECL INT X1, X2
DECL REAL ARRAY_A[7], ARRAY_B[5], A
11.4.2 ENUM
Example 2 An enumeration type with the name SWITCH_TYPE and the constants ON
and OFF is defined.
DEF PROG()
ENUM SWITCH_TYP ON, OFF
DECL SWITCH_TYP GLUE
IF A>10 THEN
GLUE=#ON
ELSE
GLUE=#OFF
ENDIF
END
Restriction Data types defined in a data list using the keyword GLOBAL must not be used
in $CONFIG.DAT.
Example:
In DEFDAT PROG(), the enumeration type SWITCH_TYP has been defined
with the keyword GLOBAL:
DEFDAT PROG()
If this data type is used in $CONFIG.DAT, the compiler signals the error “Type
unknown: *** DECL SWITCH_TYP MY_VAR”.
DEFDAT $CONFIG
11.4.3 STRUC
Description Definition of a structure type (= STRUC data type). Several data types are
combined to form a new data type.
Value assignment There are 2 ways of assigning values to variables based on a STRUC data
type:
Assignment of values to several components of a variable: with an aggre-
gate
Assignment of a value to a single component of a variable: with the point
separator
Information regarding the aggregate:
The values of an aggregate can be simple constants or themselves aggre-
gates; they may not, however, be variables (see also Example 3).
Not all components of the structure have to be specified in an aggregate.
The components do not need to be specified in the order in which they
have been defined.
Each component may only be contained once in an aggregate.
The name of the structure type can be specified at the beginning of an ag-
gregate, separated by a colon.
A variable based on a structure type does not have to be initialized with an ag-
gregate. It is also possible to initialize the components individually with the
point separator.
Modification of an individual component using the point separator:
MYCAR.AIR_COND = FALSE
Example 2 Definition of a structure type S_TYPE with the component NUMBER of data
type REAL and of the array component TEXT[80] of data type CHAR.
11.5.1 PTP
Description Executes a point-to-point motion to the end point. The coordinates of the end
point are absolute.
Example 2 End point specified in axis-specific coordinates. The end point is approximat-
ed.
PTP {A1 10,A2 -80.6,A3 -50,A4 0,A5 14.2, A6 0} C_DIS
Example 3 End point specified with only 2 components. For the rest of the components,
the controller takes the values of the previous position.
PTP {Z 500,X 123.6}
11.5.2 PTP_REL
Description Executes a point-to-point motion to the end point. The coordinates of the end
point are relative to the current position.
A REL statement always refers to the current position of the robot. For
this reason, if a REL motion is interrupted, the robot executes the en-
tire REL motion again, starting from the position at which it was inter-
rupted.
For information about the response of the robot controller in the case of infi-
nitely rotating axes: (>>> 11.5.6 "REL motions for infinitely rotating axes"
Page 374)
Example 1 Axis 2 is moved 30 degrees in a negative direction. None of the other axes
moves.
PTP_REL {A2 -30}
Example 2 The robot moves 100 mm in the X direction and 200 mm in the negative Z di-
rection from the current position. Y, A, B, C and S remain constant. T is calcu-
lated in relation to the shortest path.
PTP_REL {X 100,Z -200}
Description LIN:
LIN executes a linear motion to the end point. The coordinates of the end point
are absolute.
CIRC:
CIRC executes a circular motion. An auxiliary point and an end point must be
specified in order for the controller to be able to calculate the circular motion.
The coordinates of the auxiliary point and end point are absolute.
Syntax LIN:
LIN End point <Approximation>
CIRC:
CIRC Auxiliary point, End point<, CA Circular angle> <Approximation>
Examples End point with two components. For the rest of the components, the controller
takes the values of the previous position.
LIN {Z 500,X 123.6}
The end point of the circular motion is defined by a circular angle of 260°. The
end point is approximated.
CIRC {X 5,Y 0, Z 9.2},{X 12.3,Y 0,Z -5.3,A 9.2,B -5,C 20}, CA 260
C_ORI
Description LIN_REL:
LIN_REL executes a linear motion to the end point. The coordinates of the end
point are relative to the current position.
CIRC_REL:
CIRC_REL executes a circular motion. An auxiliary point and an end point
must be specified in order for the controller to be able to calculate the circular
motion. The coordinates of the auxiliary point and end point are relative to the
current position.
A REL statement always refers to the current position of the robot. For
this reason, if a REL motion is interrupted, the robot executes the en-
tire REL motion again, starting from the position at which it was inter-
rupted.
For information about the response of the robot controller in the case of infi-
nitely rotating axes: (>>> 11.5.6 "REL motions for infinitely rotating axes"
Page 374)
Syntax LIN_REL:
LIN_REL End point <Approximation> <#BASE|#TOOL>
CIRC_REL:
CIRC_REL Auxiliary point, End point<, CA Circular angle> <Approximation>
<#BASE|#TOOL>
Element Description
Approxima- Approximation causes the end point to be approximated. At
tion the same time, this parameter defines the earliest point at
which the approximate positioning can begin.
(>>> 11.5.5 "Approximation parameters for PTP, LIN CIRC
and …_REL" Page 372)
#BASE, #BASE (default): The coordinates of this end point refer
#TOOL to the coordinate system that belongs to the physical
base.
#TOOL: The coordinates of this end point refer to the
coordinate system that belongs to the physical tool.
$IPO_MODE has no influence on the meaning of #BASE
and #TOOL.
Examples Example 1:
The TCP moves 100 mm in the X direction and 200 mm in the negative Z di-
rection from the current position in the BASE coordinate system. Y, A, B, C
and S remain constant. T is determined by the motion.
LIN_REL {X 100,Z -200}
Example 2:
The TCP moves 100 mm from the current position in the negative X direction
in the TOOL coordinate system. Y, Z, A, B, C and S remain constant. T is de-
termined by the motion.
This example is suitable for moving the tool backwards against the tool direc-
tion. The precondition is that the tool direction has been calibrated along the
X axis.
LIN_REL {X -100} #TOOL
Example 3:
The end point of the circular motion is defined by a circular angle of 500°. The
end point is approximated.
CIRC_REL {X 100,Y 3.2,Z -20},{Y 50},CA 500 C_VEL
Parameter Description
C_PTP Approximation starts, at the earliest, when half the dis-
tance between the start point and end point relative to
the contour of the motion without approximation has
been covered.
C_DIS Approximation starts, at the earliest, when the distance
to the end point falls below the value of $APO.CDIS.
Parameter Description
C_ORI Approximation starts, at the earliest, when the dominant
orientation angle falls below the value of $APO.CORI.
C_VEL Approximation starts, at the earliest, when the velocity
in the deceleration phase to the end point falls below the
value of $APO.CVEL.
The robot controller calculates the approximate positioning radius which would
result from each of the two parameters C_PTP and C_DIS under the current
conditions (velocity, etc.). Only the smaller of the two radii then actually has an
effect. It is the earliest limit at which approximate positioning can begin.
LIN, CIRC, The parameter must be C_DIS, C_VEL or C_ORI for CP-CP approximation. If
LIN_REL, a second parameter is specified, the robot controller ignores it.
CIRC_REL Two parameters can be specified for CP-PTP approximation. Of the two pa-
rameters, the one resulting in the smaller approximate positioning radius in the
given situation takes effect.
Possible combinations for CP-PTP approximation:
Description
Motion Description
SPTP_REL The end position is calculated directly by
For external axes only: adding the start position to the value spec-
ified in the REL statement. The overall
SLIN_REL, SCIRC_REL, length of the resulting path is irrelevant.
SPL_REL
PTP_REL The axis only moves to positions with the
For external axes only: following interval:
Examples Let A6 and E1 be infinitely rotating axes with the start position 120°.
Let the position at X be = 1500 mm.
Example 1:
Example 3:
The statements do not contain any specification of the robot position. This im-
plicitly corresponds to: {X 0, Y 0, Z 0, A 0, B 0, C 0}
The Cartesian robot position thus remains unchanged in both cases.
Example 4:
External axis motions are always axis-specific. They are thus specified in de-
grees, even in these statements that only allow Cartesian coordinates for robot
positions.
The start point of a spline block is the last point before the spline
block.
The end point of a spline block is the last point in the spline block.
A spline block does not trigger an advance run stop.
Syntax SPLINE < WITH SysVar1 = Value1 <, SysVar2 = Value2, … > >
Segment1
…
<SegmentN>
ENDSPLINE <C_SPL>
In System Software 8.2 and earlier, the identifier for approximate po-
sitioning with spline was “C_DIS”. If programs based on 8.2 or older
versions are used in higher versions of 8.x and contain C_DIS, this
can be retained and does not have to be changed to C_SPL.
Example SPLINE
SPL P1
TRIGGER WHEN PATH=GET_PATH() ONSTART DELAY=0 DO <subprog> PRIO=-1
SPL P2
SLIN P3
SPL P4
SCIRC P5, P6 WITH $VEL.CP=0.2
SPL P7 WITH $ACC={CP 2.0, ORI1 200, ORI2 200}
SCIRC P8, P9
SPL P10
ENDSPLINE
Description PTP_SPLINE … ENDSPLINE defines a PTP spline block. A PTP spline block
may contain:
SPTP segments (number limited only by the memory capacity)
PATH trigger
1 time block (TIME_BLOCK …)
STOP WHEN PATH
Comments
Blank lines
The block must not include any other instructions, e.g. variable assignments
or logic statements.
The start point of a spline block is the last point before the spline
block.
The end point of a spline block is the last point in the spline block.
A spline block does not trigger an advance run stop.
Syntax PTP_SPLINE < WITH SysVar1 = Value1 <, SysVar2 = Value2, … > >
Segment1
…
<SegmentN>
ENDSPLINE <C_SPL>
Syntax SLIN:
SLIN End point <WITH SysVar1 = Value1 <, SysVar2 = Value2, …, >> <C_SPL>
SCIRC:
SCIRC Auxiliary point, End point <, CA Circular angle> <WITH SysVar1 = Value1
<,SysVar2 = Value2 , … >> <C_SPL>
SPL:
SPL End point <WITH SysVar1 = Value1 <, SysVar2 = Value2 , …>>
In System Software 8.2 and earlier, the identifier for approximate po-
sitioning with spline was “C_DIS”. If programs based on 8.2 or older
versions are used in higher versions of 8.x and contain C_DIS, this
can be retained and does not have to be changed to C_SPL.
SPL_REL:
SPL_REL can be programmed as a segment in a CP spline block.
For information about the response of the robot controller in the case of infi-
nitely rotating axes: (>>> 11.5.6 "REL motions for infinitely rotating axes"
Page 374)
Syntax SLIN_REL:
SLIN_REL End point <WITH SysVar1 = Value1 <, SysVar2 = Value2, …, >>
<C_SPL><#BASE|#TOOL>
SCIRC_REL:
SCIRC_REL Auxiliary point, End point <, CA Circular angle> <WITH SysVar1 =
Value1 <,SysVar2 = Value2 , … >> <C_SPL><#BASE|#TOOL>
SPL_REL:
SPL_REL End point < WITH SysVar1 = Value1 <,SysVar2 = Value2 , …>><#BA-
SE|#TOOL>
Element Description
C_SPL With C_SPL: the end point is approximated. $APO de-
fines the earliest point at which the approximate posi-
tioning can begin.
Only possible for individual motions, not for segments.
Without C_SPL: the motion stops exactly at the end
point.
#BASE, #BASE (default): The coordinates of this end point refer
#TOOL to the coordinate system that belongs to the physical
base.
#TOOL: The coordinates of this end point refer to the
coordinate system that belongs to the physical tool.
$IPO_MODE has no influence on the meaning of #BASE
and #TOOL.
SPTP HOME
SLIN P1
SPLINE
SPL P1
SPL_REL{Z -300, B50} #TOOL
ENDSPLINE
PTPSPLINE
SPTP P1
SPTP_REL{A1 -100, A5 -70}
ENDSPLINE
11.6.5 SPTP
Syntax SPTP End point <WITH SysVar1 = Value1 <, SysVar2 = Value2 , …>> <C_SPL>
In System Software 8.2 and earlier, the identifier for approximate po-
sitioning with spline was “C_DIS”. If programs based on 8.2 or older
versions are used in higher versions of 8.x and contain C_DIS, this
can be retained and does not have to be changed to C_SPL.
11.6.6 SPTP_REL
Syntax SPTP_REL End point <WITH SysVar1 = Value1 <, SysVar2 = Value2, …>>
<C_SPL><#BASE|#TOOL>
Spline block, For spline blocks and individual spline motions, it is possible to write to the fol-
individual spline lowing system variables using the WITH line:
motion $ACC
$ACC_AXIS
$ACC_EXTAX
$APO
$BASE
$CIRC_TYPE
$ECO_LEVEL
$GEAR_JERK
$IPO_MODE
$JERK
$LOAD
$ORI_TYPE
$ROTSYS
$SPL_ORI_JOINT_AUTO
$SYNC_ID
$SYNC_LIST
$TOOL
$VEL
$VEL_AXIS
$VEL_EXTAX
Additionally for SCIRC and SLIN: $CIRC_MODE
Spline segment For spline segments, it is possible to write to the following system variables us-
ing the WITH line:
$ACC
$ACC_AXIS
$ACC_EXTAX
$CIRC_TYPE
$EX_AX_IGNORE
$GEAR_JERK
$JERK
$ORI_TYPE
$ROTSYS
$SYNC_ID
$VEL
$VEL_AXIS
$VEL_EXTAX
Additionally for SCIRC and SLIN: $CIRC_MODE
11.6.8 TIME_BLOCK
number of TIME_BLOCK PART statements. The time block may only be used
in spline blocks.
A CP spline block can contain either 1 time block or 1 constant velocity range,
but not both.
Syntax SPLINE
<Spline segments…>
…
TIME_BLOCK START
Spline segment
<Spline segments…>
...
< <TIME_BLOCK PART = Component_1>
…
Spline segment
<Spline segments…>
...
TIME_BLOCK PART = Component_N>
TIME_BLOCK END = Overall time
<Spline segments…>
…
ENDSPLINE
Explanation of It is not essential for there to be spline segments before TIME_BLOCK START
the syntax and after TIME_BLOCK END. It is nonetheless advisable to program as fol-
lows:
There is at least 1 spline segment between SPLINE and TIME_BLOCK
START.
There is at least 1 spline segment between TIME_BLOCK END and END-
SPLINE.
Advantages:
The programmed overall time is maintained exactly even in the case of ap-
proximate positioning.
Segments before TIME_BLOCK START make it possible to accelerate to
the required velocity.
Element Description
Component Type: INT or REAL; constant, variable or function
Desired component of Overall time for the following dis-
tance:
From the point before TIME_BLOCK
PART=Previous_component
to the point before TIME_BLOCK PART=Component
If Previous_component does not exist:
From the point before TIME_BLOCK START
to the point before TIME_BLOCK PART=Component
“Desired component” means: the components are main-
tained as accurately as possible by the robot controller.
Generally, however, they are not maintained exactly.
The user can assign the components in such a way that
they add up to 100. The components can then be consid-
ered as percentages of Overall time.
The components do not have to add up to 100, however,
and can have any sum! The robot controller always
equates the sum of the components to Overall time. This
allows the components to be used very flexibly and also
changed.
If components are assigned, there must always be a
TIME_BLOCK PART directly before TIME_BLOCK END.
There must be no segments in between.
Overall time Type: INT or REAL; constant, variable or function; unit: s
Time in which the following distance is traveled:
From the point before TIME_BLOCK START
to the point before TIME_BLOCK END
The value must be greater than 0. The overall time is main-
tained exactly. If this time cannot be maintained, e.g.
because too short a time has been programmed, the robot
executes the motion in the fastest possible time. In T1 and
T2, a message is also displayed.
If the value for Component or Overall time is assigned via a function, the
same restrictions apply as for the functions in the trigger.
(>>> 11.11.3 "Constraints for functions in the trigger" Page 431)
Example SPLINE
SLIN P1
SPL P2
TIME_BLOCK START
SLIN P3
TIME_BLOCK PART = 12.7
SPL P4
SPL P5
SPL P6
TIME_BLOCK PART = 56.4
SCIRC P7, P8
SPL P9
TIME_BLOCK PART = 27.8
TIME_BLOCK END = 3.9
SLIN P10
ENDSPLINE
Points P2 to P9 are executed exactly in the programmed time of 3.9 s. The ro-
bot controller equates the overall time of 3.9 s to the sum of all components,
i.e. 96.9.
Block selection Whether or not the robot controller plans the time block depends on the line to
which a block selection is carried out.
If the robot controller does not plan the time block, it generates the following
message: Time block ignored due to BCO run.
$PATHTIME The data of the time-based spline can be read via the system variable $PATH-
TIME. $PATHTIME is filled with the data as soon as the robot controller has
completed the planning of the spline block. The data are retained until the next
spline block has been planned.
$PATHTIME is a structure and consists of the following components:
Component Description
REAL $PATHTIME.TOTAL Time actually required for the entire
spline block (s)
REAL $PATHTIME.SCHEDULED Overall time planned for the time
block (s)
REAL $PATHTIME.PRO- Overall time programmed for the
GRAMMED time block (s)
INT $PATHTIME.N_SECTIONS Number N of TIME_BLOCK_PART
lines
REAL $PATHTIME.MAX_DEV Maximum deviation of all
TIME_BLOCK_PARTs between the
programmed time and the planned
time (%)
INT $PATH- Number of the
TIME.MAX_DEV_SECTION TIME_BLOCK_PART with the
greatest deviation between the pro-
grammed time and the planned
time
11.6.9 CONST_VEL
The value for Offset can be assigned using a function. The same re-
strictions apply as for the functions in the trigger.
(>>> 11.11.3 "Constraints for functions in the trigger" Page 431)
Example Here, the constant velocity range extends over several segments with different
programmed velocities. In this case, the lowest of the velocities, i.e. 0.2 m/s,
is valid for the whole range.
1 PTP P0
2 SPLINE WITH $VEL.CP = 2.5
3 SLIN P1
4 CONST_VEL START = +100
5 SPL P2 WITH $VEL.CP = 0.5
6 SLIN P3 WITH $VEL.CP = 0.2
7 SPL P4 WITH $VEL.CP = 0.4
8 CONST_VEL END = -50
9 SCIRC P5, P6
10 SLIN P7
11 ENDSPLINE
$STOP_CONST_ If the maximum possible constant velocity in a constant velocity range is below
VEL_RED the programmed velocity, the robot controller generates one of the following
messages:
In the CONST_VEL END range, instead of $VEL.CP={Setpoint $VEL.CP}
m/s only {Velocity reached} m/s because line {Line of the limiting segment}
reached.
In CONST_VEL START instead of $VEL.CP={Setpoint $VEL.CP} m/s
only {Velocity reached} m/s because line {Line of the limiting segment}
reached.
In CONST_VEL END instead of $VEL.CP={Setpoint $VEL.CP} m/s only
{Velocity reached} m/s because line {Line of the limiting segment}
reached.
For operating modes T1/T2, it is possible to configure whether these are noti-
fication messages or acknowledgement messages. This is carried out using
the system variable $STOP_CONST_VEL_RED.
Value Description
FALSE (default) Notification message
TRUE Operating mode T1 or T2:
Acknowledgement message
The robot stops. In the program, the block
pointer indicates the spline segment that trig-
gered the stop. Program execution cannot be
resumed until the operator has acknowl-
edged the message.
Operating mode AUT or AUT EXT:
Notification message
$CONST_VEL $CONST_VEL specifies the velocity (mm/s) in the constant velocity range for
the CP spline block that is currently being planned. The value remains valid
until a different spline block with constant velocity range is planned.
$CONST_VEL is write-protected. $CONST_VEL is invalid if one of the follow-
ing motions is currently being planned:
CP spline block without constant velocity range
PTP spline block
Individual spline motion
PTP, LIN, CIRC
Description The operator can program a conditional stop with STOP WHEN PATH.
The value for Offset can be assigned using a function. The same re-
strictions apply as for the functions in the trigger.
(>>> 11.11.3 "Constraints for functions in the trigger" Page 431)
11.6.11 $EX_AX_IGNORE
Description $EX_AX_IGNORE can only be used in the WITH line of spline segments.
Each bit of $EX_AX_IGNORE corresponds to an external axis number. If a
specific bit is set to 1, the robot controller ignores the taught or programmed
position of this external axis at the end point of the segment. Instead, the robot
controller calculates the optimal position for this point on the basis of the sur-
rounding external axis positions.
In the program run modes MSTEP and ISTEP, the robot stops at the positions
calculated by the robot controller.
In the case of a block selection to a point with “$EX_AX_IGNORE = Bit n = 1”,
the robot adopts the position calculated by the robot controller.
“$EX_AX_IGNORE = Bit n = 1” is not allowed for the following segments:
For the first segment in a spline block (only up to KUKA System Software
8.2)
For the last segment in a spline block
In the case of successive segments with identical Cartesian end points,
“$EX_AX_IGNORE = Bit n = 1” is not allowed for the first and last seg-
ments (only up to KUKA System Software 8.2).
From KUKA System Software 8.3 onwards: If $EX_AX_IGNORE is pro-
grammed for an SPTP segment and the affected external axis is mathemati-
cally coupled, the robot controller rejects $EX_AX_IGNORE, i.e. the taught or
programmed position of that axis is taken into consideration. In T1/T2, the ro-
bot controller generates the following message: Reject $EX_AX_IGNORE in
line {Block number} because {External axis number} is mathematically cou-
pled.
Explanation of
Element Description
the syntax
Bit array Bit n = 1: Taught/programmed position of the external
axis is ignored.
Bit n = 0: Taught/programmed position of the external
axis is taken into consideration.
Bit n 5 4 3 2 1 0
Axis E6 E5 E4 E3 E2 E1
Example SPLINE
SPL P1
SPL P2
SLIN P3 WITH $EX_AX_IGNORE = 'B000001'
SPL P4
ENDSPLINE
For P3, the robot controller ignores the taught position of external axis E1.
11.7.1 CONTINUE
Description CONTINUE can be used to prevent an advance run stop that would otherwise
occur in the following program line.
CONTINUE always applies to the following line, even if this is a blank line! Ex-
ception: If the following line contains the statement ON_ERROR_PROCEED,
CONTINUE applies to the line after.
Syntax CONTINUE
In this case, the outputs are set in the advance run. When exactly they are set
cannot be foreseen.
ON_ERROR_PROCEED with CONTINUE:
ON_ERROR_PROCEED
CONTINUE
$OUT[1]=TRUE
CONTINUE
ON_ERROR_PROCEED
$OUT[1]=TRUE
11.7.2 EXIT
Description Exit from a loop. The program is then continued after the loop. EXIT may be
used in any loop.
Syntax EXIT
Example The loop is exited when $IN[1] is set to TRUE. The program is then contin-
ued after ENDLOOP.
DEF EXIT_PROG()
PTP HOME
LOOP
PTP POS_1
PTP POS_2
IF $IN[1] == TRUE THEN
EXIT
ENDIF
CIRC HELP_1, POS_3
PTP POS_4
ENDLOOP
PTP HOME
END
Description A statement block is repeated until a counter exceeds or falls below a defined
value.
After the last execution of the statement block, the program is resumed with
the first statement after ENDFOR. The loop execution can be exited prema-
turely with EXIT.
Loops can be nested. In the case of nested loops, the outer loop is executed
completely first. The inner loop is then executed completely.
Example The variable B is incremented by 1 after each of 5 times the loop is executed.
INT A
...
FOR A=1 TO 10 STEP 2
B=B+1
ENDFOR
11.7.4 GOTO
11.7.5 HALT
Description Stops the program. The last motion instruction to be executed will, however,
be completed.
Execution of the program can only be resumed using the Start key. The next
instruction after HALT is then executed.
In an interrupt program, program execution is only stopped after the advance
run has been completely executed.
Syntax HALT
Description Conditional branch. Depending on a condition, either the first statement block
(THEN block) or the second statement block (ELSE block) is executed. The
program is then continued after ENDIF.
The ELSE block may be omitted. If the condition is not satisfied, the program
is then continued at the position immediately after ENDIF.
There is no limit on the number of statements contained in the statement
blocks. Several IF statements can be nested in each other.
<ELSE
Statements>
ENDIF
Description Loop that endlessly repeats a statement block. The loop execution can be ex-
ited with EXIT.
Loops can be nested. In the case of nested loops, the outer loop is executed
completely first. The inner loop is then executed completely.
Syntax LOOP
Statements
ENDLOOP
11.7.8 ON_ERROR_PROCEED
$ERR, $ERR and ERR_RAISE() are important tools when working with
ERR_RAISE() ON_ERROR_PROCEED.
The function ERR_RAISE() can subsequently generate a suppressed runtime
error message. It can only process the system variable $ERR or a variable de-
rived from $ERR as an OUT parameter.
Syntax ON_ERROR_PROCEED
CONTINUE
ON_ERROR_PROCEED
$OUT[1]=TRUE
11.7.8.1 $ERR
Syntax $ERR=Information
Explanation of
Element Description
the syntax
Information Type: Error_T
List with information about the program currently being
executed
Element Description
number Only in the event of a runtime error: Message number
If no error has occurred, the value zero is displayed.
interpreter Current interpreter
#R_INT: Robot interpreter
#S_INT: Submit interpreter
int_type Current program type and interrupt state
#I_NORMAL: The program is not an interrupt program.
#I_INTERRUPT: The program is an interrupt program.
#I_STOP_INTERRUPT: Interrupt by means of
$STOPMESS (error stop)
int_prio Priority of the interrupt
line_nr Only in the event of a runtime error: Number of the line that
triggered the error
Note: The number does not generally correspond to the
line number in the smartHMI program editor! In order to
understand the numbering, open the program with a simple
editor and do not count lines that start with “&”.
If no error has occurred, the value zero is displayed.
module[] Name of the current program
up_name[] Name of the current subprogram
trigger_type Context in which the trigger belonging to a subprogram
was triggered
#TRG_NONE: The subprogram is not a trigger subpro-
gram.
#TRG_REGULAR: The trigger subprogram was
switched during forward motion.
#TRG_BACKWARD: The trigger subprogram was
switched during backward motion.
#TRG_RESTART: The trigger subprogram was
switched on switching back to forward motion.
#TRG_REPLAY: The trigger subprogram was switched
repeatedly after backward motion.
Note: This component is available in KUKA System Soft-
ware 8.3 or higher.
Example 1 If you do not wish to suppress all possible runtime error messages, but only
specific ones, this distinction can be made using SWITCH … ENDSWITCH. In
this example, only message 1422 is suppressed. Any other runtime error mes-
sages would be displayed.
1 DEF myProg ()
2 DECL E6POS myPos
3 INI
4 ON_ERROR_PROCEED
5 myPos = $POS_INT
6 SWITCH ($ERR.NUMBER)
7 CASE 0
8 CASE 1422
9 ;program fault service function if required
...
10 DEFAULT
11 ERR_RAISE ($ERR)
12 ENDSWITCH
...
13 END
Line Description
4, 5 Line 5 triggers the message 1422 {$variable} value invalid (un-
less the program is called by an interrupt).
ON_ERROR_PROCEED in the preceding line suppresses the
error message.
6 … 12 Differentiation dependent on $ERR.NUMBER
7 If no error occurred in line 5, $ERR.NUMBER==0. In this case,
no action is required.
8, 9 If message 1422 has been triggered, $ERR.NUMBER==1422.
If required, a fault service function can be programmed.
10, 11 If a message other than 1422 was triggered, this message is
now (subsequently) generated via ERR_RAISE.
Example 2 This example illustrates that each program level has its own representation of
$ERR.
1 DEF myMainProg ()
2 INT myVar, myVar2
3 INI
4 ON_ERROR_PROCEED
5 mySubProg (myVar)
6 HALT
7 myVar2 = 7
8 mySubProg (myVar2)
9 END
---------------------------------------
10 DEF mySubProg (myTest:IN)
11 INT myTest
12 HALT
13 END
Line Description
4, 5 Line 5 triggers the message 1422 {$variable} value invalid be-
cause myVar is not initialized and can thus not be transferred
to a subprogram.
ON_ERROR_PROCEED in the preceding line suppresses the
error message.
6 If $ERR is read here using the variable correction function, the
following components have the following values:
$ERR.number == 1422
$ERR.line_nr == 15
$ERR.module[] == "MYMAINPROG"
$ERR.up_name[] == "MYMAINPROG"
12 If $ERR is read here in the subprogram using the variable cor-
rection function, the following components have the following
values:
$ERR.number == 0
$ERR.line_nr == 0
$ERR.module[] == "MYMAINPROG"
$ERR.up_name[] == "MYSUBPROG"
This clearly indicates that $ERR always has the information
from the current level, i.e. from the subprogram MySubProg in
this case. The information from MyMainProg, on the other
hand, is unknown.
Example 3 This example also shows that each program level has its own representation
of $ERR. It also shows how the $ERR information can be transferred to a dif-
ferent level.
1 DEF myMainProg2 ()
2 INI
3 ON_ERROR_PROCEED
4 $OUT[-10] = TRUE
5 myHandleErr ($ERR, $ERR)
6 END
---------------------------------------
7 DEF myHandleErr (inErr:IN, outErr:OUT)
8 DECL Error_T inErr, outErr
9 ON_ERROR_PROCEED
10 $OV_PRO=100/0
11 ERR_RAISE($ERR)
12 ERR_RAISE(outErr)
13 ERR_RAISE(inErr)
...
14 END
Line Description
3, 4 Line 4 triggers the message 1444 Array index inadmissible.
ON_ERROR_PROCEED in the preceding line suppresses the
error message.
5, 7 The contents of $ERR are transferred to a subprogram twice:
once as an IN parameter and once as an OUT parameter.
Line Description
9, 10 Line 10 triggers the message 1451 Division by 0.
ON_ERROR_PROCEED in the preceding line suppresses the
error message.
11 ERR_RAISE($ERR) generates the message from line 10, and
not that from line 4.
$ERR always has the information from the current level, i.e.
from the subprogram myHandleErr in this case.
12 ERR_RAISE(outErr) generates the message from line 4 of the
main program, as outErr is a reference to $ERR in the main
program.
13 ERR_RAISE(inErr) is not permissible and thus triggers the
message 1451 {(Variable name)} invalid argument.
ERR_RAISE can only process $ERR or an OUT variable de-
rived from $ERR.
Example 4 $ERR can be used not only for error treatment, but also to determine the cur-
rent surroundings.
In this example, a parameter is transferred to a subprogram from both a robot
program and a submit program. In the subprogram, the system determines
which interpreter the parameter came from. The action that is carried out de-
pends on the result.
Robot program:
DEF Main ()
...
mySUB (55)
...
END
Submit program:
DEF SPS ()
...
LOOP
mySUB (33)
...
ENDLOOP
...
END
Subprogram:
GLOBAL DEF mySUB (par:IN)
INT par
INI
IF ($ERR.INTERPRETER==#R_INT) THEN
$OUT_C[par] = TRUE
ELSE
$OUT[par] = TRUE
ENDIF
...
END
Description Non-rejecting loop. Loop that is repeated until a certain condition is fulfilled.
The statement block is executed at least once. The condition is checked after
each loop execution. If the condition is met, program execution is resumed at
the first statement after the UNTIL line.
Loops can be nested. In the case of nested loops, the outer loop is executed
completely first. The inner loop is then executed completely.
Syntax REPEAT
Statements
UNTIL Termination condition
Example 2 The loop is executed once, even though the termination condition is already
fulfilled before the loop execution, because the termination condition is not
checked until the end of the loop. After execution of the loop, R has the value
102.
R=101
REPEAT
R=R+1
UNTIL R>100
Description Selects one of several possible statement blocks, according to a selection cri-
terion. Every statement block has at least one identifier. The block whose iden-
tifier matches the selection criterion is selected.
Once the block has been executed, the program is resumed after END-
SWITCH.
If no identifier agrees with the selection criterion, the DEFAULT block is exe-
cuted. If there is no DEFAULT block, no block is executed and the program is
resumed after ENDSWITCH.
The SWITCH statement cannot be prematurely exited using EXIT.
Example 2 Selection criterion and identifier are of type CHAR. The statement SP_5() is
never executed here because the identifier C has already been used.
SWITCH NAME
CASE "A"
UP_1()
CASE "B","C"
UP_2()
UP_3()
CASE "C"
UP_5()
ENDSWITCH
Description WAIT FOR stops the program until a specific condition is fulfilled. Program ex-
ecution is then resumed.
WAIT FOR triggers an advance run stop.
If, due to incorrect formulation, the expression can never take the val-
ue TRUE, the compiler does not recognize this. In this case, execu-
tion of the program will be permanently halted because the program
is waiting for a condition that cannot be fulfilled.
Description Halts execution of the program and continues it after a wait time. The wait time
is specified in seconds.
WAIT SEC triggers an advance run stop.
Description Rejecting loop. Loop that is repeated as long as a certain condition is fulfilled.
If the condition is not met, program execution is resumed at the first statement
after the ENDWHILE line. The condition is checked before each loop execu-
tion. If the condition is not already fulfilled beforehand, the statement block is
not executed.
Loops can be nested. In the case of nested loops, the outer loop is executed
completely first. The inner loop is then executed completely.
Example 1 The loop is executed 99 times. After execution of the loop, W has the value 100.
W=1
WHILE W<100
W=W+1
ENDWHILE
11.8 Inputs/outputs
11.8.1 ANIN
Description Cyclical reading (every 12 ms) of an analog input. ANIN triggers an advance
run stop.
The robot controller has 32 analog inputs ($ANIN[1] … $ANIN[32]).
A maximum of three ANIN ON statements can be used at the same time.
A maximum of two ANIN ON statements can use the same variable Value
or access the same analog input.
All of the variables used in an ANIN statement must be declared in data
lists (locally or in $CONFIG.DAT).
$ANIN[…] indicates the input voltage, adapted to the range between -1.0 and
+1.0. The actual voltage depends on the settings of the analog module.
Element Description
Signal name Type: REAL
Specifies the analog input. Signal name must first have been
declared with SIGNAL . It is not possible to specify the ana-
log input $ANIN[x] directly instead of the signal name.
Offset Type: REAL
It can be a constant, variable or signal name.
Example In this example, the program override (= system variable $OV_PRO) is de-
fined by means of the analog input $ANIN[1].
$ANIN[1] must first be linked to a freely selected signal name, in this case
SIGNAL_1, in the declaration section.
SIGNAL SIGNAL_1 $ANIN[1]
...
ANIN ON $OV_PRO = 1.0 * SIGNAL_1
The cyclical scanning of SIGNAL_1 is ended using the ANIN OFF statement.
ANIN OFF SIGNAL_1
11.8.2 ANOUT
Description Cyclical writing (every 12 ms) to an analog output. ANOUT triggers an ad-
vance run stop.
The robot controller has 32 analog outputs ($ANOUT[1] … $ANOUT[32]).
A maximum of four ANOUT ON statements can be used at the same time.
All of the variables used in an ANOUT statement must be declared in data
lists (locally or in $CONFIG.DAT).
$ANOUT[…] can have values from -1.0 to +1.0 written to it. The voltage actu-
ally generated depends on the settings of the analog module. If an attempt is
made to set voltages outside the range of values, the robot controller displays
the following message: Limit {Signal name}
Element Description
Time Type: REAL
Unit: seconds. By using the keyword DELAY and entering a
positive or negative amount of time, the output signal can
be delayed (+) or set early (-).
Minimum Type: REAL
value,
Maximum Minimum and/or maximum value to be present at the out-
value put. The actual value does not fall below/exceed these val-
ues, even if the calculated values fall outside this range.
Permissible values: -1.0 to +1.0
It can be a constant, variable, structure component or array
element. The minimum value must always be less than the
maximum value. The sequence of the keywords MINIMUM
and MAXIMUM must be observed.
Example In this example, the output $ANOUT[5] controls the adhesive output.
A freely selected name, in this case GLUE, is assigned to the analog output in
the declaration section. The amount of adhesive is to be dependent on the cur-
rent path velocity (= system variable $VEL_ACT). Furthermore, the output sig-
nal is to be generated 0.5 seconds early. The minimum voltage is to be 3 V.
(The voltage of the module used ranges from +10 V to -10 V.)
SIGNAL GLUE $ANOUT[5]
...
ANOUT ON GLUE = 0.5 * $VEL_ACT DELAY=-0.5 MINIMUM=0.30
11.8.3 PULSE
Description Sets a pulse. The output is set to a defined level for a specified duration. The
output is then reset automatically by the system. The output is set and reset
irrespective of the previous level of the output.
At any one time, pulses may be set at a maximum of 16 outputs.
If PULSE is programmed before the first motion block, the pulse duration also
elapses if the Start key is released again and the robot has not yet reached the
BCO position.
The PULSE statement triggers an advance run stop. It is only executed con-
currently with robot motion if it is used in a TRIGGER statement.
$OUT+PULSE If an output is already set before the pulse, it will be reset by the falling edge
of the pulse.
$OUT[50] = TRUE
PULSE($OUT[50],TRUE,0.5)
Actual pulse characteristic at output 50:
If a negative pulse is applied to an output that is set to Low, the output remains
Low until the end of the pulse and is then set to High:
$OUT[50] = FALSE
PULSE($OUT[50],FALSE,0.5)
Actual pulse characteristic at output 50:
PULSE+$OUT If the same output is set during the pulse duration, it will be reset by the falling
edge of the pulse.
PULSE($OUT[50],TRUE,0.5)
$OUT[50] = TRUE
Actual pulse characteristic at output 50:
If the output is reset during the pulse duration, the pulse duration is reduced
accordingly:
PULSE($OUT[50],TRUE,0.5)
$OUT[50] = FALSE
Actual pulse characteristic at output 50:
If an output is set to FALSE during a pulse and then back to TRUE, the pulse
is interrupted and then resumed when the output is set to TRUE. The overall
duration from the first rising edge to the last falling edge (i.e. including the du-
ration of the interruption) corresponds to the duration specified in the PULSE
statement.
PULSE($OUT[50],TRUE,0.8)
$OUT[50]=FALSE
$OUT[50]=TRUE
Actual pulse characteristic at output 50:
PULSE+PULSE If several PULSE statements overlap, it is always the last PULSE statement
that determines the end of the overall pulse duration.
If a pulse is activated again before the falling edge, the duration of the second
pulse starts at this moment. The overall pulse duration is thus shorter than the
sum of the values of the first and second pulses:
PULSE($OUT[50],TRUE,0.5)
PULSE($OUT[50],TRUE,0.5)
Actual pulse characteristic at output 50:
If, during the pulse duration of a positive pulse, a negative pulse is sent to the
same output, only the second pulse is taken into consideration from this mo-
ment onwards:
PULSE($OUT[50],TRUE,0.5)
PULSE($OUT[50],FALSE,0.5)
Actual pulse characteristic at output 50:
PULSE($OUT[50],TRUE,3.0)
PULSE($OUT[50],FALSE,1.0)
Actual pulse characteristic at output 50:
PULSE+END If a pulse is programmed before the END statement, the duration of program
execution is increased accordingly.
PULSE($OUT[50],TRUE,0.8)
END
Program active
Actual pulse characteristic at output 50:
11.8.4 SIGNAL
Description SIGNAL links predefined signal variables for inputs or outputs with a name.
Such a link, i.e. a SIGNAL declaration, is required in order to be able to ad-
dress an analog input or output. An input or output may appear in several SIG-
NAL declarations.
The user can declare signals in the following files:
In DAT files, in the section EXTERNAL DECLARATIONS
In SRC files, in the declaration section
In $CONFIG.DAT, in the section USER GLOBALS
There are also SIGNAL declarations that are predefined in the system. They
can be found in the file $machine.DAT in the directory KRC:\STEU\MADA.
These declarations can be deactivated in $machine.DAT using the keyword
FALSE.
Element Description
System signal Signal name predefined in the system, e.g. $T1.
name
FALSE Deactivates a SIGNAL declaration predefined in the sys-
tem. The inputs or outputs to which the SIGNAL declara-
tion refers are thus available again for other purposes.
FALSE is not a Boolean value here, but a keyword. The
option TRUE is not available. If the SIGNAL declaration
that has been deactivated by means of FALSE is to be
reactivated, the program line containing the entry FALSE
must be deleted.
Example 1 The output $OUT[7] is assigned the name START_PROCESS. The output
$OUT[7] is set.
SIGNAL START_PROCESS $OUT[7]
START_PROCESS = TRUE
Example 2 The outputs $OUT[1] to $OUT[8] are combined to form one digital output un-
der the name OUTWORT. The outputs $OUT[3], $OUT[4], $OUT[5] and
$OUT[7] are set.
SIGNAL OUTWORT $OUT[1] TO $OUT[8]
OUTWORT = 'B01011100'
Description Subprograms are programs which are accessed by means of branches from
the main program. Once the subprogram has been executed, the main pro-
gram is resumed from the line directly after the subprogram call.
Local subprograms are contained in the same SRC file as the main pro-
gram. They can be made to be recognized globally using the keyword
GLOBAL.
Global subprograms are programs with a separate SRC file of their own,
which is accessed from another program by means of a branch.
A subprogram is called in the main program by specifying the name of the sub-
program followed by round brackets.
Description A function is a subprogram that returns a certain value to the main program.
Functions have a data type.
A function is called in a similar way to a subprogram: specify the name of the
function in the main program followed by round brackets. A function call can
never stand alone, however; instead, the value must constantly be assigned
to a variable of the same data type.
INTVAR = 5 * INTFUNCTION() + 1
11.9.4 RETURN
Description Jump from a subprogram or function back to the program from which the sub-
program or function was called.
Subprograms
RETURN can be used to return to the main program if a certain condition is
met in the subprogram. No values from the subprogram can be transferred to
the main program.
Functions
Functions must be ended by a RETURN statement containing the value that
has been determined. The determined value is hereby transferred to the pro-
gram from which the function was called.
Example 1 Return from a subprogram to the program from which it was called, dependent
on a condition.
DEF PROG_2()
...
IF $IN[5]==TRUE THEN
RETURN
...
END
Example 2 Return from a function to the program from which it was called. The value X is
transferred.
DEFFCT INT CALCULATE(X:IN)
INT X
X=X*X
RETURN X
ENDFCT
Description Parameters can be transferred from a main program to local and global sub-
programs and functions.
There are 2 ways of transferring parameters:
As IN parameters
The value of the variable remains unchanged in the main program.
This transfer type is also called “Call by Value”.
As OUT parameters
The subprogram reads the value, modifies it and writes the new value
back to the main program.
This transfer type is also called “Call by Reference”.
Line Description
4 The subprogram CALC_1 is called and the parameter “r” is
transferred.
6 The subprogram CALC_2 is called and the parameter “s” is
transferred.
9 num1: The name of the variable to which the value of “r” is
transferred.
IN means: “r” is only transferred for reading.
10, 14 The variables to which values are transferred must be de-
clared.
13 num2: The name of the variable to which the value of “s” is
transferred.
OUT means: “s” is transferred, modified and written back to the
main program.
Line Description
3 “value” is assigned the value “2.0”.
4 The function CALC is called and the value of “value” is trans-
ferred.
The return value of the function is assigned to the variable “re-
sult”.
Line Description
1 The value of “value” is transferred to “num” as an IN parame-
ter. The value is still 2.0.
3 The value of “num” is modified. The value is now 10.0.
4, 5 The value of “return_value” is calculated and returned to the
variable “result” in the main program. The value is 1 000.0.
6 The function is terminated and execution of the main program
is resumed from line 5.
Note: The value of “value” in the main program is unchanged:
2.0.
Line Description
1 The value of “value” is transferred to “num” as an OUT param-
eter. The value is still 2.0.
3 The value of “num” is modified. The value is now 10.0.
4, 5 The value of “return_value” is calculated and returned to the
variable “result” in the main program. The value is 1 000.0.
6 The function is terminated and execution of the main program
is resumed from line 5.
Note: The value of “value” in the main program is now 10.0.
Line Description
5 “w” is transferred to “ww” as an OUT parameter.
“b” is transferred to “bb” as an IN parameter.
“a” is transferred to “oo” as an OUT parameter.
7 “w” is transferred to “ww” as an OUT parameter.
“30” is transferred to “bb” as an IN parameter.
“a” is transferred to “oo” as an OUT parameter.
Line Description
5, 8 Only complete arrays can be transferred to another array.
8 Arrays may only be transferred as OUT parameters.
9 Always declare the array in the subprogram without an array
size. The array size adapts itself to the original array.
In the case of transferring multidimensional arrays, array sizes are again not
specified. However, the dimension of the array must be specified by means of
commas.
Examples:
ARRAY_1D[] (1-dimensional)
ARRAY_2D[,] (2-dimensional)
ARRAY_3D[,,] (3-dimensional)
Line Description
2 A CHAR array with 10 elements is declared.
4 Values are assigned to the first 4 elements of the array. This
corresponds to:
name[1] = "O"
name[2] = "K"
name[3] = "A"
name[4] = "Y"
(A CHAR variable can only ever contain 1 ASCII character.)
5 The subprogram CALC is called and the value of the first ele-
ment is transferred, i.e. the value “O”.
8 Individual array elements can also be transferred as IN param-
eters.
9 The variable to which the value of the array element is trans-
ferred must be declared (a variable, not an array).
It is always possible to transfer a value to the same data type. The following
applies for transfer to a different data type:
11.10.1 BRAKE
Description In the case of a defined event, e.g. an input, the controller interrupts the cur-
rent program and executes a defined subprogram. The event and the subpro-
gram are defined by INTERRUPT ... DECL ... WHEN ... DO.
Once the subprogram has been executed, the interrupted program is resumed
at the point at which it was interrupted. Exception: RESUME.
A subprogram called by an interrupt is called an interrupt program.
A maximum of 32 interrupts may be declared simultaneously. An interrupt dec-
laration may be overwritten by another at any time.
Example 1 Declaration of an interrupt with priority 23 that calls the subprogram SP1 if
$IN[12] is true. The parameters 20 and VALUE are transferred to the subpro-
gram.
INTERRUPT DECL 23 WHEN $IN[12]==TRUE DO UP1(20,VALUE)
Example 2 Two objects, the positions of which are detected by two sensors connected to
inputs 6 and 7, are located on a programmed path. The robot is to be moved
subsequently to these two positions.
For this purpose, the two detected positions are saved as points P_1 and P_2.
These points are then addressed in the second section of the main program.
If the robot controller detects an event defined by means of INTERRUPT ...
DECL ... WHEN ... DO, it always saves the current robot position in the system
variables $AXIS_INT (axis-specific) and $POS_INT (Cartesian).
Main program:
DEF PROG()
...
INTERRUPT DECL 10 WHEN $IN[6]==TRUE DO UP1()
INTERRUPT DECL 20 WHEN $IN[7]==TRUE DO UP2()
...
INTERRUPT ON
LIN START
LIN END
INTERRUPT OFF
LIN P_1
LIN P_2
...
END
11.10.3 INTERRUPT
If, in the interrupt declaration, a Boolean variable, e.g. an input, has been de-
fined as the Event:
In this case, the interrupt is triggered by a change of state, e.g. in the case
of $IN[x]==TRUE by the change from FALSE to TRUE. The state must
therefore not already be present at INTERRUPT ON, as the interrupt is not
then triggered!
Furthermore, the following must also be considered in this case: the
change of state must not occur until at least one interpolation cycle after
INTERRUPT ON.
(This can be achieved by programming a WAIT SEC 0.012 after INTER-
RUPT ON. If no advance run stop is desired, a CONTINUE command can
also be programmed before the WAIT SEC.)
The reason for this is that INTERRUPT ON requires one interpolation cy-
cle (= 12 ms) before the interrupt is actually activated. If the state changes
before this, the interrupt cannot detect the change.
Example 1 The interrupt with priority 2 is activated. (The interrupt must already be de-
clared.)
INTERRUPT ON 2
DEF STOP_PROG()
BRAKE F
GLUE=FALSE
WAIT FOR $IN[10]
LIN $POS_RET
GLUE=TRUE
END
11.10.4 RESUME
Description RESUME cancels all running interrupt programs and subprograms up to the
level at which the current interrupt was declared.
RESUME may only occur in interrupt programs. (Not in interrupt programs,
however, that are called by an interrupt that is declared as GLOBAL.) When
the RESUME statement is activated, the advance run pointer must not be at
the level where the interrupt was declared, but at least one level lower.
Changing the variable $BASE in the interrupt program only has an effect there.
The computer advance run, i.e. the variable $ADVANCE, must not be modified
in the interrupt program.
Please note the following regarding the behavior of the robot controller after a
RESUME:
If the first motion instruction after RESUME is a CIRC motion, this is exe-
cuted as LIN.
If the first motion instruction after RESUME is a SCIRC motion, this is ex-
ecuted as SLIN.
Reason: Following a RESUME statement, the robot is not situated at the orig-
inal start point of the motion. The motion will thus differ from how it was origi-
nally planned; this can potentially be very dangerous, particularly in the case
of CIRC/SCIRC motions.
All other motions following a RESUME statement are executed as the motion
type they were programmed to be.
Syntax RESUME
Example The robot is to search for a part on a path. The part is detected by means of a
sensor at input 15. Once the part has been found, the robot is not to continue
to the end point of the path, but to return to the interrupt position and pick up
the part. The main program is then to be resumed.
Main program PROG():
DEF PROG()
INI
...
INTERRUPT DECL 21 WHEN $IN[15] DO FOUND()
PTP HOME
...
SEARCH()
...
END
When the RESUME statement is activated, the advance run pointer must not
be at the level where the current interrupt was declared. To prevent this, an
advance run stop is triggered here via WAIT FOR TRUE.
Interrupt program FOUND():
DEF FOUND()
INTERRUPT OFF 21
BRAKE
LIN $POS_INT
... ;The robot grips the found part.
RESUME
END
The braking process causes the robot to move slightly away from the position
at which the interrupt was triggered. LIN $POS_INT causes the robot to return
to the position at which the interrupt was triggered.
The motion type LIN was used here because interrupt programs must not con-
tain any spline motions.
After LIN $POS_INT, the robot grips the part. (Not programmed in this exam-
ple.)
RESUME causes the main program to be resumed after the part has been
gripped. Without the RESUME statement, the subprogram SEARCH() would
be resumed after END.
Description The Trigger triggers a user-defined statement. The robot controller executes
the statement parallel to the robot motion.
The trigger can optionally refer to the start or end point of the motion. The
statement can either be triggered directly at the reference point, or it can be
shifted in time.
Reference point Where is the reference point if the start or end point is approximated?
for approximate DISTANCE = 0:
positioning
If the start point is approximated, the reference point lies at the end of the
approximate positioning arc.
DISTANCE = 1:
If the end point is approximated, the reference point lies in the middle of
the approximate positioning arc.
Max. offset There are limits to the distance the reference point can be offset. The following
table specifies the maximum possible offsets. If larger, and thus invalid, offsets
are programmed, the robot controller switches the trigger at the permissible
limit at the latest. In T1/T2, it generates a corresponding message.
Example 2 In the middle of the approximate positioning arc of P_5, the subprogram
MY_SUBPROG with priority 5 is called.
PTP P_4
TRIGGER WHEN DISTANCE=1 DELAY=0 DO MY_SUBPROG() PRIO=5
PTP P_5 C_DIS
PTP P_6
1 DEF PROG()
2 ...
3 PTP P_0
4 TRIGGER WHEN DISTANCE=0 DELAY=40 DO A=12
5 TRIGGER WHEN DISTANCE=1 DELAY=-20 DO UP1() PRIO=10
6 LIN P_1
7 ...
8 TRIGGER WHEN DISTANCE=0 DELAY=10 DO UP2(A) PRIO=5
9 TRIGGER WHEN DISTANCE=1 DELAY=15 DO B=1
10 LIN P_2 C_DIS
11 ...
12 TRIGGER WHEN DISTANCE=0 DELAY=10 DO UP2(B) PRIO=12
13 TRIGGER WHEN DISTANCE=1 DELAY=0 DO UP(A,B,C) PRIO=6
14 LIN P_3 C_DIS
15 ...
16 TRIGGER WHEN DISTANCE=0 DELAY=50 DO UP2(A) PRIO=4
17 TRIGGER WHEN DISTANCE=1 DELAY=-80 DO A=0
18 LIN P_4
19 ...
20 END
Description The Trigger triggers a user-defined statement. The robot controller executes
the statement parallel to the robot motion.
The trigger can optionally refer to the start or end point of the motion. The
statement can either be triggered directly at the reference point, or it can be
shifted in space and/or time.
Functions PATH and DELAY can call functions. The functions are subject to constraints.
(>>> 11.11.3 "Constraints for functions in the trigger" Page 431)
Element Description
Statement Possible:
Assignment of a value to a variable
Note: There must be no runtime variable on the left-
hand side of the assignment.
OUT statement; PULSE statement; CYCFLAG state-
ment
Subprogram call. In this case, Priority must be specified.
Priority Type: INT; variable or constant
Priority of the trigger. Only relevant if Statement calls a sub-
program, and then obligatory.
Priorities 1, 2, 4 to 39 and 81 to 128 are available. Priorities
40 to 80 are reserved for cases in which the priority is auto-
matically assigned by the system. If the priority is to be
assigned automatically by the system, the following is pro-
grammed: PRIO = -1.
If several triggers call subprograms at the same time, the
trigger with the highest priority is processed first, then the
triggers of lower priority. 1 = highest priority.
Max. offset The switching point can only be offset within certain limits. If larger, and thus
invalid, offsets are programmed, the robot controller switches the trigger at the
permissible limit at the latest. In T1/T2, it generates a corresponding message.
Maximum offset for Distance + negative Time value:
The limits apply to the entire offset, comprising shift in space and negative shift
in time.
If P_2 were not approximated, the switching range would be P_2 to P_5.
The switching range goes to P_5 because P_5 is the next exact positioning
point after the TRIGGER statement. If P_3 were not approximated, the switch-
ing range would be P_2 to P_3, as P_3 is the next exact positioning point in
the program after the Trigger statement.
Example 1 PTP P0
2 SPLINE
3 SPL P1
4 SPL P2
5 SPL P3
6 SPL P4
7 TRIGGER WHEN PATH=0 ONSTART DELAY=10 DO $OUT[5]=TRUE
8 SCIRC P5, P6
9 SPL P7
10 TRIGGER WHEN PATH=-20.0 DELAY=0 DO SUBPR_2() PRIO=-1
11 SLIN P8
12 ENDSPLINE
The Trigger in line 10 would have the same result if it was positioned directly
before the spline block (i.e. between line 1 and line 2). In both cases, it refers
to the last point of the spline motion: P8.
It is advisable, however, to position the trigger as shown in the example, and
not directly before the spline block.
Where is the reference point of a PATH trigger if the start or end point is
approximated?
This depends primarily on whether homogenous or mixed approximate posi-
tioning is being carried out.
The principle is explained here using an example with CP spline blocks. It also
applies to other types of homogenous approximate positioning.
Example SPLINE
...
SLIN P2
TRIGGER WHEN PATH=0 DELAY=0 DO ... ;Trigger 1
SLIN P3
ENDSPLINE C_SPL
SPLINE
TRIGGER WHEN PATH=0 ONSTART DELAY=0 DO ... ;Trigger 2
SLIN P4
...
ENDSPLINE
Example PTP_SPLINE
...
SPTP P2
TRIGGER WHEN PATH=0 DELAY=0 DO ... ;Trigger 1
SPTP P3
ENDSPLINE C_SPL
SPLINE
TRIGGER WHEN PATH=0 ONSTART DELAY=0 DO ... ;Trigger 2
SLIN P4
...
ENDSPLINE
The reference point is determined in the same way as for homogenous ap-
proximate positioning.
(>>> "Start point approximated" Page 430)
If Trigger 1 were to be shifted to between PStartApprox and P3', the exact po-
sition would be determined as follows:
The robot controller calculates the percentage of the distance PStartApprox →
P3 at which the switching point would be located if the end point were an exact
positioning point. This proportion is then applied to the approximate position-
ing arc. The switching point is thus at x% of the distance PStartApprox →
P3'Trigger 1
The values for DELAY and PATH can be assigned using functions. The follow-
ing constraints apply to these functions:
The KRL program containing the function must have the attribute Hidden.
(>>> 7.4.2 "Displaying or modifying properties of files and folders"
Page 233)
The function must be globally valid.
The functions may only contain the following statements or elements:
Value assignments
IF statements
Comments
Blank lines
RETURN
Read system variable
Call predefined KRL function
11.11.4.1$DIST_NEXT
Description $DIST_NEXT specifies the length of the path from the current TCP position to
the next taught point.
Type: REAL. Unit:
For CP motions (spline and conventional): mm
For SPTP motions: No unit
$DIST_NEXT cannot be used for PTP motions. The value is always zero in
this case.
$DIST_NEXT is write-protected.
Procedure $DIST_NEXT can be used as an aid for programming PATH triggers without
ONSTART. It can be used to determine the value that must be assigned to the
PATH parameter.
1. Move to the position on the path where the switching point is to be located.
2. Read the system variable.
3. Program the trigger before the next point.
Program the trigger without ONSTART.
Assign the value of the system variable to the PATH parameter.
11.11.4.2$DIST_LAST
Description $DIST_LAST specifies the length of the path from the current TCP position to
the previous taught point. The value is generally positive.
Type: REAL. Unit:
For CP motions (spline and conventional): mm
For SPTP motions: No unit
$DIST_LAST cannot be used for PTP motions. The value is always zero in this
case.
$DIST_LAST is write-protected.
Procedure $DIST_LAST can be used as an aid for programming PATH triggers with ON-
START. It can be used to determine the value that must be assigned to the
PATH parameter.
1. Move to the position on the path where the switching point is to be located.
2. Read the system variable.
3. Program the trigger after the previous point.
Program the trigger with ONSTART.
Assign the value of the system variable to the PATH parameter.
11.12 Communication
CIOCTL
COPEN
CREAD
CWRITE
SREAD
SWRITE
11.13 Operators
Operator Description
+ Addition or positive sign
- Subtraction or negative sign
* Multiplication
/ Division
The arithmetic operators can be applied to the data types INT and REAL.
If the result of an INT division is not an integer, it is cut off at the decimal point.
Description Positions can be geometrically added using the geometric operator. The geo-
metric addition is also called a “frame operation”.
The geometric operator is symbolized by a colon “:” in KRL.
The geometric operator is suitable, for example, for the following purposes:
Shifting positions to adapt them to a modified workpiece size
Return motion strategies
Example This statement causes the tool to retract 100 mm against the tool direction, ir-
respective of the position at which the robot is currently located.
LIN $POS_ACT : {x -100, y 0, z 0, a 0, b 0, c 0}
The precondition is that the tool direction is located along the X axis.
$POS_ACT is a system variable of structure type E6POS and contains the
current Cartesian robot position.
Linked types The geometric operator can link the data types FRAME and POS/E6POS.
The components X, Y, Z, A, B and C must be assigned a value. The compo-
nents S and T remain unaffected by the operation and therefore do not have
to be assigned a value.
The result always has the data type of the operand on the far right.
Operation with 2 operands:
Meaning of the How can one visualize what the operands mean?
operands This is illustrated using the previous example for a return motion:
The result of a geometric addition differs according to the sequence of the op-
erands. The following example illustrates this graphically.
A = {x 1, y 1, z 0, a 0, b 0, c 0}
B = {x 3, y 2, z 0, a -45, b 0, c 0}
CS = original coordinate system
The result of an operation can be calculated using KRL. It specifies the posi-
tion of the right-hand operand relative to the coordinate system of the left-hand
operand.
Fig. 11-19: R = A : B
Fig. 11-20: R = B : A
Description This example shows how multiple coordinate systems can be linked.
In order to show the effect of the operations, the robot is moved to the origin
of each coordinate system and of the operation. The robot waits there for
2 seconds to highlight the position. In order to illustrate the change in orienta-
tion, the tip of the tool first moves 100 mm in the X direction, then 100 mm in
the Y direction and finally 100 mm in the Z direction.
Line Description
8 … 10 Initialization of 3 frames for the motion in the X, Y and Z direc-
tions.
11, 12 Initialization of 2 user-specific coordinate systems. These
serve as examples for the operations.
14 Move to the origin of the $BASE coordinate system.
16 … 18 In $BASE, first move 100 mm in the X direction, then 100 mm
in the Y direction and finally 100 mm in the Z direction.
19 In $BASE, move to the origin of the coordinate system
My_BASE[1].
21 … 23 Move to the same coordinates as in lines 16 … 18, but this
time in the coordinate system My_BASE[1], not in $BASE.
i.e. the location of these points in space is different from that in
lines 16 … 18.
24 In My_BASE[1], move to the origin of the coordinate system
My_BASE[2].
My_BASE[1] itself is located in $BASE.
Line Description
26 … 28 The robot moves to the same coordinates as in lines 16 … 18,
but this time in the coordinate system
My_BASE[1]:My_BASE[2].
29 In My_BASE[2], move to the origin of the coordinate system
My_BASE[1].
My_BASE[2] itself is located in $BASE.
31 … 33 The robot moves to the same coordinates as in lines 16 … 18,
but this time in the coordinate system
My_BASE[2]:My_BASE[1].
Description Using relational operators, it is possible to form logical expressions. The result
of a comparison is always of type BOOL.
In the case of REAL values, the test for equality or inequality is of only
limited use: due to the limited number of places after the floating
point, rounding errors are possible. These can result in identical for-
mulae having different values.
my_color = #orange
...
A = my_color == KUKA_color ;A=TRUE
END
Description Logic operators are used for performing logic operations on Boolean vari-
ables, constants and simple logic expressions, as are formed with the aid of
relational operators.
The operands of a logic operation must be of type BOOL. The result is also
always of type BOOL.
The following table shows the results of the possible operations:
Description Bit operators are used to link whole numbers by performing logic operations
on the individual bits of the whole numbers.
The results of the operations correspond to those of the logic operators.
Bit value 1 corresponds to TRUE.
Bit value 0 corresponds to FALSE.
Operator Number of operands Description
B_NOT 1 Bit-by-bit inversion
B_AND 2 Bit-by-bit ANDing
B_OR 2 Bit-by-bit ORing
B_EXOR 2 Bit-by-bit exclusive ORing
The bit operators can be applied to the data types INT and CHAR.
INT has 32 bits in KRL and has a sign. CHAR has 8 bits and does not have a
sign.
In the following examples for B_AND, B_OR and B_EXOR with integer values,
the results are positive numbers (most significant bit = 0). The results can be
converted directly into the decimal system in the same way as unsigned val-
ues.
The 28 leading zeros of the operands are indicated by “0 0 […]”.
B_AND
B_OR
B_EXOR
B_NOT In this integer example, the operation results in a negative number (most sig-
nificant bit = 1). The result can thus not be converted to the decimal system in
the same way as an unsigned number.
In order for the user to be able to understand the decimal result of the
robot controller, it is necessary to be familiar with the rules for inter-
preting twos complement numbers. The rules are not dealt with in this
documentation.
The decimal result of a B_NOT operation on a signed operand can also be cal-
culated as follows:
1. Decimal value of the operand plus 1
2. Invert sign
Check whether bits 0 and 7 are set to 1. If so, my_result is set to TRUE:
DECL BOOL my_result
...
my_result = DIG B_AND ('B10000001') == 'B10000001'
Check whether one of the two bits 0 or 7 is set to 1. If so, my_result is set to
TRUE:
DECL BOOL my_result
...
my_result = DIG B_AND ('B10000001') > 0
The priority specifies the order in which the operators are evaluated within a
statement.
Priority Operator
1 NOT; B_NOT
2 *; /
3 +; -
4 AND; B_AND
Priority Operator
5 EXOR; B_EXOR
6 OR; B_OR
7 ==, <>; <, >, <=, >=
11.14.1 DELETE_BACKWARD_BUFFER()
Example 1 In the following example, it is still possible to start backward motion during the
motion from P4 to P5. At P5, it is no longer possible:
PTP P4
PTP P5
DELETE_BACKWARD_BUFFER()
Example 2 In the following example, the following actions are possible or not possible:
Action Possible?
Move backwards to P6 Yes
Move backwards to P5 No
Move backwards from P5 Yes
PTP P3
PTP P4
PTP P5
TRIGGER WHEN DISTANCE=0 DELAY=0 do DELETE_BACKWARD_BUFFER() PRIO=-1
PTP P6
PTP P7
PTP P3
TRIGGER WHEN DISTANCE=0 DELAY=0 do DELETE_BACKWARD_BUFFER() PRIO=-1
PTP P4
TRIGGER WHEN DISTANCE=0 DELAY=0 do DELETE_BACKWARD_BUFFER() PRIO=-1
PTP P5
TRIGGER WHEN DISTANCE=0 DELAY=0 do DELETE_BACKWARD_BUFFER() PRIO=-1
PTP P6
PTP P7
Messages ROB_STOP() triggers the following status message: Robot stopped by submit
ROB_STOP_RELEASE() in a Test mode triggers the following acknowledge-
ment message: Ackn. Robot stopped by submit
ROB_STOP_RELEASE() in an Automatic mode triggers no message.
ProConOS The “Robot stop” function can also be used from ProConOS. The following
functions are available for this:
PLC_ROB_STOP()
The desired stop type is defined with PLC_ROB_STOP_RAMP_DOWN or
PLC_ROB_STOP_PATH_MAINT.
PLC_ROB_STOP_RELEASE()
The effect is the same, irrespective of whether a stop is triggered by submit or
by ProConOS. ProConOS generates its own message texts; these are:
11.14.3 SET_BRAKE_DELAY()
Description The function SET_BRAKE_DELAY can be used to reduce the brake delay
with reference to an individual point.
SET_BRAKE_DELAY is intended for use at the end of a cycle. When the robot
stops there before the next cycle begins, SET_BRAKE_DELAY can be used
to make the brakes close earlier, thereby also causing the drives to be deac-
tivated sooner. Energy can be saved in this way.
Brake delay:
The brake delay is the time after which the brakes are applied when the robot
(or the external axis) has reached an exact positioning point. It is irrelevant
whether the exact positioning point was programmed as such, or whether it
just works out that way because approximate positioning cannot be carried
out.
If the robot stops at the point until the time has elapsed, e.g. at the end of the
program, the brakes are applied. If the robot resumes motion before the time
has elapsed, the brakes are not applied.
The generally applicable brake delay is defined in system variables.
SET_BRAKE_DELAY can be used to set a lower value for an individual point,
i.e. the brakes are applied earlier.
System variables for the generally applicable brake delay:
$BRK_DEL_COM:
Brake delay for robot axes in command mode (= jogging) (default:
10,000 ms)
$BRK_DEL_PRO:
Brake delay for robot axes in program mode (default: 20,000 ms)
$BRK_DEL_EX:
Brake delay for external axes (default: 200 ms)
$BRK_DEL_EX only applies if the external axis mode is set
($BRK_MODE, bit 3 =1) and the external axis is not mathematically cou-
pled. Otherwise, the brakes of the external axis respond in the same way
as the robot axes and the corresponding delay times apply.
Additional SET_BRAKE_DELAY triggers an advance run stop. The advance run stop ap-
characteristics plies separately for synchronous and asynchronous axes. For example, if a
synchronous axis is specified using axes_nr, the advance run stop applies for
all synchronous axes, but not for any asynchronous axis that may be present.
SET_BRAKE_DELAY can be processed by all interpreters.
Bit n 11 … 5 4 3 2 1 0
Axis E6 … A6 A5 A4 A3 A2 A1
$BRAKE_SIG The state of the brakes (open or closed) can be displayed by means of the sys-
tem variable $BRAKE_SIG.
(>>> "$BRAKE_SIG" Page 213)
Example At the end of the following program, the brakes of the robot axes are to be ap-
plied as quickly as possible. For this reason, SET_BRAKE_DELAY(63, 0) has
been programmed after the last point.
1 DEF my_test()
2 DECL INT my_result
3 DECL INT brake_state
...
4 PTP HOME Vel= 100 % DEFAULT
5 PTP P1 ...
...
6 PTP HOME Vel= 100 % DEFAULT
7 my_result = SET_BRAKE_DELAY(63, 0)
8 brake_state = $BRAKE_SIG
9 END
Line Description
6 Last point in program
7 Here, the brake delay is set to 0 ms for all robot axes for the
point in line 6.
8 The monitoring reveals that the brakes are (still) open at this
point.
The reason for this is that the brakes cannot close in 0 ms;
they require a certain time to close for mechanical reasons.
Once this time has elapsed, the brakes are closed.
Negative example It is not generally helpful to use SET_BRAKE_DELAY during a cycle. There
are often no points at which the brakes are applied and where this operation
would need to be accelerated. On the contrary, the advance run stop triggered
by SET_BRAKE_DELAY would actually have a negative effect on the cycle
time.
1 DEF my_test()
2 DECL INT my_result
...
3 PTP HOME Vel= 100 % DEFAULT
4 PTP P1 C_DIS ...
5 my_result = SET_BRAKE_DELAY(63, 0)
6 ;WAIT SEC 0.5
7 PTP P2 ...
...
Line Description
5 Here, the brake delay is set to 0 ms for all robot axes for P1.
P1 is programmed with approximate positioning. Since
SET_BRAKE_DELAY triggers an advance run stop, the mo-
tion to P1 is carried out with exact positioning.
The brakes do not close at P1, however. The reason for this is
that the brakes would need the time mechanically required to
close. However, on reaching P1, the robot controller immedi-
ately starts the next motion. The brakes are thus not applied,
even though the delay is set to 0 ms.
6 By contrast, if this line were uncommented, the brakes would
close.
The robot controller would not immediately start the next mo-
tion on reaching P1, but stop at P1 for 0.5 s. This would allow
time for the brakes to be applied.
11.14.4 VARSTATE()
UP()
...
END
DEF UP()
...
IF VARSTATE("STATUS")==#DECLARED THEN
$OUT[100]=TRUE
ENDIF
...
END
Various functions are available for editing string variables. The functions can
be used in SRC files, in SUB files and in the variable correction function.
The functions can be used within IF branches without the return value being
explicitly assigned to a variable.
Description The function StrDeclLen() determines the length of a string variable ac-
cording to its declaration in the declaration section of a program.
Line Description
3 StrLength = 24
4 StrLength = 64
Description The function StrLen() determines the length of the character string of a
string variable as defined in the initialization section of the program.
Line Description
4 AB = 18
The function can be used within IF branches without the return value being ex-
plicitly assigned to a variable. This applies to all functions for editing string vari-
ables.
Description The function StrAdd() can be used to expand a string variable with the con-
tents of another string variable.
Line Description
5 A[ ] = “This is an example”
AB = 18
Description The function StrFind() can be used to search a string variable for a charac-
ter string.
Line Description
4 B=0
5 B=1
6 B=2
7 B=2
Description The function StrComp() can be used to compare two string variables.
Line Description
4 B = TRUE
5 B = TRUE
6 B = FALSE
7 B = FALSE
Description The function StrCopy() can be used to copy the contents of a string variable
to another string variable.
Line Description
5 A[ ] = “Example”
C = TRUE
12
2
Submit interpreter
12.1
t
Function of the Submit interpreter
Robot interpreter
The motion program runs in the robot interpreter.
Submit interpreter
A SUB program runs in the submit interpreter.
A SUB program can perform operator control or monitoring tasks. Exam-
ples: monitoring of safety equipment; monitoring of a cooling circuit.
This means that no PLC is required for smaller applications, as the robot
controller can perform such tasks by itself.
The Submit interpreter starts automatically when the robot controller is
switched on. The program SPS.SUB is started.
The submit interpreter can be stopped or deselected manually and can also
be restarted.
SUB programs are always files with the extension *.SUB. The program
SPS.SUB can be edited and further SUB programs can be created.
Display The program SPS.SUB is located in the directory R1\System. This directory is
visible in the user group Expert or higher.
In the Navigator, SUB programs are indicated by the following symbol:
In user group Expert or higher, the file extension sub is displayed in addition.
By default, the execution of a selected SUB program is not displayed. This can
be changed using the system variable $INTERPRETER. The SUB program
can only be displayed, however, if a motion program is selected at the same
time.
$INTERPRETER Description
1 The selected motion program is displayed in the
editor. (Default)
0 The selected SUB program is displayed in the ed-
itor.
Procedure In the main menu, select Configuration > SUBMIT interpreter > Stop or
Deselect.
Alternative In the status bar, touch the Submit interpreter status indicator. A window
procedure opens.
Select Stop or Deselect.
Description
Command Description
Stop The submit interpreter is stopped. When it is restarted, the
SUB program is resumed at the point at which it was
stopped.
Deselect The submit interpreter is deselected.
Once the submit interpreter has been stopped or deselected, the correspond-
ing icon in the status bar is red or gray.
Procedure In the main menu, select Configuration > SUBMIT interpreter > Select/
Start.
Alternative In the status bar, touch the Submit interpreter status indicator. A window
procedure opens.
Select Select/Start.
Description If the submit interpreter is deselected, the command Start/Select selects the
program SPS.SUB.
If the submit interpreter has been stopped, the command Start/Select re-
sumes the selected program at the point at which it was stopped.
Once the submit interpreter has been started, the corresponding icon in the
status bar is green.
Description The following folds are available for user-defined adaptations in the program
SPS.SUB:
USER INIT
USER PLC
Other parts of the SPS.SUB program must not be modified by the user.
If other parts of SPS.SUB are changed, this can affect the functional-
ity of technology packages.
Procedure 1. Select the program SPS.SUB in the Navigator and press Open.
2. Enter the changes:
Enter initializations in the USER INIT fold. This fold is located in the INI
fold.
USER INIT
; Please insert user defined initialization commands
3. Close the program. Respond to the request for confirmation asking wheth-
er the changes should be saved by pressing Yes.
4. The program SPS.SUB can now be started via the main menu with Con-
figuration > SUBMIT interpreter > Select/Start.
Line Description
3 INI fold
This fold contains the USER INIT fold: here the user can enter
statements which are to be executed only once after booting.
5 … 10 LOOP statement. For programs that are to run continuously in
the background.
9 Some software options insert folds into the program
SPS.SUB. Example: KUKA.ArcTech Basic inserts the fold
ATB PLC LOOP.
The folds that are actually present depend on what options are
installed on the robot controllers.
10 USER PLC: Here the user can enter instructions that are to be
executed in the LOOP.
Procedure 1. In the file list, select the folder in which the program is to be created. (Not
all folders allow the creation of programs within them.)
2. Press the New button.
The Template selection window is opened.
3. Select the template Submit or Expert Submit and confirm with OK.
4. Enter a name for the program and confirm it with OK.
Line Description
1 Declaration section
2 Initialization section. For statements that are only to be execut-
ed once after the system has booted.
4, 5, 6 LOOP statement containing the Fold USER PLC.
USER PLC is for programs that are to run continuously in the
background.
7 For user-specific subroutines
12.6 Programming
KRL code Almost all KRL instructions can be used in a SUB program. The following
statements are not possible, however:
Instructions for robot motions
Robot motions can only be interpreted by the robot interpreter. For this
reason, SRC programs containing motion commands cannot be called as
subprograms from a SUB program.
Instructions referring to robot motions
These include BRAKE and all TRIGGER statements.
Motion commands for external axes can be used in a SUB program. Example:
IF (($IN[12] == TRUE) AND ( NOT $IN[13] == TRUE)) THEN
ASYPTP {E2 45}
ASYPTP {E3 200}
...
IF ((NOT $IN[12] == TRUE) AND ($IN[13] == TRUE)) THEN
ASYPTP {E2 0}
ASYPTP {E3 90}
System variables The Submit interpreter has read-access to all system variables and write-ac-
cess to many of them. Access works even if the system variables are being
used in parallel by a motion program.
If a system variable to which the Submit interpreter does not have write-access
is modified in a SUB program, an error message is generated when the pro-
gram is started and the Submit interpreter stops.
System variables that are frequently required in SUB programs:
$MODE_OP = Value
Value Description
#T1 Robot controller is in T1 mode.
#T2 Robot controller is in T2 mode.
#AUT Robot controller is in Automatic mode.
#EX Robot controller is in Automatic External mode.
#INVALID Robot controller has no defined state.
$OV_PRO = Value
Element Data type Description
Value (%) INT Program override value
Example:
If the programmed velocity is not reached, output 2 is set to FALSE.
…
IF (($MODE_OP == #T1) OR ($OV_PRO < 100)) THEN
$OUT[2] = FALSE
ENDIF
…
Inputs/outputs The Submit interpreter can access the inputs and outputs of the robot control-
ler.
Subprograms Other programs can be called as subprograms in a SUB program. The follow-
ing are possible:
Other SUB programs
SRC programs without statements for robot motions
Example:
CELL.SRC can be called from the program SPS.SUB with a CWRITE state-
ment and RUN. The call only takes effect in the case of a cold start.
Communication The flags of the robot controller can be used to enable the exchange of binary
information between a running motion program and a SUB program. A flag is
set by the submit interpreter and read by the robot interpreter.
13 Diagnosis
13.1
s
Logbook
s
Procedure In the main menu, select Diagnosis > Logbook > Display.
The following tabs are available:
Log (>>> 13.1.2 "“Log” tab" Page 461)
Filter (>>> 13.1.3 "“Filter” tab" Page 462)
Item Description
1 Type of log event
Button Description
Export Exports the log data as a text file.
(>>> 13.1.4 "Configuring the logbook"
Page 463)
Update Refreshes the log display.
The Filter tab is only displayed if the log User-defined has been selected.
Procedure 1. In the main menu, select Diagnosis > Logbook > Configuration. A win-
dow opens.
2. Make the desired settings.
3. Press OK to save the configuration and close the window.
Description
Item Description
1 Check box active: the log events selected with the filter are
saved in the text file.
Check box not active: all log events are saved in the text file.
2 Enter the path and name of the text file.
Default path: C:\KRC\ROBOTER\LOG\LOGBUCH.TXT
3 Check box active: log data deleted because of a buffer over-
flow are indicated in gray in the text file.
Check box not active: log data deleted because of a buffer
overflow are not indicated in the text file.
This function displays the data for the process pointer ($PRO_IP).
Description
Item Description
1 None: Call not initiated by interrupt
[No.]: Call initiated by interrupt with the number [No.]
2 This file contains the call.
3 The program line with this number contains the call.
Preconditions in the program for the correct line to be determined
using the number:
Detail view (ASCII mode) is activated.
All Point PLCs are open.
4 Source line
5 Detailed information about the entry selected in the list
Description
Item Description
1 Status of the interrupt
Interrupt ON or ENABLE
Interrupt DISABLE
Button Description
Submit/ Toggles between the displays for robot interrupts and
Submit interrupts.
Robot
Refresh Refreshes the display.
Description The menu item Diagnostic monitor makes it possible to display a wide range
of diagnostic data concerning numerous software sub-areas of the kernel sys-
tem.
Examples:
Area Kcp3 driver (= driver for the smartPAD)
Network driver
The data displayed depend on the selected area. The display includes states,
fault counters, message counters, etc.
Description If it is necessary for an error to be analyzed by KUKA Roboter GmbH, this pro-
cedure can be used to compress the data for sending to KUKA. The procedure
generates a ZIP file in the directory C:\KUKA\KRCDiag. This contains the data
required by KUKA Roboter GmbH to analyze an error (including information
about system resources, screenshots, and much more).
Procedure via This procedure uses keys on the smartPAD instead of menu items. It can thus
smartPAD also be used if the smartHMI is not available, due to Windows problems for ex-
ample.
Precondition:
The smartPAD is connected to the robot controller.
The robot controller is switched on.
The keys must be pressed within 2 seconds. Whether or not the main
menu and keypad are displayed in the smartHMI is irrelevant.
Procedure via Alternatively, the data can also be compressed via File > Archive > [...]. In this
“Archive” way, the data can be stored on a USB stick or network path.
(>>> 7.10 "Archiving and restoring data" Page 247)
14
4
Installation
s
The robot controller is supplied with a Windows operating system and an op-
erational version of the KUKA System Software (KSS). Therefore, no installa-
t
tion is required during initial start-up.
Installation becomes necessary, for example, in the event of the hard drive be-
ing damaged and exchanged.
The robot controller may only be operated using the software provid-
ed with the controller by KUKA.
KUKA Roboter GmbH must be consulted if different software is to be
used. (>>> 15 "KUKA Service" Page 475)
14.2 Installing Windows and the KUKA System Software (KSS) (from image)
Description There are several variants for loading and finalizing the image. The most com-
monly required procedure is described here. The procedure also illustrates the
step in which a master image can be created if required.
Precondition Bootable KUKA USB stick with KUKA.RecoveryUSB 2.0 software and an
image
The stick has been configured with “Silent” mode active.
2 GB RAM
The robot controller is switched off.
The LEDs on the CSP provide information about the installation sta-
tus. Information about the LEDs is contained in the KUKA.Recovery-
USB documentation.
Observe the LEDs on the CSP! Initially, there is no image displayed on the
smartPAD.
3. Once the LEDs indicate that the Windows installation has been completed,
remove the stick.
Following installation of Windows, the robot controller automatically re-
boots.
After this, the robot controller automatically reboots again a second
time. (By now, at the latest, the stick must have been removed.)
4. The dialog Finalize Installation is displayed.
The Generalize Phase is executed. After this, the robot controller reboots
automatically and then shuts down automatically.
After the shutdown:
If a master image is to be created: Continue with step 11.
If not: Continue with step 12.
11. Only execute this step (step 11) if a master image is to be created.
a. Plug in the USB Recovery Stick.
The configuration of the stick must now be such that an image can be
created!
The project contains the KR 210 robot by default. Make sure to re-
move the robot from the tree structure in WorkVisual and insert the
robot actually being used.
This exchange must also be performed if the robot actually being used is al-
ready the KR 210.
Once the project has been configured in WorkVisual, it can again be trans-
ferred to the robot controller.
If necessary, the computer name can now be changed.
(>>> 14.3 "Changing the computer name" Page 470)
This function can be used to install additional software, e.g. technology pack-
ages. New programs and updates can be installed. The software is installed
from a USB stick. Alternatively, it can also be installed via a network path.
The system checks whether the additional software is relevant for the KSS. If
not, the system rejects the installation. If a software package that the system
has rejected is nonetheless to be installed, KUKA Roboter GmbH must be
contacted.
Button Description
New software All programs available for installation are dis-
played.
Back Additional software already installed is displayed.
Refresh Refreshes the display, e.g. after a USB stick has
been connected.
Install Displays additional buttons:
Yes: the selected software is installed. If it is
necessary to reboot the controller, this is indi-
cated by a message.
No: the software is not installed.
Button Description
Configure This button is only displayed if New software has
been pressed.
Paths for the installation of additional software or
KSS updates can be selected and saved here.
Displays additional buttons:
Path selection: a new path can be selected.
Save: saves the displayed paths.
Uninstall Displays additional buttons:
Yes: the selected software is uninstalled.
No: the software is not uninstalled.
Description This function can be used to install KSS updates, e.g. from KSS 8.3.0 to KSS
8.3.1.
Following installation or update of the KUKA System Software, the robot con-
troller always performs an initial cold start.
It is advisable to archive all relevant data before updating a software package.
If necessary, the old version can be restored in this way. It is also advisable to
archive the new version after carrying out the update.
Do not use this function to install a new version, e.g. from KSS 8.2 to
KSS 8.3. Nor may this function be used to install a variant, e.g. from
KSS 8.3 to KSS 8.3 sr. KUKA Roboter GmbH must be consulted be-
fore a new version or variant is installed.
This function cannot be used to install updates of additional software, such
as technology packages.
Description In the case of an update from the network, the installation data are copied to
the local drive D:\. If there is already a copy of a system software version pres-
ent on D:\, that copy will now be overwritten.
Installation is started on completion of the copying operation.
Preparation Configure the network path from which the update installation is to be carried
out:
1. In the main menu, select Start-up > Additional software.
2. Press New software.
3. Press Configure.
4. Select the Installation path for KRC update via the network box. Press
Path selection.
5. Select the desired network path (= the directory in which the Setup.exe file
is located). Press Save.
6. The selected path is now displayed in the Installation path for KRC up-
date via the network box.
Press Save again.
7. Close the window.
Procedure 1. In the main menu, select Start-up > Software update > Net.
2. A request for confirmation is displayed, asking if the update should be car-
ried out. Confirm by pressing Yes.
Depending on the network utilization, the procedure may take up to
15 min.
3. A message is displayed, indicating that a cold start will be forced next time
the system is booted. Switch the controller off.
4. Wait until the computer has shut down completely. Then switch the con-
troller back on.
5. Once the update has been completed, the computer is automatically shut
down and rebooted.
15 KUKA Service
A
Availability KUKA Customer Support is available in many countries. Please do not hesi-
tate to contact us if you have any questions.
Index
Symbols $LOAD_BWINI 275
_TYP 366 $MOVE_ENABLE 194
_TYPE 367 $NEAR_POSRET 197
#BSTEP 263 $ON_PATH 197
#CSTEP 264 $ORI_TYPE 280, 294
#IGNORE 294, 295 $OUT 345
#ISTEP 263 $PAL_MODE 99
#MSTEP 263 $PATHTIME 386
#PSTEP 264 $PERI_RDY 52, 196
$ 360 $POS_ACT 434
$ACCU_STATE 92 $PRO_ACT 196
$ADAP_ACC 181, 186 $PRO_IP 464
$ADVANCE 264 $PRO_MODE 263
$ALARM_STOP 196 $PRO_MOVE 197
$ALARM_STOP_INTERN 196 $RC_RDY1 195
$ANIN 345 $ROB_CAL 196
$ANOUT 345 $ROB_STOPPED 197
$AUT 197 $ROBRUNTIME 90, 91
$BRAKE_SIG 213 $SPL_ORI_JOINT_AUTO 295
$BRAKES_OK 226 $STOP_CONST_VEL_RED 388
$BRAKETEST_MONTIME 225 $STOPMESS 196
$BRAKETEST_REQ_EX 225 $T1 197
$BRAKETEST_REQ_INT 226 $T2 197
$BRAKETEST_WARN 226 $TOOL_DIRECTION 124
$BRAKETEST_WORK 226 $TORQ_DIFF 181, 186
$BRK_DEL_COM 443 $TORQ_DIFF2 181
$BRK_DEL_EX 443 $TORQMON_COM_DEF 181
$BRK_DEL_PRO 443 $TORQMON_DEF 181
$BRK_MODE 443 $TORQMON_TIME 182, 187
$BWD_INFO 275 $TORQUE_AXIS_ACT 212, 214
$BWDSTART 275 $TORQUE_AXIS_LIMITS 213
$CHCK_MOVENA 194 $TORQUE_AXIS_MAX 213
$CIRC_MODE 296 $TORQUE_AXIS_MAX_0 213
$CIRC_TYPE 296 $US2_VOLTAGE_ON 96
$COLL_ALARM 182 $USER_SAF 53, 196
$COLL_ENABLE 182 $VW_BACKWARD 275
$CONF_MESS 194 $VW_CYCFLAG 275
$CONST_VEL 388 $VW_MOVEMENT 275
$CONST_VEL_C 388 $VW_RETRACE_AMF 275
$COOLDOWN_TIME 180 $WARMUP_CURR_LIMIT 180
$COULD_START_MOTION 52 $WARMUP_MIN_FAC 180
$DIST_LAST 432 $WARMUP_RED_VEL 179
$DIST_NEXT 432 $WARMUP_SLEW_RATE 180
$DRIVES_OFF 194 $WARMUP_TIME 179
$DRIVES_ON 194
$ECO_LEVEL 170 Numbers
$ERR 395 2004/108/EC 43
$EX_AX_IGNORE 390 2006/42/EC 43
$EXT 197 3-point method 132
$EXT_START 194 89/336/EEC 43
$HOLDING_TORQUE 214 95/16/EC 43
$I_O_ACT 195 97/23/EC 43
$I_O_ACTCONF 196
$IN 345 A
$IN_HOME 197 A6, mastering position 115
$LDC_CONFIG 151 ABC 2-point method 129
$LDC_LOADED 150 ABC World method 129
$LDC_RESULT 151 Accessories 17, 21
User interface 49
V
Variable correction 82
Variable overview, configuring 168
VARSTATE() 83, 446
Velocity 71, 267
Velocity monitoring 31
Version, kernel system 90
Version, operating system 90
Version, robot controller 90
Version, user interface 90
Voltage 81, 347, 348
W
WAIT 348, 401, 402
WAIT FOR 401
Wait function, signal-dependent 348
WAIT SEC 402
Wait time 348, 402
WAITFOR 348
Warm-up 177
Warnings 15
WHILE ... ENDWHILE 402
Windows interface 54, 157, 158
WITH (permissible system variables 382
Working range limitation 32
Workpiece base calibration 144
Workpiece base, numeric entry 146
Workspace 22, 25
Workspace monitoring, bypassing 76
Workspaces, axis-specific 171
Workspaces, Cartesian 171
Workspaces, cubic 171
Workspaces, mode 176
WORLD coordinate system 64
Wrist root point 176
X
XML export 168
XML import 168
XYZ 4-point method 126
XYZ Reference method 128