SOmetimes robot waits at infeed and i need it to go to perch and turn the blower off. I know how to create a program to make it go there, but how can i make it come back to the same point in the program when boxes do come? I am attaching a pic of the program for picking up boxes.
Help with logic
- cat91345
- Thread is Unresolved
-
-
You need add a Timeout in the WAIT and use Labels. You can configure this timeout in "System > Config > WAIT timeout"
Example program:
LBL[1]
J P[1] ....
WAIT DI[1]=ON Timeout LBL[100] (This wait is for boxes for example)
[Here instructions for do things with the box]
JPM LBL[101]
LBL[100] (From timeout)
J P[x]....
[Turn off the blower]
WAIT DI[1]=ON (This wait is for boxes for example)
JMP LBL[1]
LBL[101]
/END PROGRAM
In this program, what the code does is that it goes to the point of waiting for boxes, and when it is waiting, when the configured timeout passes, it will jump to the programmed label and you can do other things. And from the timeout we return to where we were. Now you can do the movement how more you like.