Machsupport Forum
Mach Discussion => Mach4 General Discussion => Topic started by: DAAD on December 09, 2020, 02:56:51 PM
-
At the moment i’m using different offset zones to place my workpieces into.
I have setup a probing point so i can swap tools rapidly. The problem is that only the current offset is updated with the new tool probing. At the moment i have to type in the correct coordinates for each offset zone (g54/g55/g56) or do the probing per zone to get gooing.
Is there a way that i can script a bitton to update the needed zones?
Keep safe,
Adam
-
i think do offset tool per zone its mistake,tool must be constant, its spindel per tool per machine
bater change the zone in script
for example in my machine i change the origin according board length:
if(varP<2500) then
G="G56"
end
if(varP>2500 and varP<2770) then
G="G55"
end
if(varP>2750) then
G="G54"
end
GCode =""
GCode = GCode ..G
mc.mcCntlGcodeExecuteWait (0, GCode) ---choose the origin acording board length
-
I don't want to use tool per zone, and i don't define my zones with length of my stock.
I would like to be able to switch form one zone to another without having to worry about my z axis not set correctly if i forget to do the probing in this zone.
is there a way to write a value to the offset table?
I'm thinking of taking the Z_axisgetposition and putting it into the table.
Other ideas are welcome.