7-19
Section
Comparison Instructions
434
The following example shows the comparisons made and the results provided
for TCMP(85). Here, the comparison is made during each cycle when IR 00000
is ON.
CD: HR 00
Upper limits
R: 216
HR
00
0210
DM 0000
0100
IR 21000
0
DM 0001
0200
IR 21001
0
DM 0002
0210
IR 21002
1
DM 0003
0400
IR 21003
0
DM 0004
0500
IR 21004
0
DM 0005
0600
IR 21005
0
DM 0006
0210
IR 21006
1
DM 0007
0800
IR 21007
0
DM 0008
0900
IR 21008
0
DM 0009
1000
IR 21009
0
DM 0010
0210
IR 21010
1
DM 0011
1200
IR 21011
0
DM 0012
1300
IR 21012
0
DM 0013
1400
IR 21013
0
DM 0014
0210
IR 21014
1
DM 0015
1600
IR 21015
0
TCMP(85)
HR 00
DM 0000
216
00000
Compare the data in IR 001
with the given ranges.
Address
Instruction
Operands
00000
LD
00000
00001
TCMP(85)
HR
00
DM
0000
216
7-19-3
BLOCK COMPARE – BCMP(68)
CD
: Compare data
IR, SR, AR, DM, HR, TC, LR, #
CB
: First comparison block word
IR, SR, DM, HR, TC, LR
Ladder Symbols
Operand Data Areas
R
: Result word
IR, SR, AR, DM, HR, TC, LR
BCMP(68)
CD
CB
R
@BCMP(68)
CD
CB
R
Note
BCMP(68) is an expansion instruction for the SRM1(-V2). The function code 68
is the factory setting and can be changed for the SRM1(-V2) if desired.
Limitations
Each lower limit word in the comparison block must be less than or equal to the
upper limit.
DM 6144 to DM 6655 cannot be used for R.
Example
Содержание SRM1 - PROGRAMING 02-2001
Страница 1: ...Programmable Controllers Cat No W353 E1 06 SYSMAC CPM1 CPM1A CPM2A CPM2C SRM1 V2 PROGRAMMING MANUAL ...
Страница 2: ...CPM1 CPM1A CPM2A CPM2C SRM1 V2 Programmable Controllers Programming Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 9: ...x ...
Страница 15: ...xvi ...