48 l_convunitstoincr_1, 48 l_convunitstoincr_1 7, L_convunitstoincr_1 – Lenze 8400 User Manual

Page 1217: Winl, Winh, Poscal, 18 function library

Advertising
background image

Lenze · 8400 protec HighLine · Reference manual · DMS 3.0 EN · 03/2013 · TD05

1217

18

Function library

18.1

Function blocks | L_ConvUnitsToIncr_1

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

18.1.48

L_ConvUnitsToIncr_1

Taking into account the machine parameters, this FB converts a position value provided in the real

unit of the machine into an internal 32-bit position value.

• The conversion mode has to be set in

C01294/1

. In the Lenze setting, no conversion takes place

due to compatibility reasons.

• Conversion and provision of the result to dnOut_p do not take place in real time! Hence, the

bDataValid output signalises when the conversion has been completed and the dnOut_p output

value is consistent for transfer to following processes.

Inputs

Outputs

Parameter

Identifier

Data type

Information/possible settings

wInLWord / wInHWord

WORD

Input signal Low Word / High Word

Identifier

Data type

Value/meaning

bDataValid

BOOL

FALSE Conversion is active, dnOut_p is not valid.

TRUE Conversion is completed, dnOut_p is valid (consistent).

dnOut_p

DINT

Result of conversion in [increments]

Parameter

Possible settings

Info

C01294/1

Mode: Position calculation

0 dnOut_p=HW+LW

No conversion

• Lenze setting

1 16 bits: LW=+/-32767

wInLWord = ±32767 [Unit]

2 16 bits: HW=+/-; LW=0..65535

wInLWord = 0 ... 65535 [Unit]

wInHWord = sign

(0 = positive; ≠0 = negative)

3 32 bits: HW_LW=+/-214748_3647

wInHWord and wInLWord =

±214748.3647 [Unit]

/B&RQY8QLWV7R,QFUB

Z,Q/:RUG

GQ2XWBS

81,76

,1&

Z,Q+:RUG

E'DWD9DOLG

& 3RV&DOF0RGH

Advertising