317
FX3S/FX3G/FX3GC/FX3U/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
12.1 FNC 40 – ZRST / Zone Reset
11
FNC30-FNC39
Rotation and
Shift
12
FNC40-FNC49
Data Operation
13
FNC50-FNC59
High-Speed
Processing
14
FMC60-FNC69
Handy
Instruction
15
FNC70-FNC79
External FX I/O
Device
16
FNC80-FNC89
External FX
Device
17
FNC100-FNC109
Data
Transfer 2
18
FNC110-FNC139
Floating Point
19
FNC140-FNC149
Data
Operation 2
20
FNC150-FNC159
Positioning
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
2
D
1
D
2
D
1
Command
input
Before
execution
After
execution
Executed
K0
K0K0
…
K0K0 K0 K0 K0 K0 K0 K0 K0
…
+2 +9 +8 +7 +6 +5 +4 +3 +1
D
1
D
2
D
1
D
1
D
1
D
1
D
1
D
1
D
1
D
1
D
1
X001
M0RST
T0RST
D0RST
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