Mitsubishi Electric MELSEC FX3U Programming Manual page 629

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
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.
I
M8394
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 DHCMOV instructions, is executed according to normal
interrupt processing.
Do not use M8394 as the command contact for the DHCMOV instructions following the first.
I301
M8394
M8000
4) It is not permitted to use DHCMOV instruction for the same counter in two or more input interrupt
programs.
M8394
I000
M8394
I200
FNC189
S
D
DHCMOV
FNC189
S
D
DHCMOV
FNC189
S
'
'
D
DHCMOV
FNC189
C236
D0
DHCMOV
Same counter
FNC189
C236
D2
DHCMOV
24 Others – FNC181 to FNC189
24.5 FNC189 – HCMOV / High Speed Counter Move
Pattern program for using the
n
DHCMOV instruction in an interrupt
program
Program to be processed as input
interrupt
FNC 03
IRET
When the input X003 turns from OFF
n
to ON (that is, when input interrupt is
accepted):
→ [
+1,
S
D
n'
When this instruction is executed in
interrupt program:
' → [
' +1,
FNC 03
S
D
IRET
K0
FNC03
IRET
K1
FNC03
IRET
21
22
23
24
25
]
D
26
' ]
D
27
28
29
30
627

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents