RobotStudio event

Trigger two DO's 2 seconds from point

Options
Hi
How can i trigger two DO's using a TriggL move?

Comments

  • Slokko
    Options

    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




  • KNielsen
    Options
    Hi Slokko,

    Thanks for your answer.
    Is it also possible to use time instead of distance?
  • lemster68
    Options
    Time is an optional argument for the move instruction.
    Lee Justice