CNC
CNC lathes and CNC mills repair,
CNC machine repair forums for machinists, cnc programing and manufacturing community.   
   CNC Store
Go Back   CNC Professional Forums > CNC Machinst Help & CNC Troubleshooting Forums > Recent CNC File Uploads/Downloads discussion forum
Members List Calendar Register FAQ/Rules/Policies Mark Forums Read
Home Recent Posts HELP-FORUMS (ask/answer) Classifieds-freeFile Sharing / Documents Photo Galleries Polls Newsletter   Machinetoolhelp.com.

Recent CNC File Uploads/Downloads discussion forum Recent File sharing uploads and discussion forum. Files are automatically posted here when the files are uploaded.

Reply
 
Bookmark or Share Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-28-09, 05:18 AM
davek
Guest
 
Posts: n/a
Default number macro

Here is a number engraving macro I've made. I've used it for a while but not done any official documentation yet. I'll start that here...

There is a variable at the beginning of the macro (#101) to scale the numbers. A one in this variable will give numbers about .312" tall, A two, .625" tall, etc..

I use a carbide 90 degree deburr/chamfer tool to engrave the numbers, goes .01" deep.

Macro uses the G59 offsets and changes them in order to offset the number's zero point from the chosen offset's zero point. This was so you could call the macro from a part program and engrave a part number anywhere on the part.

Macro will engrave up to a six digit number, followed by up to a six digit decimal. (Most controls won't accept a number with 12 digits.)

USAGE

G65 P20 A H X Y Z

A - Number To Engrave (Required)
H - Offset To Use (Required)
X - Amount To Offset X
Y - Amount To Offset Y
Z - Amount To Offset Z

If X, Y, or Z is not used the number will engrave at the chosen offset's zero.

EXAMPLE

G65 P20 A45.876 H55. X1. Y2. Z3.

Will engrave 45.876 at G55 X - 1." Y - 2." Z - 3.".


Any question or comments appreciated. I was thinking of limiting it to 3 place decimals and calling the scale factor from the macro call. Another easy addition would be to throw in a multiplier and make the scaling more 1 to 1".
Attached Files
File Type: nc SCALENUM.Nc (5.8 KB, 72 views)
Reply With Quote
  #2 (permalink)  
Old 07-29-09, 09:54 PM
Petro's Avatar
Administrator
 
Join Date: Sep 2005
Location: Wisconsin
Posts: 942
Thanks: 4
Thanked 40 Times in 40 Posts
Default Re: number macro

Thanks Davek!

Reply With Quote
  #3 (permalink)  
Old 03-13-10, 12:26 PM
CNC Tech
 
Join Date: Mar 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: number macro

TeŞekkürler you
Reply With Quote
  #4 (permalink)  
Old 03-16-10, 12:54 AM
asigen
Guest
 
Posts: n/a
Default Re: number macro

teşekkürler you mu? yuh be mıstık
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
IMPORTANT DISCLAIMER
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Although The CNC Professional Forum has attempted to provide accurate information on the forum, The CNC Professional Forum assumes no responsibility for the accuracy of the information. All information is provided "as is" with all faults without warranty of any kind, either express or implied. Neither The CNC Professional Forum nor any of its directors, members, managers, employees, agents, vendors, or suppliers will be liable for any direct, indirect, general, bodily injury, compensatory, special, punitive, consequential, or incidental damages including, without limitation, lost profits or revenues, costs of replacement goods, loss or damage to data arising out of the use or inability to use this forum or any services associated with this forum, or damages from the use of or reliance on the information present on this forum, even if you have been advised of the possibility of such damages.


All times are GMT -5. The time now is 04:19 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
| Copyright ©2010-2011 CNC Professional Forum LLC
CNC Machinist Forums