Post processing
Post processing
(OP)
I need to develop either a post or a secondary operation (after posting) to convert a CLSF or .nc file to a format that is readable by my wire EDM. This is a sample of what is required:
Convert:
N10 G00 X-.05 Y0.
N20 G01
N30 X0.
N40 X6.2082
TO:
"C996 = 06 13 17 14 1 2 0006;"
"H000 = +00000000 H001 = +00000025 H002 = +00000000;"
"H003 = +00000000 H004 = +00000000 H005 = +00000000;"
"T94(SUBMERGED MACHINING);"
"C996(CUTTING CONDITION);"
" T84;"
" G54;"
"N10 G00 X-.05 Y0.;"
"N20 G01;"
"N30 X0.;"
"N40 X6.2082;"
" T85;"
" M02;"
;"
It would be great if I could develop a post to output the required format directly, but an seconadary macro or executable to reformat the file would be acceptable. Manually adding the header, footer, and the quotation marks and semi-colons is much too time consuming.
Convert:
N10 G00 X-.05 Y0.
N20 G01
N30 X0.
N40 X6.2082
TO:
"C996 = 06 13 17 14 1 2 0006;"
"H000 = +00000000 H001 = +00000025 H002 = +00000000;"
"H003 = +00000000 H004 = +00000000 H005 = +00000000;"
"T94(SUBMERGED MACHINING);"
"C996(CUTTING CONDITION);"
" T84;"
" G54;"
"N10 G00 X-.05 Y0.;"
"N20 G01;"
"N30 X0.;"
"N40 X6.2082;"
" T85;"
" M02;"
;"
It would be great if I could develop a post to output the required format directly, but an seconadary macro or executable to reformat the file would be acceptable. Manually adding the header, footer, and the quotation marks and semi-colons is much too time consuming.





RE: Post processing
The only thing I see is added code before and after what you already have. That is easy to build into the post.
"Wildfires are dangerous, hard to control, and economically catastrophic."
Ben Loosli
CAD/CAM System Analyst
Ingersoll-Rand
RE: Post processing
C996 = 06 13 17 14 1 2 0006;
H000 = +00000000 H001 = +00000025 H002 = +00000000;
H003 = +00000000 H004 = +00000000 H005 = +00000000;
T94(SUBMERGED MACHINING);
C996(CUTTING CONDITION);
T84;
G54;
N0010 G01 G90 X4.106 Y2.2703;
N0020 G03 X4.006 Y2.0703 I-.15 J.2;
N0030 G01 Y1.9953;
N0040 Y0.0;
N0050 G02 X4. Y-.006 I.006 J0.0;
N0060 G01 X0.0;
N0070 G02 X-.006 Y0.0 I0.0 J-.006;
N0080 G01 Y4.;
N0090 G02 X0.0 Y4.006 I-.006 J0.0;
N0100 G01 X4.;
N0110 G02 X4.006 Y4. I0.0 J.006;
N0120 G01 Y1.9203;
N0130 G03 X4.106 Y1.7203 I-.25 J0.0;
T85;
M02;
which is close, but I cannot figure out how to add the leading and tariling quotation marks. Any suggestions on how to accomplish this?
RE: Post processing
"Wildfires are dangerous, hard to control, and economically catastrophic."
Ben Loosli
CAD/CAM System Analyst
Ingersoll-Rand
RE: Post processing
for start; first way change the squence numer from N to "N.
N is a word you can edit it, change from N to "N in the postbuilder
for end; in the postbuilder N/C Definitions----Other data elements --- End of the block sign must be change.
Tarik