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
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings