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)/Shift <strong>Instructions</strong> (BSL, BSR, FFL, FFU, LFL, LFU) 391Example 1:When enabled, the BSL instruction starts at bit 0 in array_dint[0]. Theinstruction unloads array_dint[0].9 into the .UL bit, shifts theremaining bits, and loads input_1 into array_dint[0].0. The values inthe remaining bits (10-31) are invalid.array_dint[0]before shiftarray_dint[0]after shift9 8 7 6 5 4 3 2 1 01 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 00these bits shift left.UL bit9 8 7 6 5 4 3 2 1 00 1 1 1 1 0 0 0 0 11input_1Example 2:When enabled, the BSL instruction starts at bit 0 in array_dint[0]. Theinstruction unloads array_dint[1].25 into the .UL bit, shifts theremaining bits, and loads input_1 into array_dint[0].0. The values inthe remaining bits (31-26 in array_dint[1]) are invalid. Note howarray_dint[0].31 shifts across words to array_dint[1].0.31 0array_dint[0] 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0these bits shift left1input_131 0array_dint[1] 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 00these bits shift left.UL bitPublication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!