Using Sqi With Sqo; Resetting The Position Of Sqo - Allen-Bradley Logix5000 Reference Manual

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

Example:
When enabled, the SQO instruction increments the position, passes the data at
that position in array_dint through the mask, and stores the result in value_1.
SQO Operand
Array
Mask
Destination
A 0 in the mask means the bit is not compared (designated by xxxx in
this example).

Using SQI with SQO

If you pair an SQI instruction with an SQO instruction, make sure that both instructions use the same Control, Length, and Position values.

Resetting the Position of SQO

Each time the controller goes from Program to Run mode, the SQO instruction clears (initializes) the .POS value. To reset .POS to the initialization value (.POS = 0), use a RES instruction to clear the position value. This example uses the status of the first-scan bit to clear the .POS value.
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Sequencer Instructions (SQI, SQO, SQL)
Example Values (Using INTS Displayed In Binary)
xxxxxxxx xxxxxxxx xxxx0101 xxxx1010
00000000 00000000 00001111 00001111
xxxxxxxx xxxxxxxx xxxx0101 xxxx1010
Chapter 10
443

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents