585,885 active members*
6,103 visitors online*
Register for free
Login
Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2005
    Posts
    1145

    UCcnc SUBs suggestions

    Subs run as expected. It does NOT recognize L0. The L0 IS a very handy feature.

    Also it needs to be able to call a remote sub from the SUB directory.

    I do not know what the max depth of the sub stack can be but I will test it (L# max value)

    I do not know what the max. number of NESTs is .

    (;-) TP

  2. #2
    Join Date
    Mar 2003
    Posts
    35538

    Re: UCcnc SUBs suggestions

    I wonder what percentage of users use subs, especially in the hobby market. I'd guess maybe 1%? 3%-4% max?
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  3. #3
    Join Date
    Aug 2006
    Posts
    143

    Re: UCcnc SUBs suggestions

    I make money with my machines and I don't even know what a sub is or why I wold use it

    I'm wondering if this is a hand coder vs CAM scenario. I draw everything I build. At the very least a 2D line drawing. If I have a drawing why would I hand code? For me CAM is king. Also there is a chair in front of my design station. The machines not so much

    Derek

  4. #4
    Join Date
    Oct 2005
    Posts
    1145

    Re: UCcnc SUBs suggestions

    HiYA Derek, No it is more about doing a family of parts. Lets take a cabinet door. I bring in teh base code to produce a 24x24 size door. Then I call a sub to cut in a certain pattern. Then call another sub to add in another feature. In effect I created a custom door from stocked features . So once all the base code has been created in CAM I can call anything on demand and create a complex part AND never have to even fire the CAM up. It is just a matter of hand coding the Base Gcode to call all the needed features.

    M98 P1 L1 ( cuts a feature)
    M98 P102 L1 ( cuts a different feature)
    M98 P10 L1 ( does the finish detailing)
    M30 ( done)

    OTHERWISE I would have to totally create the entire project in CAD and CAM for each custom door. With subs I just need a list of the features. NO CAD NO CAM needed. OF COURSE NOW I do need to remember where all the SUBs are and be able to CALL from that directory. (;-) I just had to throw that part in there.

    NOW are subs for everyone NOPE but they ARE extremely handy for those that can use them and know how.

    (;-) TP

  5. #5
    Join Date
    Jul 2006
    Posts
    41

    Re: UCcnc SUBs suggestions

    I would use the macros just as you do.

    We used to programm a knee mill long years ago in the shop floor exactly as you are explaining.
    we created family of common operations with fixed macros, then we "assembled" some new parts
    very easily without any need for cam or thinking trajectories. It was straightforward and very SECURE
    because the Subs or macros we used, were all tested.

    We need from UCcnc the macro support as I mentioned in another triad. To be able to call a macro from another macro
    with

    M98 mickey.tap .....
    M98 donald.tap

    etc....

  6. #6
    Join Date
    Oct 2005
    Posts
    1145

    Re: UCcnc SUBs suggestions

    OK you are talking both apples and oranges. Subs are subs and macros are macros (;-). UCCNC does not have G65/G66 like fanuc

    When you use M98 you are calling a SUBprogram

    When you call a Macro it is an Mcode M9001.

    AND YES we do need to be able to call a global sub from an outside folder

    In teh Haas world they use M97 for a local sub (inside the Gcode) and M98 for a global sub (outside the Gcode)

    (;-) TP

  7. #7
    Join Date
    Jun 2015
    Posts
    943

    Re: UCcnc SUBs suggestions

    Quote Originally Posted by dontpanic View Post
    I would use the macros just as you do.

    We used to programm a knee mill long years ago in the shop floor exactly as you are explaining.
    we created family of common operations with fixed macros, then we "assembled" some new parts
    very easily without any need for cam or thinking trajectories. It was straightforward and very SECURE
    because the Subs or macros we used, were all tested.

    We need from UCcnc the macro support as I mentioned in another triad. To be able to call a macro from another macro
    with

    M98 mickey.tap .....
    M98 donald.tap

    etc....
    UCCNC can call macro from macro, however I think you thought about subs instead of macros,
    but it can also call subs from subs, so no problem with that either.
    Subs must be the part of your g-code thought, not external files.

  8. #8
    Join Date
    Jul 2006
    Posts
    41

    Re: UCcnc SUBs suggestions

    Sory I was meaning calling a subprogram stored in a sepparate file ! Not a macro.

    I tested at the moment Macro calls, and it works well in v.1.2
    I tested also Subprogram and return on the same file and it works well in v1.2

    I can not call from 1 file another Gcode file. This is a subroutine or subprog. stored in a sepparate file.
    (I am testing at the moment yours example with exec.mainform.loadfile() so probably I get a workarround
    calling a macro from a Gcode main program, that this macro calls a file... it is more complicated than
    a G98 "externalfilecall.tap" but..... it is a workarround)

Similar Threads

  1. UCcnc NEW FEATURES ???? THINGS needed, Suggestions ???
    By vmax549 in forum UCCNC Control Software
    Replies: 68
    Last Post: 02-13-2018, 08:06 PM
  2. UCcnc macro scripting suggestions
    By vmax549 in forum UCCNC Control Software
    Replies: 5
    Last Post: 08-07-2015, 06:49 PM
  3. Can't post with subs...
    By JoeCraftsman in forum BobCad-Cam
    Replies: 6
    Last Post: 02-07-2013, 05:59 PM
  4. backplotting with subs
    By patcareyis in forum Uncategorised CAM Discussion
    Replies: 3
    Last Post: 10-26-2007, 09:31 PM
  5. loops and subs
    By d.dixson in forum Mach Mill
    Replies: 5
    Last Post: 04-07-2007, 11:25 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
  •