The KRC OLP plugin (menu KRC » Plugins » KRC OLP) shows the program opened in the KRC viewer in a 3D environment: the robot (CAD model from the CAD repository or a dummy model built from the kinematics of the robot), all motion points of the program as a path, the base frames and the TCP.
Window
- 3D view - robot model, path of the program, frames and TCP; views (axonometric, front, top ...), Fit in view and Grab the preview (export of the view to an image) in the toolbar,
- View menu - display mode (shaded / wire frame), grid on / off,
- Tools menu - add a cube or a sphere to the scene (e.g. to check a fence or an obstacle), grab the preview, Options (grid and colour settings),
- Message Window - information about the model, the kinematics and the points (errors, axis limits, unreachable positions).
- T / B - tool and base of the selected point,
- A1 .. A6, E1 - axis values; changing them moves the robot, the Cartesian position X, Y, Z, A, B, C and the configuration S / T are calculated (forward kinematics),
- X, Y, Z, A, B, C - editable: the TCP in the base B with the tool T of the panel; a new value moves the robot by the inverse kinematics with the configuration S / T kept. The value is taken on Enter, when the field is left or with the arrows (not after every typed character). When there is no solution, an axis limit is exceeded or the mounting is not supported, the message window gives the reason and the previous values come back. The fields are enabled together with the axis fields,
- Show flange position - Cartesian values of the flange instead of the TCP,
- Show TCP, Show path, Show points' labels, Show range (work envelope),
- Show workspaces (on by default, remembered) - the Cartesian workspaces
$WORKSPACE[n]of the controller (KRC\STEU\Mada\$custom.datof the robot) as transparent boxes with the label $WORKSPACE[n] <MODE>: red - the robot is stopped (MODE ..._STOP), yellow - only a signal is set, grey - switched off (#OFF). These are monitoring workspaces of the controller, not the safety zones of SafeOperation. The workspaces are in WORLD: with$ROBROOT!= 0 (robot not standing in WORLD) they are not shown and the message window gives the reason (the same for a missing$custom.dator a missing license KRC / KUKA iiQKA), - Axis workspaces - with Show workspaces a line under the transparency slider gives, for every axis-specific
workspace
$AXWORKSPACE[n]of the controller (KRC\R1\Mada\$machine.datof the robot), the state for the current axes of the view (A1 .. A6, E1 when its field is enabled), e.g.$AXWORKSPACE[8] #OUTSIDE_STOP (name): inside - ok (A1 81.0 in 80.0 .. 125.0, A4 0.0 in -5.0 .. 5.0): green - ok, no reaction; red - the robot would be stopped (MODE ..._STOP: outside of an#OUTSIDE_STOPworkspace or inside an#INSIDE_STOPone); yellow - only the output is set (MODE without STOP); grey - switched off (#OFF) or no data (value of a monitored axis missing,$machine.datnot found, no license, robot not loaded - the reason is in the line). Inside = every monitored axis in its range [N, P]; an axis with N = P is not monitored (the same rules as in Robot Safety View; not confirmed by KUKA documentation in our files). The state follows every change of the axes; the axis workspaces do not depend on$ROBROOT. These are monitoring workspaces of the controller, not safety zones, and they are not drawn in 3D, - Transparency - slider without a label under Show workspaces (the value is in its tooltip; 0 .. 100 %, default 85 %, remembered): 0 % = opaque faces, 100 % = invisible faces, only the edges stay; a switched-off workspace is drawn a bit lighter,
- Cell coordinates (iiQWorks.Sim project) - KUKA iiQKA only (hidden for KUKA KSS programs; off by default,
remembered): the position of the robot in the cell of the iiQWorks.Sim project of the backup
(
PROJECT\*.vctemp, itslayout.rsc) is read and the line Cell: X Y Z A B C shows the TCP in cell coordinates (robot location in the layout + TCP in WORLD with the tool of the field T and base 0; A, B, C stay the same). A robot location rotated in the cell is not supported and gives an error, as well as a backup without or with several iiQWorks.Sim projects or a robot not found in the layout. Needs the license KUKA iiQKA.
- Path - all motions of the program (PTP / LIN / CIRC); selecting a point moves the robot to it,
- Base - base frames of the robot, each can be shown or hidden,
- Tool - CAD models of tools (STEP) which can be mounted on the flange,
- Compare with... - draws the path of another program of the same robot.
- Touch up - writes the current position of the robot to the selected point,
- Add point - adds a new motion with the current position after the selected point.
Touch up and Add point change the program in the editor (the file is saved as usual) and require the
KRC license. Paths generated off-line are not safe - test an off-line program before running the robot in
automatic mode.
Robot mounting: only a robot standing in $WORLD ($ROBROOT = {0,0,0,0,0,0} in
$machine.dat) or a robot on the E1 linear unit ($ERSYSROOT = 0) is supported. For another $ROBROOT
(ceiling, wall, shifted robot) no Cartesian positions are calculated and the robot is not drawn - the message
window shows the $ROBROOT value.
Command API
The options are available throughplugin_cmd with plugin = "KRC OLP" (see
VeRa / command API). Open the view first with run_plugin "KRC OLP" while a KRC program is
open in the editor; otherwise the answer is an error.
| Command | Parameter | Meaning | Default |
|---|---|---|---|
olp_status | - | state of the view: open, program,
connected (viewer of the program), profile (KUKA KSS / KUKA iiQKA), robotLoaded,
showWorkspaces, cell (as olp_cell) | - |
olp_workspaces | show (bool) | option Show workspaces on / off (remembered); without the parameter the state is only read | unchanged (GUI: true) |
transparency (0 .. 100) | transparency slider under Show workspaces (remembered); a value outside 0 .. 100 is an error | unchanged (GUI: 85) | |
olp_cell | show (bool) | option Cell coordinates (iiQWorks.Sim project) on / off; KUKA iiQKA only (a KSS program, a missing license or a project that cannot be read give an error) | unchanged
(GUI: false) |
olp_pose | x, y, z (mm) | TCP in the base B with the tool T of the panel - the same as editing the fields X, Y, Z: inverse kinematics, the robot is moved | the current field values |
a, b, c (degrees) | orientation, as the fields A, B, C | the current field values | |
s, t (int) | configuration Status / Turn | the current fields S / T (kept) |
olp_pose: x .. c, s, t, tool,
base, axes [A1 .. A6], e1 (when used) and singular. Without any of
x .. t only the current pose is read. On an error (no solution, axis limit, unsupported mounting,
robot not loaded) ok = false, error gives the reason and the pose is not
changed (the answer has the unchanged values).
Answer of olp_workspaces: showWorkspaces, transparency, file (the
$custom.dat), workspaceError (when not shown) and workspaces - for each one
index, mode, kind (stop / signal / off),
inside, tcpOnly, line and the 8 corners; in addition
axWorkspaces (the axis workspaces $AXWORKSPACE[n] for the current axes), axWorkspaceFile
(the $machine.dat) and axWorkspaceError (when they cannot be shown). The answer of
olp_pose also has axWorkspaces for the new axes. Fields of each entry of axWorkspaces:
| Field | Meaning | Default |
|---|---|---|
index | n of $AXWORKSPACE[n] | - |
mode | MODE, e.g. #OUTSIDE_STOP, #INSIDE, #OFF | - |
kind | stop (MODE with STOP) / signal (without STOP) / off | - |
modeInside | true = MODE ...INSIDE... (the reaction comes inside) | - |
name | $AXWORKSPACE_NAMEn | missing (default name) |
axes | monitored axes {"A1": [N, P], ...} | - |
line | declaration as read from the file | - |
state | ok (green), stop (red), signal (yellow), off
or not evaluated (grey, with error) | - |
inside | true = every monitored axis in [N, P] | missing when not evaluated |
active | true = the controller reacts (stop or output) | missing when not evaluated |
margin_deg | margin on the allowed side in degrees (< 0 = violation); only when no external axis is monitored | missing |
error | why the workspace is not evaluated | missing |
axWorkspaces is empty while Show workspaces is off (switch it on with olp_workspaces
show: true). Answer of olp_cell:
iiqka, cellCoordinates, project, robotNode, robotLocation
{X, Y, Z}, tcpCell {X, Y, Z, A, B, C} (when shown) or cellError. Every answer has ok
and, on an error, error.
See also 3D Modelling for the CAD repository of robot models.


