1 arithmetic function, Arithmetic function, The integrated – Lenze E84DSxxx User Manual

Page 807: Factor, 17 function library

Advertising
background image

Lenze · 8400 protec StateLine · Reference manual · DMS 4.2 EN · 03/2013 · TD05

807

17

Function library

17.2

System blocks | LS_ParReadWrite_1-3

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

17.2.20.1 Arithmetic function

This function extension is available from version 06.00.00!

The implemented arithmetic function enables easy arithmetic conversion of the process values to

be written or read via parameterisable factors into the format of the target parameter without the

need of an additional arithmetic function block.

• In

C01093

, the interpretation of the wInHWord and wInLWord inputs can be set to be able to

write to parameters:

Internal conversion
If arithmetic modes 1 ... 3 are selected in

C01093

, the input value / read parameter value is

internally converted via parameterisable factors.

• Division is not remainder considered.

[17-27] Internal conversion with write access

[17-28] Internal conversion with read access

Arithmetic mode

wInHWord

wInLWord

Internal conversion

0 No arithmetic

(Lenze setting)

INTEGER_32

(4 bytes with sign)

No

(same behaviour as

before)

DataHigh portion

DataLow portion

1 In16Bit:

LW=+/-32767

-

INTEGER_16

(2 bytes with sign)

Yes

(see the following

section)

2 In16Bit: HW=+/-;

LW=0..65535

Sign

(0 ≡ positive value)

UNSIGNED_16

(2 bytes without sign)

3 In32Bit: HW_LW=

+/-2147483647

INTEGER_32

(4 bytes with sign)

DataHigh portion

DataLow portion

C01094

: Numerator

C01095

: Denominator

parameter value to be written

Input value

[32]

Counter

[16]

Denominator

[16]

-------------------------------------------

=

C01094

: Numerator

C01095

: Denominator

Output value

[32]

Read parameter value

Counter

[16]

Denominator

[16]

-------------------------------------------

=

Advertising