Hi
How can i trigger two DO’s using a TriggL move?
Hi
How can i trigger two DO’s using a TriggL move?
The following example illustrates the instruction TriggLIOs:
VAR triggios gunon{2};
gunon{1}.used:=TRUE;
gunon{1}.distance:=3;
gunon{1}.start:=TRUE;
gunon{1}.signalname:=“DOutput1”;
gunon{1}.equiplag:=0;
gunon{1}.setvalue:=1;
gunon{2}.used:=TRUE;
gunon{2}.distance:=3;
gunon{2}.start:=TRUE;
gunon{2}.signalname:=“DOutput2”;
gunon{2}.equiplag:=0;
gunon{2}.setvalue:=1;
MoveJ p1, v500, z50, gun1;
TriggLIOs p2, v500, \TriggData1:=gunon, z50, gun1;
MoveL p3, v500, z50, gun1;
The signal gun is set when the TCP is 3 mm after
Hi Slokko,
Thanks for your answer.
Is it also possible to use time instead of distance?
Time is an optional argument for the move instruction.