MMTechi

06-11-2009, 12:42 PM

I want the Surfcam mpost to output the toolheader information for each toolpath in an operation list, even if it repeats the same tool. This way I wouldn't have to post multiple times then copy and paste together, just to get the tool header per path. It would then be easier to delete the paths out of an operation that I don't need.

Sometimes when I am proving out some simple 2d programs I am using the same tool for a lot of different paths and I will rerun and tweak until I like what I have. It would be easier to jump to the next piece of code or path if it has the tool header info ready per each path.

I have done a good amount of editing to my posts for my Haas but haven't been able to figure this one out. I am hoping this can be done. I do understand Haas has a on/off feature that reads the tool info if jumping into the middle of a program. I would still like the NC code to have the tool info per individual path. Control memory and file size is not an issue.

If anyone knows this one and can share, Thank you in advance!

Robert Flores

MMTech 231-632-6669

below is a sample of what I would like the code to look like. I posted this 3 times and then copied and pasted the 3 progs together. Typically I have 5 to seven paths per tool and up to 10 tools. The header at the top of file allows a quick jumpto individual paths with cursor/dwn to M99 call.

Any additional comments are appreciated.

%

O777 (FORWARD CONTROL LINKAGE)

G54 G17 G90

M99 P3 (T3 .50 DIA CARB RGHR -0.8750)

M99 P32 (T3 .50 DIA CARB RGHR )

M99 P33 (T3 .50 DIA CARB RGHR )

M99 P100 (END PROG POSITION)

N3

N31

G90 G40 G80

T3 D3 M6 (T3 .50 DIA CARB RGHR -DR AT LOC)

/M8

G90 G0 X0. Y0.

G43 H3 G0 Z0.2

S2000 F12.0

M3

G0 X0. Y1.65

G0 Z0.3

G0 X0. Y1.65

G40

G73 X0. Y1.65 Z-0.3 Q0.09 K0.09 R0.1 P0.03 F2.4 G99 (MAY RETURN TO -R PLANE)

G80

G0 Z-0.3

X0. Y0. Z0.3

G40

G73 X0. Y0. Z-0.863 Q0.09 K0.09 R-0.463 P0.03 F2.4 G99 (MAY RETURN TO -R PLANE)

X0.0743 Y-0.8493

G80

G0 Z0.3

N3

N32

G90 G40 G80

T3 D3 M6 (T3 .50 DIA CARB RGHR)

/M8

G91 G41 G1 X-.02 F100.

G90 G0 X0. Y0.

G43 H3 G0 Z0.2

S2000 F12.0

M3

G0 X0. Y0.

G0 Z0.2

G0 Z0.1

G1 Z-0.875 F12.0

G3 X0.27 I0.135 J0

I-0.27 J0

X0. I-0.135 J0

G0 Z0.2

G91 G40 G0 Y.05

G90

N3

N33

G90 G40 G80

T3 D3 M6 (T3 .50 DIA CARB RGHR)

/M8

G91 G41 G1 X-.02 F100.

G90 G0 X1.015 Y-0.0285

G43 H3 G0 Z0.2

S2000 F12.0

M3

G0 X1.015 Y-0.0285

G0 Z0.2

G0 Z0.1

G1 Z-0.7 F12.0

G3 X0.9834 Y-0.0567 I-0.0017 J-0.03

G2 X0.6837 Y-0.7091 I-0.9834 J0.0567

G3 X0.6761 Y-0.7293 I0.0173 J-0.018

G1 X0.6858 Y-0.8401

G2 X0.3488 Y-1.3197 I-0.4532 J-0.0397

X-0.1144 Y-1.3602 I-0.3488 J1.3197

X-0.5295 Y-0.9465 I0.0381 J0.4534

G1 X-0.5392 Y-0.8356

G3 X-0.5502 Y-0.817 I-0.0249 J-0.0022

G2 X-0.7607 Y0.6258 I0.5502 J0.817

G3 X-0.755 Y0.6416 I-0.0193 J0.0158

G1 Y1.525

G2 X0. Y2.28 I0.755 J0

X0.755 Y1.525 I0 J-0.755

G1 Y0.6416

G3 X0.7607 Y0.6258 I0.025 J0

G2 X0.9834 Y-0.0567 I-0.7607 J-0.6258

G3 X1.0116 Y-0.0884 I0.0299 J-0.0018

G0 Z0.2

G91 G40 G0 Y.05

G90

N100

M98 P89995 (EXIT SUB PROG -EDIT AT MACHINE)

(/M9 )(COOLANT OFF)

(M5 )(SPINDLE OFF)

(G91 G0 Z3.0)

(G91 G0 X0. Y0.0 )(EDIT AS NEEDED)

