Grizzly G1006 Milling Machine CNC Conversion

  • andypugh
  • andypugh's Avatar
  • Away
  • Moderator
  • Moderator
More
23 Oct 2012 13:53 #25674 by andypugh
BruceLayne wrote:

I'm an EE, so the circuit is actually less valuable to me than the confirmation of the PWM signal generation in LinuxCNC.

www.linuxcnc.org/docs/html/hal/rtcomps.h...en_a_id_sec_pwmgen_a

I may make am op amp circuit that can generate +/- 10VDC or 0 to 10 VDC and publish it for others to use.

The circuit probably wants to emulate a Potentiometer, as that is what most drives expect. It is worth bearing in mind that some drives (the KBIC controllers for example) float the pot at mains voltage.
My first attempt at a controller for a KBIC used a DC-DC converter to create a floating reference voltage and a precision current source. On reflection that simple circuit above would have worked better and more cheaply.

Please Log in or Create an account to join the conversation.

More
23 Oct 2012 15:25 #25677 by BigJohnT
BruceLayne wrote:

or I'll buy a new VFD and use Modbus via the RS-232 port, through a converter to RS-485... whichever looks easier. I'm all about easier..

Thanks!


Keep in the back of your mind that Automation Direct GS2 drives are supported in LinuxCNC via modbus over the serial port. You can set the speed, run fwd or reverse and check the status of the drive all from LinuxCNC. I used a 3hp single phase to three phase GS3 on my Bridgeport spindle. The setup is trivial. I did have to get the braking resistor to be able to reverse the spindle for rigid tapping.

www.automationdirect.com/adc/Shopping/Ca...-_460_-z-_575_VAC%29

John

Please Log in or Create an account to join the conversation.

More
23 Oct 2012 16:53 - 23 Oct 2012 16:55 #25690 by BruceLayne
Replied by BruceLayne on topic Re:Grizzly G1006 Milling Machine CNC Conversion
I looked into the Automation Direct GS2 VFD for my 1.5 HP spindle. The 2 HP GS2 is $251. That made me wonder if the $117 Chinese VFD with the Mitsubishi chip uses the same Modbus commands as the GS2. I bet it does. The GS2 looks a bit nicer, but they're probably both made in China. For my el cheapo milling machine conversion, I wouldn't mind saving $134.

I noticed that there were examples of using several different VFDs under Modbus control. I took a quick look at the GS2 version, but I need to compare them to see if the LinuxCNC side is similar. Or are there VFD specific Modbus commands? Even if so, I should be able to use the other example code and the Chinese VFD manual to make my own version and add it to the list for cut-and-paste support for the inexpensive Chinese VFD. BTW, what I've been calling the Chinese VFD is manufactured by Huanyang Electronics Company Ltd. Here's the current eBay auction:

www.ebay.com/itm/300652886556

My import mill has a belt driven spindle. I'm using Jon's clever dual gear tooth detector to generate a quadrature encoder on my lathe spindle. I could probably notch the spindle V-belt pully on my milling machine and use the same method, or laser cut a black polycarbonate disk for the spindle pulley and use optical switches in a similar configuration to make a quadrature encoder for the spindle, but I doubt I'll be doing any rigid tapping on that machine! Barring that, a simple one-pulse-per-revolution sensor could be fed to a LinuxCNC counter encoder to verify a rough spindle speed.
Last edit: 23 Oct 2012 16:55 by BruceLayne.

Please Log in or Create an account to join the conversation.

More
23 Oct 2012 17:36 #25694 by BigJohnT
That does look like a pretty good Chinese VFD and the Chinese can make good quality when forced to.

I didn't see the modbus protocol in advert... I'd bet if you had that you could modify the gs2.comp to work with any VFD that communicates with modbus. At least you can see the GS2 modbus info in the manual and if you can compare it to another VFD manual to see if they are close or even the same. I'd assume than anything beyond the modbus communications protocol will not be the same between different VFD's.

John

Please Log in or Create an account to join the conversation.

  • andypugh
  • andypugh's Avatar
  • Away
  • Moderator
  • Moderator
More
23 Oct 2012 17:44 #25695 by andypugh
BigJohnT wrote:

I didn't see the modbus protocol in advert... I'd bet if you had that you could modify the gs2.comp to work with any VFD that communicates with modbus.

I think Jon Elson has mentioned one type of Chinese VFD which claims to support Modbus but doesn't in practice in any useable way.

Please Log in or Create an account to join the conversation.

More
23 Oct 2012 18:51 #25697 by BruceLayne
Replied by BruceLayne on topic Re:Grizzly G1006 Milling Machine CNC Conversion
BigJohnT wrote:

I didn't see the modbus protocol in advert.

Fourth item down, under Feature.

RS485 communication port, adopting standard international MODBUS main circuit control




andypugh wrote:

I think Jon Elson has mentioned one type of Chinese VFD which claims to support Modbus but doesn't in practice in any useable way.

That would probably be THIS VFD! :)

But hey, the eBay ad did say that it's "adopting standard international MODBUS main circuit control". International standards are good, right? :unsure:

It looks like all VFD manufacturers would use the same Modbus protocols. Then again, it looks like the average consumer wouldn't need a PhD in electrical engineering to get their TV and DVD player to work.

I'm an electrical kinda guy. I tend to agree with Byte magazine's resident hardware hacker, Steve Ciarcia, circa 1978, who said, "My favorite programming language is SOLDER."

Some variant of Andy's simple optically isolated PWM voltage to frequency converter to generate the 0-10V analog velocity control voltage is sounding better all the time. I already have the VFD, and I probably have all of the electronic components somewhere in my 1200+ organizer drawers.

