Logix Device Status

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.

// 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

// 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
5 Likes