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.

Array (File)/Misc. <strong>Instructions</strong> (FAL, FSC, COP, CPS, FLL, AVE, SRT, STD, SIZE) 365Description:The number of bytes filled is:Byte count = Length ∗ (number of bytes in the Destination data type)IMPORTANTYou must test and confirm that the instruction doesn’t change data that you don’twant it to change.The FLL instruction operates on contiguous data memory. In some cases, theinstruction writes past the array into other members of the tag. This happens if thelength is too big and the tag is a user-defined data type.If the tag isuser-defined data typeNOT user-defined datatypeThenIf the Length is too big, the instruction writes past the end ofthe array into other members of the tag. It stops at the end ofthe tag. No major fault is generated.If the Length is too big, the instruction stops at the end of thearray. No major fault is generated.The Length is too big if it is more than the total number of elements in theDestination array.For best results, the Source and Destination should be the same type.If you want to fill a structure, use the COP instruction (see example 3on page 9-362). If you mix data types for the Source and Destination,the Destination elements are filled with converted Source values.If The Source Is And The Destination Is The Source IsConverted ToSINT, INT, DINT, or REAL SINT SINTSINT, INT, DINT, or REAL INT INTSINT, INT, DINT, or REAL DINT DINTSINT, INT, DINT, or REAL REAL REALSINT structure SINT (not converted)INT structure INT (not converted)DINT structure DINT (not converted)REAL structure REAL (not converted)Arithmetic Status Flags:Fault Conditions:not affectednonePublication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!