Skip to content

A Fanuc Macro B compatible engraving macro which supports engraving serializing numbers

License

Notifications You must be signed in to change notification settings

themachinist/SerialEngrave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SerialEngrave

Introducing the last engraving macro you will ever need. Written to be compatible with Fanuc Macro B format NC code and tested on Fanuc, Haas, and Mori Seiki machines using a standard ISO font.

##Features

  • Engrave any letter, number, and three characters (space, dash, and colon)
  • Engrave a self-incrementing series of numbers with a single-line of code
  • Fanuc compatible

##Requirements

Your control must support the FIX (floor a fraction) and ABS functions. Program uses variables in the #500-#600 range.

##Setup

Before you call the subprogram you need to setup the Work Coordinate System (WCS), position the engraving by transforming (G10) the WCS, orient the work plane by rotating (G68) the WCS, and setting the text size by scaling (G51) the toolpath. You will also need to set two variables which define the clearance position in between characters and a counter the program uses to keep track of which character it is engraving. The counter should be reset with each new phrase.

This code has been tested in simulation up to 7 digits, on Haas controls (1998-2013) and Fanuc Oi/16/18. It should run on most controls. Be aware that some functions included in these instructions may be options that your machine does not have: G10, G68

##Usage

See the file DemoProgram.nc

##Character tables

###Numbers 0 1 2 3 4 5 6 7 8 9 | | | | | | | | | | 10 1 2 3 4 5 6 7 8 9

####Letters a b c d e f g h i j k l m n o p q r s t u v w x y z | | | | | | | | | | | | | | | | | | | | | | | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26

####Characters - : | | | 1 2 3

About

A Fanuc Macro B compatible engraving macro which supports engraving serializing numbers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published