Rockwell Automation 1761-HHP-B30 MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual

Page 236

Advertising
background image

Chapter 13
Using Application Specific Instructions

13–10

Using SQC

When the status of all non-masked bits in the source word match those of the
corresponding reference word, the instruction sets the found bit (FD) in the
control word. Otherwise, the found bit (FD) is cleared.

The bits mask data when reset and pass data when set.

The mask can be fixed or variable. If you enter a hexadecimal code, it is
fixed. If you enter an element address or a file address for changing the
mask with each step, it is variable.

When the rung goes from false-to-true, the instruction increments to the next
step (word) in the sequencer file. Data stored there is transferred through a
mask and compared against the source for equality. While the rung remains
true, the source is compared against the reference data for every scan. If
equal, the FD bit is set in the SQCs control counter.

Entering the Instruction

You enter the instruction from within the program monitor functional area.

P 0 1 4

S Q C

F I L E

# B 8

P 0 1 4

S Q C

M A S K

F F F 0 H

P 0 1 4

S Q C

D E S T

I 0

P 0 1 4

S Q C

C T R L

R 3

P 0 1 4

S Q C

L E N

* * * * * 4

P 0 1 4

S Q C

P O S

* * * * * 2

3

U

ENT

5

1

FUN

To enter the function code, press:

Advertising