Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
35 Interrupt Function and Pulse Catch Function
810
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
35.6 Counter Interrupt - Interrupt Triggered by Counting Up of High Speed Counter
35.6 Counter Interrupt - Interrupt Triggered by Counting Up of High Speed
Counter
1. Outline
This type of interrupt utilizes the current value of a high speed counter.
The FX
0S, FX0, FX0N, FX1S, FX1N, FX1NC, FX3S, FX3G or FX3GC PLC does not support the counter interrupt
function.
The FX
U PLC of V 3.07 or later supports the counter interrupt function.
2. Application
This type of interrupt is used together with the DHSCS_I instruction (high speed counter interrupt) to execute
an interrupt routine when the current value of a high speed counter reaches the specified value.
3. Basic program (programming procedure)
*1. When the comparison value specified by a data register, etc. is changed, the current value is actually
changed to the specified value when END instruction is executed.
4. Number and operation of (six) counter interrupt pointers
*1. Cleared when the PLC mode is changed from RUN to STOP.
Pointer No. Interrupt disable flag
I010
M8059
*1
I020
I030
I040
I050
I060
EI
EN ENO
When the current value of C255 changes
from "999" to "1000" or from "1001" to
"1000", the PLC executes the interrupt
routine.
For use examples of interrupt program,
refer to the above description of input
interrupt pointers.
M8000
CC255
K2,147,483,647
OUT_C
EN ENO
CCoil
CValue
RUN
monitor
Interrupt subroutine
(Interrupt program)
Main program
Interrupts are enabled by EI instruction.
The main program is described.
The coil of a high speed counter is driven,
and an interrupt pointer is specified in
DHSCS_I instruction.
When counter interrupt is specified
[Interrupt program]
(Event: I010)
DHSCS
EN ENO
DHSCS_I
EN
s1
ENO
K1000
s2
i
CN255
I010
*1
Interrupt point number
is specified.
I 0 0
Counter interrupt pointer (1 to 6)