Hello Guest it is April 24, 2024, 11:51:56 PM

Author Topic: Correct Z_work_offset after tool_change in different WCS G54 G55 G56...  (Read 810 times)

0 Members and 1 Guest are viewing this topic.

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:
Code: [Select]
Call SetOEMDRO (802, probeThickness)
probe thickness is to compensate the height of the touchoff tool i use

so the command
Code: [Select]
Call SetOEMDRO (46, 1) changes current work offset
1 is G54 up to 6, G59

Write a for loop as follows

Code: [Select]
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