Analog amplifier

Short description

This SFB amplifies an analog input value and returns it at the analog output.

LOGO! 9 and later versions support two data types: integer (16-bit) and float (32-bit).

Connections

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

Value range

Integer

Float

Gain

  • Analog resolution 0 - 1000: -10.00 to 10.00

  • Analog resolution 0 - 4095: -10.00 to 10.00

  • Analog resolution 0 - 10000: -10.00 to 10.00

-3.402823E38 to +3.402823E38

Offset

  • Analog resolution 0 - 1000: -10000 to 10000

  • Analog resolution 0 - 4095: -32768 to 32767

  • Analog resolution 0 - 10000: -32768 to 32767

p (Number of decimals)

0, 1, 2, 3

/

Output AQ

AQ

-32768 to +32767

-3.402823E38 to +3.402823E38

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

0BA4:

A: Gain

Range of values: 0.00 to 10.00

Parameter p (number of decimals)

Parameter p applies only to the display of Ax and Ay values in a message text.

Parameter p does not apply to the comparison of On and Off values. (The compare function ignores the decimal point.)

Description of the function

The function reads the value of an analog signal at the analog input Ax.

This value is multiplied by the gain parameter A. Parameter B (offset) is added to the product, as follows:

(Ax * gain) + offset = Actual value Ax.

The actual value Ax is output at AQ.

Particular characteristics to be noted when configuring

For help on analog block parameters, refer to the Analog value processing section.

Analog output

If you connect this special function to a real analog output, then note that the analog output can only process values from 0 to 1000. To do this, connect an additional amplifier between the analog output of the special function and the real analog output. With this amplifier you standardize the output range of the special function to a value range of 0 to 1000.

Example: additional amplifier behind an analog multiplexer.

Overview