Error handler during EGM
csmith
✭
Hi,
I'm trying to recover from any motion errors while my robot is controlled through EGM.
My current Rapid code:
Whenever I run into an Error during EGM, my error handler won't execute.
How can I make this work so I can recover without manually jogging the robot back to a valid position?
Thank you
I'm trying to recover from any motion errors while my robot is controlled through EGM.
My current Rapid code:
TEST egm_action
CASE EGM_POSE:
printInfoMessage 1, CONTEXT_EGM, "Starting pose mode";
EGMRunPose egm_id,
EGM_STOP_HOLD,
\X \Y \Z \Rx \Ry \Rz
\CondTime:=20
\RampInTime:=0.1
\PosCorrGain:=1;
DEFAULT:
ENDTEST
EGMReset egm_id;
ERROR
IF ERRNO=ERR_ROBLIMIT THEN
TPWrite "Joint out of range error";
MoveAbsJ homepos,v100,fine,tool0;
ENDIFWhenever I run into an Error during EGM, my error handler won't execute.
How can I make this work so I can recover without manually jogging the robot back to a valid position?
Thank you
Tagged:
0
Comments
-
Check out the system input Interrupt. If you have an error, your system output for error can tell the PLC that there is a problem. Then the PLC can give you that system input. From what I understand, it will act on that without the program running.Lee Justice0
Categories
- All Categories
- 5.6K RobotStudio
- 401 UpFeed
- 21 Tutorials
- 15 RobotApps
- 306 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.9K Robot Controller
- 363 IRC5
- 81 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 853 RAPID Programming
- 32 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 110 Collaborative Robots
- 5 Job listings
