RobotStudio event

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!