# OPC-UA Device Enabled Status

**URL:** <https://forum.inductiveautomation.com/t/opc-ua-device-enabled-status/10797>\
**Category:** Ignition\
**Created:** [November 16, 2015, 9:05pm UTC](https://forum.inductiveautomation.com/t/opc-ua-device-enabled-status/10797 "2015-11-16T21:05:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![qversa](https://avatars.discourse-cdn.com/v4/letter/q/35a633/32.png) [@qversa](https://forum.inductiveautomation.com/u/qversa)\
**Post date:** [November 16, 2015, 9:05pm UTC](https://forum.inductiveautomation.com/t/opc-ua-device-enabled-status/10797/1 "2015-11-16T21:05:26Z")

</div>

Is it possible to get the OPC-UA Device Enabled status into a project? I have several PLC Devices and I have scripting to determine if they are in Run Mode or not. If not in Run Mode I create an alarm. I would like to use the Device Enabled status from the Gateway so I can block the alarm if the Device is not Enabled.

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/f/f52d64bf5307979ebf4124b3d33cb01f99553129.jpg)

---

<div class="post-metadata">

**Author:** ![Chris\_Taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_taylor/32/3315_2.png) [@Chris\_Taylor](https://forum.inductiveautomation.com/u/Chris_Taylor)\
**Post date:** [November 17, 2015, 4:54pm UTC](https://forum.inductiveautomation.com/t/opc-ua-device-enabled-status/10797/2 "2015-11-17T16:54:11Z")

</div>

Qversa

you could use system.device.listDevices() in a script to bring back a dataset that includes the device enable state

look here

[https://docs.inductiveautomation.com:8443/display/DOC/system.device.listDevices](https://docs.inductiveautomation.com:8443/display/DOC/system.device.listDevices)

---

<div class="post-metadata">

**Author:** ![qversa](https://avatars.discourse-cdn.com/v4/letter/q/35a633/32.png) [@qversa](https://forum.inductiveautomation.com/u/qversa)\
**Post date:** [November 17, 2015, 5:27pm UTC](https://forum.inductiveautomation.com/t/opc-ua-device-enabled-status/10797/3 "2015-11-17T17:27:22Z")

</div>

Fantastic, I’ll give that a shot. Thanks for the help!
