Robot Studio Call Trap

khewes

Member
Join Date
May 2016
Location
New Hampshire
Posts
123
Hey everyone, I know this isnt exactly a PLC question but this is my fav forum cuz all yall is so helpful and responsive.

I am having trouble calling a trap routine in robot studio.

In my header -->
VAR intnum trap_1:=0;

in my trap -->
TRAP Part_Missing_Trap
TPReadFK answer, "Part Not Found on Tray","Retry Grab", "Skip Part", "Go Home", "", "";
!write message, give option to skip, retry, or go home
IDELETE trap_1;
vdiInterrupt1:=0;
CONNECT trap_1 WITH Part_Missing_Trap;
ISignalDI vdiInterrupt1,1,trap_1;
rPartMissing;
ENDTRAP

in my main-->

PROC main()
!MoveJ pHome,v200,fine,tGripperA;
IDELETE trap_1;
CONNECT trap_1 WITH Part_Missing_Trap;
ISignalDI vdiInterrupt1,1,trap_1;
rGoHome;....

where i try to call my trap-->
PROC rPartCheck()
!check to see which gripper is active
IF diGripA_Open = 1 THEN
TPwrite"debug inside partcheck r";
waitTime 10.0;
vdiInterrupt1:=1; !how to call trap?
ENDIF
WaitTime 5.0;
ENDPROC

The underlined line is where my code gets stuck
"Program execution error"

Thanks for your time,
Regards, Kris
 

Similar Topics

hello, I'm a student and for my final grade I have to repare a sepro robot. the only problem I have for now is that i have an error code 3...
Replies
0
Views
35
Hi I have a yaskawa gp7 robot arm which I am going to use for machine tending with a cnc mill. Is it a good idea to buy a SICK laser scanner for...
Replies
5
Views
234
Hello All, I'm looking for some opinions and Ideas for guarding the product entrance of a palletizing robot cell. Please see the attached...
Replies
7
Views
501
Hi all, First time posting here. I have a Omron NX1P2-1040DT controller that I intend to use for a small project. I also have a KUKA robot that...
Replies
3
Views
1,177
Has anyone ever tried to integrate a Raspberry Pi to a Fanuc robot? I have this idea that I want to try out but I need to write integers from a...
Replies
4
Views
1,545
Back
Top Bottom