587,177 active members*
3,351 visitors online*
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Benchtop Machines > G540 Spindle Control for the X3 / Guide
Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2003
    Posts
    126

    Talking G540 Spindle Control for the X3 / Guide

    The following is how I was able to get spindle speed control working on the G540 with a X3 mill. I put this together for other lost souls who like myself have found that a step by step how to for this does not exist!


    Before you attempt please note: This involves making connections to high voltage and great care should be taken. You can blow up your controller or worse yourself... Under no circumstance should any of the following be attempted while the controller or the X3 is plugged in!!! If you have any reservations get someone who has experience to make these connections for you.

    A few things first.

    This mod is for "spindle speed" and "motor off and on" only, I do not have the spindle direction wired. Direction is still only manual control with the switch on the column.

    Make sure you have the latest version of Mach3, there have been previous versions of Mach3 that had a bug with the PWM output for spindle speed. ( Yeah, that cost me a day )

    After making these connections I developed an intermittent Emergency Stop problem. Mach3 said there was an E stop and shut everything down even though I didn't push the button. I am pretty sure this was noise being generated by all the extra wires hanging off of the G540. IE MachBlue Probe & spindle connections. I turned the noise de-bouncer setting on and set to "1" this seems to have fixed the problem, I have made 5-10 minute air cuts and 3-15 minute run projects and have not had the E Stop problem since.

    This will use Output #1 of the G540(pin 13 of printer port)for motor off/on, and the VFD output(pin 17 of the printer port) of the G540. The VFD (output, +,-) on the G540 are optically isolated. This keeps the high voltage of the X3 motor control board from frying the G540.

    I was not getting full range of speed after making this modification. I talked with Marius at Gecko Drive and he informed me that the G540 works best with the (+) and (-) of the motor controller board being at least 10vdc. My X3 was about 7.8vdc. At the top left of the Motor Control board of the X3 there is a small potentiometer. This adjusts the voltage gain of of the speed control. I connected my meter to P1 & P3 and slowly adjusted the pot until the meter read 10.5vdc. This gave me almost full speed control of my spindle again. This adjustment must be made with power on. BE VERY CAREFUL AND DO NOT TOUCH ANYTHING BUT THE INSULATED METER LEADS.


    The safety lockout is still in effect with this modification. You must first turn on the ON switch then turn the spindle direction switch just like you did in manual mode before attempting to control the spindle from Mach3.


    Link to the drawing PDF. http://tomanyhobbies.com/coppermine/...le_Control.pdf

    In a couple days I will post screen dumps of Mach3 as I have it set up and know works. The Mill is at the office and I forgot to get the screens before I left for the weekend.



    Jeff Davis

  2. #2
    Join Date
    Aug 2010
    Posts
    0
    Fantastic work! thanks alot for making this guide. Once i get my rig up and running i will probably do this. Thanks!

  3. #3
    Join Date
    Mar 2008
    Posts
    3655
    Excellent! Thanks for posting this badly-needed info Jeff.

    CR.
    http://crevicereamer.com
    Too many PMs. Email me to my name plus At A O L dot com.

  4. #4
    Join Date
    Jan 2009
    Posts
    402
    Thanks for posting Jeff.

    Do you have a tach. set up to read your actual spindle speed?

    If so, is it providing feedback to Mach3?

  5. #5
    Join Date
    Sep 2003
    Posts
    126
    As promised:

    Corrected the Drawing for the polarity of P1&P3 of the X3.
    http://tomanyhobbies.com/coppermine/...le_Control.pdf

    Screen shots of my config. This is not perfect, but it does work. The requested speed is not always what it should be as read with an optical tach. I would use the following as a start to fine tune your machine.

    I had to fumble around to get this far, If there is anything that I have misinterpreted or forgot please post it!

    Jeff
    Attached Thumbnails Attached Thumbnails general setup.jpg   motor outputs.jpg   outputs.jpg   pully.jpg  

    spindle setup.jpg  

  6. #6
    Join Date
    Sep 2003
    Posts
    126
    Matt,

    No input to Mach with the spindle sensor, just yet, I may try and add that to improve speed control in the future, but for now it is working ok for me, I just know that I have to cheat a few speed numbers in the G code to make sure I am cutting at the speed I need to.

    Jeff

  7. #7
    Join Date
    Apr 2010
    Posts
    0

    This is great info.

    Thanks Jeff, this is awesome info. I wish I had this guide when I was setting mine up. It would have helped me in troubleshooting various problems. The tip regarding the pot for adjustment of the x3 control board to set P1-P3 close to 10v is great, I am going to give that a shot too since I was seeing a similar voltage difference on my mill as you did.

    I added a 3PDT switch between the mill's pot and the vfd so I could manually toggle between them.

    One thing that I think would be helpful info regarding the VFD is to point out that there is about -50v to -60v on the VFD lines relative to ground - that was pointed out to me, and I was surprised when I tested it to see it was so high (until I remembered how much the x3 cost). After that enlightenment I re-checked the run of the VFD lines from my mill back to the G540 to check for any points that could be potential wear points since I don't want these wires grounding out to the mill or my controller case - or me, at some point.

Similar Threads

  1. Has Anyone used G540 to control spindle speed on the X2?
    By Waldermac in forum Benchtop Machines
    Replies: 5
    Last Post: 02-08-2018, 03:46 PM
  2. Gecko G540 and Mach 3 Spindle control
    By rwskinner in forum Vertical Mill, Lathe Project Log
    Replies: 1
    Last Post: 10-24-2010, 10:58 PM
  3. Electronics advice needed for G540 spindle control.
    By TXFred in forum Benchtop Machines
    Replies: 11
    Last Post: 10-20-2009, 02:20 PM
  4. Is it possible? (G540 spindle control)
    By fretsman in forum Gecko Drives
    Replies: 6
    Last Post: 10-14-2009, 12:27 AM
  5. Spindle Control Through G540
    By john1285 in forum Gecko Drives
    Replies: 1
    Last Post: 09-30-2009, 04:26 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
  •