FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
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
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.
Interrupt disable flag
M8050
M8051
M8052
M8053
M8054
M8055
*1.Cleared when the PLC mode is changed from RUN to STOP.
6)
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 interrupts are enabled.
Function change depending on the version
The function of FNC189 instruction changes depending on the version as shown in the table below.
Applicable version
FX
3U
Ver.2.20 or
Ver.2.20 or
later
Error
An operation error occurs in the following case; The error flag M8067 turns ON, and the error code is stored in D8067.
• When a device specified in
FNC189
S
DHCMOV
FNC189
S
DHCMOV
FNC189
C236
DHCMOV
Same counter
FNC189
C236
DHCMOV
Corresponding interrupt pointer
*1
I000,I001
*1
I100,I101
*1
I200,I201
*1
I300,I301
*1
I400,I401
*1
I500,I501
Item
FX
3UC
Target device
later
S
or [
D
+1,
24.5 FNC189 – HCMOV / High-Speed Counter Move
When the input X003 turns from OFF
n
D
to ON (that is, when input interrupt is
accepted):
S
'
D
'
n'
When this instruction is executed in
interrupt program:
FNC 03
S
IRET
D0
K0
FNC03
IRET
D2
K1
FNC03
IRET
Input number corresponding to interrupt pointer
Outline of function
Ring counter (D8099 and D8398) can be specified in
D
] is outside the allowable range (error code: K6705)
24 Others – FNC181 to FNC189
→ [
+1,
]
D
D
' → [
' +1,
' ]
D
D
X000
X001
X002
X003
X004
X005
S
.
21
22
23
24
25
26
27
28
29
30
599