Mitsubishi Electronics FX3G User Manual

Page of 964
319
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
12.1 FNC 40 – ZRST / Zone Reset
11
FN
C30
-FN
C3
9
R
ota
tion and 
Shi
ft
12
FN
C40-FN
C49
D
ata O
perati
on
13
FNC
50-FNC
59
High-Speed
 
Proc
essing
14
FM
C60-FN
C69
H
andy 
In
struction
15
FN
C70-FN
C79
E
xternal
 F
X
 I/O
 
De
vice
16
FNC
80-FNC
89
External
 FX 
Dev
ice
17
FNC1
00-
FNC10
9
Dat
Transfer 2
18
FNC1
10-
FNC139
Fl
oati
ng Poi
nt
19
FNC14
0-F
N
C
149
Da
ta
 
Operation 2
20
FNC1
50-
FNC159
Pos
itioning 
Control
4. Caution on simultaneous instances of the ZRST instruction and a counter
The ZRST instruction resets also the last stage and reset state of T and C coils.
Accordingly, if the drive contact of X000 is ON in the following program, the counter executes counting after the ZRST
instruction is executed.
Program in the following way to disable counting after execution of the ZRST instruction:
Program example
1. When using devices in the latch area as non-latch type devices
In the program shown below, when the power to the PLC is turned ON or when the PLC mode is changed to RUN, the
specified ranges of bit devices and word devices are reset at one time.
K10
C0
M0
M0
RST
C100
C0
FNC 40
ZRST
X000
Circuit program
Timing chart
one operation 
cycle
one operation 
cycle
one operation 
cycle
one operation 
cycle
ZRST instruction 
execution
OUT instruction 
execution
Counting is 
executed when 
X000 is ON.
OUT instruction 
execution
OUT instruction 
execution
X000
ON
OFF
ON
OFF
ON
2
1
0
4
3
OFF
Current 
value 
of C0
M0
K10
C0
Circuit program
M0
M0
RST
C100
C0
FNC 40
ZRST
X000
M8002
FNC 40
ZRST
M500
M599
Initial pulse
D
1
  
D
2
  
M500 to M599 are reset at one time.
FNC 40
ZRST
C235
C255
D
1
  
D
2
  
FNC 40
ZRST
S500
S599
D
1
  
D
2
  
C235 to C255 are reset at one time.
("0" is written to them, and their contacts are reset.)
S500 to S599 are reset at one time.