03/03
Configuration
CP 243-1 IT
J31069-D0429-U001-A0-7618
59
The element "positions_before_decimal" defines the minimum number of digits
which may be indicated to the left of the decimal point. This value should be large
enough to hold the expected data value including a sign if necessary.
If the number of positions specified in the element "positions_before_decimal" is
not sufficient to completely indicate a current value, this value is still presented
completely. The specified format is ignored in such cases. If the representation of a
current value requires fewer positions than specified in the element "posi-
tions_before_decimal," the remaining positions are filled with blanks. The valid
range for the element "positions_before_decimal" is between 1 and 10.
The element "positions_after_decimal" defines the number of digits shown to the
right of the decimal point. If a data value to the right of the decimal point contains
zeros, these are represented as defined by the element "positions_after_decimal."
If the element "positions_after_decimal" is zero, the value is indicated without
decimal point. The valid range for the element "positions_after_decimal" is between
01 and 10.
The format element specifies the format for indicating the embedded value. The
format element permits the following characters.
•
I,i:
Whole number with sign
•
U,u:
Whole number without sign
•
H,h: Hexadecimal
•
F,f:
Floating point, real
Example:
Below are several examples of how different formatting instructions affect the
presentation of a current value.
Current Value
Formatting In-
struction
Output
( = One Blank)
16#F4 in address VB0
%VB0:1.0I%
-12
16#F4 in address VB0
%VB0:6.0I%
-12
16#F4 in address VB0
%VB0:6.3I%
-0.012
16#0C in address VB0
%VB0:2.0H%
16#0C
16#0C in address VB0
(16#00 for the next byte)
%VW0:4.0H% 16#000C
16#0C in address VB0
(16#00 for the next 3 bytes)
%VD0:8.0H% 16#0000000C
Table 5
Examples of formatting instructions for placeholders in e-mails
Summary of Contents for CP 243-1 IT
Page 46: ...Installation and Commissioning 03 03 CP 243 1 IT J31069 D0429 U001 A0 7618 46 ...
Page 94: ...Programming 03 03 CP 243 1 IT J31069 D0429 U001 A0 7618 94 ...
Page 106: ...Diagnosis 03 03 CP 243 1 IT J31069 D0429 U001 A0 7618 106 ...
Page 120: ...Technical Data 03 03 CP 243 1 IT J31069 D0429 U001 A0 7618 120 ...
Page 130: ...Example 03 03 CP 243 1 IT J31069 D0429 U001 A0 7618 130 ...