Programming instructions
NC Programming 17VRS NC Program
2-9
DOK-MTC200-NC**PRO*V17-ANW1-EN-P
Comment in the Source Program
; Text
Each NC-block can contain one comment in the source program which is
introduced by a semicolon. All characters following the semicolon are
interpreted as a comment. The term comment in the source program
means that the comment is only present in the source program—that is,
on the user interface—and not in the controller memory. Compared to
messages and hints, this type offers the advantage of saving memory
space in the controller.
If a semicolon is used at the very beginning of a NC-block, the entire NC-
block is marked as a comment and a NC-block number is not assigned.
Example
N0050 G01 X250 Y100 F1000 6th drilling position
; Call centered drilling cycle
N0051 BSR .*ZENBO
Limitation:
Comments in the source program must n o t be pro-
grammed between individual NC-words.
2.6 Available Addresses
Available address letters in the CNC:
A
Reserved for axis name
P
Angle
B
Reserved for axis name
Q
Auxiliary Q-function
C
Reserved for axis name
R
Radius
D
D-corrections
S
Spindle speed / position
E
Edge number
T
Tool number
F
Feed
U
Reserved for axis name
G
Preparatory G-functions
V
Reserved for axis name
H
Unassigned
W
Reserved for axis name
I
Interpolation parameter
X
Reserved for axis name
J
Interpolation parameter
Y
Reserved for axis name
K
Interpolation parameter
Z
Reserved for axis name
L
Unassigned
@
Variable
M
Auxiliary M-function
RX
Nominal radius around X
N
NC-block number
RY
Nominal radius around Y
O
Zero point database
RZ
Nominal radius around Z
An expanded address syntax is provided for the following addresses:
A(1..3)
Reserved for axis name
B(1..3)
Reserved for axis name
C(1..3)
Reserved for axis name
U(1..3)
Reserved for axis name
V(1..3)
Reserved for axis name
W(1..3)
Reserved for axis name
X(1..3)
Reserved for axis name
Y(1..3)
Reserved for axis name
Z(1..3)
Reserved for axis name
S(1..3)
Spindle speed / position
The NC syntax is not case sensitive; no distinction is made between up-
per and lower case. This means that "x400" can be used instead of
"X400" when programming an axis position. However, for the sake of
legibility, it is generally a good idea to write NC commands in upper case
characters.
The full ASCII character set may be used for hints and messages.
Syntax