
Home position

scbyun
✭
in RobotStudio
Here is our user mode home position routine...
Before home position changed,
do03_RobHome signal is well activated.
do03_RobHome signal is well activated.
However, after change pHome by jogging,
do03_RobHome signal is not set even though Rotot is at pHome position...
do03_RobHome signal is not set even though Rotot is at pHome position...
What is problem...? please help me..
MODULE user (SYSMODULE)
! Predefined user data
!*********************
! Declaration of numeric registers reg1...reg5
VAR num reg1 := 0;
VAR num reg2 := 0;
VAR num reg3 := 0;
VAR num reg4 := 0;
VAR num reg5 := 0;
! Declaration of stopwatch clock1
VAR clock clock1;
VAR pos pHomepos:=[0,0,0];
VAR shapedata HomeZoneShape;
VAR wzstationary HomeData;
PROC Zones()
!Robot Home zone Check:
pHomepos:=pHome.trans;
WZSphDefInside,HomeZoneShape,pHomepos,10;
WZDOSetStat, HomeDataInside, HomeZoneShape, do03_RobHome, 1;
ENDPROC
ENDMODULE
0
Comments
-
What do you mean by change home position? Did you created new home position or you just jogged robot out of the home position?
I dont understand the question clearly. And where did you call your procedure Zones() in the main program?
0 -
You have to warmstart the robot control once you change your home position, so your Zone() procedure will run. The zone procedure should be connected to the power-on event and can only be run once to set your world zones - warmstart teh controller or cycle power to it to establish the new home position.Thomas H. Johnston
PACs Application Engineer0 -
Thank you....It works...I am a beginner. So it is very helpful of your reply.. thanks.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