Reading a PLC Status Word

<< Click to Display Table of Contents >>

 

Reading a PLC Status Word

Function 999

Used to check the last value of a PLC Status Word returned by a device, via script of an OnRead event of a Tag Block reading, according to the parameters described on the next table.

 

B1

Not used

B2

999

B3

Not used

B4

Not used

 

Each OnRead event returns a Block with the structure of Elements on the next table to interpret the last received PLC Status Word.

Available Elements on PLC Status Word Tag

Element

Description

Value

1

Oversweep flag. Meaningful only when constant sweep mode is active

0: There is no oversweep condition or 1: Constant sweep value exceeded

2

Constant sweep mode

0: Constant sweep mode deactivated or 1: Constant sweep mode activated

3

PLC Fault Entry since last reading

0: PLC fault table unchanged since last reading or 1: PLC fault table was changed since last reading by this device

4

PLC I/O Fault Entry since last reading

0: PLC's I/O fault table unchanged since last reading or 1: PLC's I/O fault table was changed since last reading by this device

5

PLC Fault Entry available

0: PLC fault table is empty or 1: One or more fault entries in PLC fault table

6

PLC I/O Fault Entry available

0: PLC's I/O fault table is empty or 1: One or more fault entries on PLC's I/O fault table

7

Programmer attachment flag

0: No programmer attachment found or 1: Programmer attachment found

8

Enables or disables front panel switch configuration

0: Outputs enabled or 1: Outputs disabled

9

Runs or stops front panel switch configuration

0: Stop or 1: Run

10

Protected OEM

0: No OEM protection or 1: OEM protection in effect

11

Not used

0 (zero)

12

Not used

0 (zero)

13

PLC status

0: Run I/O enabled, 1: Run I/O disabled, 2: Stop I/O disabled, 3: CPU stopped by failure, 4: CPU stopped, 5: CPU suspended, or 6: Stop I/O enabled

Was this page useful?