Hello Guest it is March 28, 2024, 11:07:22 AM

Author Topic: Need Help Controlling Spindle  (Read 9115 times)

0 Members and 2 Guests are viewing this topic.

Offline Xye

*
  •  12 12
    • View Profile
Re: Need Help Controlling Spindle
« Reply #10 on: December 28, 2011, 09:11:44 AM »
Ok heres the XML i think....

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Need Help Controlling Spindle
« Reply #11 on: December 28, 2011, 09:20:37 AM »
Have sent you a PM.

Hood

Offline Xye

*
  •  12 12
    • View Profile
Re: Need Help Controlling Spindle
« Reply #12 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

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Need Help Controlling Spindle
« Reply #13 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

Offline Xye

*
  •  12 12
    • View Profile
Re: Need Help Controlling Spindle
« Reply #14 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

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Need Help Controlling Spindle
« Reply #15 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

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Need Help Controlling Spindle
« Reply #16 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

Offline Xye

*
  •  12 12
    • View Profile
Re: Need Help Controlling Spindle
« Reply #17 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....
« Last Edit: December 29, 2011, 03:04:26 PM by Xye »

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Need Help Controlling Spindle
« Reply #18 on: December 29, 2011, 04:05:59 PM »
Have you tried pin 1 as the Step pin?
Hood

Offline Xye

*
  •  12 12
    • View Profile
Re: Need Help Controlling Spindle
« Reply #19 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