Re: [Emc-users] C Style Extensions for GCode
Me like! 2010/4/7 Flying Electron Inc sa...@flyingelectron.com Hi All, I wrote a python extension for axis that allows C language style extensions to the GCode if anyone wants to give it a try. http://tsemsb.blogspot.com/2010/04/cgcc-gcode-with-c-constructs.html It allows you to write code like this: // Constants const float X_Holes = 10; const float Y_Holes = 10; // Loop for (float y = 0; y Y_Holes; y++) { for (float x = 0; x X_Holes; x++) { if (x != y) { G00 Z1 G00 X[x] Y[y] G01 Z0 F1 G00 Z1 } } } and it gets translated into regular GCode with o-words. Lawrence -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] C Style Extensions for GCode
it is quite obvious that a good incooporation to emc would be: 1) give them a specific file extenions eg : .cgc 2) have your filter expect the code from standard input e.g. std:cin 3) use the Filter section in theconfig/devicename.ini to form a connection between your extension and the converter 4) Open the files directly in axis. greetings, Bernhard Kubicek On Wed, Apr 7, 2010 at 9:33 AM, Sven Wesley svenne.d...@gmail.com wrote: Me like! 2010/4/7 Flying Electron Inc sa...@flyingelectron.com Hi All, I wrote a python extension for axis that allows C language style extensions to the GCode if anyone wants to give it a try. http://tsemsb.blogspot.com/2010/04/cgcc-gcode-with-c-constructs.html It allows you to write code like this: // Constants const float X_Holes = 10; const float Y_Holes = 10; // Loop for (float y = 0; y Y_Holes; y++) { for (float x = 0; x X_Holes; x++) { if (x != y) { G00 Z1 G00 X[x] Y[y] G01 Z0 F1 G00 Z1 } } } and it gets translated into regular GCode with o-words. Lawrence -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Expanding Foam Near Realtime CNC Control
Karl, Now that's pretty neat! Though I gotta tell ya, that foam on the FedEx package kinda looks like baby doo-doo. What exactly will the finished product look like or do? Will the foam, while in liquid state be poured into some kind of shape? And do you have any control over the rate of and the amount of growth of the foam? Mark On 04/06/2010 10:55 PM, darcys...@gmail.com wrote: Hi All, As I have been querying the list quite a bit with questions I thought I would post a project I have been working on with EMC. It uses the Axis Python Interface to control an Expanding Foam dispensing CNC machine in near-realtime: http://golancourses.net/2010spring/04/05/shaper-dispenser-tests/ To really create 3D forms in an additive way I am still searching for the perfect super-fast-drying foam material... Let me know if you have any thoughts or ideas. Best, Karl -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Axis display home position indicator inquiry
Hello, I'm still having trouble figuring out this graphical problem. A quick recap of the problem can be found at this image. Note the cross hairs. http://i324.photobucket.com/albums/k352/kb1gtt/display.png I installed gnome on the machine and tried it with the VGA display, instead of seeing it with via remote display. On the machine itself, those numbers didn't display at all, so I couldn't determine if the homing cross hair indicators were incorrectly located. Any help would be appreciated. Axis about indicates EMC2/AXIS version 2.3.4 and /etc/issue notes Ubuntu 9.04 Best regards. .. ..-. / -.-- --- ..- / .-. . .- -.. / - .. ... .-.. . - ... / .- ...- . / .- / -... . . .-. Jared Harvey Operator KB1GTT e-mail m...@jaredharvey.com Web page http://jaredharvey.com -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Expanding Foam Near Realtime CNC Control
Now that's pretty neat! Though I gotta tell ya, that foam on the FedEx package kinda looks like baby doo-doo. Yes, but if you paint it gold it makes it look beautiful :) What exactly will the finished product look like or do? Not sure exactly, the idea is to make an interactive fabrication system. Right now I am thinking it could be fun for kids to make small blobby creatures by interpreting their mouse strokes into a certain dispensing pattern. Although I am pretty sure the foam is toxic, and not something you want kids to chew on... Will the foam, while in liquid state be poured into some kind of shape? Interesting idea! But I guess you don't need CNC to do that. And do you have any control over the rate of and the amount of growth of the foam? No, it pretty much does it's own thing. It does smooth out really nicely though. Karl -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] C Style Extensions for GCode
Date: Wed, 7 Apr 2010 10:04:27 +0200 From: Bernhard Kubicek bernhard.kubi...@gmail.com Subject: Re: [Emc-users] C Style Extensions for GCode To: Enhanced Machine Controller (EMC) it is quite obvious that a good incooporation to emc would be: 1) give them a specific file extenions eg : .cgc 2) have your filter expect the code from standard input e.g. std:cin 3) use the Filter section in theconfig/devicename.ini to form a connection between your extension and the converter 4) Open the files directly in axis. greetings, Bernhard Kubicek Gentle persons: These are sensible suggestions, but I have a caveat regarding 1). Use magic file extensions if you must but please don't make them mandatory. That's a convenience that has driven me mad in the M$ world. Regards, Kent -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] HAL module to detect a change...
Andy Pugh wrote: On 7 April 2010 03:00, Gene Heskettgene.hesk...@gmail.com wrote: Sounds like your math needs a mod function. It would drive it to the next index only, I think. Yes, that ought to work too (though I would prefer that the gear didn't move at all when the tooth count was altered). I was all set to do it this way, then failed to find a mod function in HAL either. I think I might look at writing my own function. Maybe make it so you can zero the positions. Whatever HAL setup does the gearing would then be multiplying a new number by 0, which would give 0 as the target position, and there should be no motion. - Steve -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Expanding Foam Near Realtime CNC Control
On 7 April 2010 10:57, Mark Wendt mark.we...@nrl.navy.mil wrote: What exactly will the finished product look like or do? Will the foam, while in liquid state be poured into some kind of shape? And do you have any control over the rate of and the amount of growth of the foam? It expands freely, though possibly quite consistently for a given volume of foam, temperature and atmospheric pressure and humidity. This is worth a read :-) http://www.diyfaq.org.uk/humour.html#foam -- atp -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] C Style Extensions for GCode
I don't know on which magic system you work, but on my linux nearly everything runs on file extension :) It enables a lot of usefull features, e.g. the filtering in emc. On Wed, Apr 7, 2010 at 2:45 PM, Kent A. Reed knbr...@erols.com wrote: Date: Wed, 7 Apr 2010 10:04:27 +0200 From: Bernhard Kubicek bernhard.kubi...@gmail.com Subject: Re: [Emc-users] C Style Extensions for GCode To: Enhanced Machine Controller (EMC) it is quite obvious that a good incooporation to emc would be: 1) give them a specific file extenions eg : .cgc 2) have your filter expect the code from standard input e.g. std:cin 3) use the Filter section in theconfig/devicename.ini to form a connection between your extension and the converter 4) Open the files directly in axis. greetings, Bernhard Kubicek Gentle persons: These are sensible suggestions, but I have a caveat regarding 1). Use magic file extensions if you must but please don't make them mandatory. That's a convenience that has driven me mad in the M$ world. Regards, Kent -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] C Style Extensions for GCode
Interesting. On most of my Unix boxes, I can make a text file executable by simply changing the permissions. I can make a no extension file opened by a certain program by simply changing an environment variable. Unix gives you all the flexibility and options you could ever want or need, and not have to rely on hard and fast file extensions like a Microsoft product. Mark On 04/07/2010 09:15 AM, Bernhard Kubicek wrote: I don't know on which magic system you work, but on my linux nearly everything runs on file extension :) It enables a lot of usefull features, e.g. the filtering in emc. On Wed, Apr 7, 2010 at 2:45 PM, Kent A. Reedknbr...@erols.com wrote: Date: Wed, 7 Apr 2010 10:04:27 +0200 From: Bernhard Kubicekbernhard.kubi...@gmail.com Subject: Re: [Emc-users] C Style Extensions for GCode To: Enhanced Machine Controller (EMC) it is quite obvious that a good incooporation to emc would be: 1) give them a specific file extenions eg : .cgc 2) have your filter expect the code from standard input e.g. std:cin 3) use the Filter section in theconfig/devicename.ini to form a connection between your extension and the converter 4) Open the files directly in axis. greetings, Bernhard Kubicek Gentle persons: These are sensible suggestions, but I have a caveat regarding 1). Use magic file extensions if you must but please don't make them mandatory. That's a convenience that has driven me mad in the M$ world. Regards, Kent -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] C Style Extensions for GCode
On Wed, 2010-04-07 at 08:45 -0400, Kent A. Reed wrote: Date: Wed, 7 Apr 2010 10:04:27 +0200 From: Bernhard Kubicek bernhard.kubi...@gmail.com Subject: Re: [Emc-users] C Style Extensions for GCode To: Enhanced Machine Controller (EMC) it is quite obvious that a good incooporation to emc would be: 1) give them a specific file extenions eg : .cgc 2) have your filter expect the code from standard input e.g. std:cin 3) use the Filter section in theconfig/devicename.ini to form a connection between your extension and the converter 4) Open the files directly in axis. greetings, Bernhard Kubicek Gentle persons: These are sensible suggestions, but I have a caveat regarding 1). Use magic file extensions if you must but please don't make them mandatory. That's a convenience that has driven me mad in the M$ world. Regards, Kent IRRC some types of files use a magic number (identifier) as the first entry in the file. Dave -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Expanding Foam Near Realtime CNC Control
On Wed, 2010-04-07 at 14:08 +0100, Andy Pugh wrote: http://www.diyfaq.org.uk/humour.html#foam Very funny! A degree does not, unfortunately, imply common sense. I think the UV catalyzed foam is a good idea. However, the faster it cures the more localized the heat of reaction will be. From my viewpoint the other reasonable system is to mix the catalyst with the substrate in the nozzle and then either use replaceable nozzles or figure out how to clean the nozzle at the end of the run. Interesting concept. Good luck. Dave -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Expanding Foam Near Realtime CNC Control
Mixing nozzles are available. 3M produces a line of two part adhesives that use throw away motionless mixing nozzles. A readily available solution. Cheers CalG - Original Message - From: dave dengv...@charter.net To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Wednesday, April 07, 2010 10:43 Subject: Re: [Emc-users] Expanding Foam Near Realtime CNC Control On Wed, 2010-04-07 at 14:08 +0100, Andy Pugh wrote: http://www.diyfaq.org.uk/humour.html#foam Very funny! A degree does not, unfortunately, imply common sense. I think the UV catalyzed foam is a good idea. However, the faster it cures the more localized the heat of reaction will be. From my viewpoint the other reasonable system is to mix the catalyst with the substrate in the nozzle and then either use replaceable nozzles or figure out how to clean the nozzle at the end of the run. Interesting concept. Good luck. Dave -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Homming error
Hello... I just wonder how to measure if stepper lost steps and come to idea to use home switch. But I have no idea how to implement this. The idea is simple: 1'st home the machine 2'nd make test moves 3'rd rehome machine In rehoming the EMC just need to read position before setting new home position as is dictated in ini file. and the difference is measure of lost steps... or accuracy problems. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Homming error
On Wed, 2010-04-07 at 16:59 +0200, Slavko Kocjancic wrote: Hello... I just wonder how to measure if stepper lost steps and come to idea to use home switch. But I have no idea how to implement this. The idea is simple: 1'st home the machine 2'nd make test moves 3'rd rehome machine In rehoming the EMC just need to read position before setting new home position as is dictated in ini file. and the difference is measure of lost steps... or accuracy problems. The accuracy of that system depends on how good your home switch is. I've always used a dial indicator against the spindle for that type of measurement. Same concept but easier since you don't have to home. Dave -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Homming error
2010/4/7 dave dengv...@charter.net The accuracy of that system depends on how good your home switch is. I've always used a dial indicator against the spindle for that type of measurement. Same concept but easier since you don't have to home. Dave The accuracy should be good enought. I put the mark on coupler and case. The home is in same step mark near all the time. If not then I know something is wrong. But i have no indication if something is wrong for complete turn. ..and Y coupler is in hidden place hard to see it. so for now I use g0z0 g0x0y0 and check the coupler. Rehome and report after that should be easyer. (and add a few lines into homming procedure) -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Expanding Foam Near Realtime CNC Control
There is also a 'minimally expanding foam' available at big box home improvement stores for putting in confined spaces like around existing door, etc. It is for places where excessive expansion can cause problems (like in the ends of canoe's! ... great post ... I loved the visual). -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] C Style Extensions for GCode
On Tue, Apr 6, 2010 at 7:56 PM, Unfocused Brain r...@unfocusedbrain.com wrote: Using an existing language is the approach I used. I wrote a simple library for PHP, BASIC and JavaScript. Integrating any language into the EMC2 user interface is trivial. Generating useful G-Code is the real trick. Here is a link to the basic version: http://www.unfocusedbrain.com/projects/2010/basictogcode/ I've also started something along these lines in perl: http://www.davehylands.com/Machinist/CNC/Wheel-Widener-1/Small/Hex-Sim.html In my case, I wanted to be able to build path elements up and then perform operations on them, like rotating them. This particular part was done using a rotary axis to maintain concentricity, but my simulator didn't support the rotary axis, so I was able to generate a XYZ-only variant for simulation purposes. -- Dave Hylands Shuswap, BC, Canada http://www.DaveHylands.com/ -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Homming error
On 4/7/2010 5:59 PM, Slavko Kocjancic wrote: Hello... I just wonder how to measure if stepper lost steps and come to idea to use home switch. But I have no idea how to implement this. The idea is simple: 1'st home the machine 2'nd make test moves 3'rd rehome machine In rehoming the EMC just need to read position before setting new home position as is dictated in ini file. and the difference is measure of lost steps... or accuracy problems. I would connect the home input to the probe input. Home first, then do some moves, then do a probe towards zero, and look at the point where the probe (home switch ) tripped. Note: you might have to have this connection inactive during homing (maybe it complains that the probe has been hit without a probing move..). You can achieve that in various ways (either an and2 with a digital output set by M5x or simply connect the home switch with the probe after you did the homing, etc). Regards, Alex No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 9.0.801 / Virus Database: 271.1.1/2796 - Release Date: 04/07/10 09:32:00 -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] HAL module to detect a change...
On Wednesday 07 April 2010, Andy Pugh wrote: On 7 April 2010 03:00, Gene Heskett gene.hesk...@gmail.com wrote: Sounds like your math needs a mod function. It would drive it to the next index only, I think. Yes, that ought to work too (though I would prefer that the gear didn't move at all when the tooth count was altered). I was all set to do it this way, then failed to find a mod function in HAL either. Well, it seems to me that you would have to have an index position for both motions. Then it should do the mod result move to get to its own index when the index of the driven axis is triggered. That would at least put the zeroeth tooth in a constant position, which because of keyway cuts and such, might be a desirable thing. I think I might look at writing my own function. Some languages use the % sign as a mod function. If its not there, then I suppose it can be cobbled up in 4 or 5 lines of gcode by a loop that subtracts the count for a full turn from the present position count until it either goes below zero, or is less than the full turn count. But I babble a lot too. ;-) -- Cheers, Gene There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. -Ed Howdershelt (Author) The trouble with doing something right the first time is that nobody appreciates how difficult it was. -- Walt West -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] HAL module to detect a change...
On 7 April 2010 19:37, Gene Heskett gene.hesk...@gmail.com wrote: Some languages use the % sign as a mod function. If its not there, then I suppose it can be cobbled up in 4 or 5 lines of gcode The spindles are linked in HAL, not on G-Code. This means that they keep synch even when there is no program running. However, HAL doesn't have any operators at all. Not only is there no mod, there is not even a divide. There is a mult2 and an invert, though. -- atp -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] C Style Extensions for GCode
Thanks for all the comments about CGCC! Lots of different ways to skin a cat. Lots of different languages that can be used to generate GCode too. I don't think any one language is better then any other. I added a new page with more information on what CGCC can actually do http://tsemsb.blogspot.com/2010/04/some-cgcc-features-and-examples.html * C Style Comments * Declare Functions with Return Values * Evaluate expressions inside GCode * #Include is supported * Assignment to variables from native GCode Numbered Variables * Directly Emit GCode with the __gcode__ keyword etc. One of the reasons I tacked on the extensions to existing GCode is because I had lots of existing GCode that I didn't want to throw away. With the extensions I could reuse a lot of my known working gcode. As to how I use it, I have a collection of header .h files with lots of prebuilt functions that I just include in all my cgc files. The library functions handle things like probing, tool offset, etc. I have a file called tools.h that contains all the info for my different tools, so I can for example call TOOL_CHANGE(END_MILL_0_375) to change to a predefined 3/8 end mill and it will automatically set the tool height, start the coolant, and set the correct spindle speed. Another example is TOOL_CHANGE(PROBE) to change to the probing tool, it knows to set the new tool height but not to turn on the coolant or turn on the spindle. Just a common place to keep common code. So as I find better feed and plunge speeds I just update then in the tools.h file and the change propagates to all my programs for each tool. Lawrence On Tue, Apr 6, 2010 at 4:01 PM, Flying Electron Inc sa...@flyingelectron.com wrote: Hi All, I wrote a python extension for axis that allows C language style extensions to the GCode if anyone wants to give it a try. http://tsemsb.blogspot.com/2010/04/cgcc-gcode-with-c-constructs.html It allows you to write code like this: // Constants const float X_Holes = 10; const float Y_Holes = 10; // Loop for (float y = 0; y Y_Holes; y++) { for (float x = 0; x X_Holes; x++) { if (x != y) { G00 Z1 G00 X[x] Y[y] G01 Z0 F1 G00 Z1 } } } and it gets translated into regular GCode with o-words. Lawrence -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Homming error
2010/4/7 Alex Joni alex.j...@robcon.ro On 4/7/2010 5:59 PM, Slavko Kocjancic wrote: Hello... I just wonder how to measure if stepper lost steps and come to idea to use home switch. But I have no idea how to implement this. The idea is simple: 1'st home the machine 2'nd make test moves 3'rd rehome machine In rehoming the EMC just need to read position before setting new home position as is dictated in ini file. and the difference is measure of lost steps... or accuracy problems. I would connect the home input to the probe input. Home first, then do some moves, then do a probe towards zero, and look at the point where the probe (home switch ) tripped. Note: you might have to have this connection inactive during homing (maybe it complains that the probe has been hit without a probing move..). You can achieve that in various ways (either an and2 with a digital output set by M5x or simply connect the home switch with the probe after you did the homing, etc). Regards, Alex Can't do that as I have home as limits. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] HAL module to detect a change...
On 7 April 2010 20:04, Andy Pugh a...@andypugh.fsnet.co.uk wrote: The spindles are linked in HAL, not on G-Code. This means that they keep synch even when there is no program running. This is what worked: using ddt to spot a change in the tooth count, then resetting the encoder and latching a new offset into the stepgen using a mux2 wired to itself as a floating-point version of the sample-and-hold function. (there is no way to reset a stepgen to zero, which would have been simpler). # Electronic gearing of stepgen position to encoder position net invratio invert.0.out = scale.0.gain = ddt.0.in # the ratio is linked in the postgui.hal to invert.0.in net spindlepos hm2_7i43.0.encoder.00.position = scale.0.in net gearpos scale.0.out = hm2_7i43.0.stepgen.03.position-cmd net aenable axis.3.amp-enable-out = hm2_7i43.0.stepgen.03.enable = hm2_7i43.0.gpio.044.out # Reset Logic. Zeroes the encoder and stores the current stepgen position as an offset. # This is to prevent the gear rotating on tooth-count changes (often quite interminably) net scale-change ddt.0.out = abs.0.in net abs-scale-changeabs.0.out = comp.0.in1 setp comp.0.in0 0.01# this is looking for changes in 1/teeth as the raw value is not available until postgui.hal has run net reset-spindles comp.0.out = hm2_7i43.0.encoder.00.reset = mux2.0.sel # this bit toggles high on a ratio change net sample-hold mux2.0.out = mux2.0.in0= scale.0.offset # the mux is wired to itself as a floating point sample-and-hold net gear-spindle-position hm2_7i43.0.stepgen.03.position-fb = mux2.0.in1 # wire the stepgen position to the sample and hold, and thence to the scale -- atp -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Homming error
Statistically you will loose as many steps going forward as you will going backwards, sending the machine to 0,0 will not guarantee that you have not lost and made up steps throughout your job. Greg - Original Message - From: Slavko Kocjancic esla...@gmail.com To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Wednesday, April 07, 2010 5:38 PM Subject: Re: [Emc-users] Homming error 2010/4/7 dave dengv...@charter.net The accuracy of that system depends on how good your home switch is. I've always used a dial indicator against the spindle for that type of measurement. Same concept but easier since you don't have to home. Dave -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Expanding Foam Near Realtime CNC Control
Thanks for all the useful information everyone. I'll be sure to investigate the UV adhesive and different types of foam. On Apr 7, 2010, at 12:17 PM, j...@coats.org wrote: There is also a 'minimally expanding foam' available at big box home improvement stores for putting in confined spaces like around existing door, etc. It is for places where excessive expansion can cause problems (like in the ends of canoe's! ... great post ... I loved the visual). -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Homming error
In my experience with steppers that are running on the edge (mechanically or electrically), they almost never lose steps the same amount in both directions. Best thing I can think of doing is to put a 1 dial indicator on the questionable axis, write a test program or better yet, patch an existing one, so the axis deflects the indicator and pauses there, then goes away from the indicator and runs a lengthy program away from the indicator then have it come back and touch the indicator at the end of the run. If you do that right, you can loop the program and let it run for a while, if anything is out of wack, that will show up as a changing indicator position. You can work the home thing out also, but the dial indicator thing is is a lot more flexible IMO and works on almost all machines.. If your machine is way out of wack, be careful how you mount your indicator so it doesn't get wiped out if the machine is erractic. Dave On 4/7/2010 4:39 PM, Belli Button wrote: Statistically you will loose as many steps going forward as you will going backwards, sending the machine to 0,0 will not guarantee that you have not lost and made up steps throughout your job. Greg - Original Message - From: Slavko Kocjancicesla...@gmail.com To: Enhanced Machine Controller (EMC)emc-users@lists.sourceforge.net Sent: Wednesday, April 07, 2010 5:38 PM Subject: Re: [Emc-users] Homming error 2010/4/7 davedengv...@charter.net The accuracy of that system depends on how good your home switch is. I've always used a dial indicator against the spindle for that type of measurement. Same concept but easier since you don't have to home. Dave -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] HAL module to detect a change...
Andy Pugh wrote: On 7 April 2010 19:37, Gene Heskett gene.hesk...@gmail.com wrote: Some languages use the % sign as a mod function. If its not there, then I suppose it can be cobbled up in 4 or 5 lines of gcode The spindles are linked in HAL, not on G-Code. This means that they keep synch even when there is no program running. However, HAL doesn't have any operators at all. Not only is there no mod, there is not even a divide. There is a mult2 and an invert, though. Since these are floating-point variables, multiplying by the inverse will work. So, if you want one axis to run at 1/12 of the other one, multiply by a scale factor of .083 Jon -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] HAL module to detect a change...
On Wed, 2010-04-07 at 20:04 +0100, Andy Pugh wrote: ... snip However, HAL doesn't have any operators at all. Not only is there no mod, there is not even a divide. There is a mult2 and an invert, though. Would this help? http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?ContributedComponents#modmath_Modmath_functions_only_mod_dir_so_far (Short URL) http://alturl.com/e558 -- Kirk Wallace http://www.wallacecompany.com/machine_shop/ http://www.wallacecompany.com/E45/index.html California, USA -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Building on Ubuntu 9.10
I'm trying to build EMC2 on Ubuntu 9.10, Kernel 2.6.31. When I run ./emc2-insatll.sh, I get this: Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: emc2: Depends: python ( 2.6) but 2.6.4-0ubuntu1 is to be installed Depends: python2.5-xml but it is not installable E: Broken packages How do I correct this? Thanks for the help! -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users