Sub Program call in Lathe version

westyone

Westyone
@masso-support

Hello - After a LOT of programming and process setup, I'm I correct in discovering that "Sub Program call M98 & M99" don't function in the lathe version!?

Program loading of any program with "M99" inside throughs and error.

BobJ
 

westyone

Westyone
I have attached the main and sub program files.

Cheers
 

Attachments

  • Nozzle-body-Op1.nc
    1.5 KB · Views: 24
  • P10.nc
    348 bytes · Views: 29

cncnutz

CNCnutz
Staff member
Hi BobJ

Are you aware that the name of the subroutine file is incorrect?

It should be 10.nc not P10.nc

Cheers Peter
 

westyone

Westyone
Hello Peter - Thanks for that observation. You are correct on that but I'm not even getting that far yet.

In the Lathe Version any attempt to load a program containing a "M99" is rejected as an error.

Even removing the M99 for upload then manual editing it in on the controller throws the same error.

It appears to me that the 3.43 version isn't (or never was) able to run Sub Program calls.

Best Regards

BobJ
 

cncnutz

CNCnutz
Staff member
Hi Bob,

I loaded your files and ran them in both 3.43 & 3.44 and from what I can tell the subroutine is working.

While I don't have a lathe myself and can only see it by watching the screen I did add several tool changes throughout your subroutine file and it asked for each tool change in turn before returning to the main program.

Please be aware that Masso does not back plot the subroutine toolpath on the screen as it is only plots the main program.

Cheers Peter
 

westyone

Westyone
Thanks for trying that Peter! Most kind,

I have tried again and am absolutely not able to even load any program containing an "M99"?

I have attached screen shots of the error and Masso F1 screen.

I hope support can review this.

Cheers
 

Attachments

  • File-Load-error.jpg
    File-Load-error.jpg
    257.7 KB · Views: 29
  • Masso-Data.jpg
    Masso-Data.jpg
    284.7 KB · Views: 33

cncnutz

CNCnutz
Staff member
Hi Bob

You are correct. Masso does not allow you to load a file with an M99 in it, because it is a subroutine.

It gives an error, does not back plot and you cannot run it. In the F2 screen it does indicate the current loaded file and because your 10.nc file is small enough you can edit it.

Go CTRL+E, the edit page will open and you will see your Gcode. You can modify and save it.

If you want to view and test your subroutine remove the M99 and save the file. It will then back plot and you can test it as a stand alone program. Once it is working as you want, put the M99 back into it and you are done.

Note: You are bound by the limitation of Masso edit so if your Gcode is too big you will need to edit it on your PC or in your cam software.

If it helps the best way to get a screen print is to press CTRL+P and it will drop a copy of the screen to the USB flash drive. It saves messing about with cameras.

Hope this helps

Cheers Peter

PS The screen shot is of your subroutine file open in Mill software but it is the same with lathe.
 

Attachments

  • Print-Screen-002.bmp
    769.1 KB · Views: 36

westyone

Westyone
Thanks for your efforts Peter - I did try the "Load program without M99 and then edit inside Masso" workaround before I first posted. As soon as I add the M99 edit and press save, Masso throws to same error.

@ecs Hey Josh. Could you try this on your lathe for me?

Just add an "M99" at the end of any program and see if Masso with load or save it.

Thanks All!
 

breezy

Moderator
@westyone

Bob,

I think you missed the point Peter was trying to make, when MASSO loads the file and encounters a M99 it says this is a subroutine and I can't run a sub without a main program to return to, so it throws the error message.

So you need to remove the M99 to test your programming (run on lathe) and replace the M99 afterwards and then call it from a main program, which can be as simple as just the M98 and M30 commands.

Also it doesn't matter if it is for a lathe, mill or plasma the subroutine function is the same on all three versions.

Regards,

Arie.
 

westyone

Westyone
Hey Gents - Once again thanks for your time on this.

I have attached some screen shots of my Masso during this problem.

You can see that the main program (Nozzle body Opsub) has error that it can't find the sub program (10) but it clearly shows in the directory?

I beg to differ on the comment that all 3 versions (Mill/Router, Plasma, lathe) function the same. Case in point is that the lather version can't restart at a chosen line number like the Mill/Router version.

Masso support confirms the above.

I am abandoning this method until someone with the actual Lathe version proves it works. Too bad.

Best Regards
 

Attachments

  • Print-Screen-001.bmp
    769.1 KB · Views: 38
  • Print-Screen-002.bmp
    769.1 KB · Views: 36

breezy

Moderator
Bob,
I beg to differ on the comment that all 3 versions (Mill/Router, Plasma, lathe) function the same. Case in point is that the lather version can't restart at a chosen line number like the Mill/Router version.

If you read my comment
Also it doesn't matter if it is for a lathe, mill or plasma the subroutine function is the same on all three versions.

I stated that the SUBROUTINE function was the same, NOT that all three versions function the same.

Regards,

Arie.
 

masso-support

MASSO Support
Staff member
Hi Bob,

I did some testing and found that the subroutine file must be in the root directory for the subroutine to work.

The main program can be in another folder but the subroutine must be in the root directory. I think moving your subroutine will solve your problem.

Cheers Peter
 

westyone

Westyone
Hi Peter - Thanks for that. Problem solved.

I have observed that the Sub Program must not have an "M30" at the end, just "M99" or the cycle just keeps repeating.

While there is no "Tool Path Preview" with the sub program, Masso does show the tool position graphically on the screen as it executes the sup program. This is comforting to see whats going on and dry run the program.



Best Regards

BobJ
 
Top