programableRobot - call function block issue

Hello

 I encountered one issue during calling a function block of programable robot(ProgrammableRobotItemInformation.GetRobotPointByPointId), I want to get robot point from robot piont list, then assign the point to brake test ParCmd.ExecuteBrakeTest.RobotPointAfterFail, but after call the FB, PLC is stopped with library error(see attachment), I uninstalled all robot library from the TwinCAT, and exported them by CPS, but still not working.

below is my code, I am not sure if it is correct.

ProgrammableRobotItemInformation.GetRobotPointByPointId(rUnit := AssyRobot.Unit,
                                                                                                                              RobotPointListIdentifier := PROGRAMMABLE_ROBOT_TEMPLATE_NEST_LIST_GRIPPER1_ID,
                                                                                                                              PointId := AssyRobotNestGripper1Enum.HOME,
                                                                                                                              rRobotPoint := rRobotPoint,
                                                                                                                              rRobotPointIndex := rRobotPointIndex);

Lib.png
126.01KB
NoSource.png
9.28KB
Best reply by VP

The method parameters 4 and 5 are each defined as a reference to which the method writes back the result of the calculation. In this case, however, no structure or variable was assigned here, but again a reference. This is not possible.

View original
3 replies
Resolved