# Trigger two DO's 2 seconds from point

**URL:** <https://tech-community.robotics.abb.com/t/trigger-two-dos-2-seconds-from-point/9167>\
**Category:** RAPID Programming\
**Created:** [October 28, 2019, 8:52am UTC](https://tech-community.robotics.abb.com/t/trigger-two-dos-2-seconds-from-point/9167 "2019-10-28T08:52:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KNielsen](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@KNielsen](https://tech-community.robotics.abb.com/u/KNielsen)\
**Post date:** [October 28, 2019, 8:52am UTC](https://tech-community.robotics.abb.com/t/trigger-two-dos-2-seconds-from-point/9167/1 "2019-10-28T08:52:52Z")

</div>

Hi

How can i trigger two DO’s using a TriggL move?

---

<div class="post-metadata">

**Author:** ![Slokko](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/slokko/32/3431_2.png) [@Slokko](https://tech-community.robotics.abb.com/u/Slokko)\
**Post date:** [October 29, 2019, 12:47pm UTC](https://tech-community.robotics.abb.com/t/trigger-two-dos-2-seconds-from-point/9167/2 "2019-10-29T12:47:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![KNielsen](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@KNielsen](https://tech-community.robotics.abb.com/u/KNielsen)\
**Post date:** [October 30, 2019, 8:57am UTC](https://tech-community.robotics.abb.com/t/trigger-two-dos-2-seconds-from-point/9167/3 "2019-10-30T08:57:53Z")

</div>

Hi Slokko,

Thanks for your answer.

Is it also possible to use time instead of distance?

---

<div class="post-metadata">

**Author:** ![lemster68](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/lemster68/32/1945_2.png) [@lemster68](https://tech-community.robotics.abb.com/u/lemster68)\
**Post date:** [October 30, 2019, 10:03am UTC](https://tech-community.robotics.abb.com/t/trigger-two-dos-2-seconds-from-point/9167/4 "2019-10-30T10:03:57Z")

</div>

Time is an optional argument for the move instruction.