(G111 G90 G40 G80 G0 X0. Y0. Z0.0)(ABS CANCEL ALL)

M1

T3 M6

M30

%

Sometimes when I am proving out some simple 2d programs I am using the same tool for a lot of different paths and I will rerun and tweak until I like what I have. It would be easier to jump to the next piece of code or path if it has the tool header info ready per each path.

I have done a good amount of editing to my posts for my Haas but haven't been able to figure this one out. I am hoping this can be done. I do understand Haas has a on/off feature that reads the tool info if jumping into the middle of a program. I would still like the NC code to have the tool info per individual path. Control memory and file size is not an issue.

If anyone knows this one and can share, Thank you in advance!

Robert Flores

MMTech 231-632-6669

below is a sample of what I would like the code to look like. I posted this 3 times and then copied and pasted the 3 progs together. Typically I have 5 to seven paths per tool and up to 10 tools. The header at the top of file allows a quick jumpto individual paths with cursor/dwn to M99 call.

Any additional comments are appreciated.

%

O777 (FORWARD CONTROL LINKAGE)

G54 G17 G90

M99 P3 (T3 .50 DIA CARB RGHR -0.8750)

M99 P32 (T3 .50 DIA CARB RGHR )

M99 P33 (T3 .50 DIA CARB RGHR )

M99 P100 (END PROG POSITION)

N3

N31

G90 G40 G80

T3 D3 M6 (T3 .50 DIA CARB RGHR -DR AT LOC)

/M8

G90 G0 X0. Y0.

G43 H3 G0 Z0.2

S2000 F12.0

M3

G0 X0. Y1.65

G0 Z0.3

G0 X0. Y1.65

G40

G73 X0. Y1.65 Z-0.3 Q0.09 K0.09 R0.1 P0.03 F2.4 G99 (MAY RETURN TO -R PLANE)

G80

G0 Z-0.3

X0. Y0. Z0.3

G40

G73 X0. Y0. Z-0.863 Q0.09 K0.09 R-0.463 P0.03 F2.4 G99 (MAY RETURN TO -R PLANE)

X0.0743 Y-0.8493

G80

G0 Z0.3

N3

N32

G90 G40 G80

T3 D3 M6 (T3 .50 DIA CARB RGHR)

/M8

G91 G41 G1 X-.02 F100.

G90 G0 X0. Y0.

G43 H3 G0 Z0.2

S2000 F12.0

M3

G0 X0. Y0.

G0 Z0.2

G0 Z0.1

G1 Z-0.875 F12.0

G3 X0.27 I0.135 J0

I-0.27 J0

X0. I-0.135 J0

G0 Z0.2

G91 G40 G0 Y.05

G90

N3

N33

G90 G40 G80

T3 D3 M6 (T3 .50 DIA CARB RGHR)

/M8

G91 G41 G1 X-.02 F100.

G90 G0 X1.015 Y-0.0285

G43 H3 G0 Z0.2

S2000 F12.0

M3

G0 X1.015 Y-0.0285

G0 Z0.2

G0 Z0.1

G1 Z-0.7 F12.0

G3 X0.9834 Y-0.0567 I-0.0017 J-0.03

G2 X0.6837 Y-0.7091 I-0.9834 J0.0567

G3 X0.6761 Y-0.7293 I0.0173 J-0.018

G1 X0.6858 Y-0.8401

G2 X0.3488 Y-1.3197 I-0.4532 J-0.0397

X-0.1144 Y-1.3602 I-0.3488 J1.3197

X-0.5295 Y-0.9465 I0.0381 J0.4534

G1 X-0.5392 Y-0.8356

G3 X-0.5502 Y-0.817 I-0.0249 J-0.0022

G2 X-0.7607 Y0.6258 I0.5502 J0.817

G3 X-0.755 Y0.6416 I-0.0193 J0.0158

G1 Y1.525

G2 X0. Y2.28 I0.755 J0

X0.755 Y1.525 I0 J-0.755

G1 Y0.6416

G3 X0.7607 Y0.6258 I0.025 J0

G2 X0.9834 Y-0.0567 I-0.7607 J-0.6258

G3 X1.0116 Y-0.0884 I0.0299 J-0.0018

G0 Z0.2

G91 G40 G0 Y.05

G90

N100

M98 P89995 (EXIT SUB PROG -EDIT AT MACHINE)

(/M9 )(COOLANT OFF)

(M5 )(SPINDLE OFF)

(G91 G0 Z3.0)

(G91 G0 X0. Y0.0 )(EDIT AS NEEDED)

(G111 G90 G40 G80 G0 X0. Y0. Z0.0)(ABS CANCEL ALL)

M1

T3 M6

M30

%