Hello Guest it is March 28, 2024, 09:33:53 AM

Show Posts

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.


Messages - Jannis

Pages: 1
1
I want to write a script for probing the tool length and have a problem I couldn’t find a solution.

I want to save the calculated tool length as “Tool Offset”. I use the command mc.mcToolSetData(inst, mc.MTOOL_MILL_HEIGHT, current_tool, calculated_value) to set the calculated value. Until here everything works fine. The problem is that Mach4 doesn’t correct the value of “Current Position”. Is there a particular reason?

Greetings

Jannis

2
Mach4 General Discussion / Re: Mach 4 Bug showing in M6 Script
« on: May 05, 2017, 05:54:59 AM »
Check the setting in Mach config tools it should tool on t6 line is tool in use not the default

Configure->Mach->Tools->Tool Change Type->T on M6 line is tool to use, is already set.

By the way, what are the concret differences between the functions "T on M6 line is next tool" and "T on M6 line is tool to use". The test of both functions didn't solve the problem.

Greetings Jannis

3
Mach4 General Discussion / Re: Mach 4 Bug showing in M6 Script
« on: May 05, 2017, 05:27:21 AM »
I also have the problem that my M6 tool change macro always uses the tool number from the first tool change command rather than get the current requested by the G code. Unfortunately none of the solutions fit.

I can't find a mistake in the macro code.

Code: [Select]
function m6()
local inst=mc.mcGetInstance()

local CurrentTool=mc.mcToolGetCurrent(inst)
local SelectedTool=mc.mcToolGetSelected(inst)

if (SelectedTool==CurrentTool) then
mc.mcCntlSetLastError(inst, "Werkzeugwechsel nicht erforderlich. Angefordertes Werkzeug bereits eingewechselt!")
do return
end
end

wx.wxMessageBox(""..CurrentTool.."")
wx.wxMessageBox(""..SelectedTool.."")

end

if (mc.mcInEditor()==1) then
m6()
end

By the way, at the moment I use Mach4 Demo, Version: 4.2.0.3233. Could it be, that it's only a problem of the demo version or has the licensed version the same problem?

Has somebody else an idea how to solve the problem?

Greetings Jannis

Pages: 1