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.