# Have reduced mode control variable

**URL:** <https://forum.universal-robots.com/t/have-reduced-mode-control-variable/36014>\
**Category:** Technical Questions\
**Created:** [September 10, 2024, 7:52pm UTC](https://forum.universal-robots.com/t/have-reduced-mode-control-variable/36014 "2024-09-10T19:52:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tyler.rekart](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/tyler.rekart/32/6419_2.png) [@tyler.rekart](https://forum.universal-robots.com/u/tyler.rekart)\
**Post date:** [September 10, 2024, 7:52pm UTC](https://forum.universal-robots.com/t/have-reduced-mode-control-variable/36014/1 "2024-09-10T19:52:31Z")

</div>

I am trying to use reduced mode in my program to not do certain actions while in reduced mode. Is there any way i can turn a variable on when in reduced mode. Currently I am using the reduced mode output into an input which is ugly.

---

<div class="post-metadata">

**Author:** ![efn](https://avatars.discourse-cdn.com/v4/letter/e/35a633/32.png) [@efn](https://forum.universal-robots.com/u/efn)\
**Post date:** [September 11, 2024, 6:35am UTC](https://forum.universal-robots.com/t/have-reduced-mode-control-variable/36014/2 "2024-09-11T06:35:40Z")

</div>

I’m not familiar with any script command telling if reduced mode is on or off.

But you do not have to wire your output into your input. You can just use the output in your expression. 🙂 Or assign a variable with the output.

For example:  
var\_1 := CO[0]  
If CO[0] == True/False

---

<div class="post-metadata">

**Author:** ![tyler.rekart](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/tyler.rekart/32/6419_2.png) [@tyler.rekart](https://forum.universal-robots.com/u/tyler.rekart)\
**Post date:** [September 11, 2024, 4:15pm UTC](https://forum.universal-robots.com/t/have-reduced-mode-control-variable/36014/3 "2024-09-11T16:15:45Z")

</div>

When you configure that output to use reduce mode as an output. It no longer allows you to use it as an option in the programming

---

<div class="post-metadata">

**Author:** ![eric.feldmann](https://avatars.discourse-cdn.com/v4/letter/e/94ad74/32.png) [@eric.feldmann](https://forum.universal-robots.com/u/eric.feldmann)\
**Post date:** [September 11, 2024, 7:13pm UTC](https://forum.universal-robots.com/t/have-reduced-mode-control-variable/36014/4 "2024-09-11T19:13:50Z")

</div>

You can still use the script command to read the output.  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/2/219643935b1b82210ebc8fdf6bf5ca53ded24560.png)

HIGHLY recommend bookmarking the URScript manual if you’re going to be programming. There’s just certain things you can’t do in Polyscope alone. ([https://s3-eu-west-1.amazonaws.com/ur-support-site/214314/scriptmanualG5\_%205.15.1.pdf](https://s3-eu-west-1.amazonaws.com/ur-support-site/214314/scriptmanualG5_%205.15.1.pdf))

So use an assignment node like usual, but assign it the value of “get\_configurable\_digital\_out(YOUR\_OUTPUT)”
