On Tuesday 19 May 2020 20:58:45 Dan Henderson wrote: > 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.
I found the linearity of speed control was much better if I used a large R between the analog output of my spinx1, and the former location that the slider arm from the speed control connects to. Try something in the 47k to 100k range. That point seems to be the summing point of the feedback loop and you won't see a huge voltage there, as it drives that point to a reference voltage, in order to get an error voltage that actually drives it. Drive that point with too low a source R, and it will go wide open rapidly without good control at the lower speeds. That point it at the hot side of the line so be very carefull not to ever ground it. That lets out all the smoke and it doesn't work anymore. Rule of thumb, if it gets to full speed before the spinx1 gets to 10 volts, scale up that "buildout resistor" accordingly. It likely still won't be linear, but it will be a lot better, with stiffer control at the reduced speed settings. The spinx1 is a mesa gizmo that isolates that control voltage from ground. Theres a bunch of those available on the net from various suppliers, but the mesa spinx1 is generally the lowest priced and best engineered on of the lot. I'm useing one of them to control the vfd on my Sheldon 11x54 lathe. And there it works very well. I am not using one on the aftermarket clone vfd I put on the 6040, when I found the onethat came with it was not capable of being controlled. There I am feeding the output wave of the pwm-gen directly to that electronic resistor function in a 7i76, and its very linear. And I'll burn my fingers trying to stop it at any any speed above around 200 rpms. And its a 24k rpms motor, so I was pleasantly surprised once I had found the right register to turn up the low speed motor current to that motors nameplate FLA. But now I've rigged a mister for coolant, and can spin it up nicely while cutting alu. Rule of thumb for cutting alu, if its heating the work enough to detect it getting warm when you touch it, its too hot, get a coolant mist on the tool. > 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 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