Sunteți pe pagina 1din 3

CF - Frequency Counter

General Information on High-Speed Counters


The control relays and visualization devices provide a range of different high-speed counter functions. These counter function blocks can be connected directly to the digital inputs. The following counter functions are possible:
l l l

CF.. Frequency counters, frequency measurement CH.. High-speed counters, high-speed signal counting CI.. Incremental encoders, dual-channel incremental encoder signal counting Note:The incremental encoder is always assigned an input pair, e.g. I03 and I04!

Inputs I 01...I 04 are designed for activating high-speed counters. The following wiring requirements must be observed:
l l l l

I 01 => CF 01, CH 01 or CI 01 I 02 => CF 02, CH 02 or CI 01 I 03 => CF 03, CH 03 or CI 02 I 04 => CF 04, CH 04 or CI 02

Input assignment
Caution: Each I .. input on the device can only be used once by a CF, CH, CI function block. If an input Ixx is used several times, only the high-speed counter is run that is positioned at the back in the order of processing in the function block diagram.

Example of an impermissible input assignment I 01 = High-speed counter CH 01 I 01 = Frequency counter CF 02 I 01 = Incremental encoder channel A CI 02 All function blocks are associated with the digital input I1, but only CH01 is triggered and supplies the correct counter value. Example of a permissible input assignment: I 01 = High-speed counter CH 01 I 02 = Frequency counter CF 02 I 03 = Incremental encoder channel A CI 02 I 04 = Incremental encoder channel B CI 02

General Information on the CF Frequency Counter


Can be used for Device EASY800 MFD From version no.: 01 01

The devices provide four frequency counters CF01...CF04 for measuring frequencies. These high-speed frequency counters are internally connected with the digital inputs I01...I04 and operate independently of the cycle time. You can enter upper and lower threshold values (setpoints) as comparison values. General notes on the use of function blocks are provided in the section Programming with function blocks! Symbol in the function block diagram

Function
The CF frequency counters are not dependent on the cycle time. The maximum counter frequency is 5 kHz. The minimum counter frequency is 4 Hz. Only square wave signals are permissible. The mark-to-space ratio is 1:1. Measuring procedure: The pulses at the input are counted for one second, irrespective of the cycle time, and the frequency determined. The measurement result is provided at the function block output QV. The counter wiring must observe the following digital input assignment:
l l l l

I 01 counter input for counter CF 01 I 02 counter input for counter CF 02 I 03 counter input for counter CF 03 I 04 counter input for counter CF 04

Note: Avoid unforeseeable switch states. Only use each coil of a relay once in the circuit diagram. Only use a counter input for CF, CH, CI counters once.

The Function Block and its Parameters


Description Function block inputs (DWord) SH Upper setpoint The function block operates in the integer range from -2147483648...+2147483647. Note

SL Function block output (DWord) QV

Lower setpoint

Actual value in RUN mode

The function block supplies output values in the integer range from 0...10 000. The following therefore applies: 1 kHz = 1000 Behaviour when exceeding the value range: The value range cannot be exceeded since the maximum measured value is less than the value range.

Contact (bit output) OF Status 1 if the actual value is greater than

or equal to the upper setpoint (Overflow) FB ZE Status 1 if the actual value is less than or equal to the lower setpoint (Fall below) Status 1 if the value of the QV function block output (i.e. the counter status) is zero

Coil function (bit input) EN Parameter set Call enabled Simulation Not possible Hardware-dependent function block Function block parameters can be viewed on the device. Enable for counter function block

Memory Requirement
The function block requires 40 bytes of memory plus 4 bytes per function block input configured with an NU constant.

Retention
The frequency counter does not have any retentive actual values since the frequency is continuously remeasured. Tip: Refer to the EASY800 or MFD manual for more information on the function block.

S-ar putea să vă placă și