585,589 active members*
2,744 visitors online*
Register for free
Login
Results 1 to 2 of 2
  1. #1

    Solidworks Cam Multiple parts

    Hi there,
    I'm trying to make cam paths for multiple parts, i got as far as making a grid of parts in an assembly, and was able to create toolpaths for all.
    The thing is, it will make a pretty good nc file, with the right toolpaths, but it will actually only create one full toolpath, then for each duplicate of the part it will reference to the toolpath, instead of having a toolpath for each part.
    Now this wouldn't normally be a problem, but my cnc software (planet-cnc) doesn't know how to handle it.

    This is the nc code i'm getting:
    https://pastebin.com/iyVD636A
    If viewed on ncviewer.com you can see what i mean. It will mvoe to the position of the next part, but you don't see the toolpath for that position, which planet-cnc doesn't know how to deal with.

    I hope i have been clear in my explanation, if not, i can always elaborate, or give some screenshots.

    EDIT: So i've done some more digging, what i was reffering to are subroutines, now i found that planetcnc doesn't use the regular subroutines code (M98) But uses the O-codes.
    Maybe someone is familair with planet-cnc, abecause i have edited the code to correspond with their O-codes, but now an error is thrown that there are "Too many subroutine levels" now i can't find anything about that, and am not sure what they mean by that.

  2. #2
    Join Date
    Oct 2016
    Posts
    23

    Re: Solidworks Cam Multiple parts

    This looks like something your post processor is doing. It's doing coordinate system shifts, then running the shape programs at each location. The reason to do this (instead of just putting the whole shape gcode every time, with the X,Y,Z numbers changed appropriately) is if you like hand editing the shape, or if your controller has limited memory and can't load a program that has the shape written out for every transformation.

    So you'll have to have the post tweaked to either stop making sub program callouts, or to make them in the way your machine likes.

    "Too many subroutine levels" likely means you accidentally set it up into a loop where it goes into a subroutine, then calls another, and keeps doing that. Typically you can only nest around 7 times, meaning you have the "main program", then it can call a subroutine, then that sub routine can call another one, and that can keep going on for 7 levels. When the 7th subroutine tries calling another you'll get an error like "Too many subroutine levels". I'm guessing the problem is not ending the subroutines properly.

    From the page here: https://planet-cnc.com/using-o-words...e-subroutines/ , to get your program working for now you need to change the start of the subroutines from "O0002" to "O0002 sub", then change the M99 to "O0002 endsub." Then change every M98 callout to be like "O0002 call" instead of "M98 P0002"

Similar Threads

  1. multiple parts
    By tomduyx in forum SolidCAM for SolidWorks and SolidCAM for Inventor
    Replies: 2
    Last Post: 12-09-2012, 05:21 PM
  2. Multiple parts in one set up...?
    By Rot Iron Racer in forum Dolphin CAD/CAM
    Replies: 1
    Last Post: 08-16-2008, 05:28 AM
  3. Multiple Parts In M.C.
    By stang5197 in forum Mastercam
    Replies: 5
    Last Post: 03-12-2007, 01:13 AM
  4. Multiple Parts
    By nitemare in forum G-Code Programing
    Replies: 2
    Last Post: 12-22-2005, 02:14 AM

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
  •