Monitor Status Flags
The controller supports status keywords you can use in your logic to monitor specific events:
- The status keywords arenot case sensitive.
- Because the status flags can change so quickly, theLogix Designerapplication doesnotdisplay the status of the flags (that is, even when a status flag is set, an instruction that references that flag is not highlighted).
- Youcannotdefine a tag alias to a keyword.
You can use these keywords:
To determine if: | Use: |
---|---|
the value you are storing cannot fit into the destination because it is either:
Important: Each time S:V goes from cleared to set, it generates a minor fault (type 4, code 4) | S:V |
the instruction’s destination value is 0 | S:Z |
the instruction’s destination value is negative | S:N |
an arithmetic operation causes a carry or borrow that tries to use bits that are outside of the data type For example:
| S:C |
this is the first, normal scan of the routines in the current program | S:FS |
at least one minor fault has been generated:
| S:MINOR |
Provide Feedback