Optimization of post processing program of MAHO machining center based on Mastercam

After setting the blank size, you can change the output part of the program. The modified part of the program is as follows:

Pheader

"%PM"

Progno

n, "M54" [Join the vertical milling head return command]

n, "G18" [Join G18 plane command]

n, "G54" [Change from G52 to G54, G52 is only the temporary value of the reference point, it is easy to be modified by mistake]

n, "G98", "X", blk_xmin, "Y", blk_ymin, "Z", blk_zmin, "I", stck_ht, "J", stck_thck, "K", blk_hztwd [Adding the cutting simulation range instruction]

n, "G99", "X", blk_xmin, "Y", blk_ymin, "Z", blk_zmin, "I", stck_ht, "J", stck_thck, "K", blk_hztwd [Add Blank Range Command]

n, "G90" [Add absolute coordinate command]

Psof0 # Start of file for tool zero

Pinit

n, "G0 A0 B0 M13" [Add A and B coordinate homing instructions]

n, pcoolon

Psof # Start of file for non-zero tool number

Pinit

n, ss, t, "M6", "(D", tldia,")" [Adding tool diameter auxiliary instructions]

n, "G0 A0 B0 M13" [A and B coordinates are returned to zero after the tool change, preventing the operator from malfunctioning the A and B coordinates after detecting the tool after the tool change, and ensuring that the reference point is returned at the next tool]

......

n, "G53" [Undo G54 reference point]

n, "G0 X780 Y450 Z450" [The machine returns to the position of the detected workpiece]

n, "G0 A0 B0" [Return to zero in the machine coordinate system]

n, "M30"

Similarly, MPMAHOXY.pst can also be improved by referring to the above procedure.

Five conclusions

Mastercam's post-processing procedures are comprehensive, but some minor changes are required when using a particular CNC system. In addition, in the process of modification, you must make a backup of the original program, and repeatedly compare the NC program output after the change is correct, and try to make the modified NC program conform to your own programming habits.

Previous page

Protective Clothing

Full Body Protection Suit,Disposable Protective Clothing,Industrial Protective Clothing,Disposable Protective Coveralls

Ningbo Autrends Prevention Products Co., Ltd , https://www.autrendsafety.com