<?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 Re: 5 axis codes with G43.4 compensation in Manufacturing (CAM)</title>
    <link>https://www.ptcusercommunity.com/t5/Manufacturing-CAM/5-axis-codes-with-G43-4-compensation/m-p/1026298#M5702</link>
    <description>&lt;P&gt;Posts for each machine are much easier to maintain and customize. Keep It Simple and your life becomes easier.&lt;/P&gt;
&lt;P&gt;Take one post and copy it for another if the machines&amp;nbsp; are very similar, then tweak to that machines needs to deliver a NC tape that is efficient.&lt;/P&gt;
&lt;P&gt;By using multiple posts, you can include custom PPRINT statements to help the machinist and others who may look at the printout.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jul 2025 13:02:08 GMT</pubDate>
    <dc:creator>BenLoosli</dc:creator>
    <dc:date>2025-07-24T13:02:08Z</dc:date>
    <item>
      <title>5 axis codes with G43.4 compensation</title>
      <link>https://www.ptcusercommunity.com/t5/Manufacturing-CAM/5-axis-codes-with-G43-4-compensation/m-p/1024569#M5683</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello everyone, I want to output G-code like this for swivel head 3,4,5-axis milling. For 4 and 5 axes, required G43.4 before rotary motion, and for 3 axes, G43. Can someone point me to which section in the post-processor I need to modify to achieve the required code? plz check the attached post-processor file. and creo10 mfg file..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(5-AXIS SWIVEL HEAD CLEANED PROGRAM)&lt;/P&gt;&lt;P&gt;%&lt;BR /&gt;O0001&lt;/P&gt;&lt;P&gt;N3 &amp;nbsp;G91 G28 Z0.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;N4 &amp;nbsp;G91 G28 X0. Y0.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;N5 &amp;nbsp;G91 G28 B0.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;N6 &amp;nbsp;G91 G28 C0.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;N7 &amp;nbsp;G00 G80 G40 G49 G90 G54&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;N8 &amp;nbsp;G00 B0.&lt;BR /&gt;N9 &amp;nbsp;G00 C0.&lt;/P&gt;&lt;P&gt;N15 T1 M06&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;N16 S2387 M03&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;N18 G43.4 Z210.000 H1&amp;nbsp;&lt;/STRONG&gt;&lt;/U&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;N19 G00 X-100.000 Y-337.491 C-90. B90.&lt;/P&gt;&lt;P&gt;N20 G00 Z-10.000&lt;/P&gt;&lt;P&gt;N21 G00 Y-107.000&lt;BR /&gt;N22 G01 Y-100.000 F1193.66&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;N23 G01 X100.000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;N24 G00 Y-337.491&lt;/P&gt;&lt;P&gt;N25 G91 G28 Z0.&lt;BR /&gt;N26 G91 G28 X0. Y0.&lt;BR /&gt;N27 G91 G28 B0.&lt;BR /&gt;N28 G91 G28 C0.&lt;/P&gt;&lt;P&gt;N29 M30&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;%&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 08:41:36 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Manufacturing-CAM/5-axis-codes-with-G43-4-compensation/m-p/1024569#M5683</guid>
      <dc:creator>asifcad</dc:creator>
      <dc:date>2025-07-14T08:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: 5 axis codes with G43.4 compensation</title>
      <link>https://www.ptcusercommunity.com/t5/Manufacturing-CAM/5-axis-codes-with-G43-4-compensation/m-p/1025394#M5693</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/17678"&gt;@asifcad&lt;/a&gt;&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;Thank you for your question.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Your &lt;A href="https://community.ptc.com/t5/Manufacturing-CAM/5-axis-codes-with-G43-4-compensation/m-p/1024569#M5683" target="_blank"&gt;post&lt;/A&gt; appears well documented but has not yet received any response. I am replying to raise awareness. Hopefully, another community member will be able to help.&lt;BR /&gt;&lt;BR /&gt;Also, feel free to add any additional information you think might be relevant. It sometimes helps to have screenshots to better understand what you are trying to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Vivek N&lt;BR /&gt;Community Moderation Team&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2025 09:00:07 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Manufacturing-CAM/5-axis-codes-with-G43-4-compensation/m-p/1025394#M5693</guid>
      <dc:creator>vnamboodheri</dc:creator>
      <dc:date>2025-07-18T09:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: 5 axis codes with G43.4 compensation</title>
      <link>https://www.ptcusercommunity.com/t5/Manufacturing-CAM/5-axis-codes-with-G43-4-compensation/m-p/1025449#M5695</link>
      <description>&lt;P&gt;in Gpost&amp;nbsp; Option file generator&amp;nbsp; &amp;nbsp;in 'Advanced tab' Fil editor....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cimfil/on,loadtl&lt;BR /&gt;rslt=postf(2,1,2707,1)&lt;BR /&gt;rslt=postf(13)&lt;BR /&gt;rslt=postf(2,1,2707,0)&lt;BR /&gt;TNUMB=POSTF(7,4)&lt;BR /&gt;TNUM=TEXT/CONVF,TNUMB,8,4,0,1,4&lt;BR /&gt;insert/'G43.3H',TNUM,'Z210.00','$'&lt;BR /&gt;cimfil/off&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;T09M06&lt;BR /&gt;G43.3H9Z210.00&lt;BR /&gt;S75M03&lt;BR /&gt;G0X-.27383Y.303&lt;/P&gt;&lt;P&gt;.......................&lt;/P&gt;&lt;P&gt;The Z210.000 is fixed/hard coded. Can have it use your retract plane.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2025 13:23:59 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Manufacturing-CAM/5-axis-codes-with-G43-4-compensation/m-p/1025449#M5695</guid>
      <dc:creator>peter_mueller</dc:creator>
      <dc:date>2025-07-18T13:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: 5 axis codes with G43.4 compensation</title>
      <link>https://www.ptcusercommunity.com/t5/Manufacturing-CAM/5-axis-codes-with-G43-4-compensation/m-p/1025521#M5696</link>
      <description>&lt;P&gt;Hello, Peter Mueller. Many thanks for the reply..&lt;STRONG&gt;.(&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;The Z210.000 is fixed/hard-coded. Can you use your retract plane)&lt;/STRONG&gt;&amp;nbsp;Is it possible that Z value is also derived from NC Sequence Retract or the Clearance Plane?also how post processor know which sequence 3 and which is 4-axis or 5-axis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Asif&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jul 2025 04:31:21 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Manufacturing-CAM/5-axis-codes-with-G43-4-compensation/m-p/1025521#M5696</guid>
      <dc:creator>asifcad</dc:creator>
      <dc:date>2025-07-19T04:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: 5 axis codes with G43.4 compensation</title>
      <link>https://www.ptcusercommunity.com/t5/Manufacturing-CAM/5-axis-codes-with-G43-4-compensation/m-p/1026294#M5701</link>
      <description>&lt;P&gt;I'll look into this one when I have time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use multiple posts for 3.4 and 5axis. Less complicated&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 12:44:52 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Manufacturing-CAM/5-axis-codes-with-G43-4-compensation/m-p/1026294#M5701</guid>
      <dc:creator>peter_mueller</dc:creator>
      <dc:date>2025-07-24T12:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: 5 axis codes with G43.4 compensation</title>
      <link>https://www.ptcusercommunity.com/t5/Manufacturing-CAM/5-axis-codes-with-G43-4-compensation/m-p/1026298#M5702</link>
      <description>&lt;P&gt;Posts for each machine are much easier to maintain and customize. Keep It Simple and your life becomes easier.&lt;/P&gt;
