Allen-Bradley Logix5000 Reference Manual page 386

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

Advertisement

Chapter 8
Array (File)/Misc. Instructions (FAL, FSC, COP, CPS, FLL, AVE, SRT, STD, SIZE)
Description:
Arithmetic Status Flags:
Fault Conditions:
386
The SRT instruction sorts a set of values in one dimension (Dim to vary) of the
Array into ascending order.
IMPORTANT
IMPORTANT
This is a transitional instruction:
· In relay ladder, toggle the rung-condition-in from cleared to set each
time the instruction should execute.
· In structured text, condition the instruction so that it only executes on a
transition. See
Arithmetic status flags are affected.
A Major Fault Will Occur If
.POS < 0 or .LEN < 0
Dimension to vary does not exist for the
specified array
Instruction tries to access data outside of the
array boundaries
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
You must test and confirm that the instruction doesn't
change data that you don't want it to change.
The SRT instruction operates on contiguous memory. In
some cases, the instruction changes data in other
members of the tag. This happens if the length is too big
and the tag is a user-defined data type.
Make sure the Length does not cause the instruction to
exceed the specified Dimension to vary. If this happens,
unexpected results will occur.
Structured Text
Programming.
Fault Type
4
4
4
Fault Code
21
20
20

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents