Operators And Arithmetic Functions - Siemens SINUMERIK 840D sl Programming Manual

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

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
$MC_TOOL_MANAGEMENT_MASK='H7F'
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
$MN_AUXFU_GROUP_SPEC='B10000001'
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
+
-
*
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
Meaning
Addition
Subtraction
Multiplication
Comment
; By assigning the hexadecimal constant,
bits 0 to 7 are set in the machine data.
Comment
; By assigning the binary constant, bit 0
and bit 7 are set in the machine data.
Fundamentals
2.15 Other information
385

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents