Omron CQM1H - PROGRAM Programming Manual page 49

Programmable controllers; inner boards
Table of Contents

Advertisement

Interrupt Functions
Input interrupt 0
1
2
3
Procedure
(Counter Mode)
1,2,3...
24
4. Program the associated program sections.
a) Use INT(89) to unmask the input interrupt. (See page 27 for more de-
tails.)
b) Write an interrupt subroutine within SBN(92) and RET(93).
Interrupt 0
Interrupt 1
Interrupt 2
Interrupt 3
PC Setup
DM 6628
Follow the steps outlined below when using input interrupts in counter mode.
1. Determine the input interrupt number.
Terminal
Corresponding bit address
B0
IN0
IR 00000
A0
IN1
IR 00001
B1
IN2
IR 00002
A1
IN3
IR 00003
2. Determine the initial count SV.
3. Wire the input. (See page 25 for more details.)
4. Make PC Setup settings. (See page 26 for more details.)
a) Write 1 in the corresponding digit in DM 6628 to indicate that the input
will be used as an input interrupt (input interrupt or counter mode.)
b) Bits in DM 6630 through DM 6633 can be turned ON to cause the input
to be refreshed before the interrupt subroutine is executed.
Ladder Program
INTERRUPT CONTROL
Enable interrupts.
Subroutine number
000
001
002
003
Section 1-4
Generate interrupt
.
Execute specified
subroutine.
Interrupt Subroutine

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CQM1H - PROGRAM and is the answer not in the manual?

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents

Save PDF