Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.
Use your display name or email address to sign in:
Try adding:
if nextdc$=3, pbld, n$, *sgcode, *sgplane, scc0, sg80, *sgabsinc, e$
into psof, ptlchg0$ and ptlchg$ at the place where you want them. PWCS will write for you the G54.
Also remove you're hard coded line in ptap
Good luck and try carefully
In the past we had an employee which had also rashes due to the coolant. In his case i believe it was chrome.
First i would do an allergy test and with those results go to you're coolant supplier. Because just changing does not have to help you.
In the mastercam file when mirroring in also creates a new plane which is rotated around the Z-axis. This gives the mirrored values of the X and Y axis.
The only way I can come up with is:
1) Mirror operation around Y0 of operation
2) Ghost this operation before posting
3) Translate the mirrored operation the distance between the fixed faces in your example 2.69
4) Translate operation and last translate for G56 and G57
See also attached solution
Output code:
%
O0001(A-22863-2)
(DATE=DD-MM-YY - 29-06-23 TIME=HH:MM - 21:23)
(MCAM FILE - C:\USERS\JHM\DESKTOP\DOUBLE_VISE_SAMPLE.MCAM)
(NC FILE - C:\USERS\JHM\DOCUMENTS\MY MASTERCAM 2022\MASTERCAM\MILL\NC\A-22863-2.NC)
(MATERIAL - STEEL INCH - 1010 - 200 BHN)
( T1 | 3/4 X 90 CARBIDE SPOT DRILL | H1 )
G20
G0 G17 G40 G49 G80 G90
( SPOT DRILL )
T1 M6
G0 G90 G54 X.625 Y-.625 A0. S1300 M3
G43 H1 Z1.
Z.1
G99 G81 Z-.265 R.1 F20.
X5.125
G80
Z1.
( TRANSLATE FIXED DISTANCE OF JAWS )
( SPOT DRILL )
( MIRROR COöRDINATES )
G55 X.625 Y.625 Z1. A0.
Z.1
G99 G81 Z-.265 R.1 F20.
X5.125
G80
Z1.
( TRANSLATE FOR G56 AND G57 )
( SPOT DRILL )
G56 X.625 Y-.625 Z1. A0.
Z.1
G99 G81 Z-.265 R.1 F20.
X5.125
G80
Z1.
( SPOT DRILL )
( MIRROR COöRDINATES )
( TRANSLATE FIXED DISTANCE OF JAWS )
G57 X.625 Y.625 Z1. A0.
Z.1
G99 G81 Z-.265 R.1 F20.
X5.125
G80
Z1.
M5
G91 G28 Z0.
G28 X0. Y0. A0.
M30
%
double_vise_sample.mcam
Something for Fanuc like:
#600 = 2.35 (Height of product can be placed separated on macro screen or in program)
In cutting program:
#601 = 0.005 (depth of cut)
#602 = #600-2.0 (Material to be removed)
#603 = #602/#601 (Number of passes)
#604 = FUP[#603] (Round up)
G65 P6000 L#604 (Sub program call)
Something like:
DWO macro 4th axis
Corresponding Youtube:
To post out a custom gcode, you need to use:
*tox$, *toy$, *toz$ or: *tox4$, *toy4$, *toz4$
For the macro you do need to know the rotation point.
I am working on a similar project but i first have to make the fixtures for that machine.
As far as I know it, the post processing is only processing the operations with the same NC file name. With multiple NC file names, it will process it separate per NC file name.
To see in Mastercam the program number and NC file name do the following:
In the toolpath manager, right click on a operation and select "Display options"
enable "Toolpath file name" and "Program number", the values are placed at the toolpath line of the operation.
To solve you're problem select all operations and right mouse click --> Edit selected operations --> Change NC Filename
eMastercam - your online source for all things Mastercam.
Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.