<?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: CAM Warning meaning in Fusion Manufacture Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/cam-warning-meaning/m-p/10640334#M58536</link>
    <description>&lt;P&gt;Attached is a screenshot of the line of code referenced in the warning message, Line 1898. &amp;nbsp;There is only one other line of code identified in my search that contains "function on parameter", that being line 1160, see second screenshot attached. &amp;nbsp;I know virtually nothing about coding so I don't know what if anything this reveals as it pertains to the warning.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Sep 2021 16:55:13 GMT</pubDate>
    <dc:creator>timothyhinessr</dc:creator>
    <dc:date>2021-09-22T16:55:13Z</dc:date>
    <item>
      <title>CAM Warning meaning</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/cam-warning-meaning/m-p/10638149#M58531</link>
      <description>&lt;P&gt;&lt;SPAN&gt;After making the first run of&amp;nbsp;some&amp;nbsp;wheel spacers I designed, I decided to replace some edge chamfers with a radius using a 1/4 round&amp;nbsp;&lt;/SPAN&gt;end mill. &amp;nbsp;This required adding the radius feature to the CAD model after having already generated all the tool paths for the other operations. &amp;nbsp;I have three different variations of the spacer so making the changes to each required a fair amount of work. &amp;nbsp;Now when I post process the programs, I get the following warning:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Warning: (/Users/Tim/Autodesk/Fusion 360 CAM/Posts/PPWithProbing.cps:1898) redeclaration of function onParameter&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've searched the forum, YouTube and Google and can't find an explanation for this warning. &amp;nbsp;I'm using a post processor from David Loomes for my Tormach 1100MX. &amp;nbsp;It appears to post process fine and everything acts the same as before. &amp;nbsp;I'm not able at this time to actually run the program so I don't know if this is going to be a problem when it comes time to actually make the parts. &amp;nbsp;I've attempted to attach the file to this post. &amp;nbsp;Any suggestions would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks, Tim&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 22:11:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture-forum/cam-warning-meaning/m-p/10638149#M58531</guid>
      <dc:creator>timothyhinessr</dc:creator>
      <dc:date>2021-09-21T22:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: CAM Warning meaning</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/cam-warning-meaning/m-p/10638836#M58532</link>
      <description>&lt;P&gt;Hello &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5120535"&gt;@timothyhinessr&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apparently there is an error inside the post processor.&lt;/P&gt;
&lt;P&gt;It seems that two version of the function onParameter are defined in the post.&lt;/P&gt;
&lt;P&gt;As the post is not in our library, i can't give a deeper analysis.&lt;/P&gt;
&lt;P&gt;You can open the cps file using a text editor, then search for the string "function onparameter" (ignoring the case)&lt;/P&gt;
&lt;P&gt;You will find several (at least 2) definitions according to the error message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a nice day.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 06:47:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture-forum/cam-warning-meaning/m-p/10638836#M58532</guid>
      <dc:creator>serge.quiblier</dc:creator>
      <dc:date>2021-09-22T06:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: CAM Warning meaning</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/cam-warning-meaning/m-p/10639178#M58533</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5120535"&gt;@timothyhinessr&lt;/a&gt;&amp;nbsp;if you could also share your post processor, that would allow other community members to take a peek at the settings and perhaps figure out what's going wrong.&lt;/P&gt;
&lt;P&gt;Question though; is the generic Tormach post processor that Autodesk provides insufficient for your needs?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 09:02:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture-forum/cam-warning-meaning/m-p/10639178#M58533</guid>
      <dc:creator>seth.madore</dc:creator>
      <dc:date>2021-09-22T09:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: CAM Warning meaning</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/cam-warning-meaning/m-p/10640225#M58534</link>
      <description>&lt;P&gt;I've attached the post processor. &amp;nbsp;Also, it's not that the generic Tormach post processor is insufficient for my needs, I just like the added flexibility the Loomes post processor provides for retract moves.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 16:08:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture-forum/cam-warning-meaning/m-p/10640225#M58534</guid>
      <dc:creator>timothyhinessr</dc:creator>
      <dc:date>2021-09-22T16:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: CAM Warning meaning</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/cam-warning-meaning/m-p/10640293#M58535</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5120535"&gt;@timothyhinessr&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As expected, brutal copy and paste, without checking after action.&lt;BR /&gt;First occurence, in the main body&lt;BR /&gt;function onParameter(name, value) &lt;BR /&gt;{&lt;BR /&gt;if (name == "display") &lt;BR /&gt;{&lt;BR /&gt;writeComment("MSG, " + value);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second occurence grabed from an inspection post&lt;BR /&gt;function onParameter(name, value) &lt;BR /&gt;{&lt;BR /&gt;if (name == "probe-output-work-offset") &lt;BR /&gt;{&lt;BR /&gt;probeOutputWorkOffset = inspectionRunning ? 1000 : ((value &amp;gt; 0) ? value : 1);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A function can only be defined once with a unique name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It should be grouped in order to have 1 function supporting the 2 fonctionnalities.&lt;/P&gt;
