Hexadecimal constants are enclosed in single quotation marks and start with the letter "H",
followed by the value in hexadecimal notation. Separators are permitted between the letters
and digits.
Example:
Program code Comment
$MC_TOOL_MANAGEMENT_MASK='H7F' ; By assigning the hexadecimal constant,
bits 0 to 7 are set in the machine data.
Note
The maximum number of characters is limited by the value range of the integer data type.
Binary constant
Constants can also be interpreted in binary format. In this case, only the digits "0" and "1" are
used.
Binary constants are enclosed in single quotation marks and start with the letter "B", followed
by the binary value. Separators are permitted between the digits.
Example:
Program code Comment
$MN_AUXFU_GROUP_SPEC='B10000001' ; By assigning the binary constant, bit 0
and bit 7 are set in the machine data.
Note
The maximum number of characters is limited by the value range of the integer data type.
2.15.7 Operators and arithmetic functions
Operators
Arithmetic operators
System variables of the REAL and INT type can be linked by the following operators:
Operator Meaning
+ Addition
- Subtraction
* Multiplication
Fundamentals
2.15 Other information
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0 385