2 addition (l_phadd), Addition (l_phadd), Function library lenzedrive.lib – Lenze DDS Function library Drive User Manual

Page 49: Processing of phase−angle signals

Advertising
background image

Function library LenzeDrive.lib

Processing of phase−angle signals

2.4.2

Addition (L_PHADD)

2−39

L

LenzeDrive.lib EN 1.7

2.4.2

Addition (L_PHADD)

This FB adds or subtracts phase signals, depending on the input that is used.

+

+

-

L _ P H A D D

d n O u t _ p

d n I n 1 _ p

d n I n 2 _ p

d n I n 3 _ p

± 2 - 1

3 1

d n O u t 2 _ p

Fig. 2−50

Addition (L_PHADD)

VariableName

DataType

SignalType

VariableType

Note

dnIn1_p

Double−integer

position

VAR_INPUT

Addition input

dnIn2_p

Double−integer

position

VAR_INPUT

Addition input

dnIn3_p

Double−integer

position

VAR_INPUT

Subtraction input

dnOut_p

Double−integer

position

VAR_OUTPUT

The signal is limited to ±2147483647

dnOut2_p

Double−integer

position

VAR_OUTPUT

Signal without limiting / with overflow

Functional sequence

1. The signal at dnIn1_p is added to the signal at dnIn2_p

2. The signal at dnIn3_p is subtracted from the calculated result.

3. The result of the subtraction is then limited to ±2147483647 and output to dnOut_p and output

as unlimited to dnOut2_p.
Please observe, that at dnOut2_p there may be an overflow, thus producing a false value.

Advertising