Omron CJ - REFERENCE MANUAL 10-2009 Reference Manual page 188

Table of Contents

Advertisement

3. Instructions
AND TST/AND TSTN
Instruction
AND BIT TEST
AND BIT TEST NOT
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S
Source word
N
Bit number
N: Bit number
The bit number must be between 0000 and 000F hexadecimal or between &0000 and &0015 decimal.
Only the rightmost bit (0 to F hexadecimal) of the contents of the word is valid when a word address is
specified.
Operand Specifications
Word addresses
Area
CIO
WR
HR
AR
S
OK
OK
OK
OK
N
Flags
Name
Error Flag
Equals Flag
Negative Flag
*1 In CS1D CPU Units for Duplex Systems, CS1 CPU Units, and CJ1 CPU Units, these are turned OFF.
In CJ2, CS1-H, CJ1-H, CJ1M, and CS1D CPU Units, these Flags are left unchanged.
150
Mnemonic
Variations
AND TST
---
AND TSTN
---
AND TST
S: Source word
AND TST(350)
N: Bit number
S
N
Block program areas
Step program areas
OK
OK
Description
Indirect DM/EM
@DM
T
C
DM
EM
@EM
OK
OK
OK
OK
Label
ER
OFF or unchanged
=
OFF or unchanged
N
OFF or unchanged
Function
code
AND TST(350) is used in the program like AND;
the execution condition is ON when the specified
350
bit in the specified word is ON, and OFF when the
bit is OFF.
AND TSTN(351) is used in the program like AND
NOT; the execution condition is OFF when the
351
specified bit in the specified word is ON, and ON
when the bit is OFF.
AND TSTN(351)
Subroutines
OK
Data type
WORD
UINT
addresses
Con-
stants
*DM
DR
*EM
---
OK
OK
OK
OK
Operation
*1
*1
*1
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
AND TSTN
S: Source word
N: Bit number
S
N
SFC action or
Interrupt tasks
transition programs
OK
OK
Size
1
1
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
TR
bits
---
---

Advertisement

Table of Contents
loading

Table of Contents