Short Description
The Analog filter function block is used to smooth the analog input signal.
LOGO! 9 and later versions support two data types: integer (16-bit) and float (32-bit).
|
Connection |
Description |
|
Input Ax |
Input Ax is one of the following analog signals (integer or float):
|
|
Parameter |
Sn (Number of samples): determines how many analog values are sampled within the program cycles that are determined by the set number of samples. LOGO! samples an analog value within every program cycle. The number of program cycles is equal to the set number of samples. Possible settings: 8, 16, 32, 64, 128, 256 |
|
Output AQ |
AQ outputs an average value of the analog input Ax over the current number of samples, and it is set or reset depending on the analog input and the number of samples. |
|
1 If the data type of Ax is integer and the data type of this FB is configured as float, LSC will convert Ax into 32-bit receivable float data. 2 If the data type of Ax is float and the data type of this FB is configured as integer, LSC will cut off the decimal numbers of Ax and convert it into 16-bit receivable integer data. 3 AI1 to AI16: 0 to 10 V corresponds with 0 to 1000, 0 to 4095 or 0 to 10000 (internal value). 4 AI1 to AI8: 0 to 10 V corresponds with 0 to 1000 (internal value). |
|
Parameter
You can set the number of samples to the following values:
After you set the parameter, the analog filter calculates the average value of the samples and assigns this value to AQ.
Timing diagram
Description of function
The function outputs the average value after sampling the analog input signal according to the set number of samples. This SFB can reduce the error of analog input signal.
|
Note
You can use up to 16 analog filter function blocks in the circuit program for LOGO! 9. You can use up to eight analog filter function blocks in the circuit program for LOGO! 0BA7 or 0BA8. |