EasyManuals Logo
Home>Omron>Controller>CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #192 background imageLoading...
Page #192 background image
3. Instructions
154
CS/CJ/NSJ Series Instructions Reference Manual (W474)
AND TST/AND TSTN
Applicable Program Areas
Operands
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.
z Operand Specifications
Flags
*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.
Instruction Mnemonic Variations
Function
code
Function
AND BIT TEST AND TST --- 350
AND TST(350) is used in the program like AND;
the execution condition is ON when the specified
bit in the specified word is ON, and OFF when the
bit is OFF.
AND BIT TEST NOT AND TSTN --- 351
AND TSTN(351) is used in the program like AND
NOT; the execution condition is OFF when the
specified bit in the specified word is ON, and ON
when the bit is OFF.
Symbol
AND TST AND TSTN
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage OK OK OK OK OK OK
Operand Description Data type Size
S Source word WORD 1
N Bit number UINT 1
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
S
OK OK OK OK OK OK OK OK OK OK
---
OK --- OK --- --- --- ---
N OK
Name Label Operation
Error Flag ER
OFF or unchanged
*1
Equals Flag =
OFF or unchanged
*1
Negative Flag N
OFF or unchanged
*1
AND TST(350)
S
N
S: Source word
N: Bit number
AND TSTN(351)
S
N
S: Source word
N: Bit number

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals