On Wednesday 13 December 2017 11:37:57 Kenneth Lerman wrote: > Hi Gene, > > It's been a long time since I've looked at the code, and I don't have > it in front of me. > > But... > > > 1. The file is named _clear_offset.ngc -- isn't it (you didn't > leave out the .ngc)?
You do in a call syntax. > 2. As I recall, the file is opened the first time it is referenced > (and memory mapped). After that, the copy in memory is used. That > means if you changed the file to make a correction, it won't be > noticed until the next time linuxcnc is restarted. > > Just some possibilities. > > Good luck (and happy holidays). > > Ken Hi Kenneth; It actually turned out to be pebkac, combined with bit rot or something in mc. Toss in that I changed the name of the file, mainly because I keep subroutines in a subdir of nc_files. but forgot to change the internal name of the subroutine to match. mc was acting funkity was the icing on the cake. So there were several mistakes made, all of which were mine at the end of the day. Once all that was sorted, Its all at least execing when I click the buttons. I have checked both camcenter3 and camcenter4, but 4 is the only one that actually moves the machine. I wrote a newcamsw.ngc to replace camon, that toggles the machine from tool at coord, to camera at coord, and back in one state tallied button, and I've commented the debugs and msg's out unless its a real error, using narrow leds under the buttons to tally the state instead of msg's that just get erased because they are covering the buttons. Now my biggest problem is in learning how to use it properly since there didn't seem to be a use tutorial for us dummy's to consult. So ATM I have big John T's align kit under your buttons, the 5th thru 8th of the MDI_COMMAND's in the ini file. But because I'm using M64P# and M65P# to control all the leds, I had to run motion with a num_dio=12 to get enough signal paths. I need to adjust the lengths of the leds a bit so they better match the buttons, but thats minor stuff. I'll use the align things to match up something on the table, like a pcb. Otherwise I need to make a keyed to the table micarta pallet to hold each size of pcb. I may write a simple auto x/y zero based on some code I wrote for my first pallets I made, years ago now, that registered the front and back sides of a pcb well enough that I could set the drill file for 60% of the pcb thickness, turn it over and drill from the other side, with no detectable offsets in the middle of the boards thickness. I thought I was doing pretty good, but I think these 8 buttons will let me replace the pallets with a bare slab of micarta for sacrificial, with the pcb mounted to it with double-sided tape. Making the pallets was at least half a days work for each one since I was putting a row of 0-80 flat head screws around the edge of the pocket to hold the pcb down well with the angled underside of the screw heads, and now I can just use double sided scotch tape, and if it not well aligned, it will be in 10 seconds plus table moving time. Whats not to like? This is all good stuff when combined with CamPY for the needed machine vision. It should speed up the production of some of my hair-brained ideas, and that will no doubt encourage me to do more of them. Be aware that installing or upgrading NativeCAM destroy's CamPY, so you have to rerun its setup script again to restore CamPY to working status after a NativeCAM update. And all this plus careing for the missus, keeps me out of the bars don'tcha know. Thanks Kenneth & happy holidays to you and yours. 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) Genes Web page <http://geneslinuxbox.net:6309/gene> ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
