5-10 pulse input function example application, Pulse input function example application, Mode 2 procedure – Omron HOME SECURITY SYSTEM - MOTION SENSOR FQM1-MMA21 User Manual

Page 185

Advertising
background image

162

Pulse Inputs

Section 7-5

• Monitor the high-speed counter movement value in A604 and A605

(high-speed counter 1) or A606 and A607 (high-speed counter 2).

Procedure

1,2,3...

1.

Set Counter movements (mode 1) in the System Settings (Pulse Input,
Counter data display
).

2.

Turn ON the Measurement Start Bit (A610.02 or A611.02).

3.

Monitor the high-speed counter movement value in A604 and A605
(high-speed counter 1) or A606 and A607 (high-speed counter 2).

Mode 2 Procedure

1,2,3...

1.

Determine the Counting Speed, Input Mode, Reset Method, and Counter
Operation.

• Counting Speed: 50 kHz or 500 kHz

• Input Mode: Phase Differential, Increment/Decrement, or Pulse + Direc-

tion

• Reset method: Phase Z and software reset, or Software reset

• Counter Operation: Circular Counter or Linear Counter

2.

Wire the input.

3.

Make the necessary System Setup settings.

• Counter Data Display: Frequency measurement (mode 2)

4.

Create the necessary ladder programming.

• Turn ON the High-speed Counter 1 Start Bit (A610.00) and start the

high-speed counter.

• Specify the rotation direction in the Measurement Direction Bit (A610.03).

OFF is forward, ON is reverse.

• Turn ON the Measurement Start Bit (A610.02).

• Monitor the high-speed counter’s frequency in A604 and A605.

Procedure

1,2,3...

1.

Set Frequency measurement (mode 2) in the System Settings (Pulse In-
put, Counter data display
).

2.

Specify the rotation direction in the Measurement Direction Bit (A610.03).

3.

Turn ON the Measurement Start Bit (A610.02).

4.

Monitor the high-speed counter’s frequency in A604 and A605.

7-5-10 Pulse Input Function Example Application

Example 1:
High-speed Counter
Target Value
Comparison Interrupt

In this example, pulse input 1 operates a high-speed counter, the high-speed
counter PV is compared in a target-value comparison, and corresponding
interrupt tasks are executed when the target values are reached.

The Reset Bit is kept ON in the program and the PV of the counter is reset
when the phase-Z signal is turned ON after the PV reaches its maximum
value. Before running the program, make the following settings in the System
Setup and restart the FQM1 to enable the new settings.

Counter 1:
Linear Counter, Counting speed = 50 kHz, Phase Z and software reset,
and Increment/decrement pulse input

Advertising