Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: simpson36 on March 01, 2015, 08:05:12 AM

Title: How to query current units (inch/mm) in MACH4
Post by: simpson36 on March 01, 2015, 08:05:12 AM
Searched and cannot find how to query the current units being used in MACH4.

Cannot find a LuaCall for this. How is it done?
Title: Re: How to query current units (inch/mm) in MACH4
Post by: MachMotion Development Team on March 01, 2015, 09:42:39 AM
Hi,

MACHINE_DEFAULT_UNITS = mc.mcCntlGetUnitsDefault(inst)
MACHINE_CURRENT_UNITS = mc.mcCntlGetUnitsCurrent(inst)
Title: Re: How to query current units (inch/mm) in MACH4
Post by: simpson36 on March 01, 2015, 01:49:16 PM
Thanks!

This call is not listed in LuaCalls.txt that was distributed with MACH4

Is there another more current list available?
Title: Re: How to query current units (inch/mm) in MACH4
Post by: MachMotion Development Team on March 01, 2015, 02:08:38 PM
I always work off of the MachAPI.h... It's formatted for C# but always up to date.

Andrew
Title: Re: How to query current units (inch/mm) in MACH4
Post by: simpson36 on March 01, 2015, 05:22:15 PM
I always work off of the MachAPI.h... It's formatted for C# but always up to date.

Andrew

That header file is not with the MACH4 distribution. Is it available to users/developers?