Specifications

4-20
4.3 Labels
4.3.6 Expressing methods of constants
4.3.6 Expressing methods of constants
The following table shows the expressing method for setting a constant to a label.
Table 4.3.6-1 Constant expressing method
Constant
type
Expressing method Example
Bool Input FALSE or TRUE, or input 0 or 1. TRUE, FALSE
Binary Append '2#' in front of a binary number. 2#0010, 2#01101010
Octal Append '8#' in front of an octal number. 8#0, 8#337
Decimal Directly input a decimal number, or append 'K' in front of a decimal number. 123, K123
Hexadecimal
Append '16#' or 'H' in front of a hexadecimal number.
When a lowercase letter 'h' is appended, it is converted to uppercase automatically.
16#FF, HFF
Real number Directly input a real number, or append 'E' in front of a real number. 2.34, E2.34
Character
string
Enclose a character string with single quotations (') or double quotations ("). 'ABC', "ABC"
Time Append ‘T#’ in front.
T#1h,
T#1d2h3m4s5ms