Hello Guest it is March 29, 2024, 06:51:55 AM

Author Topic: M03 code causeing seamingly random problem.  (Read 2841 times)

0 Members and 1 Guest are viewing this topic.

Offline abhi

*
  •  24 24
    • View Profile
M03 code causeing seamingly random problem.
« on: July 09, 2012, 04:46:38 AM »
Hi,

okay ive been using the 2010 screen set under mach 3.042.040. After it completes an M06 and goes back to the last position before the M06 call then does the M03 mach doesn't always pause for the spindle spin up and instead executes the next move (usually a G0) and very soon after stalls my x and often my Y motors. Anyone else run into this? also looking at the code the execution line looks something like this.

N300 G00 X233.05 Y130. S2000 M03

The error does not happen every time which has made it hard to trouble shoot. I've been through checking the motors, made some inertial dampers, set the max speed to something reasonable 3000mm per sec (around 118ips) and accel at 150 (0.01g).

Any help or doughnuts welcome.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: M03 code causeing seamingly random problem.
« Reply #1 on: July 09, 2012, 10:37:24 AM »
Have the S2000 M3 on the line before your G0 move, its the only safe way.
Hood

Offline abhi

*
  •  24 24
    • View Profile
Re: M03 code causeing seamingly random problem.
« Reply #2 on: July 10, 2012, 04:26:08 AM »
thanks hood! that works every time now.
Re: M03 code causeing seamingly random problem.
« Reply #3 on: July 15, 2012, 08:42:52 AM »
Did this help with the stalling problem as well? I'm experiencing the exact same problem that you are describing. Stalling motors during move commands from 2010 screenset.

Offline abhi

*
  •  24 24
    • View Profile
Re: M03 code causeing seamingly random problem.
« Reply #4 on: July 15, 2012, 09:15:42 AM »
ah, it wasnt the 2010 set. it was the structure of the gcode. it looks like by having a move comand then on the same line an m3 its bad news. seems that it works out it should dwell for the spin up after its started its move and falls over.

so

N300 G00 X233.05 Y130. S2000 M03

should look like

N300 S2000 M03
N301 G00 X233.05 Y130.

hope that helps.