
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.5K RobotStudio
- 398 UpFeed
- 19 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 324 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 813 RAPID Programming
- 5 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings