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.

Sequencer <strong>Instructions</strong> (SQI, SQO, SQL) 429Example:When enabled, the SQO instruction increments the position, passesthe data at that position in array_dint through the mask, and storesthe result in value_1.SQO Operand Example Values (Using INTS Displayed In Binary)Arrayxxxxxxxx xxxxxxxx xxxx0101 xxxx1010Mask 00000000 00000000 00001111 00001111Destination xxxxxxxx xxxxxxxx xxxx0101 xxxx1010A 0 in the mask means the bit is not compared (designated by xxxx inthis example).Using SQI with SQOIf you pair an SQI instruction with an SQO instruction, make sure thatboth instructions use the same Control, Length, and Position values,.Resetting the position of SQOEach time the controller goes from Program to Run mode, the SQOinstruction clears (initializes) the .POS value. To reset .POS to theinitialization value (.POS = 0), use a RES instruction to clear theposition value. This example uses the status of the first-scan bit toclear the .POS value.Publication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!