Mitsubishi Electronics FX3G User Manual

Page of 964
226
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09
8.1 FNC 00 – CJ / Conditional Jump
2. Circuit example 2 for explaining operations (when only an RST instruction for a timer or counter 
is jumped)
When X011 turns ON while the RST instruction for the
counter C0 is operating (X010 is ON), the program
execution jumps past the RST instruction due to the 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.
To clear this reset status, it is necessary to turn OFF
the RST instruction for counter C0.  (Refer to the
program shown below.)
Timing chart
Program example for activating a timer and counter even during a 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
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 the
    reset, the reset status of counter
    C0 is cleared.
X010
RST
C0
4
5
1
2
3
*1