582
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
24 Others – FNC181 to FNC189
24.5 FNC189 – HCMOV / High Speed Counter Move
Cautions
When programming DHCMOV instruction in an input interrupt program, the following points should be
observed.
For assignment of pointers for input interrupt and inputs, refer to the table shown in 5) below.
1) Program EI (FNC 04) and FEND (FNC 06) instructions in the main program. They are necessary to
execute an input interrupt program.
→
For EI (FNC 04) and FEND (FNC 06) instructions, refer to Section 8.5 and Section 8.6.
2) When programming DHCMOV instruction in the 1st line in an input interrupt program, make sure to use
the pattern program shown below.
Make sure to use the command contact M8394.
3) If two or more DHCMOV instructions are used in one input interrupt program, only the instruction just after
the interrupt pointer is executed when an interrupt event is generated, and then the interrupt program is
executed after that.
DHCMOV the second and later instructions are executed when such instructions are executed in the
same way as the normal interrupt processing.
Do not use M8934 as the command contact for DHCMOV instructions the second and later.
4) It is not permitted to use DHCMOV instruction for the same counter in two or more input interrupt
programs.
FNC 03
IRET
M8394
n
FNC189
DHCMOV
I
Pattern program for using the
DHCMOV instruction in an interrupt
program
Program to be processed as input
interrupt
S
D
M8394
n
FNC189
DHCMOV
I301
M8000
'
n'
FNC189
DHCMOV
'
FNC 03
IRET
When the input X003 turns ON from
OFF (that is, when input interrupt is
accepted):
→
[ +1, ]
When this instruction is executed in
interrupt program:
'
→
[ ' +1, ' ]
S
D
S
D
S
D
D
S
D
D
M8394
D0
K0
FNC189
DHCMOV
IRET
C236
I000
M8394
D2
K1
FNC189
DHCMOV
IRET
C236
I200
Same counter