Hello Guest it is April 18, 2024, 11:46:11 AM

Author Topic: Gcode mishaps  (Read 7755 times)

0 Members and 1 Guest are viewing this topic.

Re: Gcode mishaps
« Reply #20 on: April 09, 2016, 07:34:49 AM »
Thanks for looking and seeing the problem.  I am new to the cnc but I know how to run a milling machine.

Offline mc

*
  •  382 382
    • View Profile
Re: Gcode mishaps
« Reply #21 on: April 09, 2016, 06:17:15 PM »
As you're new to CNC, I'd suggest spending some time learning about the various G codes, and how they affect each other.
Here's your NC file with comments added to describe what the codes are doing.

N01 G20 G40 G49 G91.1 G20 tells machine code is in imperial, G40 and G49 cancel tool cutter and length compensation respectively, G91.1 puts the machine in Incremental mode)
N02 G53 Z0.Move to machine Z zero
(Machine Setup - 1  Facing)
(FACING)
N03 T1 M6Load Tool 1
N04S32M03Spindle on CW at 32RPM
N05G00G90G54X0.Y0. G00 sets rapid mode, G90 puts the machine back in Absolute mode, and select G54 work offsets
N06 G43H1Z1.G43H1 causes the tool offset for tool 1 in the tool table to be applied, then the Z1 causes a move to 1
N07M10Just googles and M10 would appear to be a clamp/vacuum on command?
N08Z0.2
N09Z0.1
N10G01Z-0.001F10. G01 sets Feed
N11Y63.F30.
N12X1.125
N13Y0.
N14X2.25
N15Y63.
N16X3.375
N17Y0.
N18X4.5
N19Y63.
N20X5.625
N21Y0.
N22X6.75
N23Y63.
N24X7.875
N25Y0.
N26X9.
N27Y63.
N28X10.125
N29Y0.
N30X11.25
N31Y63.
N32X12.375
N33Y0.
N34X13.5
N35Y63.
N36X14.625
N37Y0.
N38X15.75
N39Y63.
N40X16.875
N41Y0.
N42X18.
N43Y63.
N44X19.125
N45Y0.
N46X20.25
N47Y63.
N48X21.375
N49Y0.
N50X22.5
N51Y63.
N52X23.625
N53Y0.
N54X24.75
N55Y63.
N56X25.875
N57Y0.
N58X27.
N59Y63.
N60G00Z0.2 Back in Rapid mode
N61Z1.
N62M05 Stop Spindle
N63G53Z0. Move to machine Z zero
N64G53Y0. Move to machine Y zero

(END OF PROGRAM)

N65M02M02 signifies end of program
%


Going by that code, and what you're describing, it sounds like either your axis aren't homed correctly and/or your tool table offsets are wrong.
Re: Gcode mishaps
« Reply #22 on: April 09, 2016, 06:29:37 PM »
Thanks I will check into this