1
Mach4 General Discussion / Re: Quick way to update lua scripts in Mach4.
« on: September 08, 2023, 10:58:04 PM »
empty
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
function m555()
local inst = mc.mcGetInstance()
-- get your current profile/path names & disk location
local profile = mc.mcProfileGetName(inst)
local path = mc.mcCntlGetMachDir(inst)
-- this is a comment
-- point to the module 'directory'
package.path = path .. "\\Profiles\\" .. profile .. "\\Modules\\?.lua;" .. path .. "\\Modules\\?.lua;"
-- debug your path target
mc.mcCntlSetLastError(inst, tostring(package.path))
-- import your module
FiveFiveFiveTimer= require "FiveFiveFiveTimer"
-- use your module
FiveFiveFiveTimer.startTimer.(param)
end
if (mc.mcInEditor() == 1) then
m555()
end
I think I'm the only one who's crazy.
[Image 1] So I brought the inch version that everyone is using.
And I drew a 2-inch square exactly.
[Image 2] In that state, I changed it to metric units.
And restart.
[Image 3] MDI ordered the operation, but it looks 2mm in DRO
The real moving distance drew a 2 inch square.
Isn't it strange that I'm the only one like this?
Then is there anyone who can tell me what the problem is?