197
FX
3U
/FX
3UC
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
In
troduct
io
n
2
Ov
e
rv
ie
w
3
In
st
ru
ct
ion
Li
st
4
D
evi
ce
s
in
De
ta
il
5
Speci
fied t
h
e
D
evi
ce &
C
onst
a
nt
6
Bef
o
re
Pr
ogr
a
m
m
ing
7
Bas
ic
In
st
ru
cti
o
n
8
FNC0
0
-FNC0
9
P
ro
g
ra
m F
lo
w
9
FNC1
0
-FNC1
9
M
ov
e
&
C
om
par
e
10
FNC
20-
FNC
2
9
Ar
ith.
&
Logi
c
O
per
at
io
n
2. Circuit example 2 for explaining operations (when only RST instruction for a timer or
counter is jumped)
When X011 turns ON while RST instruction for the
counter C0 is operating (X010 is ON), the program
execution jumps after execution of the RST
instruction due to CJ (FNC 00) instruction.
In this jump status, the counter C0 remains reset.
Accordingly, the current value of C0 remains "0"
even if X012 turns ON.
For clearing this reset status, it is necessary to turn
OFF RST instruction for the counter C0. (Refer to
the program shown below.)
Timing chart
Program example for activating a timer and counter even during jump
Timing chart
X010
K10
C0
RST
C0
X012
P0
FNC 00
CJ
Label
P0
X011
Jump operation by CJ
instruction driven by X011
X012
Current
value of C0
1
2
3
Counter
is reset.
Because C0 remains
reset, its current value
remains unchanged
even if X012 turns ON.
ON
Remains reset.
X010
RST
C0
1
2
X010
K10
C0
RST
C0
X012
P0
FNC 00
CJ
Label
P0
X011
M8000
RST
C0
Clears the reset status of
the counter C0 during jump.
Jump operation by CJ
instruction driven by X011
X012
Current
value of C0
1
2
3
Counter
is reset.
ON
*1 In the same operation cycle as
reset, the reset status of the
counter C0 is cleared.
X010
RST
C0
4
5
1
2
3
*1