585,753 active members*
3,745 visitors online*
Register for free
Login
IndustryArena Forum > WoodWorking Machines > DIY CNC Router Table Machines > Putting M3 command in G Code starts router but stops movement
Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2019
    Posts
    14

    Putting M3 command in G Code starts router but stops movement

    I have a DIY CNC router table that was built a while ago by someone else. I am using LinuxCNC to control it and the gmoccapy interface. Basically a few days ago was my first introduction to this device and I am super excited. Worked out how to import my 3D model into Fusion 360 and generate the G Code. The machine moves around and follows the steps but doesn’t turn the router on unless I do it manually in the software. But it stops as soon as I hit play.

    If I put M3 on a line in the G Code the router switches it on and the program proceeds but the machine doesn’t move.
    If I take out the M3 the router doesn’t turn on and the program proceeds and the machine moves.

    I can just plug the router directly into a power point to force it on all the time but I know this isn’t how it is meant to work and am also concerned that it won’t allow it to switch off with the eStop.

    I figure the problem might have arisen from playing around with the conf wizard as I didn’t understand it all a few days ago when I first jumped in there. Always my problem with new gadgets (as I am sure many can relate lol).

    Does anyone know what would result in the problem I am facing and can anyone point me in the right direction? Any and all help is greatly appreciated.

  2. #2
    Join Date
    May 2005
    Posts
    1662

    Re: Putting M3 command in G Code starts router but stops movement

    It sounds like the machine is waiting for a spindle-at-speed signal.
    If the motion command following M3 is G00 (rapid) does the machine still refuse to move? I think spindle-at-speed only inhibits feed moves.
    Anyone who says "It only goes together one way" has no imagination.

  3. #3
    Join Date
    Feb 2019
    Posts
    14
    Quote Originally Posted by cyclestart View Post
    It sounds like the machine is waiting for a spindle-at-speed signal.
    If the motion command following M3 is G00 (rapid) does the machine still refuse to move? I think spindle-at-speed only inhibits feed moves.
    Thanks for the reply. Will try this when I get home. Not sure if it goes on the same line as the M3 but I will try it on the same line and after it to test.

  4. #4
    Join Date
    Jan 2005
    Posts
    15362

    Re: Putting M3 command in G Code starts router but stops movement

    Quote Originally Posted by SystemX17 View Post
    Thanks for the reply. Will try this when I get home. Not sure if it goes on the same line as the M3 but I will try it on the same line and after it to test.
    M3 should be placed on it's on line with the spindle normally before any Axes moves

    S2650M3
    Mactec54

  5. #5
    Join Date
    May 2005
    Posts
    1662

    Re: Putting M3 command in G Code starts router but stops movement

    Roughly:
    M3 S1000
    G00 X3
    G00 Y4
    G00 X0 < program runs to here
    Feed Move < program stalls here or possibly line before here

    This is from memory as I don't have a machine with spindle feedback running presently.

    "spindle-at-speed" has specific meaning in hal.
    Does anything in this thread help?
    Link ---> https://forum.linuxcnc.org/49-basic-...and-m3?start=0
    If that's clear as mud I would suggest posting to linuxcnc.org forums.
    Anyone who says "It only goes together one way" has no imagination.

  6. #6
    Join Date
    Feb 2019
    Posts
    14

    Re: Putting M3 command in G Code starts router but stops movement

    So I have done some more testing and the program continues to run the g code but the machine doesn’t actually move.

  7. #7
    Join Date
    Dec 2008
    Posts
    3109
    Quote Originally Posted by SystemX17 View Post
    So I have done some more testing and the program continues to run the g code but the machine doesn’t actually move.
    You haven't put up enough gcode
    ... have you placed a feedrate on, at least, the 1st feed move ?
    A missing feedrate or a F0 will make the machine seem like is permanently paused... where a simulation may seem good

  8. #8
    Join Date
    Jun 2010
    Posts
    4256

    Re: Putting M3 command in G Code starts router but stops movement

    Try:
    F100 S1000
    M3
    g0 or g1 moves

    Alternately, you might have a misconfigured I/O pin somewhere.

    Cheers
    Roger

  9. #9
    Join Date
    Jan 2005
    Posts
    15362

    Re: Putting M3 command in G Code starts router but stops movement

    Quote Originally Posted by SystemX17 View Post
    So I have done some more testing and the program continues to run the g code but the machine doesn’t actually move.
    First check the output to the Breakout Board, Ports and Pins may not be configured correct to match the Breakout Board
    Mactec54

Similar Threads

  1. Spindle starts to spoil up then stops....New Build
    By Smokey930 in forum Spindles / VFD
    Replies: 12
    Last Post: 08-31-2018, 01:18 PM
  2. Spindle stops/starts reversed
    By EagleAD in forum Spindles / VFD
    Replies: 0
    Last Post: 01-26-2017, 09:30 PM
  3. Make smoth starts and stops?
    By flyingpickles in forum Mach Software (ArtSoft software)
    Replies: 2
    Last Post: 02-12-2015, 11:37 PM
  4. Cut stops and starts along cut path.
    By jstrayer in forum PlasmaCam
    Replies: 2
    Last Post: 02-20-2010, 07:03 AM
  5. M-Stops and starts
    By shane.vella in forum Machines running Mach Software
    Replies: 1
    Last Post: 09-25-2008, 07:48 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •