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:
What post are you using? I‘ve used a lot of custom macro in some of my post for changing subprograms to local subprograms and adding other things. Maybe I can help.
Sample
--------------------------------
N83T83(100332 SLOT MILL)
M6
G65P4828B180.(COORDINATE ROTATION)
M11
G0G90G54B180.M88
M10
G0G90G54X-47.616Y-2.0
S2420M3T84
G43H83Z67.25
#21=2012
GOTO1007
N2012
G0G90G55X-47.616Y-2.0
Z67.25
#21=2013
GOTO1007
N2013
M5
G0G91G30Z0.M89
G0G91G30X0.Y0.
M01
N1007(SUB 100332 S1)
Z19.75
G1Z17.22F550.
G41D83X-34.601
Y16.07
G40X-47.616
G0Y87.93
G1G41D83X-34.661
Y104.
G40X-47.616
G0Z67.25
X19.106
Z70.25
Z22.75
G1Z20.25
G41D83X6.091
Y88.583
G40X19.106
G0Y15.807
G1G41D83X6.091
Y0.
G40X19.106
G0Z70.25
GOTO#[21]
---------------------
That’s very nice Steve, I was in need of something like that for a post that I'm working on to out put some macro stuff. Bubba was trying to show me the same thing.
Thanks
Craig Butler
Try setting the program # on the tool parameter tab to a number like 1000, this will make the sub output increment from that number. For example (Main prog. # 1000) the first sub output = (Sub prog. # 1001) and the second sub output = (Sub prog. # 1002) and on >>>>>>
I’m not real familiar with the 15m, but I wrote a custom macro B program for a Fanuc 18I horizontal machine that would calculate a new X, Y, Z by entering the original X, Y, Z and R value of the angle that you are rotating to. This only works with 90-degree rotations. Note: That in mastercam you can set your post to output a G10 X, Y, Z line at tool change and null tool change, that will calculate a new XYZ point when rotating by using the tool/plane origin.
FNMI
www.fnmfg.com
Try ERIX TOOL AB
TEL.:+46-31-50 08 50, FAX:+46-31-23 56 69
E-mail: [email protected]
Web: www.erixtool.com/erix1.html
Or Giddings & Lewis , Inc. and ask about ERIX TOOL AB
US: Tel. (920)921-9400 Fax.(920) 929-4522
Are you doing rotary positioning or full 4th axis work? We do a lot of 4th axis programming and we build the geometry around the axis of rotation using the mastercam origin as the center of the pallet/ rotary. Note: Remember to set your T/plane to get the correct rotation when you post your file.
www.fnmfg.com
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.