Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Post processing 2

Status
Not open for further replies.

mmauldin

Bioengineer
Jul 16, 2004
485
US
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.
 
Replies continue below

Recommended for you

Postbuilder should be able to do it.

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
 
After a bit of wrangling, I have managed to get a post that outputs the following:

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?
 
Add a process to the post that runs before and afetr each line is generated that adds the quotation marks. This may require you to do it manually by editting the .tcl and .def files. I don't have that much experience with Postbuilder to know if you can add procedures.


"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli
CAD/CAM System Analyst
Ingersoll-Rand
 
You can add " quotation marks in the postbuilder.
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top