Omron FQM1-MMP21, FQM1-CM001, FQM1-MMA21 Input Interrupts, Section, Counter Mode Procedure, 1,2,3

Models: FQM1-MMP21 FQM1-MMA21 FQM1-CM001

1 414
Download 414 pages 44.52 Kb
Page 167
Image 167
Counter Mode Procedure

Input Interrupts

Section 7-3

Counter Mode Procedure

1,2,3...

1.Determine which input interrupt number will be used.

2.Determine the initial SV for the decrementing counter.

3.Wire the input.

Input

Allocated input bit

Interrupt task number

External interrupt input 0

CIO 0000.00

000

 

 

 

External interrupt input 1

CIO 0000.01

001

 

 

 

External interrupt input 2

CIO 0000.02

002

 

 

 

External interrupt input 3

CIO 0000.03

003

4.Make the necessary System Setup settings.

Set the Interrupt Input Settings (set whether an interrupt will be generated when the input turns ON, OFF, or both).

Note The default input setting is for a normal input.

5.Create the necessary ladder programming.

Use the MSKS(690) instruction (SET INTERRUPT MASK) to refresh the counter’s SV in counter mode.

• Create the interrupt task program.

Interrupt 0

input

1

2

3

CIO 0000.00

CIO 0000.01

CIO 0000.02

CIO 0000.03

Counter 0, 1 kHz

Counter 1, 1 kHz

Counter 2, 1 kHz

Counter 3, 1 kHz

System Setup

Interrupt input settings

Manual backgroundManual background Interrupt input (counter mode)

 

 

 

Ladder program

 

 

 

MSKS

 

 

Interrupt control

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Refresh PV

 

 

 

 

 

 

(Decrementing)

 

 

 

 

 

 

 

 

 

 

 

Change SV (Decrementing)

 

 

 

 

 

 

 

Counter SV

 

 

 

 

 

 

Counter 0

 

A520

 

 

 

 

 

 

Counter 1

 

A521

 

 

 

 

 

 

 

Counter 2

 

A522

 

 

 

 

 

 

 

Counter 3

 

A523

 

 

 

 

 

 

 

(Auxiliary Area)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Refresh PV (once each cycle)

Counter PV

Counter 0 A524

Counter 1 A525

Counter 2 A526

Counter 3 A527

(Auxiliary Area)

Interrupt generated.

See note.

Execute specified task.

END

Note: Interrupt used only when the counter counts out.

144

Page 167
Image 167
Omron FQM1-MMP21, FQM1-CM001, FQM1-MMA21 operation manual Input Interrupts, Section, Counter Mode Procedure, 1,2,3