7 Applied Instructions
7.18 Others
611
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied
Instructions
8
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
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 and FEND instructions in the main program.
They are necessary to execute an input interrupt program.
→ For EI and FEND, refer to Sections 7.1.6 and 7.1.7.
2) When programming DHCMOV instruction in the first line in an input interrupt program, be sure to use the
pattern program shown below. Be sure to use the command contact 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 instructions, is executed according to normal interrupt
processing.
Do not use M8394 as the command contact for the DHCMOV instructions following the first.
(Event : I )
M8394
Pattern program for using the DHCMOV
instruction in an interrupt program.
Program to be processed as input interrupt
DHCMOV
EN ENO
d
s
n
Specification to clear the current
value of high speed counter or ring
counter (transfer source) after transfer
Label 1 Label 2
[Interrupt program]
M8394
M8000
When this instruction is executed
in interrupt program
DHCMOV
EN ENO
d
s
n
Label 1 Label 2
DHCMOV
EN ENO
d
s
n
Label 1 Label 2
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)