Hey everybody,
I had a quick question that I think I’ve got an answer for but has been giving me trouble. I’m working on a scanning application, it sits on an integrated 7th axis and has five bays it can go between. We have FIFO handling in there so the robot could go from bay 1 to bay 5 to bay 2 all depending on which bay is loaded first.
The same styles are ran in all five bays, so I have the exact same scanning program path wise, my problem is the Get_Home program. I’ll type an example of the Macro as well as the TP path
Macro:
PR[1,7]=0.
PR[2,7]=0.
PR[99,7]=0.
R[5]=0
R[5]=GI[4]
SELECT R[5]= 0, JMP LBL [1]
1, JMP LBL [2]
LBL[1]
PR[1,7]=1000.
PR[2,7]=1000.
PR[99,7]=1000.
END
LBL[2]
PR[1,7]=2000.
PR[2,7]=2000.
PR[99,7]=2000.
TP:
OFFSET CONDITION PR[99]
L 500/mm CNT 50
L 500/mm CNT 50
So in my scan programs I set all the 7th axis values in the positional data and when I set everything under the offset condition it works fine. My problem though is the home program, since I need the reference position to run in AUTO I have to set the reference position position which automatically repopulates PR[1] with the same value everytime. I was wondering if there’s a simpler solution or if maybe I could manipulate a variable to populate PR[1] based on the Group Input from the PLC because I’m going to have to call MOVE_HOME at the top of every program so it slides down the rail.