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

Table of Contents

Advertisement

CJP/CJPN
Instruction
CONDITIONAL JUMP
CONDITIONAL JUMP NOT
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
Not allowed
Operands
Operand
N
Jump number
N: Jump number
The jump number must be 0000 to 03FF (0 to 1,023 decimal).
Note For CJ1M-CPU11 and CJ1M-CPU21 CPU Units, the jump number must be between the range 0000 to 00FF
hex or &0 to &255 decimal.
Operand Specifications
Word addresses
Area
CIO
WR
HR
AR
CJP/
N
OK
OK
OK
OK
CJPN
*1 For CJ1M-CPU11 and CJ1M-CPU21 CPU Units, the range is #0000 to #00FF (binary) or &0 to &1023 (decimal).
Flags
Name
Error Flag
Note For CJ1M-CPU11 and CJ1M-CPU21 CPU Units, the jump number must be between the range 0 to 255 (0000 to 00FF
hex).
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
CJP
---
CJPN
---
CJP
CJP(510)
N: Jump number
N
Block program areas
Step program areas
OK
Not allowed
Description
Indirect DM/EM
@DM
T
C
DM
EM
@EM
OK
OK
OK
OK
OK
Label
ER
• ON if there is not a JME(005) with the same jump number as CJP(510) or CJPN(511). (See note.)
• ON if N is not within the specified range of 0000 to 03FF.
• ON if there is a CJP(510) or CJPN(511) instruction in a task without a JME(005) with the same jump
number.
• OFF in all other cases.
Function
code
When the execution condition for CJP(510) is ON,
program execution jumps directly to the first
510
JME(005) in the program with the same jump
number.
When the execution condition for CJP(004) is
OFF, program execution jumps directly to the first
511
JME(005) in the program with the same jump
number.
Subroutines
OK
Data type
UINT
Registers
addresses
Con-
stants
*DM
DR
*EM
*1
OK
OK
OK
Operation
3. Instructions
Function
CJPN
CJPN(511)
N
N: Jump number
SFC action or
Interrupt tasks
transition programs
OK
Not allowed
Size
1
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
---
3
TR
bits
---
195

Advertisement

Table of Contents
loading

Table of Contents