Beruflich Dokumente
Kultur Dokumente
Examples
Calling Words
M98 P1000 (Call subprogram O1000)
M98 - Subroutine call
G65 P1000 A0.3 B5.0 C2.3 (Call custom macro O1000 with aguments)
G65 - Custom macro call
G65 P1000 A0.3 B5.0 C2.3 L5 (Execute custom macro O1000 five times)
G66 - Custom macro modal call
G66 P1000 X3.4 Y1.2 Z3.2 (Set arguments for custom macro O1000)
G66.1 - Custom macro modal call
G66.1 P1000 U1.3 V2.2 W1.1 (Modal call to custom macro O1000)
G67 - Modal call cancel
G67 (Cancel either modal call)
M99 - End of custom macro
P word - Program number being called
Note: See manual to learn the differences between G66 and G66.1
L word - Number of executions
Custom Macro Arguments (assignment number one)
A, B, C, D, E, F, H, I, J, K, M, Q, R, S, T, U, V, W, X, Y, Z (Avoid I, J, and K if possible. See manual for reasons.)
Custom Macro Arguments (assignment number two)
A, B, C, I, J, K, I, J, K, I, J, K, I, J, K, I, J, K, I, J, K, I, J, K. I, J, K, I, J, K, I, J, K (A, B, C and ten sets of I, J, K)
Local Variable Assignments (assignment 1)
X: #24
R: #18
H: #11
A: #1
Y: #25
S: #19
I: #4
B: #2
Z: #26
T: #20
J: #5
C: #3
U: #21
K: #6
D: #7
V: #22
M: #13
E: #8
W: #23
Q: #17
F: #9
Common Variables
Option B
Option C
Option D
Common Variables
#100 - #149
#100 - #199
#100 - #199
#100 - #199
#500 - #549
#500 - #599
#500 - #699
#500 - #999
Symbol
Function
Priority:
1) Brackets
2) Functions
3) Multiply
4) Diviide
Absolute Value
5) Add
Rounding
6) Subtract
Round Down
Round Up
Logic Statements
Statement Label:
Unconditional Branching:
Conditional Branching:
Looping:
Locial operators:
Equal To:
Not Equal To:
Less Than:
Greater Than
Less Than Or Equal To:
Greater Than Or Equal To:
#100 = 3
#100 = 3 + 6
#100 = 9 - 2
#100 = 3 * 4
#100 = 9 / 3
=
+
*
/
Equality
Addition
Subtraction
Multiplication
Division
ABS
ROUND
FIX
FUP
N Word
GOTO
IF
WHILE
EQ
NE
LT
GT
LE
GE
Example
Function
Symbol
Sine
Cosine
Tangent
Arc Tangent
Square Root
SIN
COS
TAN
ATAN
SQRT
Models
ACOS
LN
EXP
ADP
ONLY!
#100 = ACOS [ .23]
#100 = LN [2.3]
#100 = EXP [3]
#100 = ADP [#3]
Newer
Arc Cosine
Logrisms
Eponent
Decimal adding
Examples
.
.
.
.
IF [#3 NE 0] GOTO 5 #101 = 1
N1 IF [#101 GT 10] GOTO 1
M09
.
GOTO 6
.
N5 M08
.
N6...
#101 = #101 + 1
.
GOTO 1
N1 ...
.
Example
.
.
#101 = 1
WHILE [#101 LE 10] DO 1
.
.
.
#101 = #101 + 1
END 1
.
Wear Offsets
Z
R
1
2
3
.
32
#2001
#2002
#2003
.
#2032
#2101
#2102
#2103
.
#2132
#2201
#2202
#2203
.
#2232
#2301
#2302
#2303
.
#2332
1
2
3
.
32
#2401
#2402
#2403
.
#2432
Geometry Offsets
Z
R
#2501
#2502
#2503
.
#2532
#2601
#2602
#2603
.
#2632
#3002 = 0
#5201
#5221
#5241
#5261
#5281
#5301
#5321
#5202
#5222
#5242
#5262
#5282
#5302
#5322
#5203
#5223
#5243
#5263
#5283
#5303
#5323
#4013: G95...
#4014: G54...
#4015: G61...
#4016: G68
M codes
M00: Program stop
M01: Optional stop
M03: Spindle on CW
M04: Spindle on CCW
M05: Spindle stop
M13: Activate probe
M14: Deactivate probe
M19: Spindle orient
M98: Subprogram call
M99: Subprogram return
Calibration values
#500: Stylus radius
#501: X+ overshoot & droop
#502: X- overshoot & droop
#503: Y+ overshoot & droop
#504: Y- overshoot & droop
#505: Probe length