MechMate CNC Router Forum

Go Back   MechMate CNC Router Forum > Structure & Mechanics > 50. Toolheads
Register Options Profile Last 1 | 3 | 7 Days Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old Mon 20 June 2011, 11:43
danilom
Just call me: Danilo #64
 
Novi Sad
Serbia
Mach 3 VFD and Spindle Control

Well after a long time trying to figure it out I finally got it !

Mach3 is now in control of my VFD and spindle. Start, stop and speed works great and only with help of this 3$ adapter from ebay



setting it up was easy once you understand the mach modbus serial and pin assignment.
In short its like this:
to enable control of my VFD I have to set parameter 6.43 (642) Control Word Enable to decimal 1. And there is a Control Word with 16 bits that represent various commands. Decimal 163 means Drive Enable, Run Forward and RUN now, 129 disables Run Forward and Run so it stops and brakes. just shutting down Enable does not brake but freewheels the spindle until it stops.

If someone needs I can take printscreens of the setup. All needed info I found in this thread on the cnczone
http://www.cnczone.com/forums/mach_m...2_drive-2.html
Reply With Quote
  #2  
Old Mon 20 June 2011, 12:15
IN-WondeR
Just call me: Kim
 
Randers
Denmark
Cool, I have bought the same converter, just need to mount it and set it up, so now I can go ahead and get that out of the way.
Reply With Quote
  #3  
Old Mon 20 June 2011, 13:36
MetalHead
Just call me: Mike
 
Columbiana AL
United States of America
Please post the print screen and also some pics of the hookup if you have them.
Reply With Quote
  #4  
Old Sat 25 June 2011, 05:49
danilom
Just call me: Danilo #64
 
Novi Sad
Serbia
Here it is, I will be glad to answer any of the questions.






Reply With Quote
  #5  
Old Tue 15 November 2011, 17:37
polfilm
Just call me: Peter
 
Krakow
Poland
Send a message via Skype™ to polfilm
Quote:
Originally Posted by danilom View Post
Here it is, I will be glad to answer any of the questions
danilom: thank you for posting the screenshots. this is a good start for my case.

I'm attempting to hook up HuanYang VFD to RS485. Is the parallel motor control board involved in controlling the spindle in any way? I got the spindle working with VFD by itself but obviously want to control it with Mach3.

I got a USB version of RS485 adapter so its powered from USB directly therefore it has only 4 pins out. TX+, TX-, RX+, RX- but it shows up as regular serial on com1.

I will be able to experiment with settings on screen shots and macros you provided and perhaps finding the modbus serial and pin assignments.

I understand you have a different VFD but could you post some example of wiring?

Has anyone done control of HuanYang VFD from Mach3? (Start, Stop, CW, CCW, Speed) Perhaps I have missed a thread? Any indication as to wiring, VFD setup and pin assignments would be of great relief.

Edit:
Also where did you come up with last two images? Control Word Constructor and EIA485/RJ45 connector (isn't that like a network plug) Or perhaps I'm just on a wrong path and your VFD has the EIA485/RJ45 connectors and that's why you can use the RS485 adapter and I'm out of luck because I won't be able to use that with the HuanYang VFD. Nothing to go by so just guessing.

Last edited by polfilm; Tue 15 November 2011 at 17:48..
Reply With Quote
  #6  
Old Tue 15 November 2011, 17:39
danilom
Just call me: Danilo #64
 
Novi Sad
Serbia
There is a plugin for your VFD, look here
http://www.mechmate.com/forums/showt...light=HuanYang
Reply With Quote
  #7  
Old Tue 15 November 2011, 18:25
polfilm
Just call me: Peter
 
Krakow
Poland
Send a message via Skype™ to polfilm
Quote:
Originally Posted by danilom View Post
There is a plugin for your VFD, look here
http://www.mechmate.com/forums/showt...light=HuanYang
Thank you for this. So much work has been done allready. I deleted my post above totally by accident where I asked [danilom] for some insight to HuanYang VFD. Thanks again for lightning fast reply.

Its 2am, looks like I'm not going to bed tonite...but its a good thing Controling the spindle through Mach3 is like the last step before I attempt my first cut. Mechmate has been exactly one year in the making.
Reply With Quote
  #8  
Old Tue 15 November 2011, 19:55
MetalHead
Just call me: Mike
 
Columbiana AL
United States of America
I put your postback. Get some sleep !!!
Reply With Quote
  #9  
Old Wed 16 November 2011, 10:47
PEU
Just call me: Pablo
 
Buenos Aires
Argentina
Instead of RS485 I used the circuit included in this pdf: http://is.gd/fzuHjW and it works very well.

I removed the led in my build.
Reply With Quote
  #10  
Old Wed 16 November 2011, 11:17
danilom
Just call me: Danilo #64
 
Novi Sad
Serbia
For me the modbus is better because you can start and stop the spindle and also reverse the direction, just using code in mach not some outputs on bob.
Its pretty easy to set up and cheap ($2)
Reply With Quote
  #11  
Old Wed 16 November 2011, 12:06
Alan_c
Just call me: Alan (#11)
 
Cape Town (Western Cape)
South Africa
Send a message via Skype™ to Alan_c
Danilo, please give us details on how to implement modbus to control the spindle.
Reply With Quote
  #12  
Old Wed 16 November 2011, 12:12
Kobus_Joubert
Just call me: Kobus #6
 
Riversdale Western Cape
South Africa
Send a message via Yahoo to Kobus_Joubert Send a message via Skype™ to Kobus_Joubert
Alan, with the Mach3 BOB from GREG it is just as easy. The relay that switched your router on/off can trigger the VFD as well....you just need to program the VFD.
Reply With Quote
  #13  
Old Wed 16 November 2011, 16:57
danilom
Just call me: Danilo #64
 
Novi Sad
Serbia
Everything is in the 1# and 4# post, just plug in the rs232-rs485 adapter in serial port connect its A and B (TX-,TX+) to the VFD, set the parameters, and edit the m3 m5 scripts.
Reply With Quote
  #14  
Old Sat 19 November 2011, 05:40
polfilm
Just call me: Peter
 
Krakow
Poland
Send a message via Skype™ to polfilm
Massive confusion. Lucky you who did not purchase HuanYang VFD because with that it ended up being the most time consuming part of the whole MechMate project. [Obviously not MechMate problem as I chose myself to go with that somewhat nice looking, should-be-ok spindle+VFD and not much research] If I knew, like you do right now, I would have gladly paid 200-300 bucks more for a nicer VFD. Problems are as follows:

1. HuanYang VFD is NOT trully modbus compliat. [get the Mach3 plugin]
2. At least half of the units that leave the factory do not have the 485 interface chip on board. Supposedly its an option and you have to MAKE SURE it's on the invoice when you order. Yey, they saved 2 cents and I'm pulling my hair out.

Luckily, there are tons of us with such problem and the community always finds a way even if it means soldering our own 485 chip [$2 on ebay] onto the VFD where it should be.

I will keep you posted. My local store sent me USB-Serial controller instead of USB-RS485 with adapter. Another 2-3 days of nail-biting before I can go back to experiments.

It's still the most exctiting electro-mechanical project I have ever undertaken. "Never give up. Never surrender."

Last edited by polfilm; Sat 19 November 2011 at 05:44..
Reply With Quote
  #15  
Old Thu 05 April 2012, 17:24
Guillermo
Just call me: Guillermo
 
Puerto Ordaz
Venezuela
Hi all

In my wáter Jet proyect , I need to control whit MACH 3 the pump motor

speed (a 10 hp,7.5Kw motor) alternating between two different speeds to get

high and low pressures. (STOP , HIGH and LOW speeds)

I don’t know if it is because very few ones uses spindles and VFD but don’t

see in the forum a consensus about the best way to go whit the VFD and the MACH 3

control of it.

I need help with tips about VDF models, installation and configuration.

What are the comments about this HITACHI VFD. MODEL NO. X200-075LFU2

https://i-store.hitachi.us/ISDWebSto...m=X200-075LFU2

Thanks

Guillermo
Reply With Quote
  #16  
Old Fri 06 April 2012, 01:48
danilom
Just call me: Danilo #64
 
Novi Sad
Serbia
modbus control is THE most direct and accurate way to command a VFD. it writes data and settings directly to his registers. its digital and accepts noise.
buy using analog 0-10v control input you use 2 pins on bob, one for 0-10v and one to start a vfd, if you need reverse then its 3 pins.
Reply With Quote
  #17  
Old Fri 06 April 2012, 06:45
Guillermo
Just call me: Guillermo
 
Puerto Ordaz
Venezuela
What about the VFD model.

Are there suggestion for USA market ????.

Thanks Danilo

Guillermo
Reply With Quote
  #18  
Old Fri 06 April 2012, 09:34
KenC
Just call me: Ken
 
Klang
Malaysia
Any VFD which offer modbus control.
Reply With Quote
  #19  
Old Fri 06 April 2012, 09:57
Guillermo
Just call me: Guillermo
 
Puerto Ordaz
Venezuela
Danilo and Kent

Thanks

Guillermo
Reply With Quote
  #20  
Old Fri 06 April 2012, 10:17
danilom
Just call me: Danilo #64
 
Novi Sad
Serbia
Hitachi, Delta, Omron, yaskawa, Control Techniques, etc
Reply With Quote
  #21  
Old Fri 06 April 2012, 10:23
Guillermo
Just call me: Guillermo
 
Puerto Ordaz
Venezuela
Then I am going to make my research.

Thanks again Danilo.

Guillermo
Reply With Quote
  #22  
Old Sat 11 January 2014, 00:57
Surfcnc
Just call me: Ross #74
 
Queensland
Australia
I was hoping a few of the fine details of this great post might be made a little clearer for me.

Is there any speed control or only FWD and Reverse?
Are the control words (maybe parameters) like 163 etc universal?
In other words are the M3 and M5 macros used for all VFD's.

I was hoping to have implement this with a USB to RS485 converter using a laptop as a controller.
Other than finding the virtual port number are there any other gotchas anyone can anticipate?

Thanks
Ross
Reply With Quote
  #23  
Old Sat 11 January 2014, 01:15
racedirector
Just call me: Bruce #122
 
New South Wales
Australia
Ross, what VFD are you running? If you have an Hitachi X200 I can help by posting my setup. Fully controlled speed wise from Gcode (using Modbus) and responds to M codes as required.
Reply With Quote
  #24  
Old Sat 11 January 2014, 01:30
Surfcnc
Just call me: Ross #74
 
Queensland
Australia
Oh to be working on a X200 Hitachi VFD !!
It is a Delta VFD E series, the menu system is so confusing and the manual is rubbish.
My opinion after a bad day button pressing so that might be a little coloured

I was drawn to this solution as it does not use a Modbus board and uses included software in Mach3 to control Modbus.
If you have something I can use by all means.
Thanks Bruce.

Ross
Reply With Quote
  #25  
Old Sat 11 January 2014, 02:02
racedirector
Just call me: Bruce #122
 
New South Wales
Australia
I'll take screen shots of my stuff, maybe it will help. Give me 'til tomorrow, my old CNC is now in pieces and the PC is shut down. I'll dig it out for ya Oh, and no Modbus board here, the Hitachi supports Modbus out of the box.

Last edited by racedirector; Sat 11 January 2014 at 02:07..
Reply With Quote
  #26  
Old Sat 11 January 2014, 05:47
racedirector
Just call me: Bruce #122
 
New South Wales
Australia
Ross, I was thinking about your situation tonight and wondered if you have considered 0-10V PWM to control the spindle. I don't think my setup would help you much due to the Hitachi being Modbus aware.

I found this PDF on using a Delta VFD-E via PWM to help you along. They don't use Mach3 but the USBCNC software that I am seriously considering.....

Cheers
Attached Files
File Type: pdf TeknoMotorConfigManual.pdf (1.48 MB, 23 views)
Reply With Quote
  #27  
Old Sat 11 January 2014, 05:59
racedirector
Just call me: Bruce #122
 
New South Wales
Australia
Hold the phone@! I see your VFD DOES support Modbus/RS485 so will continue with the original plan of offering screenshots.....
Reply With Quote
  #28  
Old Sat 11 January 2014, 07:02
danilom
Just call me: Danilo #64
 
Novi Sad
Serbia
Parameters are not universal, these are registers for controlling RUN and setting Forward/Reverse on control techniques VFD. Others may be similar you have to look inside datasheet for modbus control.

The frequency parameter is set to on of the presets (in mine preset 1 is parameter 18)
then all you need to set is in Spindle setup->modbus spindle . 4000 is because my VFD accepts frequency in 0.1 steps but the register is 4 digits without a point so 4000 is 400.0 Hz
Reply With Quote
  #29  
Old Sat 11 January 2014, 23:20
Surfcnc
Just call me: Ross #74
 
Queensland
Australia
Bruce - I am currently using the PWM function on a C11 board, but I was wanting another way to do it.
I had seen that Damien CNC doc and it was a good start on the PWM connections for me.
The Delta I was using was different again, so some guessing was still involved.

Danilo - Thanks for the clarification, your method seems very good and that is why I was wanting to have this as another possible option for spindle control.

Thanks
Ross
Reply With Quote
Reply

Register Options Profile Last 1 | 3 | 7 Days Search Today's Posts Mark Forums Read

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Specs of the PC needed to drive the MechMate's Mach control box Gerald_D 80. Computer Hardware & Software 80 Thu 11 June 2015 23:05
MechMate DIY Control box full spec screened spindle 3phase Gerald_D 70. Control Systems 79 Sun 07 April 2013 17:50
CNC Control panels and Spindle dalewalsh62 Archives 29 Fri 20 May 2011 06:00
Water Cooled Spindle Connections - Connecting the Spindle waynec 50. Toolheads 32 Fri 19 June 2009 12:31
Upgraded Mach, now the motors won't turn - Different ports/pins for later Mach Hugo Carradini Troubleshooting 19 Thu 25 October 2007 11:45


All times are GMT -6. The time now is 13:01.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.