Code errors

Casius
✭
in RobotStudio
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!
0
Categories
- All Categories
- 5.6K RobotStudio
- 399 UpFeed
- 20 Tutorials
- 14 RobotApps
- 301 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 336 IRC5
- 67 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 828 RAPID Programming
- 13 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 107 Collaborative Robots
- 5 Job listings