1 arithmetic function, Arithmetic function 8, The integrated – Lenze 8400 StateLine User Manual

Page 1008: Arithmetic function, Factor, 17 function library

Advertising
background image

17

Function library

17.2

System blocks

1008

Lenze · 8400 StateLine · Reference manual · DMS 12.0 EN · 06/2014 · TD05/TD14

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

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-28] Internal conversion with write access

[17-29] 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