Hello Guest it is September 22, 2020, 05:00:38 AM

Author Topic: PWM spindle control setup  (Read 12195 times)

0 Members and 1 Guest are viewing this topic.

PWM spindle control setup
« on: April 12, 2008, 07:32:14 AM »
i want to use a pwm controlled spindle with mach3.
I need th folowing signals for my electronic:

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

Thanks in advance

Offline jimpinder

  •  1,232 1,232
  • Wakefield, West Yorks, UK
    • View Profile
Re: PWM spindle control setup
« Reply #1 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.
Not me driving the engine - I'm better looking.
Re: PWM spindle control setup
« Reply #2 on: April 12, 2008, 02:15:11 PM »
Thank you very much for the help. I'll try it tomorrow.

Re: PWM spindle control setup
« Reply #3 on: April 14, 2008, 03:09:26 PM »
Hello jimpinder,
all works great.
Thanks again.