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

Table of Contents

Advertisement

3. Instructions
LD TST/LD TSTN
Instruction
LOAD BIT TEST
LOAD 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.
148
Mnemonic
Variations
LD TST
---
LD TSTN
---
LD 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
LD TST(350) is used in the program like LD; the
execution condition is ON when the specified bit in
350
the specified word is ON, and OFF when the bit is
OFF.
LD TSTN(351) is used in the program like LD
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
LD 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