Frqrf (Frequency Measurement Refresh) - IDEC MICROSmart FC6A Series Ladder Programming Manual

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

14: R
I
EFRESH
NSTRUCTIONS

FRQRF (Frequency Measurement Refresh)

FRQRF
*
Example: FRQRF
Periodically update the current value of the frequency measurement value (D8210, D8211) using the FRQRF instruction in an
interrupt program.
When the frequency measurement value becomes 5,000 or greater, turn on the error signal (Q1).
MOV(W)
M8120
M8125
CMP>(D)
M8125
M8125
14-4
When the input is on, the frequency measurement values (select from group 1 to group 6) allocated to special data
registers are updated to the latest values. (The group number of the selected high-speed counter is displayed under
the advanced instruction symbol.)
Before the measured results are reflected in special data registers, it takes a maximum of approximately 250 ms + the
scan time, but by using the FRQRF instruction, control processing using the latest current values of the frequency
measurements can be performed in any location in the user program.
For the frequency measurement function, see Chapter 5 "Frequency Measurement" in the "FC6A Series MICROSmart
User's Manual".
S1 –
D1 –
REP
0
D8036
Main Program
END
LABEL
0
FRQRF
1
S1 –
S2 –
D1 –
REP
D8210
5000
Q1
IOREF
S1
Q1
LRET
FC6A S
MICROS
ERIES
MART
Store 0 in D8036 and specify LABEL 0 as the interrupt program to execute
when the timer interrupt occurs.
The interrupt program is separated from the main program by the END
instruction.
Interrupt program starts.
Update the current value (D8210, D8211) of the frequency measurement
value.
When the frequency measurement value becomes 5,000 or greater, turn on
Q1 as the error signal.
The status of output Q1 is reflected in the external output.
Interrupt program ends.
L
P
M
ADDER
ROGRAMMING
ANUAL
FC9Y-B1726

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents