508,301 active members
3,377 visitors online
Register for free
Login
Page 1 of 6 123
Results 1 to 12 of 64
  1. #1
    Registered
    Join Date
    Dec 2010
    Posts
    623

    UCCNC Macro sharing

    I thought I'd start a thread where we can share our macros. I'll start by sharing the macros I made.

    USE AT YOUR OWN RISK!!!!

    First combo are M31 and M6 for auto tool length measuring after a manual tool change. When running a part, you use a mobile Z-touch plate and a fixed touch plate. M31 will probe down at the current location, then retract and move over to the fixed plate and probe. It then calculates the difference between Zzero and the fixed plate and stores that value in the C-axis DRO for later use by the M6 macro. Z-zero is set to the same value for offsets G54 to G59.

    The M31 macro also supports a "material offset" which can add or subtract an amount from Z zero. If this is non-zero when you call the macro, a message box will come up to remind you that it is non-zero.

    The M6 macro stops the spindle and then moves to a tool change location. Once you're done changing tools, hit return or click ok and the machine will move to the fixed plate, probe down and set a new Z-zero for all offsets.

    You must customize the macro by entering the coordinates of your tool change position, fixed plate position, Z-setting plate thickness etc. etc.

    Remember, USE AT YOUR OWN RISK!!!!

    I'd ask that if you make any improvements or modifications that you please post back to this thread so that everyone can benefit.
    Attached Files Attached Files
    -Andy B.
    http://www.birkonium.com CNC for Luthiers and Industry http://banduramaker.blogspot.com

  2. #2
    Registered
    Join Date
    Dec 2010
    Posts
    623

    Re: UCCNC Macro sharing

    This Macro is a simple Z-zero probe. Machine probes down and sets z-zero for all offsets. I named it M200 and it can be accessed by pressing the P1 button and the default screen.
    Attached Files Attached Files
    -Andy B.
    http://www.birkonium.com CNC for Luthiers and Industry http://banduramaker.blogspot.com

  3. #3
    Registered
    Join Date
    Nov 2006
    Posts
    40

    Re: UCCNC Macro sharing

    Thanks for these Andy, I've just bought a copy of the software and recently e-mailed Balazs regarding more hotkeys to run macros such as homing, probing, start cycle etc. He said there will be 48 in the next version of UCCNC.
    Mark

  4. #4
    Registered
    Join Date
    May 2015
    Posts
    1

    Re: UCCNC Macro sharing

    @BanduraMaker
    Very interesting macros..
    Where do you find reference documentation for this (and other similar) line of code?

    exec.mainform.sumoffsetcontrol1.G59.newCcinput

    Michele

  5. #5
    Registered
    Join Date
    Dec 2010
    Posts
    623

    Re: UCCNC Macro sharing

    I didn't find them actually, I emailed Balazs from UCCNC and told him what I needed to do, he gave me the line of code to do it. There's a couple variations on setting offsets so there may have been some back and forth.
    -Andy B.
    http://www.birkonium.com CNC for Luthiers and Industry http://banduramaker.blogspot.com

  6. #6
    Registered
    Join Date
    Mar 2014
    Posts
    723

    Re: UCCNC Macro sharing

    I implemented BanduraMaker's auto tool length measuring macro a few months ago and after some minor customizations for my machine and a few emails to Andy I got it to work. And it works great! makes using the machine much easier. Thanks Andy!

  7. #7
    Registered
    Join Date
    Aug 2006
    Posts
    134

    Re: UCCNC Macro sharing

    Has anyone here migrated from Mach3 to UCCNC? I have a number of custom macros I want to convert from VB to C#. I'm not well versed in either but I thought that it would be nice to see if anyone else is converting.

    Thanks
    Derek

  8. #8
    Registered
    Join Date
    Dec 2010
    Posts
    623

    Re: UCCNC Macro sharing

    Yes, I converted from Mach 3 to UCCNC. The macros I posted were the main ones I was using in Mach 3
    -Andy B.
    http://www.birkonium.com CNC for Luthiers and Industry http://banduramaker.blogspot.com

  9. #9
    Registered
    Join Date
    Aug 2006
    Posts
    134

    Re: UCCNC Macro sharing

    Actually your name just poped up on the mach forum. I'm trying to get some momentum for people switching from Mach to UCCNC under the theory that the more users the more development

    Gerry said you converted the macros from his 2010 screen set. Have you modified the UCCNC screens for the probing routines that are in the 2010 screen set?

  10. #10
    Registered
    Join Date
    Jul 2015
    Posts
    34

    Re: UCCNC Macro sharing

    I was just on the Mach Forum and would like to convert to UCCNC but need Gerry's 2010 screenset conversion. Can you post the files?

  11. #11
    Registered
    Join Date
    Feb 2008
    Posts
    1

    Re: UCCNC Macro sharing

    Looks like the macros are in the first 2 posts above.
    Also, a link to how to change/select different screen sets.
    I'm liking the looks of the UCCNC and might just try one myself.
    Thanks,
    Kar

  12. #12
    Registered
    Join Date
    Jun 2007
    Posts
    27

    Re: UCCNC Macro sharing

    hi, is there a way to change the value of a variable like #500
    in a gcode within a macro file?

    something like this:
    #500 = exec.GetZpos();

    thamks
    Cahit

Page 1 of 6 123

Similar Threads

  1. UCCNC owners and support thread
    By shorton in forum UCCNC Control Software
    Replies: 144
    Last Post: 08-25-2017, 12:07 AM
  2. Getting Started with UCCNC Software
    By BanduraMaker in forum UCCNC Control Software
    Replies: 5
    Last Post: 02-08-2015, 07:06 PM
  3. UCCNC software released for sales
    By dubble in forum News Announcements
    Replies: 0
    Last Post: 08-05-2014, 11:25 AM
  4. UCCNC software release
    By dubble in forum News Announcements
    Replies: 0
    Last Post: 06-13-2014, 02:24 PM
  5. Sharing a tool offset verification macro
    By dpuch in forum Parametric Programing
    Replies: 0
    Last Post: 08-02-2010, 09:46 PM

Tags for this Thread

Posting Permissions

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