Re: [Emc-users] long running proggy
On Thursday, 31 March 2022 12:01:52 EDT andy pugh wrote: > On Thu, 31 Mar 2022 at 03:13, gene heskett wrote: > > Yes I could, but I'd like to make it automatic since logging to the > > screen isn't copy/pastable. > > (log, ) logs to a file, not to the screen. > > Though I think you are over-thinking this, even logging to the screen > should work, the iteration number is likely to be a single digit > integer, and copy//paste seems unnecessary. > If I was using an iteration number Andy, but I rarely do. What I normally do is find the start value. and subtract the end value, giving a total cut. Then I sometimes experiment calculating the increment, The actual loop ending test is if the last cut== the stop target. So its always a floating point, and it always stops exactly on target. That pair of floating point numbers is exactly what I want to save and restore. Experimentally since my last post I've played in that memory range g52| g92 uses, and any modification including writing back the zero read, triggers a showstopper error message when machine motion is re-enabled. I am not yet in a condition to rehome the machine, as it does have volatable homes due to powering down everything when motion is disabled. I'm 3d printing a series of footprints for drilling guides while I build an electronics box big enough to hide both psu's and the 4 axis drivers. Take care and stay well. > -- > atp > "A motorcycle is a bicycle with a pandemonium attachment and is > designed for the especial use of mechanical geniuses, daredevils and > lunatics." > — George Fitch, Atlanta Constitution Newspaper, 1912 > > > ___ > 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, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] long running proggy
On Thu, 31 Mar 2022 at 03:13, gene heskett wrote: > Yes I could, but I'd like to make it automatic since logging to the > screen isn't copy/pastable. (log, ) logs to a file, not to the screen. Though I think you are over-thinking this, even logging to the screen should work, the iteration number is likely to be a single digit integer, and copy//paste seems unnecessary. -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] long running proggy
On Thursday, 31 March 2022 02:08:51 EDT Nicklas SB Karlsson wrote: > > Worked on a saw a mill about 25 years ago, some of the woods imported > from the east had absorbed grenade shards. Yikes. That calls for a lot more sensitive metal detector. And 100% inspection... 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, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] long running proggy
Den 2022-03-31 kl. 04:57, skrev gene heskett: On Wednesday, 30 March 2022 21:40:40 EDT Chris Albertson wrote: If the problem is that the tool dulls before the job is finished, then write-in some tool changes. The process stops periodically, you inspect the cutter, change it or not, then it continues. My guess is that the cutter will last long enough to cut 100 of these hardwood screws. HSS mill work cutters used in shaper tables can do hundreds of feet of trim work and carbide cutters last nearly forever even in production environments. The guy I bought that plank from tells me that hard maple is gettng more abrasive since his grandfather started the business a century back. He blames it on the tree absorbing some of the airborn dirt it didn't have to contend with 150 years ago. And since I'm spinning an 1/16" round nose with a relative small DOC to get a smoother surface, he assured me I will be changing tools. Worked on a saw a mill about 25 years ago, some of the woods imported from the east had absorbed grenade shards. ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] long running proggy
On Wednesday, 30 March 2022 21:40:40 EDT Chris Albertson wrote: > If the problem is that the tool dulls before the job is finished, then > write-in some tool changes. The process stops periodically, you > inspect the cutter, change it or not, then it continues. > > My guess is that the cutter will last long enough to cut 100 of these > hardwood screws. HSS mill work cutters used in shaper tables can do > hundreds of feet of trim work and carbide cutters last nearly forever > even in production environments. > The guy I bought that plank from tells me that hard maple is gettng more abrasive since his grandfather started the business a century back. He blames it on the tree absorbing some of the airborn dirt it didn't have to contend with 150 years ago. And since I'm spinning an 1/16" round nose with a relative small DOC to get a smoother surface, he assured me I will be changing tools. > Years ago my father made some wooden threads. he had a tap and die set > for wood. No idea where to get one. I used to see them, but for smaller threads, 3/4 inch or so, adv in Fine Woodworkings classifieds, but that memory is likely a decade + old now. I'm using PETG to make the nuts and am surprised at the relative slickeryness of PETG of its turning its own difference form, shrunk half a mm, and also made from PETG. Obviously much harder than teflon, but just as slick without any lube as teflon would be. If I can make the screw to that exact shape, bake a coat of carnaba wax into it, it ought to make a vise screw you can pass on to your great grandchild if he gets interested in carving wood for a livelyhood. Some are wood magicians, such as Sam Maloof was. He was an immigrant from one of Isreal's neighbors, settled around Redwood city in Ca. and started making classical wooden rocking chairs. He wound up making them for several presidents starting with J. F. Kennedy. One he made for his wife that was sold at Sothby's after she died, the bidding finally stopped at $125,000. She had left instructions that the proceeds were to go to a charity. Congress declared him as a National Treasure about 10 years before he passed at 92, working in his shop till just a few days before he passed. Made of California's best walnut, he didn't take "vacations" but he did travel, to visit the chairs he had made so if they were getting a loose joint or? he'd ship them back to his shop and do whatever to make it as good as new. Usually gratis. Those are awful big shoes for anyone to aspire to fill. > On Wed, Mar 30, 2022 at 4:16 PM andy pugh wrote: > > On Wed, 30 Mar 2022 at 23:59, gene heskett wrote: > > > That could handle the writing of a progress file doing exactly what > > > I > > > want. But that in turn would need to be able to read that file on a > > > restart. And be able to set zero defaults IF that file doesn't > > > exist. > > > > > > Can LinuxCNC do that ?? > > > > No, but you could. > > > > If you know where your loop counter had got to, you could edit the > > G-code to initialise it there. > > > > -- > > atp > > "A motorcycle is a bicycle with a pandemonium attachment and is > > designed for the especial use of mechanical geniuses, daredevils and > > lunatics." > > — George Fitch, Atlanta Constitution Newspaper, 1912 > > > > > > ___ > > Emc-users mailing list > > Emc-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/emc-users > > -- > > Chris Albertson > Redondo Beach, California > > ___ > 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, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] long running proggy
On Wednesday, 30 March 2022 19:12:30 EDT andy pugh wrote: > On Wed, 30 Mar 2022 at 23:59, gene heskett wrote: > > That could handle the writing of a progress file doing exactly what I > > want. But that in turn would need to be able to read that file on a > > restart. And be able to set zero defaults IF that file doesn't exist. > > > > Can LinuxCNC do that ?? > > No, but you could. > > If you know where your loop counter had got to, you could edit the > G-code to initialise it there. Yes I could, but I'd like to make it automatic since logging to the screen isn't copy/pastable. Is my idea of using the memory in the g92 block for this storage, starting at #5210 dead in the water? If it is DITW, keeping in mind I haven't used that gcode feature, for what reason? Thanks Andy. Take care & stay well. 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, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] long running proggy
If the problem is that the tool dulls before the job is finished, then write-in some tool changes. The process stops periodically, you inspect the cutter, change it or not, then it continues. My guess is that the cutter will last long enough to cut 100 of these hardwood screws. HSS mill work cutters used in shaper tables can do hundreds of feet of trim work and carbide cutters last nearly forever even in production environments. Years ago my father made some wooden threads. he had a tap and die set for wood. No idea where to get one. On Wed, Mar 30, 2022 at 4:16 PM andy pugh wrote: > On Wed, 30 Mar 2022 at 23:59, gene heskett wrote: > > > That could handle the writing of a progress file doing exactly what I > > want. But that in turn would need to be able to read that file on a > > restart. And be able to set zero defaults IF that file doesn't exist. > > > > Can LinuxCNC do that ?? > > No, but you could. > > If you know where your loop counter had got to, you could edit the > G-code to initialise it there. > > -- > atp > "A motorcycle is a bicycle with a pandemonium attachment and is > designed for the especial use of mechanical geniuses, daredevils and > lunatics." > — George Fitch, Atlanta Constitution Newspaper, 1912 > > > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > -- Chris Albertson Redondo Beach, California ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] long running proggy
On Wed, 30 Mar 2022 at 23:59, gene heskett wrote: > That could handle the writing of a progress file doing exactly what I > want. But that in turn would need to be able to read that file on a > restart. And be able to set zero defaults IF that file doesn't exist. > > Can LinuxCNC do that ?? No, but you could. If you know where your loop counter had got to, you could edit the G-code to initialise it there. -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] long running proggy
On Wednesday, 30 March 2022 10:04:54 EDT andy pugh wrote: > On Tue, 29 Mar 2022 at 07:36, gene heskett wrote: > > So, is there an mcode or similar that I could put in my program to > > save the current position it has attained > > The G-code could log the current iteration number. > > (LOGOPEN, ...) > (LOG, #1) > > http://linuxcnc.org/docs/stable/html/gcode/overview.html#_logging > That could handle the writing of a progress file doing exactly what I want. But that in turn would need to be able to read that file on a restart. And be able to set zero defaults IF that file doesn't exist. Can LinuxCNC do that ?? So could a memory variable that does not get cleared by a re-run. Something that would be made known to LinuxCNC but is not zeroed or preset by making it visible. But, here is something else: If g52 or g92 and its ilk are not used in a program, is it safe to use a couple of those #numerical locations for storage? It rather sounds like they are free for other uses, but if not ever used, do they contain trash at powerup? In that event, one could write a program to clear them that is run by actually running it, or perhaps tying it to an mdi function. Or even by running g92.1 from the mdi screen, which I assume clears that whole block of #locations. So the only one that untouchable is #5210. I could then use 3 of the other locations for exactly what I want, they are already known to LinuxcNC but ignored if #5210 is cleared. Right/wrong? Persistence, even over a non-powerdown reboot, is quite important. Thank you. > -- > atp > "A motorcycle is a bicycle with a pandemonium attachment and is > designed for the especial use of mechanical geniuses, daredevils and > lunatics." > — George Fitch, Atlanta Constitution Newspaper, 1912 > > > ___ > 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, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] long running proggy
On Tue, 29 Mar 2022 at 07:36, gene heskett wrote: > So, is there an mcode or similar that I could put in my program to save > the current position it has attained The G-code could log the current iteration number. (LOGOPEN, ...) (LOG, #1) http://linuxcnc.org/docs/stable/html/gcode/overview.html#_logging -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] long running proggy
On Tuesday, 29 March 2022 02:32:24 EDT gene heskett wrote: > Greetings all; > > In thinking about this vise screw project, I see a need to be able to > restart where I left off if I stop it to replace a dull or broken tool. > I'll have a TLO corrector at the startup of course, but it would be > handy to save each new position as it progresses thru the loop, > marking where it starts this pass, and AFTER doing the tlo > corrections, I could re-read that last loop yz value and restore the > working values so it could start the next iteration at that point. > > So, is there an mcode or similar that I could put in my program to save > the current position it has attained, stop it and change to a fresh > tool, and then restore to that same point with a fresh tool? I found paramsaver6.zip in the wiki. Looks like severe overkill, but also looks like it can be programmed to do what I want. Has anyone else used it, and might share some advice? For what it purports to do, the man page is pretty sparse. Thanks all. 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, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] long running proggy
Greetings all; In thinking about this vise screw project, I see a need to be able to restart where I left off if I stop it to replace a dull or broken tool. I'll have a TLO corrector at the startup of course, but it would be handy to save each new position as it progresses thru the loop, marking where it starts this pass, and AFTER doing the tlo corrections, I could re-read that last loop yz value and restore the working values so it could start the next iteration at that point. So, is there an mcode or similar that I could put in my program to save the current position it has attained, stop it and change to a fresh tool, and then restore to that same point with a fresh tool? Thanks all. 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, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users