Re: [Emc-users] PWMGEN in PDM mode and not PWM

2015-11-09 Thread Karlsson & Wang
PDM I am pretty sure should be fixed. Then number of pulses increase with increasing speed it may be the encoder signal? On Mon, 09 Nov 2015 12:29:12 + "Marius Liebenberg" wrote: > Hi All > I have a pwmgen setup to take the spindle command to generate a pwm >

Re: [Emc-users] PWMGEN in PDM mode and not PWM

2015-11-09 Thread Marius Liebenberg
@lists.sourceforge.net> Sent: 2015-11-09 15:57:59 Subject: Re: [Emc-users] PWMGEN in PDM mode and not PWM >Stepper motor? > > >On Mon, 09 Nov 2015 12:29:12 + >"Marius Liebenberg" <mar...@mastercut.co.za> wrote: > >> Hi All >> I have a pwmgen setup to

Re: [Emc-users] PWMGEN in PDM mode and not PWM

2015-11-09 Thread Marius Liebenberg
I am not using Halscope but my Digital storage scope on the parport pin. It >> is predictable at all times as far as the number of pulses produced >>for the >> asked percentage of pwm. It increases to pulses for the full duration >>but >> they stay at a small width pulse. Definitely PDM

Re: [Emc-users] PWMGEN in PDM mode and not PWM

2015-11-09 Thread Marius Liebenberg
-- Original Message -- From: "andy pugh" <bodge...@gmail.com> To: "Marius Liebenberg" <mar...@mastercut.co.za> Cc: "Enhanced Machine Controller (EMC)" <emc-users@lists.sourceforge.net> Sent: 2015-11-09 15:32:19 Subject: Re: Re[2]: [

Re: [Emc-users] PWMGEN in PDM mode and not PWM

2015-11-09 Thread Marius Liebenberg
I dont know what we will do without Andy. Once again you are right. It was the reset of the parport pin that was used as s tepper driver before. >On 9 November 2015 at 13:40, Marius Liebenberg >wrote: >> I am not using Halscope but my Digital storage scope on the

Re: [Emc-users] PWMGEN in PDM mode and not PWM

2015-11-09 Thread Marius Liebenberg
Machine Controller (EMC)" <emc-users@lists.sourceforge.net> Sent: 2015-11-09 15:15:13 Subject: Re: [Emc-users] PWMGEN in PDM mode and not PWM >On 9 November 2015 at 12:29, Marius Liebenberg <mar...@mastercut.co.za> >wrote: > >>Is there naother setting that >>

Re: [Emc-users] PWMGEN in PDM mode and not PWM

2015-11-09 Thread Marius Liebenberg
" <mar...@mastercut.co.za>; "Enhanced Machine Controller (EMC)" <emc-users@lists.sourceforge.net> Sent: 2015-11-09 15:56:58 Subject: Re: [Emc-users] PWMGEN in PDM mode and not PWM >PDM I am pretty sure should be fixed. Then number of pulses increase >with increasing

Re: [Emc-users] PWMGEN in PDM mode and not PWM

2015-11-09 Thread andy pugh
On 9 November 2015 at 13:40, Marius Liebenberg wrote: > I am not using Halscope but my Digital storage scope on the parport pin. It > is predictable at all times as far as the number of pulses produced for the > asked percentage of pwm. It increases to pulses for the full

Re: [Emc-users] PWMGEN in PDM mode and not PWM

2015-11-09 Thread andy pugh
On 9 November 2015 at 13:27, Marius Liebenberg wrote: > I have the frequency set at 500Hz without dither. So it is reported as > 506.5065Hz from the halshow pins information. Is it possible that you are seeing aliasing? Which thread is halscope sampling in? -- atp If

[Emc-users] PWMGEN in PDM mode and not PWM

2015-11-09 Thread Marius Liebenberg
Hi All I have a pwmgen setup to take the spindle command to generate a pwm signal. What I see on my scope is a PDM signal. I.E. the number of pulses increase as I increase the speed. I nee it to be PWM. I tried type=0 and type=1 when I load. Is there naother setting that does not get mentioned

Re: [Emc-users] PWMGEN in PDM mode and not PWM

2015-11-09 Thread andy pugh
On 9 November 2015 at 12:29, Marius Liebenberg wrote: >Is there naother setting that > does not get mentioned in "man"? It is mentioned in the manpage, but you get PDM rather than PWM if you set the PWM base frequency to zero. -- atp If you can't fix it, you don't own

Re: [Emc-users] PWMGEN in PDM mode and not PWM

2015-11-09 Thread Karlsson & Wang
Stepper motor? On Mon, 09 Nov 2015 12:29:12 + "Marius Liebenberg" wrote: > Hi All > I have a pwmgen setup to take the spindle command to generate a pwm > signal. What I see on my scope is a PDM signal. I.E. the number of > pulses increase as I increase the speed.