# Modbus runstate dependent register to 0

**URL:** <https://forum.universal-robots.com/t/modbus-runstate-dependent-register-to-0/30233>\
**Category:** URScript\
**Created:** [August 31, 2023, 1:45pm UTC](https://forum.universal-robots.com/t/modbus-runstate-dependent-register-to-0/30233 "2023-08-31T13:45:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoehermans.1996](https://avatars.discourse-cdn.com/v4/letter/z/4bbf92/32.png) [@zoehermans.1996](https://forum.universal-robots.com/u/zoehermans.1996)\
**Post date:** [August 31, 2023, 1:45pm UTC](https://forum.universal-robots.com/t/modbus-runstate-dependent-register-to-0/30233/1 "2023-08-31T13:45:58Z")

</div>

Hello,

Is there any way to use some kind of modbus\_set\_runstate\_dependent\_choice to send a 0 signal to a register number that normally receives nonbinary signals? I need it to turn off signals when the normal stop or the emergency stop is pressed.

thanks in advance!

Greetings Zoe

---

<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:** [August 31, 2023, 2:33pm UTC](https://forum.universal-robots.com/t/modbus-runstate-dependent-register-to-0/30233/2 "2023-08-31T14:33:25Z")

</div>

I think it’s exactly the command you just said. I went ahead and added a dummy register output (non-binary) to my installation and in the IO screen, tapped on it and selected “0 when not running.” Polyscope then wrote the following line of script:

```auto
modbus_set_runstate_dependent_choice("test",1)

```

So as long as whatever device you’re driving sees a value of 0 and does nothing with it, that should work.
