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.

384 Array (File)/Misc. <strong>Instructions</strong> (FAL, FSC, COP, CPS, FLL, AVE, SRT, STD, SIZE)Size In Elements (SIZE)The SIZE instruction finds the size of a dimension of an array.Operands:Relay LadderOperand Type Format DescriptionSourceSINTarray tagarray on which the instruction is to operateINTDINTREALstructurestringDimensionto VaryDINTimmediate(0, 1, 2)dimension to use:For The Size OfEnterfirst dimension 0second dimension 1third dimension 2SizeSINTINTtagtag to store the number of elements in thespecified dimension of the arrayDINTREALStructured TextSIZE(Source,Dimtovary,Size);Description:Arithmetic Status Flags:The operands are the same as those for the relay ladderSIZE instruction.The SIZE instruction finds the number of elements (size) in thedesignated dimension of the Source array and places the result in theSize operand.• The instruction finds the size of one dimension of an array.• The instruction operates on an:– array– array in a structure– array that is part of a larger arraynot affectedPublication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!