Download 1763-RM001 - Rockwell Automation

Transcript
Sequencer Instructions
241
The following figure explains how the SQC instruction works.
SQC
SQC
Sequencer Compare
File
#B10:11
Mask
FFF0
Source
I:3.0
Control
R6:21
Length
4<
Position
2<
EN
DN
FD
Input Word I:3.0
0010 0100 1001
1101
Mask Value FFF0
1111 1111 1111
0000
Sequencer Ref File #B10:11
Word
B10:11
B10:12
B10:13 0010
B10:14
B10:15
0100
1001
0000
Step
0
1
2
3
4
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.
Publication 1763-RM001D-EN-P - September 2011