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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

364 Array (File)/Misc. <strong>Instructions</strong> (FAL, FSC, COP, CPS, FLL, AVE, SRT, STD, SIZE)File Fill (FLL)The FLL instruction fills elements of an array with the Source value.The Source remains unchanged.Operands:Relay LadderOperand Type Format: DescriptionSource SINT immediate element to copyINTDINTtagImportant: the Source and Destinationoperands should be the same data type, orunexpected results may occurREALDestination SINT tag initial element to be overwritten bythe SourceINTImportant: the Source and DestinationDINToperands should be the same data type, orunexpected results may occurREALThe preferred way to initialize a structure isstructureto use the COP instruction.Length DINT immediate number of elements to fillStructured TextStructured text does not have an FLL instruction, but you can achievethe same results using a SIZE instruction and a FOR...DO or otherloop construct.SIZE(destination,0,length);FOR position = 0 TO length-1 DOdestination[position] := source;END_FOR;See Appendix B for information on the syntax of constructs withinstructured text.Publication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!