3 comparison (l_phcmp), Comparison (l_phcmp), Function library lenzedrive.lib – Lenze DDS Function library Drive User Manual

Page 50: Processing of phase−angle signals

Advertising
background image

2.4.3

Comparison (L_PHCMP)

Function library LenzeDrive.lib

Processing of phase−angle signals

2−40

L

LenzeDrive.lib EN 1.7

2.4.3

Comparison (L_PHCMP)

This FB compares two phase signals (paths) with each other.

byFunction

dnIn2_p

dnIn1_p

bOut_b

L_PHCMP

Fig. 2−51

Comparison (L_PHCMP)

VariableName

DataType

SignalType

VariableType

Note

dnIn1_p

Double−integer

position

VAR_INPUT

Signal to be compared

dnIn2_p

Double−integer

position

VAR_INPUT

Comparison value

bOut_b

Bool

binary

VAR_OUTPUT

byFunction

Byte

VAR CONSTANT RETAIN

Selection of the function

Parameter codes of the instances

VariableName

L_PHCMP1

L_PHCMP2

L_PHCMP3

SettingRange

Lenze

byFunction

C0695

C1207

C1272

1 ... 2

2

Function

Selection

Comparison function

If the comparison condition is fulfilled

Note

byFunction = 1

dnIn1_p < dnIn2_p

bOut_b = HIGH

dnIn1_p

³ dnIn2_p

bOut_b = LOW

byFunction = 2

½dnIn1_p½<½dnIn2_p ½

bOut_b = HIGH

Compares the absolute value
of the inputs.

½dnIn1_p½³½dnIn2_p ½

bOut_b = LOW

Advertising