&lt;P&gt;function onParameter(name, value) &lt;BR /&gt;{&lt;BR /&gt;if (name == "display") &lt;BR /&gt;{&lt;BR /&gt;writeComment("MSG, " + value);&lt;BR /&gt;}&lt;BR /&gt;if (name == "probe-output-work-offset") &lt;BR /&gt;{&lt;BR /&gt;probeOutputWorkOffset = inspectionRunning ? 1000 : ((value &amp;gt; 0) ? value : 1);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please fiind attached the revised post.&lt;/P&gt;
&lt;P&gt;Please warn the original provider about the potential issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;______________________________________________________________&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0174DF"&gt;If my post answers your question, please click the &lt;STRONG&gt;"Accept Solution"&lt;/STRONG&gt; button. This helps everyone find answers more quickly!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 16:43:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture-forum/cam-warning-meaning/m-p/10640293#M58535</guid>
      <dc:creator>serge.quiblier</dc:creator>
      <dc:date>2021-09-22T16:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: CAM Warning meaning</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/cam-warning-meaning/m-p/10640334#M58536</link>
      <description>&lt;P&gt;Attached is a screenshot of the line of code referenced in the warning message, Line 1898. &amp;nbsp;There is only one other line of code identified in my search that contains "function on parameter", that being line 1160, see second screenshot attached. &amp;nbsp;I know virtually nothing about coding so I don't know what if anything this reveals as it pertains to the warning.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 16:55:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture-forum/cam-warning-meaning/m-p/10640334#M58536</guid>
      <dc:creator>timothyhinessr</dc:creator>
      <dc:date>2021-09-22T16:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: CAM Warning meaning</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/cam-warning-meaning/m-p/10640381#M58537</link>
      <description>&lt;P&gt;Thanks Serge, the post you provided seems to work properly, no warnings displayed upon post processing. &amp;nbsp;Mr. Loomes found the problem about the same time you did and has also corrected it. &amp;nbsp;Thanks so much for the help, you guys at AutoDesk provide the best customer service I've experienced pretty much anywhere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 17:15:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture-forum/cam-warning-meaning/m-p/10640381#M58537</guid>
      <dc:creator>timothyhinessr</dc:creator>
      <dc:date>2021-09-22T17:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: CAM Warning meaning</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/cam-warning-meaning/m-p/10641749#M58538</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5120535"&gt;@timothyhinessr&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As javascript may analyse and interprets the cps file from top to bottom, when it encounter the "excess" declaration of the same named function, it complain on the copy, by without referencing the line of the previous definition.&lt;/P&gt;
&lt;P&gt;Without going into too much details, the interpreter may create a list of functions names, but without storing the actual location in the cps file.&lt;/P&gt;
&lt;P&gt;In VSCode with the HSM post extension, it's only firing a warining not an error, but it can be missed, if not looking close into the log file.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sergequiblier_0-1632386442226.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/968632i9970F000C3D97D4B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sergequiblier_0-1632386442226.png" alt="sergequiblier_0-1632386442226.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 08:41:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture-forum/cam-warning-meaning/m-p/10641749#M58538</guid>
      <dc:creator>serge.quiblier</dc:creator>
      <dc:date>2021-09-23T08:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: CAM Warning meaning</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/cam-warning-meaning/m-p/10642999#M58539</link>
      <description>So much to learn, so little time!&lt;BR /&gt;&lt;BR /&gt;Thanks again for the help.</description>
      <pubDate>Thu, 23 Sep 2021 16:24:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture-forum/cam-warning-meaning/m-p/10642999#M58539</guid>
      <dc:creator>timothyhinessr</dc:creator>
      <dc:date>2021-09-23T16:24:29Z</dc:date>
    </item>
  </channel>
</rss>

