peterloewen738
Plastic
- Joined
- Jul 26, 2023
I would like fusion to post in the following format:
///At the top of the program, a tool list to set the tool numbers to be used.
#501=3. (1st tool description)
#502=8. (2nd tool description)
#503=9. (etc.)
/// then in the actual program, when ever the 1st tool is called, it uses those macro values. See blue values in below example code.
This makes it supper easy to change tool number as needed, without the chance of missing a D or H value somewhere in the code, which could be very long.
I have been doing this in a different CAM software for years, but we just switched to Fusion, and I cannot figure out how to modify the Post Processor code to do this.
Attached is the Post Processor I currently use. (I do a lot of manual tweaking after, because I don't know how to make changes)
Here is an example modified code, showing how I want it to post:
%
O01020 (5th Wheel Socket - Slot)
G17 G20 G40 G56 G80 G90
G53 G0 Z0.
#501=3. (3/8 GARR ENDMILL 62327 loc=0.875)
(MILL SLOT)
N1 T#501 M6 H#501
T#502 (stage next tool)
M8
M3 S6621
G0 G90 X2.425 Y1.6648
G43 Z0.1 H#501
G0 Z-0.36
G1 Y-1.6648 F39.73 (SLOT ON CENTER)
G1 G41 D#501 X2.4375(cutter comp on)
Y1.6648 (FINISH RIGHT WALL)
X2.4125
Y-1.6648(FINISH LEFT WALL)
G40 X2.425(cutter comp off)
G0 Z0.1
X2.425 Y1.6648
G0 Z-0.72
G1 Y-1.6648 (SLOT ON CENTER)
G1 G41 D#501 X2.4375(cutter comp on)
Y1.6648 (FINISH RIGHT WALL)
X2.4125
Y-1.6648 (FINISH LEFT WALL)
G40 X2.425(cutter comp off)
G0 Z5. M9
M5
G53 G0 Y0. Z0.
M30
%
Side note: the coolant on codes are also way to far down in the posted code. I would like them to be right after the tool change.
///At the top of the program, a tool list to set the tool numbers to be used.
#501=3. (1st tool description)
#502=8. (2nd tool description)
#503=9. (etc.)
/// then in the actual program, when ever the 1st tool is called, it uses those macro values. See blue values in below example code.
This makes it supper easy to change tool number as needed, without the chance of missing a D or H value somewhere in the code, which could be very long.
I have been doing this in a different CAM software for years, but we just switched to Fusion, and I cannot figure out how to modify the Post Processor code to do this.
Attached is the Post Processor I currently use. (I do a lot of manual tweaking after, because I don't know how to make changes)
Here is an example modified code, showing how I want it to post:
%
O01020 (5th Wheel Socket - Slot)
G17 G20 G40 G56 G80 G90
G53 G0 Z0.
#501=3. (3/8 GARR ENDMILL 62327 loc=0.875)
(MILL SLOT)
N1 T#501 M6 H#501
T#502 (stage next tool)
M8
M3 S6621
G0 G90 X2.425 Y1.6648
G43 Z0.1 H#501
G0 Z-0.36
G1 Y-1.6648 F39.73 (SLOT ON CENTER)
G1 G41 D#501 X2.4375(cutter comp on)
Y1.6648 (FINISH RIGHT WALL)
X2.4125
Y-1.6648(FINISH LEFT WALL)
G40 X2.425(cutter comp off)
G0 Z0.1
X2.425 Y1.6648
G0 Z-0.72
G1 Y-1.6648 (SLOT ON CENTER)
G1 G41 D#501 X2.4375(cutter comp on)
Y1.6648 (FINISH RIGHT WALL)
X2.4125
Y-1.6648 (FINISH LEFT WALL)
G40 X2.425(cutter comp off)
G0 Z5. M9
M5
G53 G0 Y0. Z0.
M30
%
Side note: the coolant on codes are also way to far down in the posted code. I would like them to be right after the tool change.