Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: tr5t500 on July 01, 2012, 03:03:51 PM

Title: Manually writing g code for first time
Post by: tr5t500 on July 01, 2012, 03:03:51 PM
I thought I would check for any lost steps on my mill stepper motors . I wrote g code (as shown in manual page 5-15) in windows notepad.

F700
G21 G90
M98 P1234 L50
M30
o1234
G1 X100
g1 x0
M99

Run program but did not repeat as expected. I thought that the program would repeat 50 times.
 Also the last line (M99) for some reason did not appear in program run.
I would appreciate any suggestions.
Title: Re: Manually writing g code for first time
Post by: alenz on July 01, 2012, 04:34:27 PM
Make sure that there is a carriage return after the M99.
You will see lots of code ending with a %, i.e.

M99
%

That gives a visual verification that the M99 does indeed have a CR.
Al
Title: Re: Manually writing g code for first time
Post by: tr5t500 on July 01, 2012, 05:42:30 PM
Many thanks Al, I will edit code and try again