Siemens SINUMERIK 840Di sl Programming Manual page 64

Hide thumbs Also See for SINUMERIK 840Di sl:
Table of Contents

Advertisement

Fundamental Principles of NC Programming
2.2 Language elements of the programming language
Hexadecimal constants
Constants can also be interpreted in hexadecimal format. The letters "A" to "F" stand for the
digits 10 to 15.
Hexadecimal constants are enclosed in single quotation marks and start with the letter "H",
followed by the value in hexadecimal notation. Separators are allowed between the letters
and digits.
Example for machine data (see also "Job Planning Programming Guide"):
$MC_TOOL_MANAGEMENT_MASK='H3C7F'
The maximum number of characters is limited by the value range of the integer data type.
Binary constants
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 allowed between the digits.
Example for machine data (see also "Job Planning Programming Guide"):
$MN_AUXFU_GROUP_SPEC='B10000001'
The maximum number of characters is limited by the value range of the integer data type.
Program section
A program section consists of a main block and several subblocks.
Examples:
:10 D2 F200 S900 M3
N20 G1 X14 Y35
N30 X20 Y40
N40 Y-10
...
N100 M30
Skipping blocks
Blocks, which are not to be executed in every program pass (e.g., execute a trial program
run), can be skipped.
64
;Assignment of hexadecimal values to
;machine data
;Assignment of binary constants to ;machine data
bit 0 and 7 are set
Programming Manual, 11/2006, 6FC5398-1BP10-2BA0
Fundamentals

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents