KRC Robot 3D View (OLP)

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 Options Tabs Buttons
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 through plugin_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.
CommandParameterMeaningDefault
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_workspacesshow (bool)option Show workspaces on / off (remembered); without the parameter the state is only readunchanged (GUI: true)
transparency (0 .. 100)transparency slider under Show workspaces (remembered); a value outside 0 .. 100 is an errorunchanged (GUI: 85)
olp_cellshow (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_posex, 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 movedthe current field values
a, b, c (degrees)orientation, as the fields A, B, Cthe current field values
s, t (int)configuration Status / Turnthe current fields S / T (kept)
Answer of 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:
FieldMeaningDefault
indexn of $AXWORKSPACE[n]-
modeMODE, e.g. #OUTSIDE_STOP, #INSIDE, #OFF-
kindstop (MODE with STOP) / signal (without STOP) / off-
modeInsidetrue = MODE ...INSIDE... (the reaction comes inside)-
name$AXWORKSPACE_NAMEnmissing (default name)
axesmonitored axes {"A1": [N, P], ...}-
linedeclaration as read from the file-
stateok (green), stop (red), signal (yellow), off or not evaluated (grey, with error)-
insidetrue = every monitored axis in [N, P]missing when not evaluated
activetrue = the controller reacts (stop or output)missing when not evaluated
margin_degmargin on the allowed side in degrees (< 0 = violation); only when no external axis is monitoredmissing
errorwhy the workspace is not evaluatedmissing
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.