Re: Platform- and misc. Questions



Hi Till,

> With G50 and G51 You can choose between inch and mm, i think. The default status
> is inch in emc. How can I change this default to mm?
G20 is inch values
G21 is metric values
With the new CVS sources, you can a RS274NGC_STARTUP_CODE in the [EMC] section
of your ini file.

<quote for Ray's post>
-----snip of post from Will-----
I have checked in one possible way to do it.  I edited emctaskmain.cc, and
emctask.cc to look in the INI file for

RS274NGC_STARTUP_CODE.

If its there I pass it as a string to rs274ngc_execute just after
rs274ngc_init() in emcTaskPlanInit()
-----end of snip-----

To use the new variable, I edited my ini to look like this. (adding the
last line)

; General section ----------------------------------------
[EMC]
VERSION =               $Revision: 1.4.1
MACHINE =               Stepper Minimill
NML_FILE =              emc.nml
DEBUG =             0x00000003
RS274NGC_STARTUP_CODE = g18 g20
-----end

This gives me inch and xz plane for my lathe project.  The nice thing about
this approach is that they are the defaults for reset and reload var file
as well as startup.

These changes are in the sourceforge repository but not in a full download.
 If you are registered as a developer you can just update your copy and
backup the stuff.  If you aren't, and you want me to, I can put my test
source version on the dropbox.
</quote>
Examples on how to access the CVS sources where on this list in the last days.

Max

-- 
Max Heise <max.heise-at-gmx.net>
Student Mechatronik/Automatisierungstechnik
PGP public key from:
http://www.fht-esslingen.de/~mahemt01/pgp50i.pub or any keyserver





Date Index | Thread Index | Back to archive index | Back to Mailing List Page

Problems or questions? Contact