Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
24 Applied Instructions (Others)
24.5 DHCMOV / High Speed Counter Move
598
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
3) If two or more DHCMOV instructions are used in one input interrupt program, only the first instruction (just
after the interrupt pointer) is executed when the interrupt is generated.
The rest of the interrupt, including additional instructions, is executed according to normal interrupt
processing.
Do not use M8394 as the command contact for the DHCMOV instructions following the first.
4) It is not permitted to use DHCMOV instruction for the same counter in two or more input interrupt
programs.
5) While input interrupts are disabled by the interrupt disable flags (shown in the table below), DHCMOV
instructions are not executed when they are placed inside a corresponding interrupt.
*1. When the PLC mode is changed from RUN to STOP, if an input interrupt is generated while input
interrupts are disabled by something other than the interrupt disable flags M8050 to M8055 (after
execution of DI instruction and before execution of EI instruction), DHCMOV instruction is
immediately executed, but execution of the interrupt program is held. The interrupt program will be
executed after EI instruction is executed and interrupt are enabled.
6) Some restrictions to the applicable devices
S1: Only the high speed counters (C235 to C255) and ring counters (D8099, D8398)
*1
can be specified.
*1. The FX
3UC PLCs of before Ver. 2.20 (not inclusive) cannot specify the ring counter (D8099,
D8398).
Interrupt disable flag Corresponding interrupt pointer Input number corresponding to interrupt pointer
M8050
*1
I000,I001 X000
M8051
*1
I100,I101 X001
M8052
*1
I200,I201 X002
M8053
*1
I300,I301 X003
M8054
*1
I400,I401 X004
M8055
*1
I500,I501 X005
M8394
M8000
When this instruction is executed
in interrupt program
DHCMOV
EN ENO
d
s
n
Device of high speed counter or ring
counter handled as transfer source
Device of high speed counter or ring
counter handled as transfer source
Device handled
as transfer
destination
Device handled
as transfer
destination
DHCMOV
EN ENO
d
s
n
When the input X003 turns from OFF to ON
(that is, when input interrupt is accepted)
' [ '+1, ']
s d d
Specification to clear the current
value of high speed counter or ring
counter (transfer source) after transfer
Specification to clear the current
value of high speed counter or ring
counter (transfer source) after transfer
s d d
[ +1, ]
[Interrupt program]
(Event: I301)
Same counter
M8394
M8394
DHCMOV
EN ENO
d
s
n
C236
D0
K0
IRET
EN ENO
DHCMOV
EN ENO
d
s
n
C236
D2
K0
IRET
EN ENO
[Interrupt program]
(Event: I000)
[Interrupt program]
(Event: I200)