9 curve function (l_curve), Curve function (l_curve), Function library lenzedrive.lib – Lenze DDS Function library Drive User Manual

Page 27: Analog signal processing, Parameter codes of the instances, Function

Advertising
background image

Function library LenzeDrive.lib

Analog signal processing

2.2.9

Curve function (L_CURVE)

2−17

L

LenzeDrive.lib EN 1.7

2.2.9

Curve function (L_CURVE)

This FB converts an analog signal into a characteristic curve.

Y0 =

nY0

Y1 =

nY1

Y2 =

nY2

Y100 = nY100
X1 =

nX1

X2 =

nX2

L_CURVE

nIn_a

1

2

3

Characteristic 3

x

y

x1

x2

y1

y0

y2

y100

x

y

x1

y1

y0

y100

x

y

y0

y100

1

2

3

nOut_a

byFunction

Characteristic 2

Characteristic 1

Fig. 2−15

Curve function (L_CURVE)

VariableName

DataType

SignalType

VariableType

Note

nIn_a

Integer

analog

VAR_INPUT

nOut_a

Integer

analog

VAR_OUTPUT

byFunction

Byte

VAR CONSTANT RETAIN

Selection of the characteristic/curve function

nY0

Integer

VAR CONSTANT RETAIN

Entry of Y0 from vector (0, Y0)

nY1

Integer

VAR CONSTANT RETAIN

Entry of Y1 from vector (X1, Y1)

nY2

Integer

VAR CONSTANT RETAIN

Entry of Y2 from vector (X2, Y2)

nY100

Integer

VAR CONSTANT RETAIN

Entry of Y100 from vector (16384, Y100)

nX1

Integer

VAR CONSTANT RETAIN

Entry of X1 from vector (X1, Y1)

nX2

Integer

VAR CONSTANT RETAIN

Entry of X2 from vector (X2, Y2)

Parameter codes of the instances

VariableName

L_CURVE1

SettingRange

Lenze

byFunction

C0960

1 ... 3

1

nY0

C0961

0 ... 199.99 %

0.00

nY1

C0962

0 ... 199.99 %

50.00

nY2

C0963

0 ... 199.99 %

75.00

nY100

C0964

0 ... 199.99 %

100.00

nX1

C0965

0.01 ... 99.99 %

50.00

nX2

C0966

0.01 ... 99.99 %

75.00

Function

Selection of the function

Curve function

Informationen for entry of the interpolation points

byFunction = 1

Characteristic with two co−ordinates

^ Fig. 2−16

byFunction = 2

Characteristic with three co−ordinates

^ Fig. 2−17

byFunction = 3

Characteristic with four interpolatio points

^ Fig. 2−18

·

100% corresponds to 16384.

·

A linear interpolation is carried out between the co−ordinates.

·

For negative values at nIn_a the settings of the interpolation points are processed inversely
(see line diagrams).
– If this is not required, insert an FB L_ABS or an FB L_LIM before or after the FB L_CURVE.

Advertising