Manufacturing Information Solutions Forum Index Manufacturing Information Solutions
Your Place for Support and Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How To Change Tool & Fixture Offsets from English to Met

 
Post new topic   Reply to topic    Manufacturing Information Solutions Forum Index -> G-Code Programming
View previous topic :: View next topic  
Author Message
JamieR
Frequent Poster


Joined: 30 Jun 2004
Posts: 54
Location: Chicago

PostPosted: Fri Jul 02, 2004 12:11 pm    Post subject: How To Change Tool & Fixture Offsets from English to Met Reply with quote

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. Very Happy

Here is the opposit of this post HERE.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Manufacturing Information Solutions Forum Index -> G-Code Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group