Machsupport Forum

Third party software and hardware support forums. => SmoothStepper USB => Topic started by: kaser on November 18, 2009, 02:08:39 PM

Title: How to turn on/off a PWM output with Smoothstepper?
Post by: kaser on November 18, 2009, 02:08:39 PM
Right now I have the spindle set up as a PWM output.

So I do something like this:

S100 M3
G01 X1.0
M5

to turn on the PWM output then turn it off.

Problem is Mach3 and smoothstepper has a delay between the spindle on and the movement.

Instead, I heard I could do:

E1P1
G01 X1.0
E1P0

to turn output1 on/off without the delay.

However, now I lost the PWM capability.

Is there no way to do:
S100 E1P1
G01 X1.0
E1P0

so I can set the duty cycle and turn a PWM output on without the spindle delay?

Why is there a spindle delay anyway?  I would think the code should be streamed together.  Functionality should be coded with a dwell after the spindle on if that is the desired behavior.  Thanks.
Title: Re: How to turn on/off a PWM output with Smoothstepper?
Post by: Hood on November 18, 2009, 02:50:57 PM
Do you have the spindle delay set to 0 on General Config page?
Hood
Title: Re: How to turn on/off a PWM output with Smoothstepper?
Post by: kaser on November 18, 2009, 02:56:54 PM
Yes I do have all delays set to 0.

The delay is short def less than a second but enough to burn a spot with a laser.
Title: Re: How to turn on/off a PWM output with Smoothstepper?
Post by: Hood on November 18, 2009, 03:01:12 PM
Ah ok, no mention was made of a laser ;)
Afraid that slight dwell is just a part of Mach, Rev 4 may be better.

Hood