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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

How to use FIL to do conditional control?

Wheelsofsteel
6-Contributor

How to use FIL to do conditional control?

Hello Programmer,

 

I need your help.

 

I found some sequences that Creo has generated “ROTATE” in the CL data (like following pictures), therefore, these sequences need to exchange GOTO positions by using FIL when Creo was posted tap file. Meanwhile, I also have some sequences that Creo has no generate “ROTATE” in CL data which are unnecessary to exchange GOTO positions. Therefore, I want to write FIL (conditionals control) to determine which sequence need to exchange GOTO position or not exchange. 

2017-9-4 下午 04-24-53.jpg2017-9-4 下午 04-25-14.jpg

 

Could you please teach me how to write a conditionals control in the FIL (IF….THEN….) to switch it when Creo  was generated “ROTATE”?

 

I wrote following FIL but Creo couldn’t work, just for your reference.

 

CIMFIL/ON,GOTO

WR=TEXT(ROTATE/CAXIS,INCR)

IF(WR.(ON))THEN

 DMY=POSTF(20)

 I1=POSTF(7,11)

 J1=POSTF(7,9)

 K1=POSTF(7,10)

 V1=VECTOR/I1,J1,K1

 M2D=DATA/CAM,2,V1 $$ USE VECTOR

 $$M2D=DATA/CAM,2,I1,J1,K1 $$ SAME AS ABOVE LINE

 TRANS/M2D

ENDIF

DMY=POSTF(21)

 DMY=POSTF(13)

 CIMFIL/OFF

 

Thanks so much

Have a good day!!

 

Mark Rao

0 REPLIES 0
Top Tags