×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Post processing
2

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.

RE: Post processing

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

RE: Post processing

(OP)
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?

RE: Post processing

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

RE: Post processing

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources