<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to use FIL to do conditional control? in Manufacturing (CAM)</title>
    <link>https://www.ptcusercommunity.com/t5/Manufacturing-CAM/How-to-use-FIL-to-do-conditional-control/m-p/482939#M113</link>
    <description>&lt;P&gt;Hello Programmer,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2017-9-4 下午 04-24-53.jpg" style="width: 536px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/1513iCD4F0D014348E071/image-size/large?v=v2&amp;amp;px=999" role="button" title="2017-9-4 下午 04-24-53.jpg" alt="2017-9-4 下午 04-24-53.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2017-9-4 下午 04-25-14.jpg" style="width: 536px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/1514i4FCB9E17C3381B3F/image-size/large?v=v2&amp;amp;px=999" role="button" title="2017-9-4 下午 04-25-14.jpg" alt="2017-9-4 下午 04-25-14.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you please teach me how to write a conditionals control in the FIL (IF….THEN….) to switch it when Creo &amp;nbsp;was generated “ROTATE”?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I wrote following FIL but Creo couldn’t work, just for your reference.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CIMFIL/ON,GOTO&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;WR=TEXT(ROTATE/CAXIS,INCR)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;IF(WR.(ON))THEN&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;DMY=POSTF(20)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I1=POSTF(7,11)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;J1=POSTF(7,9)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;K1=POSTF(7,10)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;V1=VECTOR/I1,J1,K1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;M2D=DATA/CAM,2,V1 $$ USE VECTOR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;$$M2D=DATA/CAM,2,I1,J1,K1 $$ SAME AS ABOVE LINE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;TRANS/M2D&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;ENDIF&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;DMY=POSTF(21)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;DMY=POSTF(13)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;CIMFIL/OFF&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks so much&lt;/P&gt;
&lt;P&gt;Have a good day!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mark Rao&lt;/P&gt;</description>
    <pubDate>Fri, 07 Dec 2018 16:55:47 GMT</pubDate>
    <dc:creator>Wheelsofsteel</dc:creator>
    <dc:date>2018-12-07T16:55:47Z</dc:date>
    <item>
      <title>How to use FIL to do conditional control?</title>
      <link>https://www.ptcusercommunity.com/t5/Manufacturing-CAM/How-to-use-FIL-to-do-conditional-control/m-p/482939#M113</link>
      <description>&lt;P&gt;Hello Programmer,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2017-9-4 下午 04-24-53.jpg" style="width: 536px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/1513iCD4F0D014348E071/image-size/large?v=v2&amp;amp;px=999" role="button" title="2017-9-4 下午 04-24-53.jpg" alt="2017-9-4 下午 04-24-53.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2017-9-4 下午 04-25-14.jpg" style="width: 536px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/1514i4FCB9E17C3381B3F/image-size/large?v=v2&amp;amp;px=999" role="button" title="2017-9-4 下午 04-25-14.jpg" alt="2017-9-4 下午 04-25-14.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you please teach me how to write a conditionals control in the FIL (IF….THEN….) to switch it when Creo &amp;nbsp;was generated “ROTATE”?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I wrote following FIL but Creo couldn’t work, just for your reference.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CIMFIL/ON,GOTO&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;WR=TEXT(ROTATE/CAXIS,INCR)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;IF(WR.(ON))THEN&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;DMY=POSTF(20)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I1=POSTF(7,11)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;J1=POSTF(7,9)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;K1=POSTF(7,10)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;V1=VECTOR/I1,J1,K1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;M2D=DATA/CAM,2,V1 $$ USE VECTOR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;$$M2D=DATA/CAM,2,I1,J1,K1 $$ SAME AS ABOVE LINE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;TRANS/M2D&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;ENDIF&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;DMY=POSTF(21)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;DMY=POSTF(13)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;CIMFIL/OFF&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks so much&lt;/P&gt;
&lt;P&gt;Have a good day!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mark Rao&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 16:55:47 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Manufacturing-CAM/How-to-use-FIL-to-do-conditional-control/m-p/482939#M113</guid>
      <dc:creator>Wheelsofsteel</dc:creator>
      <dc:date>2018-12-07T16:55:47Z</dc:date>
    </item>
  </channel>
</rss>

