CNCSimulator Pro

user guide
×
Menu
Index

6.4. Other codes

Other codes interpreted by the simulator.
 
Code
Explanation
Format
Example
X
Absolute or incremental X axis value used in canned cycles and codes like G00-G03.
X#
X2.43
Y
Absolute or incremental Y axis value used in canned cycles and codes like G00-G03.
Y#
Y1.16
Z
Absolute or incremental Z axis value used in canned cycles and codes like G00-G03.
Z#
Z-3.2
I
Represents the center in X in G02 and G03 circle/ arc commands.
I#
G02 X34 Z106.867 I4.8 K0
J
Represents the center in Y in G02 and G03 circle/ arc commands.
J#
G02 Y0 J-20
K
Represents the center in Z in G02 and G03 circle/ arc commands.
K#
G02 X34 Z106.867 I4.8 K0
T
Selects a tool from the user defined tool registry in the Inventory Browser (F2). M06 is used to execute the actual tool change.
T#
T1 M06
ET
Selects a tool from the fixed embedded tool registry. M06 is used to execute the actual tool change.
ET#
ET9 M06
DT
Selects a predefined milling tool. The tool must first have been defined using the $DefineMillTool command. M06 is used to execute the actual tool change.
DT#
DT3 M06
S
Defines spindle rotation in revolutions per minute (RPM).
S#
S2000
F
Defines feed rate in millimeter or inches per minute.
F#
F240
P
Used in M98 to define a sub program number. Also used as dwell time in canned cycles.
P#
M98 P1001 L1
 
G73 Z-20 R2 Q5 P100 F350
L
Used in M98 to define the number of repetitions.
L#
M98 P1001 L1
O
Sub program number. Should be the first line of every sub program.
O#
(Drilling sub program 1)
O1000
R
Reference or starting plane in canned cycles. R is also used in G02/G03 to give the radius when I/J/K are not used.
R#
G81 Z-20 R2
Q
Peck size in canned cycles.
Q#
G73 Z-20 R2 Q5 P0 F350
SA, AS, RA
Start Angle, Angle Step and Radius used in G12 Circular drilling cycle.
SA# AS# RA#
G12 X0 Y0 Z-20 R2 Q5 SA0 AS36 RA30 H10
H
Used for number of holes in the G12 Circular drilling cycle.
 
G12 X0 Y0 Z-20 R2 Q5 SA0 AS36 RA30 H10
( and )
Used for comments. G and M codes inside parenthesis will not be executed. $-commands will be executed even when inside the parenthesis.
(text)
(Drilling sub program 1)
/
Used for comment out one or several lines. G, M and $-commands will not be executed.
 
G01 Z-20 F440
/G03 I23.2 J0
/G03 X15 I19
G00 Z7
N
Block number.
N#
N500