Fanuc Robot 3D View (OLP)

The Fanuc OLP plugin (menu VFanuc » Plugins » Fanuc OLP) shows the UP / Folge opened in the Fanuc viewer in a 3D environment: the robot (CAD model from the CAD repository or a dummy model built from the DH parameters of the controller), all points of the program as a path, the user frames, the TCP (UTOOL) and the linear unit E1.

Window Options Tabs Buttons
Touch up and Add point change the program in the editor (the file is saved as usual) and require the VFanuc OLP license. Paths generated off-line are not safe - test an off-line program before running the robot in automatic mode.
Robot mounting: the positions of a Fanuc robot are in its own world frame, so they are always calculated. A robot with $MRR_GRP[1].$MOUNT_ANGLE other than 0 (wall, ceiling) is still drawn floor mounted - a warning in the message window says it.
Fanuc M-900 with a parallel link: for M-900iA/260L, M-900iB/280L and M-900iB/400L the offset of the forearm is confirmed, so the 3D view and the point conversions of the editor (axes ↔ X Y Z W P R) calculate these robots correctly. For other robot types with a parallel link the kinematics is not confirmed yet: the editor does not calculate their positions and shows the message The kinematics of ... (parallel link) is not yet confirmed in DReS - positions cannot be calculated.

Command API

The pose of the robot is available through plugin_cmd with plugin = "Fanuc OLP" (see VeRa / command API), e.g. {"cmd": "plugin_cmd", "plugin": "Fanuc OLP", "command": "olp_pose", "z": 1200, "config": "N U T, 0, 0, 0"}. Open the view first with run_plugin "Fanuc OLP" while a Fanuc program is open in the editor; otherwise the answer is an error. The commands use the same functions as the fields of the panel.
CommandParameterMeaningDefault
olp_status-state of the view: open, program, connected (viewer of the program), robotLoaded, mountingSupported / mountingError and the pose of the panel (as olp_pose)-
olp_posex, y, z (mm)position of the tool UT in the user frame UF of the panel (fields X, Y, Z, option Current UF is RTCP) - the same as editing the fields: inverse kinematics, soft limits, the robot is movedthe current field values
w, p, r (degrees)orientation, as the fields W, P, Rthe current field values
config (text)CONFIG of the solution, e.g. "N U T, 0, 0, 0"; the CONFIG of the solution is checkedthe CONFIG of the panel
olp_axesa1 .. a6 (degrees)axis fields J1 .. J6; the limits of the fields are checked - a value outside gives an error and the robot is not moved; the Cartesian pose follows by the forward kinematicsthe current field values
e1linear unit E1; an error when the robot has no E1 (field not active)the current field value
Answer of olp_pose and olp_axes: axes [J1 .. J6], e1 (when the robot has E1), x .. r, config, ut, uf, rtcp. Without parameters the current pose is only read. UT and UF 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, soft limit, other CONFIG, robot or DH parameters not loaded, a value of a wrong type, 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.