CD522_FREQ_SCAN

../_images/e59a0055e389afb50a33139000eba54e
Parameter Value
Library_File_Name CD522_AC500_V13.lib
Available from PLC runtime system: V1.0.2
Available from S500 I/O modules (DC551/DC505) firmware V1.11
Available from CD522 firmware V2.1
Type Type_Function_Block_History

The module CD522 can be used in 12 different configurable operating modes. The operating mode is configured in PLC Configuration using module parameters. After that, it is activated during the initialization phase (power-on, cold start, warm start).

The data exchange from and to the user program is performed using input and output operands. These necessary operands are created and reserved automatically, when one module CD522 is added into the I/O-Bus configuration.

In order to configure and use the function counter of module CD522, different operating modes are available. The Function Block CD522_FREQ_SCAN should be used with one of these operating modes:

Operating Mode 15 “Time frequency meter (Z)”
Should be specified in PLC Configuration with the parameter mode counter.

The module CD522 provides 2 channels (Z0 and Z1) which can be used to measure times, frequencies and rotational speeds with a resolution of 1 µs. Both have the same specification and can work completely separated.

The Function Block CD522_FREQ_SCAN should be used to control with input EN_CNT, configure the capture on falling edge with input EN_0 or rising edge with input EN_1 of signal, and the specification of the mode of the measurement (time, frequency and Rpm) with input EN_FREQ (see figure and table below).

The table shows values measured according to configuration input parameters and this example of timing.

Attention

:strong:Risk of malfunctions!

Never use the time measurement (bit EN_FREQ=FALSE) mode if the CD522 is connected to a CS31 Bus Module, e. g. CI592.

Depending on the input parameters of function block, the result of time measurement can be measured in time in µs, frequency in Hz or speed of rotation in rotation per minute.

../_images/504ce766e389b4380a33139000eba54e
EN_0 EN_1 EN_FREQ Type 1 2 3 4
FALSE FALSE TRUE No measurement 0 0 0 0
FALSE TRUE TRUE Between 2 falling edges     350  
TRUE FALSE TRUE Between 2 rising edges   500   450
TRUE TRUE TRUE Between any 2 edges 300 200 150 300
FALSE FALSE FALSE No measurement 0 0 0 0
FALSE TRUE FALSE Between the rising edge and the subsequent falling edge 300   150  
TRUE FALSE FALSE Between the falling edge and the subsequent rising edge   200   300
TRUE TRUE FALSE Between any 2 edges 300 200 150 300