599
FX3S/FX3G/FX3GC/FX3U/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
24 Others – FNC181 to FNC189
24.5 FNC189 – HCMOV / High-Speed Counter Move
21
FNC160-FNC169
Real Time Clock
Control
22
FNC170-FNC179
External Device
23
FNC180
Alternate
Instructions
24
FNC181-FNC189
Others
25
FNC190-FNC199
Block Data
Operation
26
FNC200-FNC209
Character String
Control
27
FNC210-FNC219
Data
Operation 3
28
FNC220-FNC249
Data
Comparison
29
FNC250-FNC269
Data Table
Operation
30
FNC270-FNC276
Ex-Device
Program examples
1. Program example 1
In the program example below, the current value of the high-speed counter C235 is compared in each operation cycle,
and then the output Y000 is set to ON if the current value is "K500" or more (when the current value of C235 is not
cleared).
*1. K0: The current value of the high-speed counter is not cleared when DHCMOV instruction is executed.
K1: The current value of the high-speed counter is cleared when DHCMOV instruction is executed.
2. Program example 2
In the program example shown below, the current value of C235 is transferred to D201 and D200, and the current
value of C235 is cleared when X001 turns from OFF to ON.
*2. K0: The current value of the high-speed counter is not cleared when DHCMOV instruction is executed.
K1: The current value of the high-speed counter is cleared when DHCMOV instruction is executed.
M8000
D0 K0*
1
FNC189
DHCMOV
C235
Y000
K500
FNC238
DAND>=
D0
END
The current value of C235 is
transferred to D1 and D0.
(The current value of C235 is not
cleared.)
In the case of "(D1, D0)
≥
K500",
Y000 is set to ON.
M8394
D200 K1
*2
FNC189
DHCMOV
C235
FNC 03
IRET
0
I101
FNC 04
EI
FNC 06
FEND
When X001 turns from OFF to ON, the
interrupt program from I101 to IRET is
executed.
The current value of C235 is
transferred to D201 and D200.
(The current value of C235 is cleared
to “0”.)