Omron SYSMAC CVM1 Series Operation Manual page 216

Duplex system
Hide thumbs Also See for SYSMAC CVM1 Series:
Table of Contents

Advertisement

Comparison Instructions
5-16-4 TABLE COMPARE: TCMP(023)
Ladder Symbol
(023)
TCMP
S
Variations
j TCMP(023)
Description
Precautions
Flags
Example
0000
00
S: 0001
0001 0210
Compare the data in
CIO 0001 with the given
values.
198
TB
R
When the execution condition is OFF, TCMP(023) is not executed. When the ex-
ecution condition is ON, TCMP(023) compares S to the content of TB, TB+1,
TB+2, ..., and TB+15. If S is equal to the content of any of these words, the corre-
sponding bit in R is turned ON, i.e., if S equals the content of TB, bit 00 is turned
ON, if it equals the content of TB+1, bit 01 is turned ON, etc. The rest of the bits in
R will be turned OFF.
TB cannot be one of the last 15 words in a data area because it designates the
first of 16 words.
Note Refer to page 101 for general precautions on operand data areas.
Content of *DM word is not BCD when set for BCD.
ER (A50003):
EQ (A50006):
Content of R is zero after execution.
The following example shows the comparisons made and the results provided
for TCMP(023). Here, the comparison is made during each scan when CIO
000000 is ON.
(023)
TCMP
0001
1210
Compare table
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
Operand Data Areas
S: Source data
CIO, G, A, T, C, #, DM, DR, IR
st
TB: 1
table word
CIO, G, A, T, C, DM
R: Result word
CIO, G, A, T, C, DM, DR, IR
1205
R: 1205
0100
120500
0200
120501
0210
120502
0400
120503
0500
120504
0600
120505
0210
120506
0800
120507
0900
120508
1000
120509
0210
120510
1200
120511
1300
120512
1400
120513
0210
120514
1600
120515
Section 5-16
Address Instruction
Operands
00000
LD
00001
TCMP(023)
0
0
1
0
0
0
1
0
0
0
1
0
0
0
1
0
000000
0001
1210
1205

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents