Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Xye on December 24, 2011, 07:04:59 AM

Title: Need Help Controlling Spindle
Post by: Xye on December 24, 2011, 07:04:59 AM
Ok I've connected my VFD to my breakout board but cannot seem to get mach to do anything.

Attached are pictures of the terminals of both. I have wired:

Vin to +10V
Out to FiV
0V to GND

CP1 to FWD
CP2 to GND

If I'm honest this was just my best guess at what should go where.

problem is i'm not sure if I'm not setting it up right in Mach or if i've wired it wrong so it can't work....
Title: Re: Need Help Controlling Spindle
Post by: Chaoticone on December 24, 2011, 12:04:51 PM
Where are the Vin, Out, 0v, CP1 and CP2 ?  I don't see those labels in either picture. 

Have you set up your spindle controll in mach for a pwm spindle?

Brett
Title: Re: Need Help Controlling Spindle
Post by: Xye on December 24, 2011, 12:10:54 PM
Those labels are down the right hand side of the BO board (its a poor picture but its from their manual)

Spindle control is set to pwm but i'm unsure what numbers to put in the ports and pins config menu
Title: Re: Need Help Controlling Spindle
Post by: Chaoticone on December 24, 2011, 12:30:51 PM
Xye, make your descriptions match the labels we can see.  I can see the labels in the box but not the ones on the BOB.  I can guess at whic ones are related but........

While your doing that I'll be getting some things together for you to help configure Mach.

Quote
Attached are pictures of the terminals of both. I have wired:

Vin to +10V
Out to FiV
0V to GND

CP1 to FWD
CP2 to GND


Brett
Title: Re: Need Help Controlling Spindle
Post by: Xye on December 24, 2011, 12:42:18 PM
Sorry I can't seem to edit my first post (get stuck with the green loading bar at the top)

Vin (+10V) to +10V
Out (AVI: Analogue input) to FiV
0V (ACM: Analogue Ground) to GND

CP1 (FWD/Stop) to FWD
CP2 (Digital Ground) to GND
Title: Re: Need Help Controlling Spindle
Post by: Chaoticone on December 24, 2011, 12:42:49 PM
Have a look here, page 50.

http://www.machsupport.com/docs/Mach3Mill_Install_Config.pdf

The docs on your bob should tell you what port/pins control the analog output.

Brett
Title: Re: Need Help Controlling Spindle
Post by: Chaoticone on December 24, 2011, 12:47:39 PM
I think your wireing is correct.

Brett
Title: Re: Need Help Controlling Spindle
Post by: Xye on December 24, 2011, 12:51:38 PM
This is the manual:

http://dl.dropbox.com/u/53958419/UIM2901%20Mach3%20BOB%20110718.pdf (http://dl.dropbox.com/u/53958419/UIM2901%20Mach3%20BOB%20110718.pdf)

It is somewhat sparse in information about setting up the spindle. I mean I see Pin1 should control the spindle PWM...
Title: Re: Need Help Controlling Spindle
Post by: Chaoticone on December 24, 2011, 01:10:04 PM
Page 8 shows some jumper settings to use PWM.  Have you got those set correctly?

It does look like pin 1 will be used for spindle control.  So, in the ports and pins config you will enable spindle and set the port number to the port you have the bob hooked to and the pin number for step (I think) will be pin 1.

Post your XML and I'll have a look.

Brett
Title: Re: Need Help Controlling Spindle
Post by: Xye on December 24, 2011, 05:08:24 PM
Where do I find the XML?
Title: Re: Need Help Controlling Spindle
Post by: Xye on December 28, 2011, 09:11:44 AM
Ok heres the XML i think....
Title: Re: Need Help Controlling Spindle
Post by: Hood on December 28, 2011, 09:20:37 AM
Have sent you a PM.

Hood
Title: Re: Need Help Controlling Spindle
Post by: Xye on December 29, 2011, 08:37:35 AM
Ok. I fiddled around with the VFD's settings and now as soon as I start up Mach the spindle spins up. Before that with the computer just in windows the spindle is stationary. Changing settings within Mach doesn't seem to effect the spindle speed or anything else.

Attached is the latest XML file
Title: Re: Need Help Controlling Spindle
Post by: Hood on December 29, 2011, 08:56:14 AM
Ok just had a look at the xml, you have the spindle CW/CCW enabled and set to OutPut 1 but you have not set up and enabled OutPut 1. You have The spindle Dir pin set to Pin 1 so I am thinking if you set that to pin 0 then go to Outputs page and enable OutPut 1 and set it for Pin 1 Port 1 it may be all you need.
Hood
Title: Re: Need Help Controlling Spindle
Post by: Xye on December 29, 2011, 09:14:08 AM
Ok that does seem to have helped somewhat, although the spindle never actually stops when Mach is running I am able to make it go fast by clicking the "Spindle CW F5" or slow down to its normal running speed
Title: Re: Need Help Controlling Spindle
Post by: Hood on December 29, 2011, 10:59:06 AM
Will have a look at the docs you provided later on this evening when I get home from the workshop, got a few jobs to get done closing time so have to get on with them.
Hood
Title: Re: Need Help Controlling Spindle
Post by: Hood on December 29, 2011, 01:47:06 PM
Ok looking at the manual it would seem that Pin  1 is the step, so you would set that for the Spindles Step pin. I am unsure what the Output 1 pin should be set to as it seems to suggest you connect that to CP1 on the BOB but there is no mention at all in the manual of it other than the pic on page 4. If you disable the Chargepump then maybe you could use Pin 17 but to me it is not clear at all.
Hood
Title: Re: Need Help Controlling Spindle
Post by: Xye on December 29, 2011, 03:02:26 PM
Ok attached is the latest XML....

I have been experimenting with pin 14 and 17. Setting 14 as the Step pin (and pin 17 as the output) I get a click from the VFD when I press the  "Spindle CW F5" button to turn it on. (For the briefest of moments the run button is illuminated)

However if I set both the Step Pin and Output Pin to 17 the spindle spins up (to as fast as it can go) when an Estop has been done....
Title: Re: Need Help Controlling Spindle
Post by: Hood on December 29, 2011, 04:05:59 PM
Have you tried pin 1 as the Step pin?
Hood
Title: Re: Need Help Controlling Spindle
Post by: Xye on December 30, 2011, 10:05:53 AM
You must be getting pretty sick of me now Hood... But here is the latest:

I have been playing around with Enable1 under the Output signals.

Setting the pin to 1 means when i press the spindle start button, the F value increases on the VFD (Spindle off ~70, Spindle On ~ 350)

Setting the pin to 17 gives the same Run sign illumination for the briefest of instants when Spindle start is pressed (only to start not to stop)

Setting the pin to 14 has no visible effect.

This was done with the Step and Dir Pins in Motor Outputs set to 0
Title: Re: Need Help Controlling Spindle
Post by: Hood on December 30, 2011, 10:13:48 AM
I am not really familiar with VFD setup as I have only used servo spindles under Mach control. I think however you will need the spindle Step Pin set to 1 and the Dir set to 0. After that I am not quite sure as the documentation is basic (to put it politely ;) ) for your BOB. Disabling the Chargepump via the jumpers and using Pin17 as  the pin for OutPut 1 is my best guess.
Hood
Title: Re: Need Help Controlling Spindle
Post by: Xye on December 30, 2011, 11:04:36 AM
YES!

Changing those Jumpers did the trick.

Now all that remains to be done is proper calibration of the spindle speed.

Thanks For all your Help Hood
Title: Re: Need Help Controlling Spindle
Post by: Chaoticone on December 30, 2011, 06:09:46 PM
 ;D

Thanks Hood

Brett
Title: Re: Need Help Controlling Spindle
Post by: Hood on December 30, 2011, 06:33:49 PM
LOL probably didnt understand your deep south accent Brett :D
Hood