On Wednesday 22 January 2020 09:57:38 Thaddeus Waldner wrote: > Hi, > > I have a design that requires a 2-axis cmm function (manually > controlled) as part of a simple CNC machine. Essentially, it’s an > encoder based teaching instrument that generates gcode, which the > controller then runs. > > The design also calls for the capacity to import and run gcode thus it > would have a linuxCNC interface, as opposed to being a headless > controller. > > Can someone nudge me in the right direction for this? Off the top of > my head, I imagine something reading encoders on a servo thread and > somehow storing the values. I do plan to use MESA hardware, once this > actually gets off the ground. > > Thanks, > > Thaddeus Waldner > Since LCNC has software modules that duplicate the mesa stuffs, and even more, it seems like this could be done. Feed a quadrature generator to the encoder module, push a button or choice of buttons to store the encoders output in variable names and a final do-it button to execute the moves stored in the variables list by feeding it to the mdi interface. Don't forget to set the values needed to establish that directions home values because that will likely powerup randomized, so the resultant move will then be relative to this home position.
One could even compose a gcode file that but that would surely make walking around a mulberry tree into doing it the hard way. One of the advantages of writing your own gcode, is staying relatively familiar with gcodes looping ability. A 3 days to execute file can be rolled up into 90 lines of code, and resulted in a resharpened 10" carbide toothed saw blade for my table saw that lasted at least 10x the time a new $65 blade would have cut. But as usual, I digress. Gcode generators are nice IF you have accurate CAD files, but my CAD measurements often come directly from the workpiece being measured with digital calipers. And I "get the job done". At bobbyist speeds because it does take time to write and troubleshoot new code. But when I ran it the last time, I turned off the lights and hung the padlock on the door for almost 3 days. 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 [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
