Need Help! Masterwood Project 327 (CN10) Programming


Results 1 to 11 of 11

Thread: Masterwood Project 327 (CN10) Programming

  1. #1
    Member Andrew_R's Avatar
    Join Date
    Mar 2019
    Location
    Winnipeg
    Posts
    6
    Downloads
    0
    Uploads
    0

    Default Masterwood Project 327 (CN10) Programming

    Good afternoon everyone,

    I am having problems calling a subprogram from my main program. Normally we just program things simple. We haven't done anything with parametric programming at all. Now I want to change that. We need more felixibility.

    My issue at the moment is calling a subprogram from my main program. I keep getting an error saying the subprogram does not exist. Masterwood manuals do not explain the M98/M99 very well, just a snippet of code to show you with a poorly translated explanation.

    Here is the explanation from the book:

    Code M98
    Code M98 is used to call up a sub-program, the which number is assigned to variable K, without modifying the origin co-ordinates of the called program, the which start point co-ordinates still are X=0 and Y=0.

    M98 K R
    K Program Number
    R Number of repititions

    In the example it has this paragraph:

    "With the last instruction line we call-up the subprogram no. 660, described here-under. Said subprogram executes the internal parametric machining. Such a program is a true subroutine insofar as it cannot be visualized nor executed alone. All the information necessary for its execution is indeed given through the main program that calls it up: as you can see, the first part resumes precisely all the variables declared in the main program. The second part contains all the calculations necessary for the execution."

    Seems simple enough.....

    The subprogram name is 602.prg

    I've tried M98 K602, M98 K "602.prg" as well as including the full path to the subprogram and still get the same error. "Error 2901 - Subprogram not existing"

    I've searched online for answers as well and nothing seems to cover it online. I've found all kinds of Fanuc information for calling sub-programs, it didn't help either.

    If anyone has experience with calling subprograms with Masterwood CN10 I would greatly appreciate some advice here.

    Thanks in advance!

    Andrew

    Similar Threads:


  2. #2
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Township
    Posts
    34566
    Downloads
    0
    Uploads
    0

    Default Re: Masterwood Project 327 (CN10) Programming

    What about:
    M98 K602 R1

    I've used it but it's been a dozen years, and I don't really remember.

    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
    Member Andrew_R's Avatar
    Join Date
    Mar 2019
    Location
    Winnipeg
    Posts
    6
    Downloads
    0
    Uploads
    0

    Default Re: Masterwood Project 327 (CN10) Programming

    Quote Originally Posted by ger21 View Post
    What about:
    M98 K602 R1

    I've used it but it's been a dozen years, and I don't really remember.
    I tried that too and still had the same error. I have a strong background in web application programming. Usually I can sort through syntax or other issues to get it working, this one has me pulling what's left of my hair out!



  4. #4
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Township
    Posts
    34566
    Downloads
    0
    Uploads
    0

    Default Re: Masterwood Project 327 (CN10) Programming

    Is the 602.prg in the same folder with the main program?

    Are you editing the file in the built in Editor? I seem to recall that it would automatically add the correct syntax when you typed M98, but I may be mistaken?

    I only used it a few times when doing 3D work with big files that needed to be split up, but didn't have any issues.

    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)


  5. #5
    Member Andrew_R's Avatar
    Join Date
    Mar 2019
    Location
    Winnipeg
    Posts
    6
    Downloads
    0
    Uploads
    0

    Default Re: Masterwood Project 327 (CN10) Programming

    Quote Originally Posted by ger21 View Post
    Is the 602.prg in the same folder with the main program?

    Are you editing the file in the built in Editor? I seem to recall that it would automatically add the correct syntax when you typed M98, but I may be mistaken?

    I only used it a few times when doing 3D work with big files that needed to be split up, but didn't have any issues.

    Yes, the subprogram is in the same folder as the main program. I assumed that would be the easiest way to get it working to start with. I was going to move the subprograms to another folder later once I proved the syntax.

    I haven't tried editing with the built in editor, I was just using notepad like I do with all my coding. I will try that and see if it makes a difference. I will let you know.



  6. #6
    Member Andrew_R's Avatar
    Join Date
    Mar 2019
    Location
    Winnipeg
    Posts
    6
    Downloads
    0
    Uploads
    0

    Default Re: Masterwood Project 327 (CN10) Programming

    Quote Originally Posted by Andrew_R View Post
    I only used it a few times when doing 3D work with big files that needed to be split up, but didn't have any issues.
    For us, it's not about file size, it's about hardware that is used in the cabinets. I wanted the flexibility to change a subprogram if hardware specs change, that will effectively change the main programs that call it. It makes more sense to me than changing or redoing hundreds of program because specs changed on a piece of hardware.



  7. #7
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Township
    Posts
    34566
    Downloads
    0
    Uploads
    0

    Default Re: Masterwood Project 327 (CN10) Programming

    I've always created unique code for each part, and never used "stock" programs. We used to use barcoded labels from a beam saw, and scanned the labels to load the programs on the 327.

    Whenever I wrote programs by hand, I always did it at the machine.

    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)


  8. #8
    Member Andrew_R's Avatar
    Join Date
    Mar 2019
    Location
    Winnipeg
    Posts
    6
    Downloads
    0
    Uploads
    0

    Default Re: Masterwood Project 327 (CN10) Programming

    Creating the main program in the built-in editor worked, it has the same syntax I tried with notepad that failed. I don't know what the difference is yet.

    The one difference I did note is that in the editor it wants the program name in quotes K"602.PRG". In the book it uses K660 as an example without quotes.



  9. #9
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Township
    Posts
    34566
    Downloads
    0
    Uploads
    0

    Default Re: Masterwood Project 327 (CN10) Programming

    Good news. Might be some invisible characters?
    Is this running the original 20+ year old DOS PC? Do you use the floppy, or do you have it networked?

    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)


  10. #10
    Member Andrew_R's Avatar
    Join Date
    Mar 2019
    Location
    Winnipeg
    Posts
    6
    Downloads
    0
    Uploads
    0

    Default Re: Masterwood Project 327 (CN10) Programming

    I will look into the file and see if I can figure out the difference in notepad++ or file properties.

    We upgraded the machine, when we got it 20 years ago it was a Win98 machine, now it's XP. We have it networked, I use remote desktop to program from my office or my home if needed. I'm the computer geek here so I have been working on getting all the machines we can networked. I am trying to automate this place a little more when I have time outside of my normal duties.



  11. #11
    Member
    Join Date
    Oct 2007
    Location
    Sweden
    Posts
    5
    Downloads
    0
    Uploads
    0

    Default Re: Masterwood Project 327 (CN10) Programming

    Hi, I'm a member of a Makerspace in Sweden.
    We have bought a Masterwood 327 from 1997 but we don't have any PC/Windows SW to it. Has contacted Masterwood about it but without response so far. The controller seems to be CN10.
    The only physical interface I have found is RS232 on a connector of size of an parallell port.
    What are you using? Can you share the SW?



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

Masterwood Project 327 (CN10) Programming

Masterwood Project 327 (CN10) Programming

Masterwood Project 327 (CN10) Programming