P4: PLC for SINUMERIK 828D
14.3 Programming
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
1107
Format identifier of constants
In many operations, your program can use constants in the byte, word or double word format. Format identifiers
specify how a constant value is to be displayed (in the binary, decimal, hexadecimal or ASCII format).
Constants in the program are considered as decimal numbers if a format identifier is not specified:
Examples of binary constants
Examples of hexadecimal constants:
2#
for dual numbers
16#
for hexadecimal numbers
Example
Numerical basis
Separator
Constant
2#1101
2
#
1101
Example
Numerical basis
Separator
Constant
16#3FB2
16
#
3FB2
Note
Underscore characters can increase the readability in imported ASCII files.
Example: 16#A_B_C_D