8400 StateLine C | Reference manual
Function library
System blocks | LS_ParReadWrite_1-3
872 L Firmware ≤ 11.00 - DMS 8.0 EN - 10/2011
16.2.20.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...3 Error status
•If bFail = TRUE:
Error status is displayed.
•Subcode1 = LS_ParReadWrite_1
Subcode 2 = LS_ParReadWrite_2
Subcode 3 = LS_ParReadWrite_3
0No 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...3
(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...3
(from version 06.00.00)
-32767 32767 Numerator
• For internal conversion into
arithmetic modes 1 ... 3.
• Lenze setting: 1
C01095/1...3
(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
1In16Bit:
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