# Set/Reset or SetDO?

**URL:** <https://tech-community.robotics.abb.com/t/set-reset-or-setdo/9222>\
**Category:** RAPID Programming\
**Tags:** rapid, digital-output\
**Created:** [November 26, 2019, 11:08am UTC](https://tech-community.robotics.abb.com/t/set-reset-or-setdo/9222 "2019-11-26T11:08:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paba](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@Paba](https://tech-community.robotics.abb.com/u/Paba)\
**Post date:** [November 26, 2019, 11:08am UTC](https://tech-community.robotics.abb.com/t/set-reset-or-setdo/9222/1 "2019-11-26T11:08:48Z")

</div>

Is there a big difference from these instructions when changing the value of a digital output?  
except for the 2 arguments \sDelay & \Sync i couldnt find any ..

i’m just asking for interest

---

<div class="post-metadata">

**Author:** ![EricH](https://avatars.discourse-cdn.com/v4/letter/e/ea5d25/32.png) [@EricH](https://tech-community.robotics.abb.com/u/EricH)\
**Post date:** [November 26, 2019, 2:29pm UTC](https://tech-community.robotics.abb.com/t/set-reset-or-setdo/9222/2 "2019-11-26T14:29:24Z")

</div>

No there is no big difference. The Set/Reset instruction is a newer version. I think the SetDo is a relic.

---

<div class="post-metadata">

**Author:** ![Paba](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@Paba](https://tech-community.robotics.abb.com/u/Paba)\
**Post date:** [November 26, 2019, 2:41pm UTC](https://tech-community.robotics.abb.com/t/set-reset-or-setdo/9222/3 "2019-11-26T14:41:13Z")

</div>

Ok thanks, i just wanted to be sure:)

---

<div class="post-metadata">

**Author:** ![j\_proulxFB](https://avatars.discourse-cdn.com/v4/letter/j/f04885/32.png) [@j\_proulxFB](https://tech-community.robotics.abb.com/u/j_proulxFB)\
**Post date:** [December 4, 2019, 2:21pm UTC](https://tech-community.robotics.abb.com/t/set-reset-or-setdo/9222/4 "2019-12-04T14:21:19Z")

</div>

SetDO has more timing options. Set and Reset are simple turn on / turn off.

---

<div class="post-metadata">

**Author:** ![Markus\_Naslund](https://avatars.discourse-cdn.com/v4/letter/m/b9bd4f/32.png) [@Markus\_Naslund](https://tech-community.robotics.abb.com/u/Markus_Naslund)\
**Post date:** [December 9, 2019, 12:17pm UTC](https://tech-community.robotics.abb.com/t/set-reset-or-setdo/9222/5 "2019-12-09T12:17:06Z")

</div>

SetDo is great when you don’t know if you want to set the output high or low, but you have it stored in a dionum variable.

That way you can write:  
SetDO , ;

Instead of:

IF =1 THEN  
Set ;  
ELSE  
Reset ;  
ENDIF
