Mitsubishi Electronics FX3G User Manual

Page of 964
317
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
When 
 and 
 are word devices
"K0" is written to the entire range from 
 to 
 at one time.
Related instructions
1. RST instruction
As an independent reset instruction for devices, RST instruction can be used for bit devices (Y, M and S) and word
devices (T, C, D and R).
2. FMOV (FNC 16) instruction
FMOV (FNC 16) instruction is provided to write a constant (example: K0) at one time. By using this instruction, "0" can
be written to word devices (KnY, KnM, KnS, T, C, D and R) at one time.
Cautions
1. Caution on specifying devices
Specify same type of devices in 
 and 
. The device number of 
 should be smaller than or equal to the
device number of 
.
If the device number of 
 is larger than the device number of 
, only one device specified in 
 is reset.
2. When specifying high-speed counters (C235 to C255)
The ZRST instruction is handled as the 16-bit type, but 32-bit counters can be specified in 
 and 
.
However, it is not possible to specify a 16-bit counter in 
 and specify a 32-bit counter in 
 and 
should be the same type.
Example
  
D
1
  
D
1
  
D
1
  
D
2
  
D
1
  
D
1
  
D
1
  
D
2
FNC 40
ZRST
Devices           through           are reset at one time.
D
‚
D
‚
D
‚
D
‚
Command
input
Before
execution
After
execution
Executed
K0
K0
K0
K0
K0
K0
K0
K0
K0
K0
K0
K0
        +2
        +9         +8         +7         +6         +5          +4         +3
        +1
D
D
D
D
D
D
D
D
D
D
D
X001
M0
RST
T0
RST
D0
RST
M0 is reset.
The current value of T0 is
reset.
D0 is reset.
X002
K0
K0 is written to D0 to D99 at one time.
FNC 16
FMOV
D0
K100
  
D
1
  
D
1
  
D
1
  
D
2
  
D
1
  
D
1
  
D
1
  
D
2
  
D
1
  
D
1
  
D
1
  
D
2
  
D
1
  
D
1
  
D
1
  
D
1
  
D
1
  
D
2
  
D
1
  
D
1
  
D
1
  
D
2
  
D
1
  
D
1
  
D
1
  
D
2
Command
input
FNC 40
ZRST
C180
C230
16-bit
counter
32-bit
counter
Command
input
FNC 40
ZRST
C180
C199
FNC 40
ZRST
C200
C230