The VKRC OLP plugin (menu VKRC » Plugins » VKRC OLP) shows the UP / Folge opened in the VKRC 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, the TCP and the linear unit E1.
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,
- Keep TCP position - moving the linear unit E1 keeps the TCP in place (the robot axes are recalculated),
- Show flange position, Show TCP, Show path, Show points' labels, Show range,
- Path - all points of the program; 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 UP / Folge 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
VKRC OLP 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 pose of the robot is available throughplugin_cmd with plugin = "VKRC OLP" (see
VeRa / command API), e.g. {"cmd": "plugin_cmd", "plugin": "VKRC OLP", "command": "olp_pose",
"z": 1200}. Open the view first with run_plugin "VKRC OLP" while a VKRC program is open in the editor;
otherwise the answer is an error. The commands use the same functions as the fields of the panel.
| Command | Parameter | Meaning | Default |
|---|---|---|---|
olp_status | - | state of the view: open, program,
connected (viewer of the program), robotLoaded, config (configuration file),
trafo, mountingSupported / mountingError and the pose of the panel (as
olp_pose) | - |
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, software limits, mounting checked, 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 | |
olp_axes | a1 .. a6 (degrees) | axis fields A1 .. A6; the limits of the fields (software limits) are checked - a value outside gives an error and the robot is not moved; the Cartesian pose follows by the forward kinematics | the current field values |
e1 (mm) | linear unit E1 (ERSYS); an error when the robot has no E1 (field not active) | the current field value |
olp_pose and olp_axes: x .. c, s, t,
tool, base, axes [A1 .. A6], e1 (when the robot has E1);
olp_pose also singular. Without parameters the current pose is only read. Tool T and base
B are the display fields of the panel (taken from the selected point): they are reported, not set.
Errors are in the answer: ok = false and error with the reason (no solution, axis
limit exceeded, unsupported mounting, robot or kinematics not loaded, a value that is not a number, unknown command); the pose
is not changed and the answer has the unchanged values.
See also 3D Modelling for the CAD repository of robot models.


