M Codes
1 7 4
96-8000 rev R June 2007
N1 #501= 0.
(Clear the variable)
M109 P501
(Sleep 1 min?)
N5 IF [ #501 EQ 0. ] GOTO5
(Wait for a key)
IF [ #501 EQ 89. ] GOTO10
(Y)
IF [ #501 EQ 78. ] GOTO20
(N)
GOTO1
(Keep checking)
N10
(A Y was entered)
M95 (00:01)
GOTO30
N20
(An N was entered)
G04 P1.
(Do nothing for 1 second)
N30
(Stop)
M30
The following sample program will ask the user to select a number, then wait for a 1, 2 or a 3 to be entered. All
other characters will be ignored.
O00234 (Sample program)
N1 #501= 0.
(Clear the variable)
M109 P501
(Pick 1, 2 or 3:)
N5 IF [ #501 EQ 0. ] GOTO5
(Wait for a key)
IF [ #501 EQ 49. ] GOTO10
(1)
IF [ #501 EQ 50. ] GOTO20
(2)
IF [ #501 EQ 51. ] GOTO30
(3)
GOTO1 (Keep checking)
N10
(A 1 was entered)
M95 (00:01)
GOTO30
N20
(A 2 was entered)
G04 P5. (Do nothing for 5 seconds)
N30
(A 3 was entered)
M30
Summary of Contents for Mill
Page 12: ...96 8000 rev R June 2007 Safety 5 ...
Page 14: ...96 8000 rev R June 2007 Safety 7 LATHE WARNING DECALS ...
Page 15: ...8 Safety 96 8000 rev R June 2007 ...
Page 17: ...10 Introduction 96 8000 rev R June 2007 ...
Page 117: ...110 4 5 Axis Programming 96 8000 rev R June 2007 ...
Page 199: ...Settings 192 96 8000 rev R June 2007 ...