Hello Guest it is May 25, 2019, 09:52:37 PM

Author Topic: No mcode shown on dry run?  (Read 1482 times)

0 Members and 1 Guest are viewing this topic.

No mcode shown on dry run?
« on: December 11, 2011, 09:43:50 AM »
Hello you chaps-

I typed in the code (as shown page 3.10 of the manual) for a dry run   

I put line numbers and remarks in (to only do one word at a time)
to help understand and debug

two questions- first one just to understand the logic

when i cycle (single step) the highlighted line on
the screen is the next line to be executerd - while the line
under the toolpath display is the line previous line already executed.

Am I correct in assuming the the highlighted line will be the next line
to be run and the displayed line under the toolpath is the line just
executed?

second question
the last line "m 30" doesnt appear on the screen ?

is this all correct or am i missing something?

many thanks
fred evans


n1 g 20 (input in inches)
n2 g40 (cancel cutter compensation)
n3 g49 ( cancel tool length compensation)
n4 g80 (cancel canned cycle)
n5 g90 ( use absolute dimension input )
n6 g94              ( feed will be per minute)( imperial and standard modes)
n7 g00 x0.3 z0.05   (rapid to x=.3 and z=.05 just off the outer edge of size required)
n8 f4               (set feed to 4 inches per minute)      
n9 S1000 M0         (set revs to 1000 rpm and stop the program)
n10 G01 X0.28        (feed at feedrate to position x=.28)   
n11 G01 Z-1.2        (feed at feedrate to 1.2 inches before 0 of the z axis)(FIRST CUT)
n12 G00 X 0.3        (fast feed out to x=.3)      
n13 G00 z0.05        (fast feed to z=0.05)(starting position of z axis on next cut)   
n14 G01 X0.26        (feedrate to x=.26) (starting position of x axis on the second cut)
n15 G01 Z-1.2         (feed at feedrate to z= -1.2 )(SECOND CUT)
n16 G00 X0.3        (rapid feed to x=.3)
n17 G00 Z0.05        (rapid fees to z=0.05)(starting position of zaxis on next cut)
n18 M30              (REWIND)
think of the trees-- use both sides of the computer paper

Offline BR549

*
  •  6,865 6,865
    • View Profile
Re: No mcode shown on dry run?
« Reply #1 on: December 11, 2011, 09:52:28 AM »
HIYA Fred, Put an  % in after the M30.   Mach requires an empty line after the last word in the file. The % is used a lot to make it visible.

n1 g 20 (input in inches)
n2 g40 (cancel cutter compensation)
n3 g49 ( cancel tool length compensation)
n4 g80 (cancel canned cycle)
n5 g90 ( use absolute dimension input )
n6 g94              ( feed will be per minute)( imperial and standard modes)
n7 g00 x0.3 z0.05   (rapid to x=.3 and z=.05 just off the outer edge of size required)
n8 f4               (set feed to 4 inches per minute)     
n9 S1000 M0         (set revs to 1000 rpm and stop the program)
n10 G01 X0.28        (feed at feedrate to position x=.28)   
n11 G01 Z-1.2        (feed at feedrate to 1.2 inches before 0 of the z axis)(FIRST CUT)
n12 G00 X 0.3        (fast feed out to x=.3)     
n13 G00 z0.05        (fast feed to z=0.05)(starting position of z axis on next cut)   
n14 G01 X0.26        (feedrate to x=.26) (starting position of x axis on the second cut)
n15 G01 Z-1.2         (feed at feedrate to z= -1.2 )(SECOND CUT)
n16 G00 X0.3        (rapid feed to x=.3)
n17 G00 Z0.05        (rapid fees to z=0.05)(starting position of zaxis on next cut)
n18 M30              (REWINd)
%


Just a thought, (;-) TP

Offline ger21

*
  • *
  •  6,233 6,233
    • View Profile
    • The CNC Woodworker
Re: No mcode shown on dry run?
« Reply #2 on: December 11, 2011, 10:00:13 AM »
Or just hit "Enter" after the last line you type. Mach3 needs a carriage return to see the last line.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html