![background image](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532115.webp)
(350)
TST D00010
#0000
0000
00
0000
01
0050
00
0050
01
(351)
TSTN D00020 #0005
110
5-6-3 BIT TEST: TST(350) and TSTN(351)
S: Source word
CIO, G, A, DM, DR, IR
Operand Data Areas
Ladder Symbol
(350)
TST S N
(351)
TSTN S N
N: Bit number
CIO, G, A, T, C, #, DM, DR, IR
Description
TST(350) turns ON the execution condition when the specified bit in the speci-
fied word is ON and turns OFF the execution condition when the bit is OFF.
TSTN(351) turns OFF the execution condition when the specified bit in the spe-
cified word is ON and turns ON the execution condition when the bit is OFF.
The bit position is designated in N between 0000 and 0015 in BCD.
Precautions
TST(350) and TSTN(351) cannot be used as right-hand instructions, i.e., anoth-
er instruction must appear between them and the right bus bar.
N must be BCD between 0000 and 0015.
Note: Refer to page 101 for general precautions on operand data areas.
Flags
ER (A50003):
N is not 0000 to 0015 BCD.
Content of
*
DM word is not BCD.
Example
In the first instruction line below, when CIO 000000 turns ON, TST(350) checks
whether the designated bit (bit 00 in D00010) is ON or OFF. In this case, because
it is ON, CIO 005000 is turned ON.
In the second instruction line below, when CIO 000001 turns ON, TST(350)
checks whether the designated bit (bit 05 in D00020) is ON or OFF. In this case,
because it is OFF, CIO 005001 is turned ON.
Address
Instruction
Operands
00000
LD
000000
00001
TST(350)
D00010
#0000
00002
OUT
005000
00003
LD
000001
00004
TSTN(351)
D00020
#0005
00005
OUT
005001
Designated bit
Designated bit
Ladder Diagram Instructions
Section 5-6
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...