12.07.2015 Views

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

374 Array (File)/Misc. <strong>Instructions</strong> (FAL, FSC, COP, CPS, FLL, AVE, SRT, STD, SIZE)Description:The SRT instruction sorts a set of values in one dimension (Dim tovary) of the Array into ascending order.IMPORTANTYou must test and confirm that the instruction doesn’t change data that you don’twant it to change.The SRT instruction operates on contiguous memory. In some cases, the instructionchanges data in other members of the tag. This happens if the length is too big andthe tag is a user-defined data type.IMPORTANTMake sure the Length does not cause the instruction to exceed the specifiedDimension to vary. If this happens, unexpected results will occur.This is a transitional instruction:• In relay ladder, toggle the rung-condition-in from cleared toset each time the instruction should execute.• In structured text, condition the instruction so that it onlyexecutes on a transition. See Appendix B.Arithmetic Status Flags:Arithmetic status flags are affected.Fault Conditions:A Major Fault Will Occur If Fault Type Fault Code.POS < 0 or .LEN < 0 4 21Dimension to vary does not exist for thespecified arrayInstruction tries to access data outside ofthe array boundaries4 204 20Publication 1756-RM003I-EN-P - January 2007

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!