Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 189

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

3. Instructions
OR TST/OR TSTN
Instruction
OR BIT TEST
OR 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.
152
Mnemonic
Variations
OR TST
---
OR TSTN
---
OR TST
S: Source word
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
OR TST(350) is used in the program like OR; the
execution condition is ON when the specified bit in
350
the specified word is ON, and OFF when the bit is
OFF.
OR TSTN(351) is used in the program like OR
NOT; the execution condition is OFF when the
351
specified bit in the specified word is ON, and ON
when the bit is OFF.
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
OR 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
Need help?

Need help?

Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?

Questions and answers

Table of Contents