EasyManua.ls Logo

Haas Mill

Haas Mill
217 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
M Codes
174
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

Table of Contents

Related product manuals