Help modifying post processor for Laguna SmartShop M

Help modifying post processor for Laguna SmartShop M

jeffhammond
Enthusiast Enthusiast
716 Views
3 Replies
Message 1 of 4

Help modifying post processor for Laguna SmartShop M

jeffhammond
Enthusiast
Enthusiast

Hi, 

 

the basic Laguna post processor writes this at the beginning of the program and after each tool change then again at the end:

 

N10(Program name: 1001)
N11(Program comment: )
(T2 D=9.525 CR=0. - ZMIN=-12.573 - FLAT END MILL)
N12G17G40G90
N13G71
N14D0
N15G00Z0.

..that last line shown, G00Z0. ...makes the bit go to the top of the stock (which is where my origin is set).. it will then drag across the stock until the cutting begins.. if my origin were set from the bottom of the material, the bit would try to go to that point..

 

i've been editing/deleting this line after the fact and it runs fine (as long as my Z is sitting above the stock prior to running)..

 

so, can someone tell me what i need to change in order for this not to happen and have the machine go a safe Z height at this point(s) in the program..?

 

-or- 

 

show me how to prevent the processor from writing this line?

 

thanks!

 

(apparently, the D0 is weird but it works on other Laguna machines.. on the SmartShop M, i don't think it works that way)

 

-- 

i'm using this:

https://cam.autodesk.com/hsmposts?p=laguna

 

the only modification i've made so far is the file type is MMG instead of PRG

 

 

 

 

0 Likes
Accepted solutions (1)
717 Views
3 Replies
Replies (3)
Message 2 of 4

Boopathi_Sivakumar
Collaborator
Collaborator
Accepted solution

@jeffhammond 

Make a copy of the post processor file and do the changes

To Avoid posting the line in the start of your program you have to go to the below code

    // retract to safe plane
    writeRetract(Z);
    currentWorkOffset = undefined;
    forceXYZ();

and forwd slash to the write retract like this 

    // retract to safe plane
    // writeRetract(Z);
    currentWorkOffset = undefined;
    forceXYZ();

and same for to avoid at the end of the post at the function writeretract you get to see this code

    case Z:
      writeBlock("D0");
      writeBlock(gMotionModal.format(0), zOutput.format(0));
      retracted = true; // specifies that the tool has been retracted to the safe plane
      break;

Add Forward slash before to this code

writeBlock(gMotionModal.format(0), zOutput.format(0)); 
 
the final program will be like this
    case Z:
      writeBlock("D0");
      // writeBlock(gMotionModal.format(0), zOutput.format(0));
      retracted = true; // specifies that the tool has been retracted to the safe plane
      break;
Save this file and check your post with different files and if you don't found any issues you can processed with the machine.
Poke back us if you have any doubts
 
Thanks,
Boopathi
 

Boopathi Sivakumar
Sr Application Engineer
www.usamcadsoft.in
Facebook | Twitter | LinkedIn

0 Likes
Message 3 of 4

jeffhammond
Enthusiast
Enthusiast

Awesome Boo! Smiley Wink

 

I've made the edits and it looks good on my computer.. i'll try it on the machine today.

 

thank you!

 

0 Likes
Message 4 of 4

ICanSpinIt
Advocate
Advocate

Thank you for this! Spent the whole day trying to figure out how to not have to manually enter.

You wouldn't by chance know how to code it so the machine returns to defined G53 values?

Currently it returns to work origin values but at a Z0 because of the "//"

0 Likes