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.

Array (File)/Shift <strong>Instructions</strong> (BSL, BSR, FFL, FFU, LFL, LFU) 409CONTROL StructureMnemonic Data Type Description:.EN BOOL The enable bit indicates that the LFL instruction is enabled..DN BOOL The done bit is set to indicate that the LIFO is full (.POS = .LEN). The .DN bit inhibits loadingthe LIFO until .POS < .LEN..EM BOOL The empty bit indicates that the LIFO is empty. If .LEN ≤ 0 or .POS < 0, both the .EM bit and.DN bit are set..LEN DINT The length specifies the maximum number of elements the LIFO can hold at one time..POS DINT The position identifies the location in the LIFO where the instruction will load the next value.Description:Use the LFL instruction with the LFU instruction to store and retrievedata in a last-in/first-out order. When used in pairs, the LFL and LFUinstructions establish an asynchronous shift register.Typically, the Source and the LIFO are the same data type.When enabled, the LFL instruction loads the Source value into theposition in the LIFO identified by the .POS value. The instructionloads one value each time the instruction is enabled, until the LIFOis full.IMPORTANTYou must test and confirm that the instruction doesn’t change data that you don’twant it to change.The LFL instruction operates on contiguous memory. In some cases, the instructionloads data past the array into other members of the tag. This happens if the length istoo big and the tag is a user-defined data type.Arithmetic Status Flags:not affectedFault Conditions:A Major Fault Will Occur If Fault Type Fault Code(starting element + .POS) > LIFO array size 4 20Publication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!