Allen-Bradley Logix5000 Reference Manual page 645

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

Status Flag
S:V
S:C
S:MINOR
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Common Attributes
Description
Overflow flag
The controller sets the overflow flag when the
result of an arithmetic operation resulted in an
overflow. This flag can be used with only the XIC,
XIO, OTE, OTL and OTU relay instructions or in
structured text like a Boolean variable. You can
use this flag to check that the result of an
operation is still in range. For example, adding 1
to a SINT generates an overflow when the value
goes from 127...128.
The overlow flag generates a minor fault when it
transitions from false to true.
This math status flag is cleared at the start of
executing an instruction capable of setting this
flag.
Sometimes called the 'overflow' bit.
The MOD instruction does not capture an
overflow that may have occurred during the
calculation. If an overflow occurs, a minor fault
will be generated, but the S:V bit will not be set.
Carry flag
The controller sets the carry flag when the result
of an arithmetic operation resulted in the
generation of a carry out of the most significant
bit. This flag can be used with only the XIC, XIO,
OTE, OTU and OTL relay instructions or in
structured text like a Boolean variable.
This math status flag is cleared at the start of
executing an instruction capable of setting this
flag.
Sometimes called the 'carry' bit.
Minor fault flag
The controller sets the minor fault flag when
there is at least one minor program fault. This
flag can be used with only the XIC, XIO, OTE, OTL
and OTU relay instructions or in structured text
like a Boolean variable. You could use this flag to
test that a minor fault has occurred and take
appropriate action. This bit is triggered only by
programming faults (like overflow). It will not be
triggered by a battery fault. The bit is cleared on
every scan. An OTL can be used to explicitly
program a minor fault occurrence.
Appendix A
645

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents