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.

352 Array (File)/Misc. <strong>Instructions</strong> (FAL, FSC, COP, CPS, FLL, AVE, SRT, STD, SIZE)Example 1:Search for a match between two arrays. When enabled, the FSCinstruction compares each of the first 10 elements in array_1 to thecorresponding elements in array_2.array_1array_2control_3.pos0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000 000000000000000000000000000000000 100000000000000000000000000000000 200000000000000000000000000000000 311111111111111110000000000000000 411111111111111111111111111111111 511111111111111111111111111111111 611111111111111111111111111111111 711111111111111111111111111111111 811111111111111111111111111111111 9The FSC instruction finds that theseelements are not equal. The instruction setsthe .FD and .IN bits. The .POS value (4)indicates the position of the elements thatare not equal. To continue comparing therest of the array, clear the .IN bit.Publication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!