firstly please let me say that im only just starting to self teach programing rapid, so sorry if my questions are a little simple
I have a pick and place machine which has lots of place targets (100+)
but now i need to do a small move at every place target, (basically just a +x,-x,+y-y movement) but im being slightly lazy and dont want to write this move into every target, so i would like to use some sort of incremental move in a small program i can call on
so far i have tried to write this as a small program
PROC rWiggle()
VAR robtarget wiggling;
wiggling;= crobt(tool;=tool1wobj;=placetable);
MOVEL RELTOOL (wiggling,0,10,0),v500,fine,tool1wobj;=placetable);
MOVEL RELTOOL (wiggling,0,0,0),v500,fine,tool1wobj;=placetable);
MOVEL RELTOOL (wiggling,10,0,0),v500,fine,tool1wobj;=placetable);
MOVEL RELTOOL (wiggling,0,0,0),v500,fine,tool1wobj;=placetable);
ENDPROC
then i run this program after the target move
the problem is, crobt is loading the last postion which was used in the “main” modual, but all my target places are run in a different modual, is there anyway i can do this? (which im sure there is, just im a little slow at this)
thanks
Gareth