# Code errors

**URL:** <https://tech-community.robotics.abb.com/t/code-errors/5959>\
**Category:** RobotStudio\
**Created:** [February 13, 2014, 6:08pm UTC](https://tech-community.robotics.abb.com/t/code-errors/5959 "2014-02-13T18:08:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Casius](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@Casius](https://tech-community.robotics.abb.com/u/Casius)\
**Post date:** [February 13, 2014, 6:08pm UTC](https://tech-community.robotics.abb.com/t/code-errors/5959/1 "2014-02-13T18:08:13Z")

</div>

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!

 ![ERROR.png](https://europe1.discourse-cdn.com/flex005/uploads/robotics1/original/1X/785e8f7138b652c50005c4717e681ae3d2fcb3fe.png)
