Trouble with Interupt
Hello,
I'm trying to use interrupt but i guet some problem and i hope you could help me.
We are using multimove system with irb6400
First interrupt have to stop the robot until we restart with signal from PLC.
Is it Okay ? sometime i got queue interupt is full... i don't know why
I'm trying to use interrupt but i guet some problem and i hope you could help me.
We are using multimove system with irb6400
First interrupt have to stop the robot until we restart with signal from PLC.
Is it Okay ? sometime i got queue interupt is full... i don't know why
TRAP Interrupt_R1
TPWrite "Robot 1 - STOP";
StopMove;
IDelete robot1_stop;
WaitDI PN_DI020,1;
StartMove;
CONNECT robot1_stop WITH Interrupt_R1;
ISignalDI PN_DI015,1,robot1_stop;
ENDTRAP
The second interrupt should do :
- stop the movement on the path
- Move the robot to another position
- Wait signal to restart
The second interrupt should do :
- stop the movement on the path
- Move the robot to another position
- Wait signal to restart
TRAP Interrupt_CasseLame_R1
Set PN_DO133;
StopMove;
ClearPath;
Ouverture_Galets_R1;
TPWrite" Casse lame robot1 ";
StartMove;
posAct_R1:=CRobT(\Tool:=tool_lame_R1_2\WObj:=wobj0);
MoveL RelTool(posAct_R1,0,-150,0),v300,fine,tool_lame_R1_2\WObj:=wobj0;
TPWrite" Coupez le PVB puis appuyez sur PLAY apres fermeture porte ";
IDelete robot1_CasseLame;
Stop;
Main;
ENDTRAP
But i got an error the pointer of the robot is too far from the cursor.. What can i do ?
Regards
But i got an error the pointer of the robot is too far from the cursor.. What can i do ?
Regards
Tagged:
0
Comments
-
For the first TRAP the solution is to not disconnect and reconnect the interruptTRAP Interrupt_R1TPWrite "Robot 1 - STOP";StopMove;WaitDI PN_DI020,1;StartMove;ENDTRAP0
-
Use the instruction ISleep first in your trap. If you do not, it keeps triggering, causing interrupt queue full.Lee Justice0
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