JamieR Frequent Poster
Joined: 30 Jun 2004 Posts: 54 Location: Chicago
|
Posted: Fri Jul 02, 2004 12:11 pm Post subject: How To Change Tool & Fixture Offsets from English to Met |
|
|
I found this on the internet and thought to shaire it with you all.
Have you ever wanted to run a job in Metric mode but decided not to because of the effort needed to reset all the tool offsets and work offsets from English?
Well this is a perfect application for Custom Macro. This example converts both the tool offsets and the work offsets from English to Metric:
Code: | %
O9121(INCH TO METRIC)
G91G28Z0
G28X0Y0
G21
#100=1
WHILE[#100LE99]DO1(PLACE NUMBER OF OFFSETS HERE)
#[2000+#100]=#[2000+#100]*2.54
#100=#100+1
END1
#100=1
WHILE[#100LE6]DO1
#[2500+#100]=#[2500+#100]*2.54
#[2600+#100]=#[2600+#100]*2.54
#[2700+#100]=#[2700+#100]*2.54
#100=#100+1
END1
M30
% |
Try it out and post your results here in this thread.
Here is the opposit of this post HERE. |
|