# Logix Device Status

**URL:** <https://forum.inductiveautomation.com/t/logix-device-status/24103>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [April 12, 2019, 4:52pm UTC](https://forum.inductiveautomation.com/t/logix-device-status/24103 "2019-04-12T16:52:20Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![JMicky](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@JMicky](https://forum.inductiveautomation.com/u/JMicky)\
**Post date:** [June 14, 2019, 6:43pm UTC](https://forum.inductiveautomation.com/t/logix-device-status/24103/5 "2019-06-14T18:43:19Z")

</div>

The following worked for me based on AB documentation of the status word.  
I created expression tags looking at the status word.

Key Switch position.

```auto
// Bits 12-13 represent key switch position.
// Mask and shift right to positions 0-1.
// Value - Description
// 0 - Undefined
// 1 - Run
// 2 - Program
// 3 - Remote
({[.]Status} & 12288)>>12

```

Processor Mode

```auto
// Bits 4-7 represent processor mode.
// Mask and shift right to positions 0-1.
// Value - Description
// 0 - Reserved
// 1 - Flash update in progress
// 2 - Reserved
// 3 - Reserved
// 4 - Flash is bad
// 5 - Faulted modes
// 6 - Run
// 7 - Program
({[.]Status} & 240)>>4

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/logix-device-status/24103)._
