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 Metric to Engl

 
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:13 pm    Post subject: How To Change Tool & Fixture Offsets from Metric to Engl Reply with quote

Have you ever wanted to run a job in English mode but decided not to because of the effort needed to reset all the tool offsets and work offsets from Metric?
Well this is a perfect application for Custom Macro. This example converts both the tool offsets and the work offsets from Metric to English:

Code:
%
O9120(METRIC TO INCH)
G91G28Z0
G28X0Y0
G20
#100=1
WHILE[#100LE99]DO1(PLACE NUMBER OF TOOL 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]=#[2700+#100]/2.54
#[2700+#100]=#[2700+#100]/2.54
#100=#100+1
END1
M30
%


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