Check the payload schedules
Read the payload schedules $PLST_GRP1 and the active schedule $PLST_PARNUM of every Fanuc robot, and find the schedules with no mass or no comment.
Does each Fanuc robot of the line run with the right payload? The payload schedules are the system variable $PLST_GRP1 and the active one is $PLST_PARNUM. One read per robot is enough to list them all, and to find a schedule that was never filled in.
The variables
| Variable | Type | Meaning | File |
|---|---|---|---|
$PLST_GRP1[n] | PLST_GRP_T | Payload schedule n of group 1. The digit in the name is the motion group: $PLST_GRP2 for group 2 | symotn.va |
$PLST_GRP1[n].$COMMENT | STRING | Comment of the schedule | symotn.va |
$PLST_GRP1[n].$PAYLOAD | REAL | Mass | symotn.va |
$PLST_GRP1[n].$PAYLOAD_X, _Y, _Z | REAL | Centre of gravity | symotn.va |
$PLST_GRP1[n].$PAYLOAD_IX, _IY, _IZ | REAL | Inertia | symotn.va |
$PLST_PARNUM[g] | INTEGER | Active payload schedule of group g | symotn.va |
The SDK gives them with GetSymotnFile(): PlstGrp1 to PlstGrp5, and PlstParnum. The units are not given here: compare one schedule with the PAYLOAD screen of the pendant before you write a rule on the values.
In the listings we checked, both variables are read only (Access: RO). A program selects a schedule with the PAYLOAD[n] instruction.
List the schedules of a robot
parameters.Ftp.Enable = true;robot.Connect(parameters);// symotn.va holds the payload schedules: $PLST_GRP1[n] is PlstGrp1[n - 1]SymotnFile motion = robot.Ftp.KnownVariableFiles.GetSymotnFile();int active = motion.PlstParnum[0]; // $PLST_PARNUM[1]Console.WriteLine($"Active schedule of group 1: {active}");for (int n = 1; n <= motion.PlstGrp1.Length; n++){PlstGrpVariableType s = motion.PlstGrp1[n - 1];if (s == null) continue;string warning = s.Payload <= 0 ? " <- no mass" : "";Console.WriteLine($"{n} '{s.Comment}' PAYLOAD={s.Payload} X={s.PayloadX} Y={s.PayloadY} Z={s.PayloadZ}{warning}");}}}
The .NET and Python arrays start at 0: $PLST_GRP1[1] is PlstGrp1[0], and $PLST_PARNUM[1] is PlstParnum[0].
Audit a fleet
Run the same read on every robot and keep a table: robot, schedule, comment, mass. Look for:
- a schedule with a mass of 0 while the robot carries a tool,
- a schedule without comment, that nobody can explain,
- all the schedules with the same values, which can mean that they were never set,
- a schedule that changed since the last audit.
Write a payload
With the RMI option (R912), SetPayloadValue writes the mass, the centre of gravity and the inertia of a schedule, and SetPayloadSchedule makes it active. The parameters of these calls are in kg, m and kg·m².
parameters.Rmi.Enable = true;robot.Connect(parameters);// Define payload for schedule 1: 5 kg, center of gravity offset 0.1 m in Zrobot.Rmi.SetPayloadValue(scheduleNumber: 1,massKg: 5.0f,cgXm: 0f, cgYm: 0f, cgZm: 0.1f);// Include inertia valuesrobot.Rmi.SetPayloadValue(scheduleNumber: 2,massKg: 3.0f,cgXm: 0.05f, cgYm: 0f, cgZm: 0.08f,inertiaXkgm2: 0.002f, inertiaYkgm2: 0.002f, inertiaZkgm2: 0.001f);// Define payload compensationrobot.Rmi.SetPayloadCompensation(scheduleNumber: 1,massKg: 1.0f,cgXm: 0f, cgYm: 0f, cgZm: 0.05f,inertiaXkgm2: 0.001f, inertiaYkgm2: 0.001f, inertiaZkgm2: 0.0005f);// Activate schedule 1 immediately (command, not a TP instruction)robot.Rmi.SetPayloadSchedule(1);robot.Disconnect();}
Cautions
- Enter the values of the real tool, from its drawing or from the payload identification of the controller.
- A change of payload changes how the robot moves. Test the programs at low speed after a change.
Without code
TouchUp, the robot workbench for VS Code, shows the payload schedules 1 to 10 of a connected Fanuc controller, with the number, the comment and the load, in its User Frames and Tools view. It reads them only. See User frames and tools.