10.5 Interrupt Program Activation
10.5.1 Overview of Function
When the elapsed value reaches the target value while the high-speed counter instruction F165
(CAM0) / F166 (HC1S) / F167 (HC1R) is being executed, the interrupt program can be
activated.
■
Execution method
● Make the setting for the high-speed counter by system registers. There is no need to make
the setting of interrupt input.
● Describe the interrupt program as a sub program.
● Allow the execution of a corresponding interrupt program number by the ICTL instruction in
the main program.
● Execute the F165 (CAM0) / F166 (HC1S) / F167 (HC1R) instruction. When the elapsed
value of the high-speed counter reaches the target value, the interrupt program is activated.
( ED )
( INT 0 )
( I RET )
INT0 Program
F166 HC1S instruction
Target value match ON
R9110: CH0 control flag
K0: CH0 specified
K10000: Target value
Y2: Match output set
ICTL instruction
INT0 program
execution enabled
R0
H0ICTL H1
R1
K10000K0
F166 HC1S
Y2
(( ))
DF
R9110
■
Corresponding channel numbers and interrupt program numbers
Channel No. INT number
CH0 INT0
CH1 INT1
CH2 INT3
CH3 INT4
CH4 INT5
CH5 INT6
CH6 INT7
CH7 INT8
CH8 INT9
CH9 INT10
CHA INT11
CHB INT12
10.5 Interrupt Program Activation
WUME-FPXHPOSG-01 10-31