UCCNC Macro sharing

Page 1 of 4 1234 LastLast
Results 1 to 20 of 66

Thread: UCCNC Macro sharing

  1. #1
    Member BanduraMaker's Avatar
    Join Date
    Dec 2010
    Location
    USA
    Posts
    634
    Downloads
    0
    Uploads
    0

    Default 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.

    Similar Threads:
    Attached Files Attached Files
    -Andy B.
    http://www.birkonium.com CNC for Luthiers and Industry http://banduramaker.blogspot.com


  2. #2
    Member BanduraMaker's Avatar
    Join Date
    Dec 2010
    Location
    USA
    Posts
    634
    Downloads
    0
    Uploads
    0

    Default 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
    Location
    United Kingdom
    Posts
    40
    Downloads
    0
    Uploads
    0

    Default 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
    Location
    Italy
    Posts
    1
    Downloads
    0
    Uploads
    0

    Default 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
    Member BanduraMaker's Avatar
    Join Date
    Dec 2010
    Location
    USA
    Posts
    634
    Downloads
    0
    Uploads
    0

    Default 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
    Member
    Join Date
    Mar 2014
    Posts
    735
    Downloads
    0
    Uploads
    0

    Default 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
    Member
    Join Date
    Aug 2006
    Location
    usa
    Posts
    143
    Downloads
    0
    Uploads
    0

    Default 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
    Member BanduraMaker's Avatar
    Join Date
    Dec 2010
    Location
    USA
    Posts
    634
    Downloads
    0
    Uploads
    0

    Default 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
    Member
    Join Date
    Aug 2006
    Location
    usa
    Posts
    143
    Downloads
    0
    Uploads
    0

    Default 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
    Location
    USA
    Posts
    34
    Downloads
    0
    Uploads
    0

    Default 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
    Location
    USA
    Posts
    1
    Downloads
    0
    Uploads
    0

    Default 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
    Member
    Join Date
    Jun 2007
    Location
    Netherlands
    Posts
    27
    Downloads
    0
    Uploads
    0

    Default 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



  13. #13
    Member vmax549's Avatar
    Join Date
    Oct 2005
    Location
    Lady Lake
    Posts
    1145
    Downloads
    3
    Uploads
    0

    Default Re: UCCNC Macro sharing

    I am sure there may be several ways but this come to mind as one way. I am very new to UCcnc and C# scripting (;-)

    exec.Code("#500 =" + exec.GetZpos() )

    (;-) TP



  14. #14
    Member
    Join Date
    Jun 2007
    Location
    Netherlands
    Posts
    27
    Downloads
    0
    Uploads
    0

    Default Re: UCCNC Macro sharing

    i got a mail from Balazs, he's solution was:

    exec.ivars[500] = exec.GetZpos();

    Thanks Balazs!!!!



  15. #15
    Member
    Join Date
    Jun 2007
    Location
    Netherlands
    Posts
    27
    Downloads
    0
    Uploads
    0

    Default Re: UCCNC Macro sharing

    Hi vmax,

    it seems logical, and i tried it but does not work.
    and what Balazs wrote is working as an horse (dutch proverb)....

    also you can put a variable in stead 500.

    very very cooool.....
    regards



  16. #16
    Member vmax549's Avatar
    Join Date
    Oct 2005
    Location
    Lady Lake
    Posts
    1145
    Downloads
    3
    Uploads
    0

    Default Re: UCCNC Macro sharing

    It should have been exec.Code("#500=" + exec.GetZpos() );

    (;-) TP



  17. #17
    Member
    Join Date
    Jun 2007
    Location
    Netherlands
    Posts
    27
    Downloads
    0
    Uploads
    0

    Default Re: UCCNC Macro sharing

    oh yes i see there was missing a semicolone.. it works also....


    thanks



  18. #18
    Member vmax549's Avatar
    Join Date
    Oct 2005
    Location
    Lady Lake
    Posts
    1145
    Downloads
    3
    Uploads
    0

    Default Re: UCCNC Macro sharing

    HI Guys I am looking all the Probing scripts and I do NOT see where anyone is actually retrieving the Trip Variables. As I see it you cannot use Axis Position values for trip values. The probe cannot instantly STOP at the trip point it has to deexcellerate to a stop so the trip point and the stop point are 2 different values.

    Does anyone have a list of all the useable System #vars ?? OR are there NONE created yet ??

    I am starting to work on porting all the known M3 probing routines over to UCcnc.

    (;-) TP



  19. #19
    Member BanduraMaker's Avatar
    Join Date
    Dec 2010
    Location
    USA
    Posts
    634
    Downloads
    0
    Uploads
    0

    Default Re: UCCNC Macro sharing

    For my macro, The final probe is at 1ipm and although you're right about the instant stop, at 1ipm it's close enough for what I'm doing and will get me within .001" of repeatability. The bigger issue I think is have the machine perfectly trammed and the fixed probing plate trammed as well. That seems to cause more error than using Axis position for the probe value.

    All that said, I'm working with wood so what might not be a problem for me might be a problem for folks using more accurate machines and materials.

    -Andy B.
    http://www.birkonium.com CNC for Luthiers and Industry http://banduramaker.blogspot.com


  20. #20
    Member vmax549's Avatar
    Join Date
    Oct 2005
    Location
    Lady Lake
    Posts
    1145
    Downloads
    3
    Uploads
    0

    Default Re: UCCNC Macro sharing

    As long as it works for you THAT is all the matters(;-).For the record there are 3 basic things to account for with a probe.

    Tip radius
    Center of tip to center of spindle offset In XY
    Switch travel until trip.

    They can ALL be tested with the simple ball and post test to generate the values to calibrate the probe.

    (;-) TP



Page 1 of 4 1234 LastLast

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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

UCCNC Macro sharing

UCCNC Macro sharing