Mitsubishi Electronics FX3GC Garage Door Opener User Manual


 
152
FX3S/FX3G/FX3GC/FX3U/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.12 Pointer [P and I]
Operations
3. Pointers for counter interrupt: 6 points
*1
For details on counter interrupt function, refer to Section 36.6.
The PLC executes an interrupt routine based on the comparison result obtained by the comparison set instruction for
high-speed counter (DHSCS instruction).
Use these pointers for control requiring an interrupt routine based on the counting result from high-speed counters.
*1. This function is supported only in FX
3U/FX3UC PLCs.
*2. Cleared when the PLC mode switches from RUN to STOP.
Operations
Pointer No. Interrupt disabling flag Pointer No. Interrupt disabling flag
I010
M8059
*2
I040
M8059
*2
I020 I050
I030 I060
Step
0
I620
Pointer for
interrupt
Interrupt
routine
Interrupt is
enabled
Main program
is finished
Main
program
Interrupt at every 20 ms
Interrupt return
FNC 04
EI
FNC 06
FEND
FNC 03
IRET
END
"FEND" indicates the end of the main
program.
Make sure to describe an interrupt routine
after "FEND".
The PLC executes an interrupt routine at every
20 ms.
The PLC returns to main program by IRET
instruction.
Timer interrupt is enabled after EI instruction.
It is not necessary to program DI (disable
interrupt) instruction when no zone to disable
timer interrupt is needed.
M8000
RUN
monitor
FNC 04
EI
FNC 53
DHSCS
K1000 C255
FNC 03
IRET
END
Step
0
C255
I010
Interrupt pointer
number is
specified
FNC 06
FEND
Interrupt routine
(interrupt program)
I010
Pointer for
interrupt
Counter interrupt is specified
Interrupt return
K2,147,483,647
Enable interrupt after EI instruction, and
describe the main program.
Drive the coil of a high-speed counter, and
specify an interrupt pointer in DHSCS (FNC 53)
instruction.
When the current value of C255 changes from
"999" to "1000" or from "1001" to "1000", the
interrupt routine is executed.
For example of interrupt program, refer to an
input interrupt described above.