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

Page 1459: Arithmetic function, Factor, 18 function library

Advertising
background image

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

1459

18

Function library

18.2

System blocks | LS_ParReadWrite_1-6

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

18.2.29.1 Arithmetic function

This function extension is available from version 06.00.00!

The integrated arithmetic function allows for easy arithmetic conversion of the process value to be

written or which was read into the format of the target parameter via parameterisable factors and

without the need for an additional arithmetic FB.

• In

C01093

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

write to parameters:

C01092/1...6

Error status

• If bFail = TRUE:

Error status is displayed.

• Subcode 1 = LS_ParReadWrite_1

Subcode 2 = LS_ParReadWrite_2

...

Subcode 6 = LS_ParReadWrite_6

0 No error

33803 Invalid data type (e.g. STRING)
33804 Limit violation
33806 Invalid code
33813 No element in the selection list
33815 Writing of the parameter not

permitted

33816 Writing of the parameter only

permitted if controller is inhibited

33829 Invalid subcode
33865 No parameter with subcodes

C01093/1...6

(from version 06.00.00)

Arithmetic mode

• Lenze setting: "0: No arithmetic"

Arithmetic function

0 No arithmetic
1 In16Bit: LW=+/-32767
2 In16Bit: HW=+/-; LW=0..65535
3 In32Bit: HW_LW=+/-2147483647

C01094/1...6

(from version 06.00.00)

-32767

32767 Counter

• For internal conversion into

arithmetic modes 1 ... 3.

• Lenze setting: 1

C01095/1...6

(from version 06.00.00)

1

32767 Denominator

• For internal conversion into

arithmetic modes 1 ... 3.

• Lenze setting: 1

Parameter

Possible settings

Info

Arithmetic mode

wInHWord

wInLWord

Internal conversion

0 No arithmetic

(Lenze setting)

INTEGER_32

(4 bytes with sign)

No

(behaviour as before)

DataHigh component

DataLow component

1 In16Bit:

LW=+/-32767

-

INTEGER_16

(2 bytes with sign)

Yes

(see section below)

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 component

DataLow component

Advertising