But at the moment, I'm going to wire up a power supply, a stepper motor controller, four series-parallel connected stepper motors, and a different LinuxCNC PC to test the drive system that will raise and lower the bed of the laser I'm building! Fun! Fun!

Please Log in or Create an account to join the conversation.

More
23 Oct 2012 19:21 #25699 by BigJohnT
If you get a chance post some photos!

John

Please Log in or Create an account to join the conversation.

More
24 Oct 2012 07:24 #25732 by BruceLayne
Replied by BruceLayne on topic Re:Grizzly G1006 Milling Machine CNC Conversion
I should be posting pictures and video soon.

Until then, here's the LinuxCNC Modbus VFD link I referred to earlier. The page has links to examples of how to use Modbus communication from LinuxCNC to control VFDs from five different manufacturers (none were the inexpensive Chinese VFD on eBay, so it may be the one that doesn't implement Modbus control in any meaningful way).

wiki.linuxcnc.org/cgi-bin/wiki.pl?VFD_Modbus

The following wasn't very encouraging, either:

Because each VFD maker implements Modbus differently, a custom HAL component will most likely be needed for each VFD model.


When I decide to have LinuxCNC control the spindle speed instead of manually controlling the spindle from the VFD front panel, I'll probably use a pulse width modulated signal on a LinuxCNC output pin to generate the 0-10V analog velocity control voltage to set the spindle speed.



Z Axis - 5 Inches Isn't Enough

There's an obvious That's What She Said Joke, there.

One problem with CNC on a bench top mill is that the quill travel is only five inches, and that's not much. It's a hassle with manual machining, too. If I want to use a long drill bit in an R8 Jacobs chuck after machining with an end mill in an R8 collet, I need to raise the head on the column, and that loses my XY zero.

I've been using collets to hold drill bits and most other tooling. It works fairly well, but I'd like to be able to keep the tool mounted in a fixed tool holder so it maintains its tool height, so I can swap tools and not have them drifting around in the Z axis. I bought some inexpensive import end mill holders. The quality is OK, but not great.

I spent a couple of hours tonight, looking at ER collet holders, including some nice looking versions from Glacern.com for about $90 each. Then I took another look at the Tormach Tooling System. The quality looks to be somewhere between the $40 import ER collet chucks and the $90 nickle plated ER chucks from Glacern. The price of the TTS ER chucks is about $60 each. They don't have the long R8 stalk sticking out the top, but they have 3/4" shanks that fit a modified R8 collet. They look like they'll be easier to swap and handle, and in the unlikely event that I'll attempt to make my simple version of a tool changer, they should be easier to drop and pick up than an R8 ER collet chuck, and there's more room to maneuver over top of the shorter TTS tooling than there is with R8 tooling.

www.tormach.com/product_tts.html

They also have TTS compatible set screw end mill holders for under $30 each, which might be good for 3/8" to 1/2" end mills.

In fact, there are a lot of different tools in the TTS stable, including tension/compression tapping heads, and a single carbide insert fly cutter that apparently has material removal rates approaching that of a shell cutter and it works well on low power spindles so it should do well on my 1.5 HP bench top milling machine.

Does anyone have any comments about the TTS, good or bad? I've heard good stuff so far. I'll google for the updated impressions before making a purchase.

My basic strategy for getting the most out of the 5 inches of Z travel is to keep all of the tools about the same length. In order to do that, I think I'll buy a large set of shorter drill bits, sold as screw machine length drill bits.

Please Log in or Create an account to join the conversation.

  • andypugh
  • andypugh's Avatar
  • Away
  • Moderator
  • Moderator
More
24 Oct 2012 09:10 #25735 by andypugh
BruceLayne wrote:

Because each VFD maker implements Modbus differently, a custom HAL component will most likely be needed for each VFD model.


There is a new generic modbus driver. It isn't fully signed-off and included yet, but if you fancy being a guinea pig:
sourceforge.net/tracker/?func=detail&ati...578419&group_id=6744

www.tormach.com/product_tts.html

I always liked the look of TTS. I ended up with a BT30 machine instead of converting my MT3 one.
R8 really is far too long.

Please Log in or Create an account to join the conversation.

More
24 Oct 2012 12:39 #25747 by BruceLayne
Replied by BruceLayne on topic Re:Grizzly G1006 Milling Machine CNC Conversion
andypugh wrote:

There is a new generic modbus driver. It isn't fully signed-off and included yet, but if you fancy being a guinea pig:
sourceforge.net/tracker/?func=detail&ati...578419&group_id=6744

Wow! Less than five days old! That is NEW!

I'm not sure I'm the best guinea pig because I'm still a LinuxCNC newbie, but I do want to start giving something back to the community, and this might be an opportunity to start giving back. The concept sounds a lot better to me than tweaking the existing code examples from five other Modbus enabled VFDs. I took a look at the patch. 2270 lines of code. It definitely looked to be above my pay grade.

I have so many irons in the fire that I won't be getting to the LinuxCNC control of the spindle for at least a month, and realistically, more like three months. Some other noble adventuresome soul will have probably figured out the Modbus connection for the $117 Chinese VFD by then.

The advantage I see for adding a Modbus controlled VFD to my simple parallel port configuration is that the only added hardware is a $10 RS-232 to RS-485 converter. The rest is done in code, with no custom electronic hardware to build.

The disadvantage might be that the coded solution would probably need to be recoded for each new installation of LinuxCNC, although there would be a little bit of tweaking to get the PWM running too.

I should definitely focus on bolting on the stepper motors and getting this project moving, and worry about spindle control later. After all of these years, it's going to be so nice to have LinuxCNC doing the repetitive work. I'm so unrealistically optimistic of early success that I'm deferring some simple production work in the hope that I can do it as a CNC job! B)

Please Log in or Create an account to join the conversation.

Time to create page: 0.118 seconds
Powered by Kunena Forum