Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: gait12 on September 05, 2021, 05:11:42 PM
-
Hi,
I would like to mill the same piece many times (array in XY plan) using different offsets of work coordinate systems (WCS) G54, G55, G56, etc.
My problem is due to the tool lenghts compensation after a tool change : the Z offset is modified ONLY in one WCS (the last used).
Of course I need the Z value to be corrected in EACH WCS I work in.
The Work_Offset_Table shows clearly that only the Z value of the last WCS has been corrected, the others are unchanged.
How could I get this ?
Many thanks, hope you can help me to fix this concern.
Guillaume
CAM Fusion_360 / NC Mach3
-
I had a similar problem and solved it inside the macro m6start.m1s
There is an auto tool probing script which i modified.
If you use a similar script, find the lines that set the Z offset.
in my script that is accompished by calling:
Call SetOEMDRO (802, probeThickness)
probe thickness is to compensate the height of the touchoff tool i use
so the command Call SetOEMDRO (46, 1)
changes current work offset
1 is G54 up to 6, G59
Write a for loop as follows
CurrentWorkOffsetNumber = GetOemDRO(46)
For workOffsetNumber = 1 To 6
Call SetOEMDRO (46, i)
Call SetOEMDRO (802, probeThickness)
Next
Call SetOEMDRO (46, CurrentWorkOffsetNumber)
first and last lines ensure Mach3 is back to work offset you are at
Hope that helps