Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: LazyBee on April 12, 2008, 07:32:14 AM

Title: PWM spindle control setup
Post by: LazyBee on April 12, 2008, 07:32:14 AM
Hello,
i want to use a pwm controlled spindle with mach3.
I need th folowing signals for my electronic:
ccw
cw
pwm
enable

How I have to setup my mach3 to get these signals to to lpt port.

Thanks in advance
LazyBee
Title: Re: PWM spindle control setup
Post by: jimpinder on April 12, 2008, 02:09:51 PM
Your CW (M3) and CCW (M4) are configured on Config/Ports and Pins/Spindle Set-up.

You allocate M3 and M4 to different outputs ( nominally Output #1 and #2
Whilst on this page under Motor Control tick use Spindle Motor Output, which will also then let you tick PWM Control.

If you then go to Ports and Pins/Output Signals and allocate Output ~1 and #2 to output pins (perhaps 16 and 17)

Then go to Ports and Pins/Motor Outputs and tick the Spindle as enabled and show a pin against the step column. PWM information is output on this pin when in PWM mode - perhaps pin 14.

I do not understand why you want an enable signal - although you have not said what you are going to use to control your spindle.

On my system the three pins above are used. M3 and M4 drive relays which are used to control an Omron Inverter driving my spindle motor. They are constant signals, therefore do not need an enable - M3 is on clockwise,  M4 is on anticlockwise and M5 turns both off. Both cannot be on together or the Omron shows a fault.

The PWM signal feeds a digispeed converter - which changes to PWM output to a voltage signal (between 0v and 12v) which is fed into the Omron and regulates the speed.

That is the basics of the system - but unless we can understand what you are driving, then I cannot help you further.
Title: Re: PWM spindle control setup
Post by: LazyBee on April 12, 2008, 02:15:11 PM
Thank you very much for the help. I'll try it tomorrow.

LazyBee
Title: Re: PWM spindle control setup
Post by: LazyBee on April 14, 2008, 03:09:26 PM
Hello jimpinder,
all works great.
Thanks again.
LazyBee