GithubHelp home page GithubHelp logo

themachinist / serialengrave Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 256 KB

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

License: BSD 3-Clause "New" or "Revised" License

nesC 94.33% Python 5.67%

serialengrave's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.