On Monday 09 March 2020 02:16:40 John Dammeyer wrote: > Ah. See the way I read that document is that it's > > halcmd -f -k > > and it's not clear what the '\' means. > > So I'm guessing there's something in the hal file loaded with a > loadrt? > > http://linuxcnc.org/docs/2.4/html/hal_tutorial.html > doesn't show polygon. > > It's late. I've given up searching for now. Frustrating to not find > anything online. John > > > -----Original Message----- > > From: Sam Sokolik [mailto:samco...@gmail.com] > > Sent: March-08-20 10:37 PM > > To: Enhanced Machine Controller (EMC) > > Subject: Re: [Emc-users] Non-circular boring. Linuxcnc style. > > > > Halcmd is an interactive hal command line. -fk just means don't > > exit if there is an error and use input from a file if specified - > > if no file is specified use keyboard (standard I/O). (I didn't > > specify a file) > > > > This let's you run Hal commands and see the guts of linuxcnc. Very > > useful and powerful. I use it all the time. > > > > On Mon, Mar 9, 2020, 12:18 AM John Dammeyer <jo...@autoartisans.com> > > > > wrote: > > > So the > > > http://linuxcnc.org/docs/html/man/man1/halcmd.1.html > > > says \-f[file] > > > > > > halcmd -fk means k is a file? > > > > > > I'm confused. > > > John > > > > > > > -----Original Message----- > > > > From: Sam Sokolik [mailto:samco...@gmail.com] > > > > Sent: March-08-20 9:44 PM > > > > To: Enhanced Machine Controller (EMC) > > > > Subject: Re: [Emc-users] Non-circular boring. Linuxcnc style. > > > > > > > > The polygon Hal component can be enabled/disabled. > > > > > > > > Here is me experimenting with parameters > > > > > > > > http://electronicsam.com/images/greenmachine/2020-03-07- > > > > 191256_1920x1080_scrot.png > > > > > > > > > > > > On Sun, Mar 8, 2020, 11:34 PM John Dammeyer > > > > <jo...@autoartisans.com> > > > > > > wrote: > > > > > But how is it done then? I mean you wouldn't want X and Y > > > > > moving on > > > > > > you > > > > > > > > when you accidentally turn the spindle while tightening the > > > > > drill > > > > > > chuck. > > > > > > > > Yet it appeared your turned the tool and the XY axis moved. > > > > > > > > > > Thanks > > > > > john > > > > > > > > > > > -----Original Message----- > > > > > > From: Sam Sokolik [mailto:samco...@gmail.com] > > > > > > Sent: March-08-20 9:02 PM > > > > > > To: Enhanced Machine Controller (EMC) > > > > > > Subject: Re: [Emc-users] Non-circular boring. Linuxcnc > > > > > > style. > > > > > > > > > > > > The spindle has a 36 tooth gear with quadrature gear tooth > > > > > > sensors. > > > > > > So > > > > > > > > only > > > > > > > > > > > 144 counts per rev. Partly why it is so noisy. > > > > > > > > > > > > On Sun, Mar 8, 2020, 10:30 PM John Dammeyer > > > > > > > > <jo...@autoartisans.com> > > > > > > > > > > wrote: > > > > > > > Cool. > > > > > > > How is this done? As I recall your spindle didn't have > > > > > > > 1000 > > > > > > pulses per > > > > > > > > > > rev or anything. Does it just calculate the current angle > > > > > > > of the > > > > > > > > > > spindle > > > > > > > > > > > > and then send motion commands to XY? > > > > > > > Thanks > > > > > > > John > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: Sam Sokolik [mailto:samco...@gmail.com] > > > > > > > > Sent: March-08-20 8:18 PM > > > > > > > > To: Enhanced Machine Controller (EMC) > > > > > > > > Subject: Re: [Emc-users] Non-circular boring. Linuxcnc > > > > > > > > style. > > > > > > > > > > > > > > > > Exactly > > > > > > > > > > > > > > > > On Sun, Mar 8, 2020, 10:16 PM John Dammeyer > > > > > > > > > > > > <jo...@autoartisans.com> > > > > > > > > > > > > > > wrote: > > > > > > > > > So was it using the spindle position as you turned it > > > > > > > > > manually > > > > > > to > > > > > > > > move > > > > > > > > > > > > X > > > > > > > > > > > > > > > > and Y? > > > > > > > > > John > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > > From: Sam Sokolik [mailto:samco...@gmail.com] > > > > > > > > > > Sent: March-08-20 7:09 PM > > > > > > > > > > To: Enhanced Machine Controller (EMC) > > > > > > > > > > Subject: [Emc-users] Non-circular boring. Linuxcnc > > > > > > > > > > style. > > > > > > > > > > > > > > > > > > > > Using eoffset functionality - I created a small hal > > > > > > > > > > component > > > > > > > > > > that > > > > > > > > > > > > > > > calculates a polygon based on the tool orientation - > > > > > > > > > > moving x > > > > > > > > > > and y > > > > > > > > > > > > > > > accordingly.. It is based on work that andy did on > > > > > > > > > > his > > > > > > lathe. > > > > > > > > > > > > > You enter tool radius, number of sides, inscribed > > > > > > > > > > radius of > > > > > > the > > > > > > > > > > polygon. > > > > > > > > > > > > > > > > > (still a work in progress - I don't have a way a > > > > > > > > > > easy to set > > > > > > the > > > > > > > > > > tool or > > > > > > > > > > > > > > > > > polygon orientation.) > > > > > > > > > > > > > > > > > > > > based on this formula > > > > > > > > > > https://math.stackexchange.com/a/41954 > > > > > > > > > > > > > > > > > > > > I forgot to copy my current code off the machine.. > > > > > > > > > > will this > > > > > > > > > > week. > > > > > > > > > > > > > > > https://www.youtube.com/watch?v=c9tWtEG1Exc
What you saw, John, when Sam was turning the spindle by hand was the equivalent of starting a G33.1 canned threading cycle and turning off the spindle psu before it got more that a good start. So the xy was still locked to the spindle rotation and would remains locked until it had reached the target depth. This lock is bidirectional, and the xy motions would have sequenced in reverse, which I think Sam did turn it backwards at one point in the video. Conversely, starting the spindle in reverse would have backed the tool upwards. At exactly the same rate it was advancing into the hole turning forward. Just one of several bits of magic that comes with linuxcnc. 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