219
FX3G/FX3U/FX3UC Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09
8.1 FNC 00 – CJ / Conditional Jump
1
Introduction
2
Overview
3
Instruction
List
4
Devices
in Detail
5
Specified the
Device &
Constant
6
Before
Programming
7
Basic
Instruction
8
FNC00-FNC09
Program Flow
9
FNC10-FNC19
Move & Compare
10
FNC20-FNC29
Arith. & Logic
Operation
5. Label unnecessary for the pointer P63
The pointer P63 specifies jump to END step. Do not program P63.
If P63 is programmed, PLCs will display the error code 6507 (defective label definition) and stop.
6. When jumping to a pointer for subroutine
Any label cannot be shared by CALL instruction and CJ instruction.
7. Unconditional jump if the command contact is normally ON
Because M8000 is normally ON while a PLC is operating, unconditional jump is specified when M8000 is used in the
following example:
Label
P 63
FNC 00
CJ
P 63
END
Do not program P63.
X000
M8000
K10
FNC 01
CALLP
C0
X001
P15
FNC 06
FEND
RUN monitor
(normally ON)
FNC 02
SRET
P15
Label
User program
Command
Subroutine program
dedicated to CALL
instruction
Program a label (P) after
FEND instruction.
FNC 00
CJ
P15
Good
Bad
FNC00
CJ
P5
Label
P5
M8000
User program
(It is skipped, and is not executed.)
User program
RUN monitor