The format definition for an integer has the following format:
% <flags> <minimum number of digits> <type>
Recommended data types: BYTE | WORD | DWORD | LWORD | SINT | USINT | INT | UINT | DINT | UDINT | LINT | ULINT
Syntax |
Example |
Description |
Example in Visualization |
---|---|---|---|
<flags> |
Optional and combinable |
Code: “Text variable” property: |
|
|
|
Alignment left-justified, with respect to the minimum width of the number (specified in minimum number of digits) |
“Text” property: |
|
|
Output always with a sign |
“Text” property: Output: |
|
|
Places are filled with a 0 until the minimum number of places (including the sign) is reached |
“Text” property: |
<minimum number of digits> |
|
Optional Minimum number of places |
Syntax |
Example |
Description |
Example in Visualization |
---|---|---|---|
<type> |
Required |
||
|
|
Output as an integer decimal number |
Code: “Text” property: “Text variable” property: Output: |
|
Code: “Text” property: “Text variable” property: Output: |
||
|
|
Output as unsigned, integer binary number without a prefix |
Code: “Text” property: “Text variable” property: Output: |
|
|
Output as unsigned, integer octal number without a prefix |
Code: “Text” property: “Text variable” property: Output: |
|
|
Output as an unsigned 32-bit hexadecimal number with the digits a–f (lowercase) without a prefix and without a separator |
Code: “Text” property: “Text variable” property: Output: |
|
|
Output as an unsigned 32-bit hexadecimal number with the digits A–F (uppercase) without a prefix and without a separator |
Code: “Text” property: “Text variable” property: Output: |
|
|
Output as an unsigned 64-bit hexadecimal number with the digits a–f (lowercase) without a prefix and without a separator Note: Recommended data types: |
Code: “Text” property: “Text variable” property: Output: |
|
|
Output as an unsigned 64-bit hexadecimal number with the digits A–F (uppercase) without a prefix and without a separator Recommended data types: |
Code: “Text” property: “Text variable” property: Output: |
|
|
Output as an unsigned integer decimal number Recommended data types: |
Code: “Text” property: “Text variable” property: Output: |