Gcode wont execute

dsherburn

dsherburn
I load my G code from a thumb drive and all appears well. Sometimes when I "run" the program it wont execute the first few lines of code. I hit the single block button and start and it executes the beginning of the program. I then turn off single block and hit run and program runs just fine. What causes this?
 

breezy

Moderator
Attach the offending gcode to your post so we can examine what could be causing your problem.

Regards,

Arie.
 

cncburn

cncburn
On issue I found is that if a program is stopped or canceled before it can complete , you may have to remove the thumb drive and reboot the Masso to clear out the old file otherwise it can get lost during a restart. Sometimes this can be a result of the code commands at the beginning of the file.
 

testyourdesign

testyourdesign
@cncburn

I just had that happen to me last weekend. If you look at my Lathe Drill Mount Base video upload to YouTube you'll notice that the spindle didn't turn off at the end and I had to type M30 to end the program. Do you know which codes are causing this? Here is the start of the program from that video.

G90 G94 G91.1 G40 G49 G17
G20
G28 G91 Z0.
G90

(FACE 3)
M5
M9

T7 M6
(3 IN FLY CUTTER)
T9
S1800 M3
G54
G0 X8.1 Y-1.
G43 Z0.9 H7
M7
Z0.3
G18 G3 X7.8 Z0. I-0.3 K0. F5.
G1 X6.15
X0.1 F5.4
X-1.4 F5.
G3 X-1.7 Z0.3 I0. K0.3
G0 Z0.9
G17
G28 G91 Z0.
G90
 

masso-support

MASSO Support
Staff member
Quote from dsherburn on June 12, 2019, 11:47 pm

I load my G code from a thumb drive and all appears well. Sometimes when I "run" the program it wont execute the first few lines of code. I hit the single block button and start and it executes the beginning of the program. I then turn off single block and hit run and program runs just fine. What causes this?

Hi Dan,

Are you pressing the Rewind button before running the program?

Does this occur every time you run the program or is it intermittent?

Are you able to post the GCode file that has the problem?




Quote from testyourdesign on June 14, 2019, 2:23 am

@cncburn

I just had that happen to me last weekend. If you look at my Lathe Drill Mount Base video upload to YouTube you'll notice that the spindle didn't turn off at the end and I had to type M30 to end the program. Do you know which codes are causing this? Here is the start of the program from that video.

I watched your video Stephen and see it didn't turn off at the end. I can see the spindle is still in the Spindle CW state when you manually turn it off.

Are you able to post the full file so I can have a look at it?



Cheers

Peter
 

testyourdesign

testyourdesign
@masso-support

Attached is the program as generated by Fusion360. Thanks for taking a look at it for me. I've had this happen to me in the past but it is basically finished at that point. It just needs to read the last couple limes to rewind but you can never see those last lines on the screen.

Cheers, Stephen Brown
 

Attachments

  • Drill_Mount_Base_OP1.nc
    8.4 KB · Views: 42

masso-support

MASSO Support
Staff member
Hi Stephen,

I may have come across the answer by accident while working on a GCode file today.

I found that the last Gcode command of a file is not loaded if there is no carriage return after the last character. It just about drove me to distraction because the text editor showed it was there but it would not load the last line. It was even more confusing because I had 2 identical files, one loaded properly and one wouldn't even though they look identical. I should point out that i was not using Masso at the time but confirmed at Masso exhibits the same behaviour.

That brings me to your file. I checked it and see that you do have a carriage return at the your file. Maybe I am wrong about this but is the file you sent the actual file you ran in the video? I'm just wondering if you might have edited it and the file you ran has no carriage return on the end of it. The file you sent runs fine and I ran it through several times without a problem.

Maybe I'm clutching at straws.

Cheers

Peter
 
Top