Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.

Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.

We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.

Code errors

Hello, 
      I need help with this code. I try to check the home position and to set an output if the robot is in home.

VAR wztemporary HomePosition;
PROC TestHome()

        VAR shapedata joint_space;
        CONST jointtarget home_pos := [[0, -20, 0, 0, 0, 0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
        CONST jointtarget delta_pos := [[2, 2, 2, 2, 2, 2], [9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
WZHomeJointDef \Inside, joint_space, home_pos, delta_pos;
        WZDOSet \Temp, HomePosition \Inside, joint_space, O_HomePosition, 1;     
          
ENDPROC

The errors are: 
"Wrong number of arguments to WZHomeJointDef"
"Wrong number of arguments to WZDOSet"

Thank you!