Analog filter (0BA7 and later versions only)

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):

  • AI 1:

    • LOGO! 9: AI1 to AI16 3

    • 0BA8: AI1 to AI8 4

  • AM 1:

    • LOGO! 9: AM1 to AM128

    • 0BA8: AM1 to AM64

    • 0BA7: AM1 to AM16

    • 0BA6: AM1 to AM6

  • NAI 1:

    • LOGO! 9: NAI1 to NAI128

    • 0BA7 or 0BA8: NAI1 to NAI32

  • AQ 1:

    • LOGO! 9: AQ1 to AQ16

    • 0BA8: AQ1 to AQ8

    • 0BA7: AQ1 and AQ2

  • NFAI 2:

    • LOGO! 9: NFAI1 to NFAI16

  • FAM 2:

    • LOGO! 9: FAM1 to FAM32

  • The block number of a function with analog output 1 2

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.

Special Functions Overview