Hello Guest it is March 28, 2024, 05:25:27 PM

Author Topic: Spindle won't run with MDI or G-code  (Read 6562 times)

0 Members and 1 Guest are viewing this topic.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Spindle won't run with MDI or G-code
« Reply #10 on: July 16, 2012, 03:35:41 PM »
Does the spindle LED light when you MDI M3?
Re: Spindle won't run with MDI or G-code
« Reply #11 on: July 16, 2012, 03:52:51 PM »
in the shop where the computer is that runs the cnc the LED does not light when I MDI M3. In my office,which is hooked to nothing, is does light up. Same ver. of mach 3 and same XML file.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Spindle won't run with MDI or G-code
« Reply #12 on: July 16, 2012, 04:25:19 PM »
Ok to me it sounds like the m3 macro is not right.
Go to operator menu then VB editor and open the M3 macro and type on the line before or after the SoSpinCW()
MsgBox("Its being called")

Then save and exit the editor, now MDI a M3 and see what happens.
Hood
Re: Spindle won't run with MDI or G-code
« Reply #13 on: July 16, 2012, 07:28:32 PM »
Ok, I must be loosing my mind or I pulled up the wrong macros.You were right there was something wrong with the macro, the script was blank.I filled in m3 and m5 and they work with MDI and G-code. Now what happens is if I manually enter speed in the spindle speed box, 15000, and enter m3 in the MDI input it works and the speed is correct m5 stops the spindle. If I now enter in the MDI input m3s18000 the DRO says 18000 but the spindle is still turning 15000. Thanks for your help ,Tommy

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Spindle won't run with MDI or G-code
« Reply #14 on: July 17, 2012, 02:50:37 AM »
Make sure your spindlespeed.m1s is there and correct, it should have the following in it

rpm = GetRPM()

SetSpinSpeed( rpm )


Hood
Re: Spindle won't run with MDI or G-code
« Reply #15 on: July 17, 2012, 08:43:35 AM »
Hey Hood,Thank you very much for your help.Everything works perfect,MDI and G-code. Any ideas why the script would not be there.I usually won't mess with it unless someone knowledgeable is telling me what to do. Thanks again.Tommy

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Spindle won't run with MDI or G-code
« Reply #16 on: July 17, 2012, 09:40:26 AM »
Not really sure why it has happened but as long as its working now thats all that matters :)
Hood