# trigger num/dnum

**URL:** <https://tech-community.robotics.abb.com/t/trigger-num-dnum/9901>\
**Category:** RAPID Programming\
**Tags:** trigger, num\
**Created:** [January 4, 2021, 9:58pm UTC](https://tech-community.robotics.abb.com/t/trigger-num-dnum/9901 "2021-01-04T21:58:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukasz\_954](https://avatars.discourse-cdn.com/v4/letter/l/ac91a4/32.png) [@lukasz\_954](https://tech-community.robotics.abb.com/u/lukasz_954)\
**Post date:** [January 4, 2021, 9:58pm UTC](https://tech-community.robotics.abb.com/t/trigger-num-dnum/9901/1 "2021-01-04T21:58:24Z")

</div>

Hi,  
Is it possibile to set a num variable at the middle of the corner path?  
With TriggJ/MoveJGo instructions I can only set DO/GO.

Other idea is to use MoveLSync but I can’t use procedure with argument

Thanks

---

<div class="post-metadata">

**Author:** ![xerim](https://avatars.discourse-cdn.com/v4/letter/x/2bfe46/32.png) [@xerim](https://tech-community.robotics.abb.com/u/xerim)\
**Post date:** [January 5, 2021, 3:36pm UTC](https://tech-community.robotics.abb.com/t/trigger-num-dnum/9901/2 "2021-01-05T15:36:19Z")

</div>

Maybe I am misunderstanding, but why can’t you use MoveLSync? It allows you to trigger a procedure, just like this:

MoveLSync p2, v1000, z30, tool2, “my\_proc;”

The proc could be as simple as setting your num/dnum to your desired value.

---

<div class="post-metadata">

**Author:** ![lukasz\_954](https://avatars.discourse-cdn.com/v4/letter/l/ac91a4/32.png) [@lukasz\_954](https://tech-community.robotics.abb.com/u/lukasz_954)\
**Post date:** [January 5, 2021, 6:55pm UTC](https://tech-community.robotics.abb.com/t/trigger-num-dnum/9901/3 "2021-01-05T18:55:05Z")

</div>

I would like to give some positions a number with is triggered in the point (without stopping robot)

If I use:  
MoveLSync p2, v1000, z30, tool2, “my\_proc;”  
I need to create as much procedures as points.  
The solution could be to call procedure with argument:  
MoveLSync p2, v1000, z30, tool2, “my\_proc(55) ;”

Proc my\_proc(num number)  
PosNumber:=number;  
EndProc

But this doesn’t work.

---

<div class="post-metadata">

**Author:** ![xerim](https://avatars.discourse-cdn.com/v4/letter/x/2bfe46/32.png) [@xerim](https://tech-community.robotics.abb.com/u/xerim)\
**Post date:** [January 5, 2021, 7:04pm UTC](https://tech-community.robotics.abb.com/t/trigger-num-dnum/9901/4 "2021-01-05T19:04:16Z")

</div>

Check out **triggiosdnum** in the [Technical Reference Manual](https://library.e.abb.com/public/b227fcd260204c4dbeb8a58f8002fe64/Rapid_instructions.pdf?x-sign=f79v/883X1nHGc8fqH+WAJ2F30y/M6TZfYUuPuQpP+jeMBygouyGg+WSj8A9Otry) page 1711

---

<div class="post-metadata">

**Author:** ![lukasz\_954](https://avatars.discourse-cdn.com/v4/letter/l/ac91a4/32.png) [@lukasz\_954](https://tech-community.robotics.abb.com/u/lukasz_954)\
**Post date:** [January 5, 2021, 8:01pm UTC](https://tech-community.robotics.abb.com/t/trigger-num-dnum/9901/5 "2021-01-05T20:01:28Z")

</div>

It wouldn’t work.  
According to the manual:  
triggiosdnum is used to define conditions and actions **for setting a digital output signal, a group of digital output signals or an analog output signal** at a fixed position along the robot’s movement path.

The only solution what I see is to create Virtual GO and use MoveJGO

---

<div class="post-metadata">

**Author:** ![xerim](https://avatars.discourse-cdn.com/v4/letter/x/2bfe46/32.png) [@xerim](https://tech-community.robotics.abb.com/u/xerim)\
**Post date:** [January 5, 2021, 8:48pm UTC](https://tech-community.robotics.abb.com/t/trigger-num-dnum/9901/6 "2021-01-05T20:48:28Z")

</div>

I think you can convert analog output signals to a number.

VAR num my\_num;  
my\_num:=AOutput(AO\_signal);
