Value Assignments; Comments - Siemens Sinumerik 840D sl Programming Manual

Fundamentals
Hide thumbs Also See for Sinumerik 840D sl:
Table of Contents

Advertisement

Fundamental Principles of NC Programming
3.2 Structure and contents of an NC program
T
D
M
H
Note
Certain addresses can be used repeatedly within a block, e.g.
G..., M..., H...
3.2.3

Value assignments

Values can be assigned to the addresses. The following rules apply:
● An "=" sign must be inserted between the address and the value if:
– The address comprises more than one letter.
– The value includes more than one constant.
The "=" sign can be omitted if the address is a single letter and the value consists of only
one constant.
● Signs are permitted.
● Separators are permitted after the address letter.
Examples:
X10
X1=10
X=10*(5+SIN(37.5))
Note
A numeric extension must always be followed by one of the special characters "=", "(", "[", ")",
"]", ",", or an operator, in order to distinguish an address with numeric extension from an
address letter with a value.
3.2.4

Comments

To make an NC program easier to understand, comments can be added to the NC blocks.
A comment is at the end of a block and is separated from the program section of the NC block
by a semicolon (";").
38
Tool
Tool offset number
Additional function
Auxiliary function
Value assignment (10) to address X, "=" not required
Value assignment (10) to address (X) with numeric extension (1),
"=" required
Value assignment by means of a numeric expression, "=" required
Programming Manual, 01/2015, 6FC5398-1BP40-5BA2
Fundamentals

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents