Publication 1763-RM001C-EN-P - October 2009
Sequencer Instructions
241
The following figure explains how the SQC instruction works.
SQC FD bit is set when the instruction detects that an input word matches
(through mask) its corresponding reference word.
The FD bit R6:21/FD is set in the example, since the input word matches
the sequencer reference value using the mask value.
This instruction uses the following operands:
•
File - This is the sequencer reference file. Its contents, on an
element-by-element basis, are masked and compared to the masked
value stored in source.
TIP
If file type is word, then mask and source must be
words. If file type is long word, mask and source
must be long words.
EN
DN
FD
SQC
Sequencer Compare
File
#B10:11
Mask
FFF0
Source
I:3.0
Control
R6:21
Length
4<
Position
2<
SQC
Input Word I:3.0
0010
0100
1001
1101
Mask Value FFF0
1111
1111
1111
0000
Sequencer Ref File #B10:11
Word
Step
B10:11
0
B10:12
1
B10:13
0010
0100
1001
0000
2
B10:14
3
B10:15
4
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive