Results 1 to 6 of 6

Thread: Macros for Wincnc

  1. #1

    Macros for Wincnc

    anyone have any insight or link to more detailed information on writing macros for wincnc? I've read the pdf but is it as simple as writing the code as you would for a .tap file and saving as a mac?

  2. #2
    Join Date
    Oct 2009
    Location
    Marquette, MI USA
    Posts
    519
    Mark...
    I find my way thru them, and actually have a couple hour class on that very subject. That said, to answer your question, yes it is that simple. This assumes that what you place in the file is correct.

    I usually have my attendees make copies of common macros on their machines, watch them run if needed, then look up the individual codes in the manual and annotate the file. This usually give you an idea of syntax and flow. What are you trying to accomplish?

    If you need some direction, email with your questions: GCNC411 (at) gmail.com
    Gary Campbell
    CNC Replacement & Upgrade Controllers
    Custom 9012 Centroid ATC

  3. #3
    Just trying to automate some operations and get a bit more fluent with Gcode.

    I've been doing exactly as you mention, running the macros that are manufacturer supplied and watching them run then printing them out and listing the operations for each line. Its a lot to get ones head around lol.

  4. #4
    Join Date
    Oct 2009
    Location
    Marquette, MI USA
    Posts
    519
    Mark...
    It does take some getting used to, but it seems to come with practice. What types of operations are you trying to automate? I may have some examples I can send your way.
    Gary Campbell
    CNC Replacement & Upgrade Controllers
    Custom 9012 Centroid ATC

  5. #5
    Other than a few piddly things I'd like to ultimately work out an edge finding and center finding routine with the probe. Something similar to what machine shop equipment often has.

  6. #6
    Join Date
    Oct 2009
    Location
    Marquette, MI USA
    Posts
    519
    Mark...
    Look into setting up an input for your probe as an "alt lo/hi" limit. Then look over the "L91" line in any of the G37 macros that move the head in a given direction and stops when contact is made. Post if you have more questions
    Gary Campbell
    CNC Replacement & Upgrade Controllers
    Custom 9012 Centroid ATC

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •