Re: Display and scale




Ian

Disclaimer - I'm not a metric person but

Lucas was asking a couple weeks ago and I tried setting my ini file for
metric.  It seemed to work okay.  I'll repeat the way I set up my file.

-----snippet of my ini-----
; Trajectory planner section --------------------------------------------------
[TRAJ]

AXES =                   3
; COORDINATES =          X Y Z R P W
COORDINATES =            X Y Z
HOME =                   0 0 0
LINEAR_UNITS =           1.00000000  *****
ANGULAR_UNITS =          1.0
CYCLE_TIME =             0.010
DEFAULT_VELOCITY =       0.42418  *****
MAX_VELOCITY =           30.48  *****
DEFAULT_ACCELERATION =   5.0 *****
MAX_ACCELERATION =       5.0  *****
...

; Axes sections ---------------------------------------------------------------

; First axis
[AXIS_0]

TYPE =                           LINEAR
UNITS =                          1.0000000000  *****
HOME =                           0.000
MAX_VELOCITY =                   30.48  *****
P = 1000.000
I = 0.000
D = 0.000
FF0 = 0.000
FF1 = 0.000
FF2 = 0.000
BACKLASH = 0.000
BIAS = 0.000
MAX_ERROR = 0.000
DEADBAND = 0.005  *****
CYCLE_TIME =                     0.001000
INPUT_SCALE =                    200.0   0  *****
OUTPUT_SCALE =           200.0   0  *****
MIN_LIMIT =                      -1000.0  *****
MAX_LIMIT =                      1000.0  *****
MIN_OUTPUT =                     -10
MAX_OUTPUT =                     10
FERROR = 25.400  *****
MIN_FERROR = 0.254  *****
HOMING_VEL =                     0.1
HOME_OFFSET =                    1 ***** (I use 0.1 inch)
ENABLE_POLARITY =                0
MIN_LIMIT_SWITCH_POLARITY =      0
MAX_LIMIT_SWITCH_POLARITY =      0
HOME_SWITCH_POLARITY =           1
HOMING_POLARITY =                1
JOGGING_POLARITY =               1
FAULT_POLARITY =                 1
-----end of ini snippet-----

This gives a natural display in mm rather than inches.  The only thing is
that it would be nice to have 3 decimal places rather than four.  Using
this ini, g21 does work in mm, including feedrate.  G20 also works in
inches and seems to do what it is supposed to.

Hope that this helps.

Ray

On Sat, 03 Mar 2001, you wrote:
> Hi,
> 
> Has anyone yet mananged to get EMC (TKEmc) to display in metric units? I
> have tried several ways to get it to do so but each time I try it objects
> and crashes.
> 
> Also, when I enter distances in metric using G21, it is dividing by ten -
> i.e. I enter 100 and the machine only moves 10mm. Any idea what I should
> change? I have tried multiplying the 'input scale' by ten from, in my case,
> 3255 to 32550, but this causes the computer to slow down to almost a
> standstill.
> 
> Ian
> --
> Ian W. Wright
> Sheffield  UK
> www.iw63.freeserve.co.uk



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

Problems or questions? Contact