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) 353Example 2:Search for a match in an array. When enabled, the FSC instructioncompares the MySearchKey to 10 elements in array_1.MySearchKeyreferencecontrol_3.pos1111111111111111000000000000000000000000000000000000000000000000 000000000000000000000000000000000 100000000000000000000000000000000 200000000000000000000000000000000 311111111111111110000000000000000 411111111111111111111111111111111 511111111111111111111111111111111 611111111111111111111111111111111 711111111111111111111111111111111 811111111111111111111111111111111 9The FSC instruction finds that this arrayelement equals MySearchKey. Theinstruction sets the .FD and .IN bits. The.POS (4) value indicates the position of theequal element. 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!