cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Laser on/off between nested parts, how to stop it?

lococnc
1-Visitor

Laser on/off between nested parts, how to stop it?


The output of NC_Sheetmetal is turning the laser off then right back on with nothing in between as it goes thru the sequences. How do you supress this behaviour so it stays on while moving thru the material?
3 REPLIES 3
lococnc
1-Visitor
(To:lococnc)


The solution to my problem would appear to be in the post processor, specifically the FIL file.

I have a pretty good understanding of how this file works, but it seems that you can only read and manipulate one command line at a time. What I need to do is look for this pattern in the output;

PIERCE / OFF
PIERCE / ON, CONST

And ignore it.

Logically it needs to look like this;

If (CODE) == PIERCE / OFF
AND next line ==
PIERCE / ON, CONST
Then Output (null)

ELSE

CIMFIL/ON,PIERCE
T4TH=POSTF(7,4)
CASE/T4TH
WHEN/ICODEF(ON)
INSERT/'M58$'
WHEN/ICODEF(OFF)
INSERT/'M59$'
ENDCAS
CIMFIL/OFF

But I am not seeing how to do this with the capabilities of the FIL.
Anyone can help?

Fred? 🙂

Daniel Santos
Suporte Aplicações CAM
GE Oil & Gas

T +55 11 4772-3565
M +55 12 8173-6567
F +55 11 4772-3775
-

Rodovia de Acesso João de Góes, 2300
Jandira - São Paulo - 06612-000 - Brasil
Vetco Gray Óleo e Gás LTDA

GE imagination at work
lococnc
1-Visitor
(To:lococnc)


I'm "THIS CLOSE" to getting it to work right, here is the code I have so far;

CIMFIL/ON,PIERCE
T4TH=POSTF(7,4)
CASE/T4TH
WHEN/ICODEF(ON) $$ Always want to turn pierce on when told to
INSERT/'M58$'
WHEN/ICODEF(OFF)
RSLT=POSTF(20)
RSLT=POSTF(14) $$ Read the next command line to see if it turns pierce back on
T5TH=POSTF(7,4)
IF(T5TH.EQ.ICODEF(ON)) THEN
INSERT/'DETECTED REPEAT$'
ELSE
RSLT=POSTF(21)
INSERT/'NO REPEAT DETECTED$'
$$INSERT/'M59$'
ENDIF
ENDCAS
CIMFIL/OFF

Problem now is it is killing my G00 after puttin in the "NO REPEAT DETECTED" part of the code...
Announcements


Top Tags