I have encoder.0.position-scale set to 400 and I have all three phases
A,B,Z enabled as inputs. Me thinks it might have to do with pwmgen.0.scale
or the pwmgen.0.offset. Not entirely sure what those do yet. I believe
scale assumes you know the max rpm the motor will run and sets the
increments accordingly by PWM percentage. I'm not real clear on it. The
command speed of say 1000 rpm is very close to the Pypanel display speed.
Any value below 1000 in the panel is suspect.

On Tue, May 19, 2020 at 6:54 PM Gene Heskett <ghesk...@shentel.net> wrote:

> On Tuesday 19 May 2020 18:16:49 Dan Henderson wrote:
>
> > The CUI ATM 103. The PPR is set at 100 both on the device and in HAL.
> > I’m not using scale mode since I needed Quadrature in order to detect
> > CCW for rigid tapping.
>
> You should be able to set encoder scale at 400 w/o effecting the
> quadrature direction sensing. But I've no experience with how CUI does
> it.  All the encoders I have built fed either software or mesa in
> quadrature modes. ABX outputs IOW. I've only one commercially made one,
> an omron 1000 line but it's not on the spindle, it's on the motor but
> the index still comes from the spindle.  So the scale changes with the
> backgear. Works well.
>
> > On Tue, May 19, 2020 at 5:03 PM Gene Heskett <ghesk...@shentel.net>
> wrote:
> > > On Tuesday 19 May 2020 17:28:40 Dan Henderson wrote:
> > > > Thanks Gene.  I too dabbled in Amiga ARexx back in the day. I was
> > > > / still am a Commodore aficionado. To this day, I have working
> > > > Amiga, C-128, and C64 hardware. I prefer Assembly Language over
> > > > BASIC for obvious reasons with speed being foremost among them.
> > > > But I digress...
> > > >
> > > > I ended up building a reversing cirucuit with a Tyco 12v DPDT
> > > > relay capable of 15a / 30 VDC switching. So long as I don't
> > > > attempt a direction flip that exceeds those max ratings I should
> > > > be good. I've tested 800 rpm CW - CCW -CW without so much as a
> > > > batted eye -- it was quite smooth with the delays factored in and
> > > > all. Quite happy with this setup. I have the added bonus of a semi
> > > > brake action on the CCW motion. An M5 will stop that rotation
> > > > quite quickly due to the the mc2100 power off which kills the slow
> > > > decell ramp built-in with that board.
> > > >
> > > > Now to move on and dial-in the RPM reading in PY Panel. My scale /
> > > > range is not set right. I can turn the RPM at 50 or less and it
> > > > shows 200 rpm on the Pypanel.
> > >
> > > What do you have for an encoder? Remember, a 50 slot opto disk is
> > > actually 200 "edges" which is what you may be displaying. Depends on
> > > the mode the encoder is running in.
> > >
> > > > Cheers!
> > >
> > > Cheers, Gene Heskett
> > > --
> > > "There are four boxes to be used in defense of liberty:
> > >  soap, ballot, jury, and ammo. Please use in that order."
> > > -Ed Howdershelt (Author)
> > > If we desire respect for the law, we must first make the law
> > > respectable. - Louis D. Brandeis
> > > Genes Web page <http://geneslinuxbox.net:6309/gene>
> > >
> > >
> > > _______________________________________________
> > > Emc-users mailing list
> > > Emc-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/emc-users
> >
> > _______________________________________________
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
>
>
> Cheers, Gene Heskett
> --
> "There are four boxes to be used in defense of liberty:
>  soap, ballot, jury, and ammo. Please use in that order."
> -Ed Howdershelt (Author)
> If we desire respect for the law, we must first make the law respectable.
>  - Louis D. Brandeis
> Genes Web page <http://geneslinuxbox.net:6309/gene>
>
>
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>

_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to