Hello Guest it is May 20, 2019, 01:20:49 AM

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

0 Members and 1 Guest are viewing this topic.

Spindle won't run with MDI or G-code
« on: July 16, 2012, 11:25:52 AM »
I just connected my VFD to mach3. It works fine with the spindle button and the spindle speed input,but wont't respond to M3 or S in the MDI input window or G-code from V-carve pro. I am using PMDX107.PMDX125 and ethernet smooth stepper. I have attached my xml file. Thanks,Tommy

Offline Hood

*
  •  25,811 25,811
  • Carnoustie, Scotland
    • View Profile
Re: Spindle won't run with MDI or G-code
« Reply #1 on: July 16, 2012, 01:47:24 PM »
You have spindle relays disabled, I think when using the parallel port you need them enabled even if they are set to a ficticious output.
Hood
Re: Spindle won't run with MDI or G-code
« Reply #2 on: July 16, 2012, 01:58:32 PM »
Hey Hood,Thanks for the responce but that didn't do it.

Offline Hood

*
  •  25,811 25,811
  • Carnoustie, Scotland
    • View Profile
Re: Spindle won't run with MDI or G-code
« Reply #3 on: July 16, 2012, 02:02:13 PM »
Ok sorry I saw you said you were using the ESS, should read more carfully.
Ok I dont have a spare ESS so cant look at your ESS config but make sure you have the spindle set for Step/Dir in it (I assume thats what you are using anyway)
If that is not the problem check in the macro folder for your profile and see if the M3 macro is there and that it has DoSpinCW()  in it.

Hood
Re: Spindle won't run with MDI or G-code
« Reply #4 on: July 16, 2012, 02:28:14 PM »
I have the spindle set for PWM in the ESS config, that is what I am useing with the PMDX107 to send a 0-10v signal to my VFD ? How do I read M codes ? Thanks,Tommy

Offline Hood

*
  •  25,811 25,811
  • Carnoustie, Scotland
    • View Profile
Re: Spindle won't run with MDI or G-code
« Reply #5 on: July 16, 2012, 02:33:26 PM »
Open Mach then go to Operator menu then VB Editor. A window will open you then click File and Open and then  browse to your profiles macro folder. Just choose the M3.m1s if it is there and see whats in it. If its not then there should be one so you will have to create one.


Hood
Re: Spindle won't run with MDI or G-code
« Reply #6 on: July 16, 2012, 02:51:53 PM »
the code for m3 is as you say it should be,the only difference is the "m" is lower case for  m3,m4,m5 and all the oters are upper case.

Offline Hood

*
  •  25,811 25,811
  • Carnoustie, Scotland
    • View Profile
Re: Spindle won't run with MDI or G-code
« Reply #7 on: July 16, 2012, 03:17:36 PM »
Should be fine with the lower case, not sure why its not working then, will have another look at your xml and see if I can find a problem.
When you command a M3 from MDI is there any message in the error window?
Hood

Offline Hood

*
  •  25,811 25,811
  • Carnoustie, Scotland
    • View Profile
Re: Spindle won't run with MDI or G-code
« Reply #8 on: July 16, 2012, 03:22:33 PM »
Just typed M3 in the MDI and hit enter and the spindle LED turns on so it seems to be fine here. There is a PWM bumped to zero message so maybe that has something to do with it. Do you have the the PWM base Hz set correctly?
Hood
Re: Spindle won't run with MDI or G-code
« Reply #9 on: July 16, 2012, 03:34:12 PM »
PWM base hz set to 25 . I don't get an error message.