&lt;P&gt;Take one post and copy it for another if the machines&amp;nbsp; are very similar, then tweak to that machines needs to deliver a NC tape that is efficient.&lt;/P&gt;
&lt;P&gt;By using multiple posts, you can include custom PPRINT statements to help the machinist and others who may look at the printout.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 13:02:08 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Manufacturing-CAM/5-axis-codes-with-G43-4-compensation/m-p/1026298#M5702</guid>
      <dc:creator>BenLoosli</dc:creator>
      <dc:date>2025-07-24T13:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: 5 axis codes with G43.4 compensation</title>
      <link>https://www.ptcusercommunity.com/t5/Manufacturing-CAM/5-axis-codes-with-G43-4-compensation/m-p/1036711#M5732</link>
      <description>&lt;P&gt;Play with this INTCOM:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KKHOFF 2707 Switch to output Zlength (G43) CUTCOM with next Z Block&lt;BR /&gt;Default = 72 (off)&lt;BR /&gt;Range = 71 (on) Output CUTCOM with next Z block&lt;BR /&gt;72 (off) Do not output CUTCOM with next Z block&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Depending on your option file setup, it can also output H with the "G43" and Z value.&lt;/P&gt;&lt;P&gt;You can then use REPLAC to change G43 to G43.4.&lt;/P&gt;&lt;P&gt;I wouldn't hard code the line with an insert statement.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Oct 2025 00:17:53 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Manufacturing-CAM/5-axis-codes-with-G43-4-compensation/m-p/1036711#M5732</guid>
      <dc:creator>BF_14259101</dc:creator>
      <dc:date>2025-10-03T00:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: 5 axis codes with G43.4 compensation</title>
      <link>https://www.ptcusercommunity.com/t5/Manufacturing-CAM/5-axis-codes-with-G43-4-compensation/m-p/1036712#M5733</link>
      <description>&lt;P&gt;Sorry, I just looked at your FIL file.&amp;nbsp; Well....there's a lot of work to do if you really want control of your code.&lt;/P&gt;&lt;P&gt;The code below is basically a STUB, but may give you some ideas.&lt;/P&gt;&lt;P&gt;TCH=0&lt;/P&gt;&lt;P&gt;CIMFIL/ON,LOADTL&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; TCH=TCH+1&lt;/P&gt;&lt;P&gt;$$ needs to trigger a flag that a loadtl has been read.&lt;/P&gt;&lt;P&gt;$$ It should also have techniques to output various codes based on&lt;/P&gt;&lt;P&gt;$$ being the FIRST loadtl or subsequent loadtl's.&amp;nbsp; I wouldn't do it with MACHIN&lt;/P&gt;&lt;P&gt;$$ as there are times you don't want a MACHIN statement or will have multiple&lt;/P&gt;&lt;P&gt;$$ MACHIN statmenets.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; RESTAR = 71&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; IF(TCH .EQ. 1) THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $$COMMANDS TO WRITE BEFORE FIRST TOOL CHANGE&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ELSE&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $$COMMANDS TO WRITE ON ALL OTHER TOOL CHANGES&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ENDIF&lt;/P&gt;&lt;P&gt;CIMFIL/OFF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CIMFIL/ON,GOTO&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;XX=POSTF(20)&lt;/P&gt;&lt;P&gt;$$Here there is lots of cool stuff we can do....&lt;/P&gt;&lt;P&gt;$$ dealing with planar machining&lt;/P&gt;&lt;P&gt;$$ lintol settings based on a feedrate threshold&lt;/P&gt;&lt;P&gt;$$ 90 deg head limits,&lt;/P&gt;&lt;P&gt;$$ automatic clamping and automatic retracting&lt;/P&gt;&lt;P&gt;$$ and much more....&lt;/P&gt;&lt;P&gt;$$ but at a minimum basically:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF(RESTAR .EQ. 71) THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;$$put startup blocks here in the format you&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;$$ want after a tool change.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;RAPID&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;PREFUN/90,NEXT&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;PREFUN/WRKOFF,NEXT&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;POSTN/OUT,X,xval,Y,yval,S,sval,M,mval.....is&amp;nbsp; a nice easy way&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;XX=POSTF(2,1,2707,71)&amp;nbsp; $$ output G43 H with next Z&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;RESTAR = 72&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;XX=POSTF(21)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;XX=POSTF(13)&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;CIMFIL/OFF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CIMFIL/ON,SPINDL&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; IF(RESTAR .EQ. 71) THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CALL/SIMPST&amp;nbsp; &amp;nbsp;$$populate commons, don't write out&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ELSE&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; XX=POSTF(13)&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;ENDIF&lt;/P&gt;&lt;P&gt;CIMFIL/OFF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Same stuff for COOLNT&lt;/P&gt;&lt;P&gt;I have checks in my CIMFIL area to ensure modality so I only output when something CHANGES, and&amp;nbsp;&lt;/P&gt;&lt;P&gt;generally if it's a RESTAR because of&amp;nbsp; LOADTL I just store values and deal with it at GOTO.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Oct 2025 00:36:32 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Manufacturing-CAM/5-axis-codes-with-G43-4-compensation/m-p/1036712#M5733</guid>
      <dc:creator>BF_14259101</dc:creator>
      <dc:date>2025-10-03T00:36:32Z</dc:date>
    </item>
  </channel>
</rss>

