Re: [Emc-users] Homing - zeroing - touch off
Yes, I have my stuff in separate hal files and linked in too like the joystick pendant..but I've changed values in my ini file too that I just don't want to risk it. The ini and hal files are pretty natural for me to edit directly anyway and I like knowing emc under the hood. Do you know where to change the what happens during a toolchange? I thought I saw it somewhere but know I cant remember. It would be useful to have the prompting and tool height probing/setting part of the tool change operation itself. Possible? -Original Message- From: Andy Pugh [mailto:a...@andypugh.fsnet.co.uk] Sent: Tuesday, October 27, 2009 8:42 PM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Homing - zeroing - touch off 2009/10/27 Colin MacKenzie cfmacken...@rtitampa.com: [Advanced] I had custom hal mods, so I running stepconf is not an option for me. If you have custom mods like a joystick pendant email me and I can send you the two lines. These lines go in your configname.hal. [/Advanced] You can keep your custom stuff in seperate files. I have custom.hal which unlinks some stepconf signals and filters them, and joypad.hal that connects the joystick to halui pins. I can still swap pins around in stepconf, but without breaking the custom stuff. -- atp -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Homing - zeroing - touch off
2009/10/28 Colin MacKenzie cfmacken...@rtitampa.com Yes, I have my stuff in separate hal files and linked in too like the joystick pendant..but I've changed values in my ini file too that I just don't want to risk it. The ini and hal files are pretty natural for me to edit directly anyway and I like knowing emc under the hood. Then make a copy of the original file and diff them. -S -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Homing - zeroing - touch off
Jeff I read your post with great interest. For me, it gave some very good insight. Like you, I do not have a repeatable tool length. I was wondering if I could get a kind of switch doing my touching off of the z-axis. The idea is as follows: - I have a parallel port based 3 axis mill driven by emc2 2.3.3 (soon 2.3.4) - I have a vacuum table, that is well enough even (I remill the surface when the wear plate needs to be replaced) - x and y are also repeatably within reference distance from home position - If I would add a small metal plate (say alu) into my vac table (could veven be on an spring mount), connect it to a wire, I could close an electric circuit when the tool touches that plate. If I was able to stop z-motion based on the closed electrical curcuit (we talk about say dc 4-6V) immediately, I would not have to jog to the position each time. This saves considerable time for me and sounds much more reliable to me as manual jogging. How would I be able to implement this? greets Chris -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Homing - zeroing - touch off
On Tuesday 27 October 2009, Chris Epicier wrote: Jeff I read your post with great interest. For me, it gave some very good insight. Like you, I do not have a repeatable tool length. I was wondering if I could get a kind of switch doing my touching off of the z-axis. The idea is as follows: - I have a parallel port based 3 axis mill driven by emc2 2.3.3 (soon 2.3.4) - I have a vacuum table, that is well enough even (I remill the surface when the wear plate needs to be replaced) - x and y are also repeatably within reference distance from home position - If I would add a small metal plate (say alu) into my vac table (could veven be on an spring mount), connect it to a wire, I could close an electric circuit when the tool touches that plate. I would not recommend using alu for that due to the oxide coat that forms on the alu about 100 microseconds after it is scratched to expose the metal. To use it that way would require enough contact force to penetrate this oxide layer and actually make a connection at 3 to 4 volts of applied voltage. That contact pressure could be sufficient to damage the edge of the bit, reducing its life. A gold or silver plated copper contact would be hundreds of times more reliable at touch pressures that would not damage the surface or the bit. A piece of the gold plated contact finger pattern sawn from an old computer card and glued to the reference point, with the sensor wire soldered to it would make a good contact than would be very repeatable at least until the cleaning of the area wore away the gold flash. If I was able to stop z-motion based on the closed electrical curcuit (we talk about say dc 4-6V) immediately, I would not have to jog to the position each time. This saves considerable time for me and sounds much more reliable to me as manual jogging. Perhaps some use might be made of the G38.2 command by somehow linking the contact detection to the axis zero? I'm not an expert on that, don't even play one on tv, so I'll let the smarter folks here address that. :) But, when they have sorted this, its definitely something I could use too. How would I be able to implement this? greets Chris -- 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 NRA is offering FREE Associate memberships to anyone who wants them. https://www.nrahq.org/nrabonus/accept-membership.asp Beware of low-flying butterflies. -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Homing - zeroing - touch off
2009/10/27 Gene Heskett gene.hesk...@gmail.com On Tuesday 27 October 2009, Chris Epicier wrote: ... - I have a parallel port based 3 axis mill driven by emc2 2.3.3 (soon 2.3.4) - I have a vacuum table, that is well enough even (I remill the surface when the wear plate needs to be replaced) - x and y are also repeatably within reference distance from home position - If I would add a small metal plate (say alu) into my vac table (could veven be on an spring mount), connect it to a wire, I could close an electric circuit when the tool touches that plate. I would not recommend using alu for that due to the oxide coat that forms on the alu about 100 microseconds after it is scratched to expose the metal. To use it that way would require enough contact force to penetrate this oxide layer and actually make a connection at 3 to 4 volts of applied voltage. That contact pressure could be sufficient to damage the edge of the bit, reducing its life. A gold or silver plated copper contact would be hundreds of times more reliable at touch pressures that would not damage the surface or the bit. ... The touch of plates I have been using for years are normal steel, both standard and stainless. They are spring loaded. works like a charm. Regards, Sven -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Homing - zeroing - touch off
On Tuesday 27 October 2009, Sven Wesley wrote: 2009/10/27 Gene Heskett gene.hesk...@gmail.com On Tuesday 27 October 2009, Chris Epicier wrote: ... - I have a parallel port based 3 axis mill driven by emc2 2.3.3 (soon 2.3.4) - I have a vacuum table, that is well enough even (I remill the surface when the wear plate needs to be replaced) - x and y are also repeatably within reference distance from home position - If I would add a small metal plate (say alu) into my vac table (could veven be on an spring mount), connect it to a wire, I could close an electric circuit when the tool touches that plate. I would not recommend using alu for that due to the oxide coat that forms on the alu about 100 microseconds after it is scratched to expose the metal. To use it that way would require enough contact force to penetrate this oxide layer and actually make a connection at 3 to 4 volts of applied voltage. That contact pressure could be sufficient to damage the edge of the bit, reducing its life. A gold or silver plated copper contact would be hundreds of times more reliable at touch pressures that would not damage the surface or the bit. ... The touch of plates I have been using for years are normal steel, both standard and stainless. They are spring loaded. works like a charm. I would expect that steel would work quite well also, I was, as the electronics tech, pointing out the ideal situation. In either event I'd assume that a fine bit of swarf clinging to the bit might give a false indication occasionally if the bit was magnetize not blown clean with an air nozzle. But that is just plain common sense, so my mentioning it is probably overstating the obvious. :) Regards, Sven --- --- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- 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 NRA is offering FREE Associate memberships to anyone who wants them. https://www.nrahq.org/nrabonus/accept-membership.asp It's God. No, not Richard Stallman, or Linus Torvalds, but God. (By Matt Welsh) -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Homing - zeroing - touch off
Chris Epicier wrote: Jeff I read your post with great interest. For me, it gave some very good insight. Like you, I do not have a repeatable tool length. I was wondering if I could get a kind of switch doing my touching off of the z-axis. The idea is as follows: - I have a parallel port based 3 axis mill driven by emc2 2.3.3 (soon 2.3.4) - I have a vacuum table, that is well enough even (I remill the surface when the wear plate needs to be replaced) - x and y are also repeatably within reference distance from home position - If I would add a small metal plate (say alu) into my vac table (could veven be on an spring mount), connect it to a wire, I could close an electric circuit when the tool touches that plate. If I was able to stop z-motion based on the closed electrical curcuit (we talk about say dc 4-6V) immediately, I would not have to jog to the position each time. This saves considerable time for me and sounds much more reliable to me as manual jogging. How would I be able to implement this? Take a look at the tool-length-probe.ngc file in your nc_files directory. It shows a method that can be used to probe lengths after tool changes (or whenever you want really). You just call a subroutine to do the offsetting. This method does not change Z, it changes the tool length offset. - Steve -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Homing - zeroing - touch off
On Tue, Oct 27, 2009 at 01:43:49PM +0100, Sven Wesley wrote: The touch of plates I have been using for years are normal steel, both standard and stainless. They are spring loaded. works like a charm. I've set aside a used tungsten carbide [1] hand planer blade to use in exactly that way, i.e. spring-loaded up underneath a machined lip [2] at each end. If the lips are a measured distance x up from the bottom of the containing block, then I should be able to plonk it on top of a workpiece, and touch off relative to there, or put it on the table, if needing to machine to thickness. A lump of metal's lying about too, but it still hasn't changed into the desired shape. I have some mylar film, to go in between the bottom of the block and a flat wear plate, held on with countersunk nylon screws. Then it's insulated. That's needed because the tool isn't, and it doesn't seem convenient to insulate the workpiece. Having not read any details on how EMC handles a touch-off input, I'm all ears eyes on any good oil on that subject, too. [1] TC should withstand a lot of gentle tool impacts without cratering, i.e. it should stay flat. [2] The lips will need to be sufficiently far apart to allow one tooth of a face cutter onto the touch-plate, but a load spreader bar might need to go under the thin planer blade, to reduce bowing, if there's only one central spring. (That, or two springs.) Erik -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Homing - zeroing - touch off
I just wired up a touch probe last weekend for the first time. It was pretty easy. No special wiring, I simply wired a gator clip to one of the inputs on the parallel port (but if I touch the probe to a bad spot itll fry the input so an opto-isolator is inevitable.). My whole machine is connected to ground (via the spindle controller) so clipping the gator clip to my metal workpiece is enough to set depth. To test, I outputted a point cloud log and imported into solidworks, it created a virtual version of my bent plate with a coin on it. My goal, however, is to use it to set tool height and to create corrective point clouds for engraving and pcb milling. Setting up emc2 for the probe is childs play. Just rerun stepconf wizard and specify the probe port and recommend using the input in inverted mode (probe active when wire connected to ground). [Advanced] I had custom hal mods, so I running stepconf is not an option for me. If you have custom mods like a joystick pendant email me and I can send you the two lines. These lines go in your configname.hal. [/Advanced] Once you have your new config generated, load emc and go to Machine | Hal Meter menu. Choose the signals tab and find the probe signal and select it. You will see the other meter window show the TRUE/FALSE state of the probe signal. If touching ground toggles the state you are set. Whether you are configured normal or inverted signal, the probe signal should say TRUE when the probe is active. If it's backwards, go back to config and invert the port. Now you can test the G38.2-6 commands. Easy to use, they feed using the feed rate until the probe is TRUE or if desired until the probe is FALSE. Emc variables are also set to the XYZ location when probe was toggled so you can read them, compute based on them, or log them to a file. Important: When the probe is detected, the Z axis still has to obey the configured deceleration speed for your machine. (Else risk lost steps.) So, if you set higher feed rates, the probe will crash into the material. Why didn't I make this probe long ago? I don't know. C -Original Message- From: Chris Epicier [mailto:seuch...@yahoo.de] Sent: Tuesday, October 27, 2009 4:53 AM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Homing - zeroing - touch off Jeff I read your post with great interest. For me, it gave some very good insight. Like you, I do not have a repeatable tool length. I was wondering if I could get a kind of switch doing my touching off of the z-axis. The idea is as follows: - I have a parallel port based 3 axis mill driven by emc2 2.3.3 (soon 2.3.4) - I have a vacuum table, that is well enough even (I remill the surface when the wear plate needs to be replaced) - x and y are also repeatably within reference distance from home position - If I would add a small metal plate (say alu) into my vac table (could veven be on an spring mount), connect it to a wire, I could close an electric circuit when the tool touches that plate. If I was able to stop z-motion based on the closed electrical curcuit (we talk about say dc 4-6V) immediately, I would not have to jog to the position each time. This saves considerable time for me and sounds much more reliable to me as manual jogging. How would I be able to implement this? greets Chris -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Homing - zeroing - touch off
2009/10/27 Colin MacKenzie cfmacken...@rtitampa.com: [Advanced] I had custom hal mods, so I running stepconf is not an option for me. If you have custom mods like a joystick pendant email me and I can send you the two lines. These lines go in your configname.hal. [/Advanced] You can keep your custom stuff in seperate files. I have custom.hal which unlinks some stepconf signals and filters them, and joypad.hal that connects the joystick to halui pins. I can still swap pins around in stepconf, but without breaking the custom stuff. -- atp -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Homing - zeroing - touch off
Thanks for your comments Andy but I can't see anything wrong in my ini file and still can't understand what is going on. The problem I was describing of not being able to reliably set zero home positions occurs when I first switch the machines on. For instance, I just turned on to set up a new job and the readings on the axes display in AXIS were - X 0.000, Y -0.000, Z -10.418 and A 737.592 I then issued a G92 X0.000 Y0.000 Z0.000 A0.000 in the MDI and all the axis readings then went to 0.000 - good. Then I hit the home button on each axis and they all showed the home icon with the displayed figures staying at 0.000 Now I jogged to X 2.752 Y 2.279 Z2.208 A -10.131 and then tried to 'touch off' each axis, setting each one to 0.000 in the touch off box. The readings then immediately went to X 12.842 Y -5.931 Z 4.645 A -56.156 ! The figures for the X and Y axis I can partly understand in that they were the positions I jogged to on a previous job but why the machine remembered them and went to them rather than the 0.000 I commanded I don't know. The figures for the Z and A axes are a total mystery and mean nothing to me at all. I have found that if I repeat the G92, home, then touch off about 3 times, the axes figures will settle at 0.000 after touching off but I don't know why.. The only EMC file I altered is the ini file which is listed below and seems innocuous to me. Can anyone offer any enlightenment please?? # EMC controller parameters for generic controller. Make these what you need # for your system. # General note: Comments can either be preceded with a # or ; - either is # acceptable, although # is in keeping with most linux config files. # Settings with a + at the front of the comment are likely needed to get # changed by the user. # Settings with a - at the front are highly unneeded to be changed ### # General section ### [EMC] #- Version of this INI file VERSION = $Revision: 1.7.2.3 $ #+ Name of machine, for use with display, etc. MACHINE = EMC-HAL-STEP-XYZA-MM #- Name of NML file to use, default is configs/common/emc.nml NML_FILE = emc.nml #+ Debug level, 0 means no messages. See src/emc/nml_int/emcglb.h for others DEBUG = 0 # DEBUG = 0x0007 # DEBUG = 0x7FFF ### # Sections for display options ### [DISPLAY] #+ Name of display program, e.g., xemc DISPLAY = axis # DISPLAY = usrmot # DISPLAY = mini # DISPLAY = tkemc # Cycle time, in seconds, that display will sleep between polls CYCLE_TIME =0.100 #- Path to help file HELP_FILE = doc/help.txt #- Initial display setting for position, RELATIVE or MACHINE POSITION_OFFSET = RELATIVE #- Initial display setting for position, COMMANDED or ACTUAL POSITION_FEEDBACK = ACTUAL #+ Highest value that will be allowed for feed override, 1.0 = 100% MAX_FEED_OVERRIDE = 9.0 #- Prefix to be used PROGRAM_PREFIX = /home/ian/emc2/nc_files #- Introductory graphic INTRO_GRAPHIC = emc2.gif INTRO_TIME =3 ### # Task controller section ### [TASK] #- Name of task controller program, e.g., bridgeporttask TASK = milltask # TASK =minimilltask #- Cycle time, in seconds, that task controller will sleep between polls CYCLE_TIME =0.007 ### # Part program interpreter section ### [RS274NGC] #- File containing interpreter variables PARAMETER_FILE =stepper.var ### # Motion control section ### [EMCMOT] #- Name of the motion controller to use (only one exists for nontrivkins) EMCMOT = motmod #- Key for real OS shared memory, e.g., for simulated motion SHMEM_KEY = 111 #- Timeout for comm to emcmot, in seconds COMM_TIMEOUT = 1.0 #- Interval between tries to emcmot, in seconds COMM_WAIT = 0.010 #+ Base task period, in nanosecs - this is the fastest thread in the machine BASE_PERIOD =4 #- Servo task period, in nanosecs - will be rounded to an int multiple of BASE_PERIOD SERVO_PERIOD = 100 #- Trajectory Planner task period, in nanosecs - will be rounded to an # integer multiple of SERVO_PERIOD
Re: [Emc-users] Homing - zeroing - touch off
Take a look in the .var file you are running. Variable 5220 should be 1 and the rest zero unless you are trying to preserve some offsets. Rayh On Tue, 2007-09-11 at 19:54 +0100, [EMAIL PROTECTED] wrote: Thanks for your comments Andy but I can't see anything wrong in my ini file and still can't understand what is going on. The problem I was describing of not being able to reliably set zero home positions occurs when I first switch the machines on. For instance, I just turned on to set up a new job and the readings on the axes display in AXIS were - X 0.000, Y -0.000, Z -10.418 and A 737.592 I then issued a G92 X0.000 Y0.000 Z0.000 A0.000 in the MDI and all the axis readings then went to 0.000 - good. Then I hit the home button on each axis and they all showed the home icon with the displayed figures staying at 0.000 Now I jogged to X 2.752 Y 2.279 Z2.208 A -10.131 and then tried to 'touch off' each axis, setting each one to 0.000 in the touch off box. The readings then immediately went to X 12.842 Y -5.931 Z 4.645 A -56.156 ! The figures for the X and Y axis I can partly understand in that they were the positions I jogged to on a previous job but why the machine remembered them and went to them rather than the 0.000 I commanded I don't know. The figures for the Z and A axes are a total mystery and mean nothing to me at all. I have found that if I repeat the G92, home, then touch off about 3 times, the axes figures will settle at 0.000 after touching off but I don't know why.. The only EMC file I altered is the ini file which is listed below and seems innocuous to me. Can anyone offer any enlightenment please?? # EMC controller parameters for generic controller. Make these what you need # for your system. # General note: Comments can either be preceded with a # or ; - either is # acceptable, although # is in keeping with most linux config files. # Settings with a + at the front of the comment are likely needed to get # changed by the user. # Settings with a - at the front are highly unneeded to be changed ### # General section ### [EMC] #- Version of this INI file VERSION = $Revision: 1.7.2.3 $ #+ Name of machine, for use with display, etc. MACHINE = EMC-HAL-STEP-XYZA-MM #- Name of NML file to use, default is configs/common/emc.nml NML_FILE = emc.nml #+ Debug level, 0 means no messages. See src/emc/nml_int/emcglb.h for others DEBUG = 0 # DEBUG = 0x0007 # DEBUG = 0x7FFF ### # Sections for display options ### [DISPLAY] #+ Name of display program, e.g., xemc DISPLAY = axis # DISPLAY = usrmot # DISPLAY = mini # DISPLAY = tkemc # Cycle time, in seconds, that display will sleep between polls CYCLE_TIME =0.100 #- Path to help file HELP_FILE = doc/help.txt #- Initial display setting for position, RELATIVE or MACHINE POSITION_OFFSET = RELATIVE #- Initial display setting for position, COMMANDED or ACTUAL POSITION_FEEDBACK = ACTUAL #+ Highest value that will be allowed for feed override, 1.0 = 100% MAX_FEED_OVERRIDE = 9.0 #- Prefix to be used PROGRAM_PREFIX = /home/ian/emc2/nc_files #- Introductory graphic INTRO_GRAPHIC = emc2.gif INTRO_TIME =3 ### # Task controller section ### [TASK] #- Name of task controller program, e.g., bridgeporttask TASK = milltask # TASK =minimilltask #- Cycle time, in seconds, that task controller will sleep between polls CYCLE_TIME =0.007 ### # Part program interpreter section ### [RS274NGC] #- File containing interpreter variables PARAMETER_FILE =stepper.var ### # Motion control section ### [EMCMOT] #- Name of the motion controller to use (only one exists for nontrivkins) EMCMOT = motmod #- Key for real OS shared memory, e.g., for simulated motion SHMEM_KEY = 111 #- Timeout for comm to emcmot, in seconds COMM_TIMEOUT = 1.0 #- Interval between tries to emcmot, in seconds COMM_WAIT = 0.010 #+ Base
Re: [Emc-users] Homing - zeroing - touch off
There are a bunch of different things that affect the relationship between machine coordinates and gcode coordinates. G5x coordinate systems: At any time, one G5x coordinate system is in effect. Normally the G54 coordinate is in effect at emc startup and after readahead reaches M2. You can set the offsets of the nine program coordinate systems using G10 L2 Pn (n is the number of the coordinate system) with values for the axes in terms of the absolute coordinate system. G54 corresponds to P1, G55 to P2, and so on. Generally, G5x offsets are saved even when exiting emc. G92 coordinate offset The G92 coordinate offset is programmed by G92, and also affected by M2, G92.1, G92.2 and G92.3 as documented in the gcode manual. http://linuxcnc.org/docs/html/gcode/main/#sub:G92_-G92.1_-G92.2_ Particularly due to the way the G92 coordinate offset is disabled if the interpreter readahead reaches M2, many users find that the behavior of G92 is confusing. G43 Tool offset When G43 is in effect, the Z coordinate is modified by the tool length. On lathes, G43 can offset both X and Z All three of these (G5x coordinate system (one is always in effect), G92 coordinate offset (unless disabled by G92.1 or G92.2), and G43 tool offset (when enabled)) are combined to get the coordinate value shown on the AXIS DRO when Relative coordinates are selected. When the Relative coordinates are different than the Machine coordinates, AXIS draws a cyan icon at the machine origin and the tricolor coordinate system marker at the origin of the relative coordinate system. Home (GUI button): In a machine with home switches, use these home switches to move the axis to its home location. In a machine without home switches, notify emc that the current axis position has been manually jogged to the home position. Even in a machine without home switches, you should establish and use a home position. After homing, the inifile soft limits are applied, so you can be confident that the machine will not walk the table right off the end of the leadscrew. After invoking Home, the value shown could be nonzero for several reasons: * A coordinate system or offset is being added to the axis value * The inifile HOME is not 0 Touch Off (GUI button): Touch Off is a way of setting the G54 coordinate system based on the current location of the axis and the entered value. Touch Off ignores G93 coordinate offsets even if they are currently in effect. So if you're lost, what should you do? * Move to the machine origin. MDI: G53 G0 X0Y0Z0 (A0B0C0) * Clear the G92 coordinate offset.MDI: G92.1 * Use the G54 coordinate system. MDI: G54 * Set the G54 coordinate system to be identical to the machine coordinate system. MDI: G10 L2 P1 X0Y0Z0 (A0B0C0) * Turn off tool offsets. MDI: G49 * Turn on Relative coordinate display from the menu now, you should be at machine origin (0,0,0), and the relative coordinate system should be the same as the machine coordinate system. What should you do to set your origin on material? For each axis, * Jog to a known or measurable location with respect to the material * Invoke Touch Off, and enter the current position with respect to the material For example, when I mill circuit boards, (0,0) is almost always the lower right-hand corner of the board. I jog X and Y to this corner of the circuit board blank, and Touch Off each one of these and enter a value of 0. This measurement is almost never critical, as I'm cutting small boards (typically under 3x4) from a 4x6 blank. With tool inserted, I move to the approximate middle of the area being milled. Then using a feeler gauge I jog Z down towards the material, switching to small incremental moves as I get close. When the feeler gauge just passes between the board and the tool, I Touch Off and enter the thickness of the feeler gauge (e.g., 0.0020). I don't have repeatable tool length, so I don't use G43 while cutting; if I did, I'd also enable G43 while doing the Z Touch Off. This got long winded, so if you got this far give yourself a pat on the back. Jeff - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Homing - zeroing - touch off
Hi, I'm a bit confused I'm running EMC 2.1.7 with a simple stepper setup and, at the moment, no home or limit switches set up. So, I set the material on the machine and then want to zero EMC at some point on this material. From the literature I assumed that I should go to the AXIS manual screen, jog to the position I want and hit the 'Touch Off' button to set the position as far as software is concerned to zero or some other chosen figure - it doesn't seem to work or, at least, not for all axes which seems strange. When I do this, a couple of the axes will show 0.000 on the screen but the other two will change to some other figure that I can't understand like -3.234 or 24.554 or something - different from the figure they were at but not zero or the commanded figure. Also, when I hit the 'Home' button on this manual screen, some of the axes will just dhow the home symbol next to the displayed figure but others will again change their figures. I have been setting the position by issuing a G92 command for each axis but, if I then hit the 'home' button again, the figure will change and I have to do it all again. Is it me or is there a problem with my ini files or the program? I believe someone also mentioned being able to set axes to zero with a 'shift-home' command from the keyboard but this doesn't seem to do anything on my setup. Maybe I just don't understand what should be happening - could someone enlighten me please? -- Best wishes, Ian Ian W. Wright Sheffield UK The difference between theory and practice is much smaller in theory than in practice... - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Homing - zeroing - touch off
Ian, For what its worth, my set up sounds very similar yours. Here how I set things up; Load in the stock. Jog machine around to zero point for GCODE. Select X in Manual window then press Home - Axis cords set to 0. Select Y in Manual window then press Home - Axis cords set to 0. Select Z in Manual window then press Home - Axis cords set to 0. Load in GCODE file and then press RUN button. May be you need to check the default codes selected in your .ini file? Regards Andy Bristol, UK -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 10 September 2007 11:14 To: emc-users@lists.sourceforge.net Subject: [Emc-users] Homing - zeroing - touch off Hi, I'm a bit confused I'm running EMC 2.1.7 with a simple stepper setup and, at the moment, no home or limit switches set up. So, I set the material on the machine and then want to zero EMC at some point on this material. From the literature I assumed that I should go to the AXIS manual screen, jog to the position I want and hit the 'Touch Off' button to set the position as far as software is concerned to zero or some other chosen figure - it doesn't seem to work or, at least, not for all axes which seems strange. When I do this, a couple of the axes will show 0.000 on the screen but the other two will change to some other figure that I can't understand like -3.234 or 24.554 or something - different from the figure they were at but not zero or the commanded figure. Also, when I hit the 'Home' button on this manual screen, some of the axes will just dhow the home symbol next to the displayed figure but others will again change their figures. I have been setting the position by issuing a G92 command for each axis but, if I then hit the 'home' button again, the figure will change and I have to do it all again. Is it me or is there a problem with my ini files or the program? I believe someone also mentioned being able to set axes to zero with a 'shift-home' command from the keyboard but this doesn't seem to do anything on my setup. Maybe I just don't understand what should be happening - could someone enlighten me please? -- Best wishes, Ian Ian W. Wright Sheffield UK The difference between theory and practice is much smaller in theory than in practice... - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users