<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://compost.gibbscam.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jimr</id>
	<title>Compost Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://compost.gibbscam.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jimr"/>
	<link rel="alternate" type="text/html" href="https://compost.gibbscam.com/index.php?title=Special:Contributions/Jimr"/>
	<updated>2026-12-05T18:43:37Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://compost.gibbscam.com/index.php?title=Talk:ChangeCS&amp;diff=7186</id>
		<title>Talk:ChangeCS</title>
		<link rel="alternate" type="text/html" href="https://compost.gibbscam.com/index.php?title=Talk:ChangeCS&amp;diff=7186"/>
		<updated>2019-09-30T19:53:10Z</updated>

		<summary type="html">&lt;p&gt;Jimr: Created page with &amp;quot;The “ChangeCS?” Boolean returns true when the current operation uses a difference Machining CS than the previous operation.  There are some specifications which state that...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The “ChangeCS?” Boolean returns true when the current operation uses a difference Machining CS than the previous operation.  There are some specifications which state that the Machining CS used by a particular operation should not be used in the output, and that the base XY plane CS be used instead.  The “ChangeCS?” Boolean cannot be used to detect these situations, but this routine can be.&lt;br /&gt;
	ckChngCS:&lt;br /&gt;
		SetVar#(&#039;PrevCS&#039;) GetVar#(&#039;ThisCS&#039;)&lt;br /&gt;
		IF AnyRotaryMoves? OR ABCToolPath? OR RotaryMill?&lt;br /&gt;
			SetVar#(&#039;ThisCS&#039;) WPXYCS CSListID#&lt;br /&gt;
		ELSE&lt;br /&gt;
			SetVar#(&#039;ThisCS&#039;) CSListID#&lt;br /&gt;
		END&lt;br /&gt;
		IF Equal? GetVar#(&#039;PrevCS&#039;) GetVar#(&#039;ThisCS&#039;)&lt;br /&gt;
			SetFlagF(&#039;ChngCS&#039;)&lt;br /&gt;
		ELSE&lt;br /&gt;
			SetFlag(&#039;ChngCS&#039;)&lt;br /&gt;
		END&lt;br /&gt;
	RETURN&lt;br /&gt;
After calling this routine you can replace the “ChangeCS?” Boolean with “Flag?(&#039;ChngCS&#039;).&lt;br /&gt;
&lt;br /&gt;
At first glance, you can see that improvements to the GibbsCAM language would allow a Boolean and not require a flag.  Something like this for example.&lt;br /&gt;
	chngCS?:&lt;br /&gt;
		IF LastOperation AnyRotaryMoves? OR LastOperation ABCToolPath? OR LastOperation RotaryMill?&lt;br /&gt;
			SetLocalVar#(&#039;PrevCS&#039;) WPXYCS CSListID#&lt;br /&gt;
		ELSE&lt;br /&gt;
			SetLocalVar#(&#039;PrevCS&#039;) LastOperation CSListID#&lt;br /&gt;
		END&lt;br /&gt;
		IF AnyRotaryMoves? OR ABCToolPath? OR RotaryMill?&lt;br /&gt;
			SetLocalVar#(&#039;ThisCS&#039;) WPXYCS CSListID#&lt;br /&gt;
		ELSE&lt;br /&gt;
			SetLocalVar#(&#039;ThisCS&#039;) CSListID#&lt;br /&gt;
		END&lt;br /&gt;
		IF Equal? SetLocalVar#(&#039;PrevCS&#039;) SetLocalVar#(&#039;ThisCS&#039;)&lt;br /&gt;
			ReturnBool FALSE&lt;br /&gt;
		ELSE&lt;br /&gt;
			ReturnBool TRUE&lt;br /&gt;
		END&lt;br /&gt;
	RETURN&lt;br /&gt;
There are advantages to both.  The purpose of this writing is to illuminate the specification that a post processor does not use the Machining CS and a way to detect it.&lt;/div&gt;</summary>
		<author><name>Jimr</name></author>
	</entry>
	<entry>
		<id>https://compost.gibbscam.com/index.php?title=Talk:EachSpiralSeg&amp;diff=7004</id>
		<title>Talk:EachSpiralSeg</title>
		<link rel="alternate" type="text/html" href="https://compost.gibbscam.com/index.php?title=Talk:EachSpiralSeg&amp;diff=7004"/>
		<updated>2018-11-02T17:49:51Z</updated>

		<summary type="html">&lt;p&gt;Jimr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Per Jeffrey Myers Fri 11/2/2018 10:16 AM&lt;br /&gt;
&lt;br /&gt;
The EachSpiralSeg loop uses the Arc Segment Tolerance that is set by the command SetArcSegmentAccuracy.&lt;/div&gt;</summary>
		<author><name>Jimr</name></author>
	</entry>
	<entry>
		<id>https://compost.gibbscam.com/index.php?title=Talk:EachSpiralSeg&amp;diff=7003</id>
		<title>Talk:EachSpiralSeg</title>
		<link rel="alternate" type="text/html" href="https://compost.gibbscam.com/index.php?title=Talk:EachSpiralSeg&amp;diff=7003"/>
		<updated>2018-11-02T17:49:17Z</updated>

		<summary type="html">&lt;p&gt;Jimr: Created page with &amp;quot;Per Jeffrey Myers Fri 11/2/2018 10:16 AM The EachSpiralSeg loop uses the Arc Segment Tolerance that is set by the command SetArcSegmentAccuracy.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Per Jeffrey Myers Fri 11/2/2018 10:16 AM&lt;br /&gt;
The EachSpiralSeg loop uses the Arc Segment Tolerance that is set by the command SetArcSegmentAccuracy.&lt;/div&gt;</summary>
		<author><name>Jimr</name></author>
	</entry>
	<entry>
		<id>https://compost.gibbscam.com/index.php?title=Talk:ForceRotationsExpandF&amp;diff=6883</id>
		<title>Talk:ForceRotationsExpandF</title>
		<link rel="alternate" type="text/html" href="https://compost.gibbscam.com/index.php?title=Talk:ForceRotationsExpandF&amp;diff=6883"/>
		<updated>2018-04-11T17:23:13Z</updated>

		<summary type="html">&lt;p&gt;Jimr: Created page with &amp;quot;This command will override the Form flag.  In other words, if the Allow Rotary Repeats Subs checkbox is not checked, calling this command will change the post processor to beh...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This command will override the Form flag.  In other words, if the Allow Rotary Repeats Subs checkbox is not checked, calling this command will change the post processor to behave as though it is checked.&lt;/div&gt;</summary>
		<author><name>Jimr</name></author>
	</entry>
	<entry>
		<id>https://compost.gibbscam.com/index.php?title=Talk:AnyRotaryMoves&amp;diff=6747</id>
		<title>Talk:AnyRotaryMoves</title>
		<link rel="alternate" type="text/html" href="https://compost.gibbscam.com/index.php?title=Talk:AnyRotaryMoves&amp;diff=6747"/>
		<updated>2017-11-07T18:52:37Z</updated>

		<summary type="html">&lt;p&gt;Jimr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The description of this keyword has changed from &amp;quot;rotates&amp;quot; to &amp;quot;can rotate&amp;quot;.  This is a significant change!  Many post processors have been created with the original definition.  For example, the previous Fanuc master was changed in July 2013 with v26 to use this boolean.  The purpose was to support the GibbsCAM specification that a 5-axis operation that does not move a rotary axis while cutting can be output in a CS other than CS1.  The Note section of the keyword description still refers to this usage.  The added Method of Operation section points out however that this is not accurate.  A new method of detecting whether or not an operation rotates while cutting is needed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Update...&lt;br /&gt;
&lt;br /&gt;
The Boolean AxisMovesInToolpath?(&#039;n&#039;) has been added.  So the new method would be like this:&lt;br /&gt;
&lt;br /&gt;
IF AxisMovesInToolpath?(&#039;1stRotary&#039;) OR AxisMovesInToolpath?(&#039;2ndRotary&#039;)&lt;/div&gt;</summary>
		<author><name>Jimr</name></author>
	</entry>
	<entry>
		<id>https://compost.gibbscam.com/index.php?title=Talk:Offsets_and_Workplane:Workplanes&amp;diff=6706</id>
		<title>Talk:Offsets and Workplane:Workplanes</title>
		<link rel="alternate" type="text/html" href="https://compost.gibbscam.com/index.php?title=Talk:Offsets_and_Workplane:Workplanes&amp;diff=6706"/>
		<updated>2017-07-12T23:16:11Z</updated>

		<summary type="html">&lt;p&gt;Jimr: Created page with &amp;quot;The checkbox &amp;quot;Euler Workplane in Part Space&amp;quot; has changed.  In previous versions it had a different name and the opposite function.  As an example, I created a post in v4.2.99....&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The checkbox &amp;quot;Euler Workplane in Part Space&amp;quot; has changed.  In previous versions it had a different name and the opposite function.  As an example, I created a post in v4.2.99.31 for GibbsCAM v11.3.10.  Now in v4.4.0.1 and GibbsCAM 11.3.34, while testing unrelated post changes, there is a difference in output and I have to go and check the box to get the same output as before.  If your post uses Euler Angles, I suggest testing their output after compiling with a newer version of ComPost.&lt;/div&gt;</summary>
		<author><name>Jimr</name></author>
	</entry>
	<entry>
		<id>https://compost.gibbscam.com/index.php?title=Talk:AnyRotaryMoves&amp;diff=6695</id>
		<title>Talk:AnyRotaryMoves</title>
		<link rel="alternate" type="text/html" href="https://compost.gibbscam.com/index.php?title=Talk:AnyRotaryMoves&amp;diff=6695"/>
		<updated>2017-07-10T17:47:21Z</updated>

		<summary type="html">&lt;p&gt;Jimr: Created page with &amp;quot;The description of this keyword has changed from &amp;quot;rotates&amp;quot; to &amp;quot;can rotate&amp;quot;.  This is a significant change!  Many post processors have been created with the original definition...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The description of this keyword has changed from &amp;quot;rotates&amp;quot; to &amp;quot;can rotate&amp;quot;.  This is a significant change!  Many post processors have been created with the original definition.  For example, the previous Fanuc master was changed in July 2013 with v26 to use this boolean.  The purpose was to support the GibbsCAM specification that a 5-axis operation that does not move a rotary axis while cutting can be output in a CS other than CS1.  The Note section of the keyword description still refers to this usage.  The added Method of Operation section points out however that his is not accurate.  A new method of detecting whether or not an operation rotates while cutting is needed.&lt;/div&gt;</summary>
		<author><name>Jimr</name></author>
	</entry>
	<entry>
		<id>https://compost.gibbscam.com/index.php?title=LegacyPostLogic&amp;diff=5942</id>
		<title>LegacyPostLogic</title>
		<link rel="alternate" type="text/html" href="https://compost.gibbscam.com/index.php?title=LegacyPostLogic&amp;diff=5942"/>
		<updated>2015-06-24T18:31:20Z</updated>

		<summary type="html">&lt;p&gt;Jimr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
The legacy post logic check-box in the Program Options dialog, Options tab in Compost controls a number of odd/inconsistent behaviors in the post engine. The check-box exists to allow older post processors to continue to run with the inconsistent behavior of older versions to maintain compatibility.&lt;br /&gt;
&lt;br /&gt;
The vast majority of these behaviors are included simply to minimize the number of regression discrepancies. It is expected that newer post processors will be written to not rely on these problems and will want the more consistent behavior of the flag being disabled. The post engine will assume that a post processor has been updated to work with out the need for these legacy behaviors when the check-box is off.&lt;br /&gt;
&lt;br /&gt;
All upgraded PST files have this check-box enabled by default so they will post as close to older versions as possible.&lt;br /&gt;
&lt;br /&gt;
==Effects of flag==&lt;br /&gt;
When the check-box is enabled the following logical behaviors will be in effect.&lt;br /&gt;
&lt;br /&gt;
===Cylindrical Milling===&lt;br /&gt;
In legacy mode, the post engine will ignore tracking of the cylindrical wrap axis to behave more like 10.7&#039;s separate status registers. Because post processors don&#039;t consistently call [[SetCylindricalInterp]] for wrapped ops that are posted with flat geometry, the post engine has to ignore some tracking calls to the linear axis that is tied to the wrap axis. This is a problem in V11 because even though a post may output a Y axis move when doing cylindrical interpolation, the actual Y axis on the machine does not move. The motion is output as a rotation. V11 knows this and maps the unwrapped linear axis to the matching rotary axis. The post engine assumes that posts that output flat will ask for Y values, and posts that output wrapped will ask for rotary values. Sadly not all posts do this consequently and track linear axes when they are actually output angles. To make these posts output valid g-code the post engine will ignore some tracking calls when they would conflict. This prevents the Y and C axis from &amp;quot;fighting&amp;quot; over the status in the case of a mill/turn.&lt;br /&gt;
&lt;br /&gt;
Modern posts that do properly respect the rules about flat vs. wrapped do not need this legacy behavior.&lt;br /&gt;
&lt;br /&gt;
===Polar Milling===&lt;br /&gt;
Some legacy post processors did not track both the X and Y values when outputting in polar-interpolation. For this reason our legacy emulation logic is designed to update the status state properly in these cases, pulling the missing information from the current feature&#039;s endpoint angle. Posts that correct output and track in a valid polar mode do not need this legacy behavior. This issue is mainly found in Okuma posts that incorrectly computed polar rotary motion from linear features.&lt;br /&gt;
&lt;br /&gt;
===Y axis on approach and retract===&lt;br /&gt;
Older versions of the post engine defaulted the Y status register differently then V11 does (it was not based off a kinematic tree). This had the effect of changing the Y output in Mill/Turn approach loops and many posts depend on this behavior. The legacy logic flag puts in special logic to emulate this behavior in the status register. Newer posts that properly setup flow start status states, and fully output each move in the approach and retract do not want this behavior.&lt;br /&gt;
&lt;br /&gt;
===CRC Reversal===&lt;br /&gt;
Older versions of the post engine would base CRC direction on how the part station depth axis mapped to the tool-group. This is inconsistent with all other plane based reversal systems, so posts would often have to reverse CRC differently then they did arcs and planes. The legacy behavior is to emulate this inconsistency. Posts that want all direction based computations be handled the same do not need this legacy behavior.&lt;br /&gt;
&lt;br /&gt;
===Turning Plane Reversal===&lt;br /&gt;
Older versions of the post engine defined the plane for turning operations backwards from milling operations done in the same orientation. The legacy behavior is to emulate this inconsistency. Posts that want all planes to be based on the same computations do not need this legacy behavior.&lt;br /&gt;
&lt;br /&gt;
===ZDepth===&lt;br /&gt;
Older versions of the post engine forced [[ZDepth]] to output a distance from the exit plane instead of an absolute value for milling ops. Posts that want all depths to be based on the same computations do not need this legacy behavior.&lt;br /&gt;
&lt;br /&gt;
===WFO Offsets===&lt;br /&gt;
Older versions of the post engine automatically undid the effects of [[ClearCSOffset]] on each iteration of the EachOp/NextOp loop. This had the effect of putting posts back into &amp;quot;D&amp;quot; style when it was doing the previous operation&#039;s retract. This could have adverse affects on the exit moves if the machine was left in a local WFO. When the legacy logic is disabled, the previous op&#039;s WFO mode is left in effect until it is canceled.&lt;br /&gt;
&lt;br /&gt;
===FeedrateC And Rapid Moves===&lt;br /&gt;
Older versions of the post engine would allow [[FeedrateC]] to be called and output on a rapid move. The legacy logic behavior is to still allow this. Modern posts suppress the output of feed rates on rapid moves.&lt;br /&gt;
&lt;br /&gt;
===LessThan Tolerance===&lt;br /&gt;
Older versions of the post engine used a very loose tolerance for the Less Than operator. This can cause accuracy problems. The old tolerance is only enabled when the legacy logic flag is enabled.&lt;br /&gt;
&lt;br /&gt;
===ToolGroup# called outside EachOP Loop===&lt;br /&gt;
Older versions of the post engine would allow the command [[ToolGroup#]] to be called outside an operation loop, but did not always return valid information. V11 is designed to generate a posting error if this happens so the developers knows that the call is invalid. The legacy flag forces this case to return -1 and not generate the error. This was done so that old customer posts did not have to be updated to work in 11. The old values were invalid before and -1 is still invalid so the end result on the post logic is the same.&lt;br /&gt;
&lt;br /&gt;
[[Category:Articles]]&lt;/div&gt;</summary>
		<author><name>Jimr</name></author>
	</entry>
	<entry>
		<id>https://compost.gibbscam.com/index.php?title=V11_Posting_Output_Changes&amp;diff=5941</id>
		<title>V11 Posting Output Changes</title>
		<link rel="alternate" type="text/html" href="https://compost.gibbscam.com/index.php?title=V11_Posting_Output_Changes&amp;diff=5941"/>
		<updated>2015-06-24T16:06:24Z</updated>

		<summary type="html">&lt;p&gt;Jimr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
GibbsCAM UKM Post Engine has been rewritten. This means that new capabilities were added that previous versions either didn&#039;t support, &lt;br /&gt;
or supported poorly. This wiki page will itemize the changes in posted output between GibbsCAM v10 and GibbsCAM UKM.&lt;br /&gt;
&lt;br /&gt;
If you contribute to this page, please try to add descriptions why the UKM output is better than v10 output, or why the decision was made to change the output.&lt;br /&gt;
&lt;br /&gt;
==Changes in UKM Posted Output==&lt;br /&gt;
&lt;br /&gt;
===MetricOutput? Command===&lt;br /&gt;
If the [[MetricOutput|MetricOutput?]] command is called in a post that does not support inch/metric combo output ( as in it does not have the flags set in the form) then it will return FALSE by default.&lt;br /&gt;
&lt;br /&gt;
===Repeat Loops===&lt;br /&gt;
All Repeat loops (repeats, patterns, rotations) have been updated to fully update all start position and toolpath commands to be in the correct place for each instance of the repeat. The main change for this is that when a post is in an [[EachRotation]] Loop all the axes will be updated for the rotation not just the single rotary angle. This can affect the StartPosY command during subsequent loops. Only a single post has been found that outputs Y values outside of the toolpath sub and is affected by this change.&lt;br /&gt;
&lt;br /&gt;
===Tool Offsets===&lt;br /&gt;
The software now automatically computes tool offsets for all mill tools, regardless of the MDD setting. Since most posts always stay in tool tip mode, this can affect where the software thinks the tool group datum and axes are.&lt;br /&gt;
&lt;br /&gt;
===Status Register===&lt;br /&gt;
The Status register no longer tracks just the axis values that the post outputs. The Stats register has been replaced with a kinematic model of the machine that is updated to match moves the post processor makes. The status tree tracks the actual axis and node positions of all parts of the machine. This makes it unnecessary to &amp;quot;retrack&amp;quot; after changing an output modes since the status tree does not physicaly move on a mode change.&lt;br /&gt;
&lt;br /&gt;
Some changes in conditionality may happen if the post does not ask for output in the correct tool/CS. This can happen if a legacy post calls a command like ZCP1C during the retract section of a new tool and does not use LAST, or LASTOPERATION before the command. In this case the status register would have been updated at the end of toolpath using the previous tool, but will now be evaluated using the current op tool, this may cause the conditionality command to think the tooltip is not where it actual is on the machine if it has not done the tool-change yet. It is important for legacy non-looper posts to know what tool/CS they are using during the retract sections of new tool and CS change ops, especially if they never change modes.&lt;br /&gt;
&lt;br /&gt;
The status register is not longer initialized to &amp;quot;999999999.99&amp;quot; for linear axes and &amp;quot;0&amp;quot; for rotary axes. Conditional commands and move Booleans will always return true on the first test of an axis before it is tracked or output. This will force the first potion to be output since we don&#039;t know where the machine is at the start. This does not affect most posts since they usual call SetHome or some other set of commands to initialize the machine state.&lt;br /&gt;
&lt;br /&gt;
===Rotation out of limits===&lt;br /&gt;
The old post engine would only warn about ops that were out of rotary limits, or required an axis that did not exist. It would then extend the limits, or add the missing rotary axis and compute a solution for the operation. This would cause the output to be &amp;quot;correct&amp;quot; as if the machine did not have the limit.&lt;br /&gt;
&lt;br /&gt;
The UKM posting engine will no longer &amp;quot;fix&amp;quot; bad programs. In addition to giving a warning the posting solution will try to get as close to the requested orientation as possible but will not add any axes or increase any limits. This will change how the tool ends up being oriented relative to the part during these operations, and will change X,Y, and Z values as we will not be able to move to the correct orientation for the workfixture.&lt;br /&gt;
&lt;br /&gt;
===Workfixture modes at program end===&lt;br /&gt;
The old post engine would &amp;quot;unclear&amp;quot; the csoffset after the last &amp;quot;NextOp&amp;quot; command. This would cause commands like ZCP1 to output in CS1 not the CS of the last op. The new post engine does not do this and keeps the post engine in a mode until it changes. Many badly written posts were output the CP1 in CS1 even if they were still in the WFO for the last op. This could cause crashes. Posts will now output the value in the last op&#039;s CS if they have not changed to mode to the CS1 WFO.&lt;br /&gt;
&lt;br /&gt;
===Incremental Angles===&lt;br /&gt;
Previous versions of the post engine did not support the output of rotary angles in incremental. UKM does. This will cause an output discrepancy between old posts that output incremental rotary repeats and wrapped pasterns. The old code was incorrect.&lt;br /&gt;
&lt;br /&gt;
===FeedRate=== &lt;br /&gt;
The FeedRate compost command called from outside a feature loop (toolpath) in v10 would output the Contour feedrate from the Mill process. UKM will output the Entry feedrate, if it has not yet been output. See Op7 in these sample files: [https://svn.gibbscam.com/svn/post_dev/samples/v10_UKM_Output_Diffs/FeedRate1.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
===Feed rates and Tap===&lt;br /&gt;
Calling FeedEnt, FeedRate and others will return the Pitch of the Tap/RigidTap tool in UKM. Tapping operations don&#039;t have an operation feedrate, so legacy used to output garbage feedrates set from previous operations. The &amp;quot;Tap %&amp;quot; in the operation dialog will still affect the pitch being output as the feedrate.&lt;br /&gt;
&lt;br /&gt;
===Polar Interpolation Tracking===&lt;br /&gt;
The post engine now automatically tracks the C angle when a post is in polar output based on the rounded X and Y values output for each feature. Previous versions of the post engine ignored the rotary axis during polar output and the post processor had to track to a C angle on each feature. This is no longer required and all tracking commands for the rotary axis are ignored when the post is in polar mode.&lt;br /&gt;
&lt;br /&gt;
===G92 error accumulation in .19 and previous posts===&lt;br /&gt;
Older mill/turn master posts did not properly handle the transition from polar interpolation to machine coordinates. These posts would track to a C angle that was based on a rotary angle rounded to 3 decimal places for each move. When in polar mode, the CNC does not go to any angle specified by the program, but instead computes an angle based on rounded X and Y values from the program. There is a difference between these angles that varies depending on the radius (up to 90 deg. very close to the center of rotation). These posts would then output a G92/G50 for this tracked angle WITHOUT outputting any actual angle when coming out of polar mode. This G92 would then &amp;quot;burn in&amp;quot; any error between the 2 angle systems and cause the program to drift by this amount.&lt;br /&gt;
&lt;br /&gt;
Newer posts output the tracked angle before the G92 and thus get the CNC state synced up with the post&#039;s internal state.&lt;br /&gt;
&lt;br /&gt;
In UKM the status register is no longer based on the machine angle that would be output if the post was not in polar, but on the estimated angle that control will go for the rounded XY input. These older posts will show a difference in the G92 angle after any same tool polar ops. The new angle is closer to where the machine actually is and will be off only by 1/2 of a rounding tolerance. Posts that have this problem should be upgraded to output a rounded &amp;quot;big angle&amp;quot; before calling the G92/G50&lt;br /&gt;
&lt;br /&gt;
===SetCP1LocalF===&lt;br /&gt;
The [[SetCP1LocalF]] command can cause problems in V11. A few posts attempted to turn Local CP1 on and off during a program. This is not allowed (and did not work correctly in older versions). The CP1 mode must be set once at the start of a program and be kept the same. Any post that attempts to change the CP1 state multiple times during a program will produce an error.&lt;br /&gt;
&lt;br /&gt;
===Small Segmentation Caryover===&lt;br /&gt;
The EachQuadrant/NextQuadrant loop now knows the rounding tolerance used by the axes that move. It will use this rounding tolerance to trim small arc segments that may extend past the quadrant boundary (aka ‘nubbins’). This should produce better output for posts that have correct values for axis label formats.&lt;br /&gt;
&lt;br /&gt;
===CP2 is now DrillCP===&lt;br /&gt;
The CP2 command will return the Z level where we start the first hole, this will be the DrillCP of the first hole. We have found a few posts that do not fully support drill clearances at anything other then the R level, these posts will now behave like the R level and the DrillCP are the same level, this makes the tool motion match rendering. &lt;br /&gt;
&lt;br /&gt;
===LoadFeat===&lt;br /&gt;
LoadFeat while obsolete has been changed in how it operates. It no longer requires the post to scale input values. Posts that used NumSC# to scale the input will need to be changed to ether not call load feat (most can just call LAST ZCP1C ) or to not scale the input.&lt;br /&gt;
&lt;br /&gt;
===ToolType$===&lt;br /&gt;
This command supports all tool types now. For instance, Form tools output &amp;quot;CUSTOM&amp;quot; in legacy but output &amp;quot;FORM&amp;quot; in UKM.&lt;br /&gt;
&lt;br /&gt;
===CutDepth in Threading===&lt;br /&gt;
Changed the CutDepth command to output a value equal to the thread height only when One Finish Pass is selected. (Defect# 12641)&lt;br /&gt;
&lt;br /&gt;
===Part Clearance and Op Clearance===&lt;br /&gt;
Approach and retract moves may be different than previous versions in some parts/operation configurations . The Part Clearance (CP1) will be moved to the Entry and Exit Operation Clearances (CP2/CP3) if needed. For some parts that set operation clearances higher than part clearances, this will have the effect of moving the part clearance up to the level of the operation clearance, and creating a zero-length feature between the 2 clearance levels. This change was made to prevent inter-op paths from going “Up then down” for parts programmed incorrectly.  &lt;br /&gt;
&lt;br /&gt;
For Example: For a turn drill cycle, CP1 is set to 0.1 in the DCD and CP2 is set to 0.3 in the process dialog, the post will output a move to Z0.3 in the approach loop and no other op clearance moves.&lt;br /&gt;
&lt;br /&gt;
===Conditionality Changes===&lt;br /&gt;
Conditionality has been changed significantly for V11. It no longer does simple comparisons of output numbers to detect a move. Conditionality in the entire posting system now uses the kinematic tree and does all tests in the tree’s machine space. This means that changes to output modes such as [[XsAreRadiiF]], [[ClearCSOffset]], and others will no longer cause unwanted output when the axis has not moved and only the mode has changed. This feature greatly reduces the redundant output caused by mode changes and ancillary axis motion (B axis head rotations in MTM). If a post developer wishes to force the output of an axis after a mode change, then they need to invalidate the status register for that axis using one of the Invalidate commands. This will force the output of the axis on the next Step that is capable of moving it. &lt;br /&gt;
&lt;br /&gt;
===Segmentation===&lt;br /&gt;
All segmentation has been upgraded to make better decisions on how to segment. The algorithm takes into account additional factors which will generate more, less, and/or different arc segments in the output. One way to think of it is the new v11 segmentation algorithm segments in Machine Space whereas the legacy solution was in Part Space. This will affect the following commands: [[EACHArcSegment]], [[EachFadalSegment]], [[EachPiece]], [[EACHQuadrant]], [[EachRotarySegment]], and [[EachSpiralSeg]].  &lt;br /&gt;
&lt;br /&gt;
===Coolant and Utility Operations===&lt;br /&gt;
The default coolant state for a utility operations is &amp;quot;Off,&amp;quot; and compost commands in legacy Gibbs would not detect this coolant state properly, now in V11 they do. This means querying IF [[CoolOff|CoolOff?]] in V11 for a Utility Operation without coolant will always be true, where legacy it wasn&#039;t necessarily. As an example, get the files in the following link and compare the .NCF (V11) and .OK (legacy) files. See how the end of Op2 (and other ops) turn off Coolant with M9 in the .NCF (V11) file. [https://svn.gibbscam.com/svn/post_dev/samples/v10_UKM_Output_Diffs/Coolant.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
===Automatic Sub Expansion===&lt;br /&gt;
Single Point Patterns and Face Polar Milling Patterns (Thread Milling) are automatically expanded longhand.&lt;br /&gt;
&lt;br /&gt;
===Spindle Control===&lt;br /&gt;
In legacy GibbsCAM, the Sync dialog allowed the user to click/unclick a multi-flow utility op tile to add or remove spindle control to the operation. In V11, all mill and utility operations will force all op tiles to be selected, whereby giving it spindle control (see defect 29679 for more details). For posting, this means the [[SpindleControl|SpindleControl?]] boolean is always true for mill and utility operations in V11, where legacy may not be the case. The [[SpindleControl|SpindleControl?]] boolean is widely used, so the impacts are too generalized to mention, but the most common usage is with turning workpiece spindles on and off.&lt;br /&gt;
&lt;br /&gt;
===[[NewTool|NewTool?]]===&lt;br /&gt;
[[NewTool|NewTool?]] will behave the same as it does in legacy, except now when transitioning from one op with a tool that uses ToolID to the next op with a tool that doesnt use ToolID, it will return false; meaning we no longer consider this scenario a tool change.&lt;br /&gt;
&lt;br /&gt;
===[[MoveC]] and [[OkumaMoveC]]===&lt;br /&gt;
There was a change in the behavior of the &amp;quot;MoveC&amp;quot; set of commands for V11. They used to be special cased and did not follow the same rules as other axes. This has been fixed in V11.&lt;br /&gt;
&lt;br /&gt;
in 10.7 the &amp;quot;rotary C&amp;quot; was updated to toolpath start on [[EachOp]]. This post then did not make any calls to [[CalcCAng]]. This prevented the special C from being updated. When the [[OkumaMoveC#]] was called after the BTC loop it just went and read the current value. If the post had done anything with C during the BTC loop, the angle after the BTC loop would have been changed. This is not good behavior since it is based on the state.&lt;br /&gt;
&lt;br /&gt;
In V11, the C axis is now read like all other axes, it is updated on every feature loop (ATC and BTC) included. This means that after the BTC loop, the C axis is at the tool change C, just like the Z value is at the tool change Z. This is consistent and desired behavior.&lt;br /&gt;
&lt;br /&gt;
When posts want values for the toolpath start location, they should use the StartPos set of commands. These commands are not based on the state of feature loops and have consistent behavior. In this case the post should call [[StartPosC#]] and set the angle output mode in the form to Okuma. This way the C axis behaves the same as all other axes (you would not call [[EPZ#]] to get the toolpath start in the same place, you&#039;d call [[StartPosZ#]])&lt;br /&gt;
&lt;br /&gt;
===[[CalcRPM2]]===&lt;br /&gt;
There is a change between 10 and 11 for the [[CalcRPM2]] command.&lt;br /&gt;
&lt;br /&gt;
GC2014 used the last X you were at to compute an RPM. GC2015 uses the RPM from CP3 where we know we turn CSS Off. This is so the command can match the prog-iterator speeds and match run-times.&lt;br /&gt;
&lt;br /&gt;
===[[FirstRotation|FirstRotation?]]===&lt;br /&gt;
The [[FirstRotation|FirstRotation?]] boolean used to return true in GC2014 if [[Rotations?]] was false (weren&#039;t any rotations). It now returns false in GC2015. &lt;br /&gt;
&lt;br /&gt;
It would also return true if called outside the [[EachRotation]]/[[NextRotation]] loop, in GC2014. It now returns false in GC2015. &lt;br /&gt;
&lt;br /&gt;
The new 5-axis canned cycle drilling implementation relies on this change to [[FirstRotation|FirstRotation?]].&lt;br /&gt;
&lt;br /&gt;
===Incremental Arc Centers===&lt;br /&gt;
The [[CircleIC]], [[CircleJC]], and [[CircleKC]] commands have been fixed to be consistent with other conditional move commands where incremental-zero moves are skipped and are no longer output. An incremental distance of 0 is the same as no output, aka “don’t move.” GC2014 would output I0, J0, or K0 for an incremental arc center move while using these conditional commands, but GC2015 no longer outputs them. In GC2015, for machines that do incremental arc centers, if they always want to output a value, then use the non-conditional commands ([[CircleI]], [[CircleJ]], and [[CircleK]]).&lt;br /&gt;
&lt;br /&gt;
Here is an example of the output difference:&lt;br /&gt;
&lt;br /&gt;
GC2014:  G3 X444.805 Z51.534 &#039;&#039;&#039;I0.&#039;&#039;&#039; K.38    &lt;br /&gt;
&lt;br /&gt;
GC2015:  G3 X444.805 Z51.534 K.38&lt;br /&gt;
&lt;br /&gt;
===[[ClearancePlane1#]]===&lt;br /&gt;
The CP1 value is only computed for operations that go to CP1. This keyword will not give desired results for a same tool operation that does not specifically use the CP1 level or is not preceded with an off part event.&lt;br /&gt;
&lt;br /&gt;
===[[ContourFeed2#]] and [[OpContourFeed#]]===&lt;br /&gt;
With Keyword list 293, the ContourFeed2# keyword was changed to OpContourFeed#.&lt;br /&gt;
&lt;br /&gt;
===Rotated Tool Approach===&lt;br /&gt;
Axis output control in v11 is a bit different than with v10. You may notice a difference in looper approach of a rotated tool. See &amp;quot;Conditionality Changes&amp;quot; earlier in this article. Tool length offset activation uses a mode change, from SetOutputStraigthTG to SetOutputRotatedTT for example. When this mode change causes a change in linear axis positions, v10 would output those axes, v11 does not. If your tool length offset activation line is missing an axis, the workaround is to force all linear axes. See the differences in approachMove between the previous Rotary Head master &amp;quot;Sample TT NHDU99.26im&amp;quot; and the current Full Looper master &amp;quot;Fanuc 15iM 5AS [VG] NRHDU99.26.2im&amp;quot; post processor. It is recommended that whenever there is undesired output with a GibbsCAM update that you update your post processor to the latest master format. It is intended that masters used with v10 will output correctly with v11, so you should only need to update to the latest v10 master and not all the way to the v11 master.&lt;br /&gt;
&lt;br /&gt;
[[Category:Articles]]&lt;/div&gt;</summary>
		<author><name>Jimr</name></author>
	</entry>
	<entry>
		<id>https://compost.gibbscam.com/index.php?title=V11_Posting_Output_Changes&amp;diff=5940</id>
		<title>V11 Posting Output Changes</title>
		<link rel="alternate" type="text/html" href="https://compost.gibbscam.com/index.php?title=V11_Posting_Output_Changes&amp;diff=5940"/>
		<updated>2015-06-22T20:31:18Z</updated>

		<summary type="html">&lt;p&gt;Jimr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
GibbsCAM UKM Post Engine has been rewritten. This means that new capabilities were added that previous versions either didn&#039;t support, &lt;br /&gt;
or supported poorly. This wiki page will itemize the changes in posted output between GibbsCAM v10 and GibbsCAM UKM.&lt;br /&gt;
&lt;br /&gt;
If you contribute to this page, please try to add descriptions why the UKM output is better than v10 output, or why the decision was made to change the output.&lt;br /&gt;
&lt;br /&gt;
==Changes in UKM Posted Output==&lt;br /&gt;
&lt;br /&gt;
===MetricOutput? Command===&lt;br /&gt;
If the [[MetricOutput|MetricOutput?]] command is called in a post that does not support inch/metric combo output ( as in it does not have the flags set in the form) then it will return FALSE by default.&lt;br /&gt;
&lt;br /&gt;
===Repeat Loops===&lt;br /&gt;
All Repeat loops (repeats, patterns, rotations) have been updated to fully update all start position and toolpath commands to be in the correct place for each instance of the repeat. The main change for this is that when a post is in an [[EachRotation]] Loop all the axes will be updated for the rotation not just the single rotary angle. This can affect the StartPosY command during subsequent loops. Only a single post has been found that outputs Y values outside of the toolpath sub and is affected by this change.&lt;br /&gt;
&lt;br /&gt;
===Tool Offsets===&lt;br /&gt;
The software now automatically computes tool offsets for all mill tools, regardless of the MDD setting. Since most posts always stay in tool tip mode, this can affect where the software thinks the tool group datum and axes are.&lt;br /&gt;
&lt;br /&gt;
===Status Register===&lt;br /&gt;
The Status register no longer tracks just the axis values that the post outputs. The Stats register has been replaced with a kinematic model of the machine that is updated to match moves the post processor makes. The status tree tracks the actual axis and node positions of all parts of the machine. This makes it unnecessary to &amp;quot;retrack&amp;quot; after changing an output modes since the status tree does not physicaly move on a mode change.&lt;br /&gt;
&lt;br /&gt;
Some changes in conditionality may happen if the post does not ask for output in the correct tool/CS. This can happen if a legacy post calls a command like ZCP1C during the retract section of a new tool and does not use LAST, or LASTOPERATION before the command. In this case the status register would have been updated at the end of toolpath using the previous tool, but will now be evaluated using the current op tool, this may cause the conditionality command to think the tooltip is not where it actual is on the machine if it has not done the tool-change yet. It is important for legacy non-looper posts to know what tool/CS they are using during the retract sections of new tool and CS change ops, especially if they never change modes.&lt;br /&gt;
&lt;br /&gt;
The status register is not longer initialized to &amp;quot;999999999.99&amp;quot; for linear axes and &amp;quot;0&amp;quot; for rotary axes. Conditional commands and move Booleans will always return true on the first test of an axis before it is tracked or output. This will force the first potion to be output since we don&#039;t know where the machine is at the start. This does not affect most posts since they usual call SetHome or some other set of commands to initialize the machine state.&lt;br /&gt;
&lt;br /&gt;
===Rotation out of limits===&lt;br /&gt;
The old post engine would only warn about ops that were out of rotary limits, or required an axis that did not exist. It would then extend the limits, or add the missing rotary axis and compute a solution for the operation. This would cause the output to be &amp;quot;correct&amp;quot; as if the machine did not have the limit.&lt;br /&gt;
&lt;br /&gt;
The UKM posting engine will no longer &amp;quot;fix&amp;quot; bad programs. In addition to giving a warning the posting solution will try to get as close to the requested orientation as possible but will not add any axes or increase any limits. This will change how the tool ends up being oriented relative to the part during these operations, and will change X,Y, and Z values as we will not be able to move to the correct orientation for the workfixture.&lt;br /&gt;
&lt;br /&gt;
===Workfixture modes at program end===&lt;br /&gt;
The old post engine would &amp;quot;unclear&amp;quot; the csoffset after the last &amp;quot;NextOp&amp;quot; command. This would cause commands like ZCP1 to output in CS1 not the CS of the last op. The new post engine does not do this and keeps the post engine in a mode until it changes. Many badly written posts were output the CP1 in CS1 even if they were still in the WFO for the last op. This could cause crashes. Posts will now output the value in the last op&#039;s CS if they have not changed to mode to the CS1 WFO.&lt;br /&gt;
&lt;br /&gt;
===Incremental Angles===&lt;br /&gt;
Previous versions of the post engine did not support the output of rotary angles in incremental. UKM does. This will cause an output discrepancy between old posts that output incremental rotary repeats and wrapped pasterns. The old code was incorrect.&lt;br /&gt;
&lt;br /&gt;
===FeedRate=== &lt;br /&gt;
The FeedRate compost command called from outside a feature loop (toolpath) in v10 would output the Contour feedrate from the Mill process. UKM will output the Entry feedrate, if it has not yet been output. See Op7 in these sample files: [https://svn.gibbscam.com/svn/post_dev/samples/v10_UKM_Output_Diffs/FeedRate1.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
===Feed rates and Tap===&lt;br /&gt;
Calling FeedEnt, FeedRate and others will return the Pitch of the Tap/RigidTap tool in UKM. Tapping operations don&#039;t have an operation feedrate, so legacy used to output garbage feedrates set from previous operations. The &amp;quot;Tap %&amp;quot; in the operation dialog will still affect the pitch being output as the feedrate.&lt;br /&gt;
&lt;br /&gt;
===Polar Interpolation Tracking===&lt;br /&gt;
The post engine now automatically tracks the C angle when a post is in polar output based on the rounded X and Y values output for each feature. Previous versions of the post engine ignored the rotary axis during polar output and the post processor had to track to a C angle on each feature. This is no longer required and all tracking commands for the rotary axis are ignored when the post is in polar mode.&lt;br /&gt;
&lt;br /&gt;
===G92 error accumulation in .19 and previous posts===&lt;br /&gt;
Older mill/turn master posts did not properly handle the transition from polar interpolation to machine coordinates. These posts would track to a C angle that was based on a rotary angle rounded to 3 decimal places for each move. When in polar mode, the CNC does not go to any angle specified by the program, but instead computes an angle based on rounded X and Y values from the program. There is a difference between these angles that varies depending on the radius (up to 90 deg. very close to the center of rotation). These posts would then output a G92/G50 for this tracked angle WITHOUT outputting any actual angle when coming out of polar mode. This G92 would then &amp;quot;burn in&amp;quot; any error between the 2 angle systems and cause the program to drift by this amount.&lt;br /&gt;
&lt;br /&gt;
Newer posts output the tracked angle before the G92 and thus get the CNC state synced up with the post&#039;s internal state.&lt;br /&gt;
&lt;br /&gt;
In UKM the status register is no longer based on the machine angle that would be output if the post was not in polar, but on the estimated angle that control will go for the rounded XY input. These older posts will show a difference in the G92 angle after any same tool polar ops. The new angle is closer to where the machine actually is and will be off only by 1/2 of a rounding tolerance. Posts that have this problem should be upgraded to output a rounded &amp;quot;big angle&amp;quot; before calling the G92/G50&lt;br /&gt;
&lt;br /&gt;
===SetCP1LocalF===&lt;br /&gt;
The [[SetCP1LocalF]] command can cause problems in V11. A few posts attempted to turn Local CP1 on and off during a program. This is not allowed (and did not work correctly in older versions). The CP1 mode must be set once at the start of a program and be kept the same. Any post that attempts to change the CP1 state multiple times during a program will produce an error.&lt;br /&gt;
&lt;br /&gt;
===Small Segmentation Caryover===&lt;br /&gt;
The EachQuadrant/NextQuadrant loop now knows the rounding tolerance used by the axes that move. It will use this rounding tolerance to trim small arc segments that may extend past the quadrant boundary (aka ‘nubbins’). This should produce better output for posts that have correct values for axis label formats.&lt;br /&gt;
&lt;br /&gt;
===CP2 is now DrillCP===&lt;br /&gt;
The CP2 command will return the Z level where we start the first hole, this will be the DrillCP of the first hole. We have found a few posts that do not fully support drill clearances at anything other then the R level, these posts will now behave like the R level and the DrillCP are the same level, this makes the tool motion match rendering. &lt;br /&gt;
&lt;br /&gt;
===LoadFeat===&lt;br /&gt;
LoadFeat while obsolete has been changed in how it operates. It no longer requires the post to scale input values. Posts that used NumSC# to scale the input will need to be changed to ether not call load feat (most can just call LAST ZCP1C ) or to not scale the input.&lt;br /&gt;
&lt;br /&gt;
===ToolType$===&lt;br /&gt;
This command supports all tool types now. For instance, Form tools output &amp;quot;CUSTOM&amp;quot; in legacy but output &amp;quot;FORM&amp;quot; in UKM.&lt;br /&gt;
&lt;br /&gt;
===CutDepth in Threading===&lt;br /&gt;
Changed the CutDepth command to output a value equal to the thread height only when One Finish Pass is selected. (Defect# 12641)&lt;br /&gt;
&lt;br /&gt;
===Part Clearance and Op Clearance===&lt;br /&gt;
Approach and retract moves may be different than previous versions in some parts/operation configurations . The Part Clearance (CP1) will be moved to the Entry and Exit Operation Clearances (CP2/CP3) if needed. For some parts that set operation clearances higher than part clearances, this will have the effect of moving the part clearance up to the level of the operation clearance, and creating a zero-length feature between the 2 clearance levels. This change was made to prevent inter-op paths from going “Up then down” for parts programmed incorrectly.  &lt;br /&gt;
&lt;br /&gt;
For Example: For a turn drill cycle, CP1 is set to 0.1 in the DCD and CP2 is set to 0.3 in the process dialog, the post will output a move to Z0.3 in the approach loop and no other op clearance moves.&lt;br /&gt;
&lt;br /&gt;
===Conditionality Changes===&lt;br /&gt;
Conditionality has been changed significantly for V11. It no longer does simple comparisons of output numbers to detect a move. Conditionality in the entire posting system now uses the kinematic tree and does all tests in the tree’s machine space. This means that changes to output modes such as [[XsAreRadiiF]], [[ClearCSOffset]], and others will no longer cause unwanted output when the axis has not moved and only the mode has changed. This feature greatly reduces the redundant output caused by mode changes and ancillary axis motion (B axis head rotations in MTM). If a post developer wishes to force the output of an axis after a mode change, then they need to invalidate the status register for that axis using one of the Invalidate commands. This will force the output of the axis on the next Step that is capable of moving it. &lt;br /&gt;
&lt;br /&gt;
===Segmentation===&lt;br /&gt;
All segmentation has been upgraded to make better decisions on how to segment. The algorithm takes into account additional factors which will generate more, less, and/or different arc segments in the output. One way to think of it is the new v11 segmentation algorithm segments in Machine Space whereas the legacy solution was in Part Space. This will affect the following commands: [[EACHArcSegment]], [[EachFadalSegment]], [[EachPiece]], [[EACHQuadrant]], [[EachRotarySegment]], and [[EachSpiralSeg]].  &lt;br /&gt;
&lt;br /&gt;
===Coolant and Utility Operations===&lt;br /&gt;
The default coolant state for a utility operations is &amp;quot;Off,&amp;quot; and compost commands in legacy Gibbs would not detect this coolant state properly, now in V11 they do. This means querying IF [[CoolOff|CoolOff?]] in V11 for a Utility Operation without coolant will always be true, where legacy it wasn&#039;t necessarily. As an example, get the files in the following link and compare the .NCF (V11) and .OK (legacy) files. See how the end of Op2 (and other ops) turn off Coolant with M9 in the .NCF (V11) file. [https://svn.gibbscam.com/svn/post_dev/samples/v10_UKM_Output_Diffs/Coolant.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
===Automatic Sub Expansion===&lt;br /&gt;
Single Point Patterns and Face Polar Milling Patterns (Thread Milling) are automatically expanded longhand.&lt;br /&gt;
&lt;br /&gt;
===Spindle Control===&lt;br /&gt;
In legacy GibbsCAM, the Sync dialog allowed the user to click/unclick a multi-flow utility op tile to add or remove spindle control to the operation. In V11, all mill and utility operations will force all op tiles to be selected, whereby giving it spindle control (see defect 29679 for more details). For posting, this means the [[SpindleControl|SpindleControl?]] boolean is always true for mill and utility operations in V11, where legacy may not be the case. The [[SpindleControl|SpindleControl?]] boolean is widely used, so the impacts are too generalized to mention, but the most common usage is with turning workpiece spindles on and off.&lt;br /&gt;
&lt;br /&gt;
===[[NewTool|NewTool?]]===&lt;br /&gt;
[[NewTool|NewTool?]] will behave the same as it does in legacy, except now when transitioning from one op with a tool that uses ToolID to the next op with a tool that doesnt use ToolID, it will return false; meaning we no longer consider this scenario a tool change.&lt;br /&gt;
&lt;br /&gt;
===[[MoveC]] and [[OkumaMoveC]]===&lt;br /&gt;
There was a change in the behavior of the &amp;quot;MoveC&amp;quot; set of commands for V11. They used to be special cased and did not follow the same rules as other axes. This has been fixed in V11.&lt;br /&gt;
&lt;br /&gt;
in 10.7 the &amp;quot;rotary C&amp;quot; was updated to toolpath start on [[EachOp]]. This post then did not make any calls to [[CalcCAng]]. This prevented the special C from being updated. When the [[OkumaMoveC#]] was called after the BTC loop it just went and read the current value. If the post had done anything with C during the BTC loop, the angle after the BTC loop would have been changed. This is not good behavior since it is based on the state.&lt;br /&gt;
&lt;br /&gt;
In V11, the C axis is now read like all other axes, it is updated on every feature loop (ATC and BTC) included. This means that after the BTC loop, the C axis is at the tool change C, just like the Z value is at the tool change Z. This is consistent and desired behavior.&lt;br /&gt;
&lt;br /&gt;
When posts want values for the toolpath start location, they should use the StartPos set of commands. These commands are not based on the state of feature loops and have consistent behavior. In this case the post should call [[StartPosC#]] and set the angle output mode in the form to Okuma. This way the C axis behaves the same as all other axes (you would not call [[EPZ#]] to get the toolpath start in the same place, you&#039;d call [[StartPosZ#]])&lt;br /&gt;
&lt;br /&gt;
===[[CalcRPM2]]===&lt;br /&gt;
There is a change between 10 and 11 for the [[CalcRPM2]] command.&lt;br /&gt;
&lt;br /&gt;
GC2014 used the last X you were at to compute an RPM. GC2015 uses the RPM from CP3 where we know we turn CSS Off. This is so the command can match the prog-iterator speeds and match run-times.&lt;br /&gt;
&lt;br /&gt;
===[[FirstRotation|FirstRotation?]]===&lt;br /&gt;
The [[FirstRotation|FirstRotation?]] boolean used to return true in GC2014 if [[Rotations?]] was false (weren&#039;t any rotations). It now returns false in GC2015. &lt;br /&gt;
&lt;br /&gt;
It would also return true if called outside the [[EachRotation]]/[[NextRotation]] loop, in GC2014. It now returns false in GC2015. &lt;br /&gt;
&lt;br /&gt;
The new 5-axis canned cycle drilling implementation relies on this change to [[FirstRotation|FirstRotation?]].&lt;br /&gt;
&lt;br /&gt;
===Incremental Arc Centers===&lt;br /&gt;
The [[CircleIC]], [[CircleJC]], and [[CircleKC]] commands have been fixed to be consistent with other conditional move commands where incremental-zero moves are skipped and are no longer output. An incremental distance of 0 is the same as no output, aka “don’t move.” GC2014 would output I0, J0, or K0 for an incremental arc center move while using these conditional commands, but GC2015 no longer outputs them. In GC2015, for machines that do incremental arc centers, if they always want to output a value, then use the non-conditional commands ([[CircleI]], [[CircleJ]], and [[CircleK]]).&lt;br /&gt;
&lt;br /&gt;
Here is an example of the output difference:&lt;br /&gt;
&lt;br /&gt;
GC2014:  G3 X444.805 Z51.534 &#039;&#039;&#039;I0.&#039;&#039;&#039; K.38    &lt;br /&gt;
&lt;br /&gt;
GC2015:  G3 X444.805 Z51.534 K.38&lt;br /&gt;
&lt;br /&gt;
===[[ClearancePlane1#]]===&lt;br /&gt;
The CP1 value is only computed for operations that go to CP1. This keyword will not give desired results for a same tool operation that does not specifically use the CP1 level or is not preceded with an off part event.&lt;br /&gt;
&lt;br /&gt;
===[[ContourFeed2#]] and [[OpContourFeed#]]===&lt;br /&gt;
With Keyword list 293, the ContourFeed2# keyword was changed to OpContourFeed#.&lt;br /&gt;
&lt;br /&gt;
[[Category:Articles]]&lt;/div&gt;</summary>
		<author><name>Jimr</name></author>
	</entry>
	<entry>
		<id>https://compost.gibbscam.com/index.php?title=V11_Posting_Output_Changes&amp;diff=5939</id>
		<title>V11 Posting Output Changes</title>
		<link rel="alternate" type="text/html" href="https://compost.gibbscam.com/index.php?title=V11_Posting_Output_Changes&amp;diff=5939"/>
		<updated>2015-06-18T15:59:22Z</updated>

		<summary type="html">&lt;p&gt;Jimr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
GibbsCAM UKM Post Engine has been rewritten. This means that new capabilities were added that previous versions either didn&#039;t support, &lt;br /&gt;
or supported poorly. This wiki page will itemize the changes in posted output between GibbsCAM v10 and GibbsCAM UKM.&lt;br /&gt;
&lt;br /&gt;
If you contribute to this page, please try to add descriptions why the UKM output is better than v10 output, or why the decision was made to change the output.&lt;br /&gt;
&lt;br /&gt;
==Changes in UKM Posted Output==&lt;br /&gt;
&lt;br /&gt;
===MetricOutput? Command===&lt;br /&gt;
If the [[MetricOutput|MetricOutput?]] command is called in a post that does not support inch/metric combo output ( as in it does not have the flags set in the form) then it will return FALSE by default.&lt;br /&gt;
&lt;br /&gt;
===Repeat Loops===&lt;br /&gt;
All Repeat loops (repeats, patterns, rotations) have been updated to fully update all start position and toolpath commands to be in the correct place for each instance of the repeat. The main change for this is that when a post is in an [[EachRotation]] Loop all the axes will be updated for the rotation not just the single rotary angle. This can affect the StartPosY command during subsequent loops. Only a single post has been found that outputs Y values outside of the toolpath sub and is affected by this change.&lt;br /&gt;
&lt;br /&gt;
===Tool Offsets===&lt;br /&gt;
The software now automatically computes tool offsets for all mill tools, regardless of the MDD setting. Since most posts always stay in tool tip mode, this can affect where the software thinks the tool group datum and axes are.&lt;br /&gt;
&lt;br /&gt;
===Status Register===&lt;br /&gt;
The Status register no longer tracks just the axis values that the post outputs. The Stats register has been replaced with a kinematic model of the machine that is updated to match moves the post processor makes. The status tree tracks the actual axis and node positions of all parts of the machine. This makes it unnecessary to &amp;quot;retrack&amp;quot; after changing an output modes since the status tree does not physicaly move on a mode change.&lt;br /&gt;
&lt;br /&gt;
Some changes in conditionality may happen if the post does not ask for output in the correct tool/CS. This can happen if a legacy post calls a command like ZCP1C during the retract section of a new tool and does not use LAST, or LASTOPERATION before the command. In this case the status register would have been updated at the end of toolpath using the previous tool, but will now be evaluated using the current op tool, this may cause the conditionality command to think the tooltip is not where it actual is on the machine if it has not done the tool-change yet. It is important for legacy non-looper posts to know what tool/CS they are using during the retract sections of new tool and CS change ops, especially if they never change modes.&lt;br /&gt;
&lt;br /&gt;
The status register is not longer initialized to &amp;quot;999999999.99&amp;quot; for linear axes and &amp;quot;0&amp;quot; for rotary axes. Conditional commands and move Booleans will always return true on the first test of an axis before it is tracked or output. This will force the first potion to be output since we don&#039;t know where the machine is at the start. This does not affect most posts since they usual call SetHome or some other set of commands to initialize the machine state.&lt;br /&gt;
&lt;br /&gt;
===Rotation out of limits===&lt;br /&gt;
The old post engine would only warn about ops that were out of rotary limits, or required an axis that did not exist. It would then extend the limits, or add the missing rotary axis and compute a solution for the operation. This would cause the output to be &amp;quot;correct&amp;quot; as if the machine did not have the limit.&lt;br /&gt;
&lt;br /&gt;
The UKM posting engine will no longer &amp;quot;fix&amp;quot; bad programs. In addition to giving a warning the posting solution will try to get as close to the requested orientation as possible but will not add any axes or increase any limits. This will change how the tool ends up being oriented relative to the part during these operations, and will change X,Y, and Z values as we will not be able to move to the correct orientation for the workfixture.&lt;br /&gt;
&lt;br /&gt;
===Workfixture modes at program end===&lt;br /&gt;
The old post engine would &amp;quot;unclear&amp;quot; the csoffset after the last &amp;quot;NextOp&amp;quot; command. This would cause commands like ZCP1 to output in CS1 not the CS of the last op. The new post engine does not do this and keeps the post engine in a mode until it changes. Many badly written posts were output the CP1 in CS1 even if they were still in the WFO for the last op. This could cause crashes. Posts will now output the value in the last op&#039;s CS if they have not changed to mode to the CS1 WFO.&lt;br /&gt;
&lt;br /&gt;
===Incremental Angles===&lt;br /&gt;
Previous versions of the post engine did not support the output of rotary angles in incremental. UKM does. This will cause an output discrepancy between old posts that output incremental rotary repeats and wrapped pasterns. The old code was incorrect.&lt;br /&gt;
&lt;br /&gt;
===FeedRate=== &lt;br /&gt;
The FeedRate compost command called from outside a feature loop (toolpath) in v10 would output the Contour feedrate from the Mill process. UKM will output the Entry feedrate, if it has not yet been output. See Op7 in these sample files: [https://svn.gibbscam.com/svn/post_dev/samples/v10_UKM_Output_Diffs/FeedRate1.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
===Feed rates and Tap===&lt;br /&gt;
Calling FeedEnt, FeedRate and others will return the Pitch of the Tap/RigidTap tool in UKM. Tapping operations don&#039;t have an operation feedrate, so legacy used to output garbage feedrates set from previous operations. The &amp;quot;Tap %&amp;quot; in the operation dialog will still affect the pitch being output as the feedrate.&lt;br /&gt;
&lt;br /&gt;
===Polar Interpolation Tracking===&lt;br /&gt;
The post engine now automatically tracks the C angle when a post is in polar output based on the rounded X and Y values output for each feature. Previous versions of the post engine ignored the rotary axis during polar output and the post processor had to track to a C angle on each feature. This is no longer required and all tracking commands for the rotary axis are ignored when the post is in polar mode.&lt;br /&gt;
&lt;br /&gt;
===G92 error accumulation in .19 and previous posts===&lt;br /&gt;
Older mill/turn master posts did not properly handle the transition from polar interpolation to machine coordinates. These posts would track to a C angle that was based on a rotary angle rounded to 3 decimal places for each move. When in polar mode, the CNC does not go to any angle specified by the program, but instead computes an angle based on rounded X and Y values from the program. There is a difference between these angles that varies depending on the radius (up to 90 deg. very close to the center of rotation). These posts would then output a G92/G50 for this tracked angle WITHOUT outputting any actual angle when coming out of polar mode. This G92 would then &amp;quot;burn in&amp;quot; any error between the 2 angle systems and cause the program to drift by this amount.&lt;br /&gt;
&lt;br /&gt;
Newer posts output the tracked angle before the G92 and thus get the CNC state synced up with the post&#039;s internal state.&lt;br /&gt;
&lt;br /&gt;
In UKM the status register is no longer based on the machine angle that would be output if the post was not in polar, but on the estimated angle that control will go for the rounded XY input. These older posts will show a difference in the G92 angle after any same tool polar ops. The new angle is closer to where the machine actually is and will be off only by 1/2 of a rounding tolerance. Posts that have this problem should be upgraded to output a rounded &amp;quot;big angle&amp;quot; before calling the G92/G50&lt;br /&gt;
&lt;br /&gt;
===SetCP1LocalF===&lt;br /&gt;
The [[SetCP1LocalF]] command can cause problems in V11. A few posts attempted to turn Local CP1 on and off during a program. This is not allowed (and did not work correctly in older versions). The CP1 mode must be set once at the start of a program and be kept the same. Any post that attempts to change the CP1 state multiple times during a program will produce an error.&lt;br /&gt;
&lt;br /&gt;
===Small Segmentation Caryover===&lt;br /&gt;
The EachQuadrant/NextQuadrant loop now knows the rounding tolerance used by the axes that move. It will use this rounding tolerance to trim small arc segments that may extend past the quadrant boundary (aka ‘nubbins’). This should produce better output for posts that have correct values for axis label formats.&lt;br /&gt;
&lt;br /&gt;
===CP2 is now DrillCP===&lt;br /&gt;
The CP2 command will return the Z level where we start the first hole, this will be the DrillCP of the first hole. We have found a few posts that do not fully support drill clearances at anything other then the R level, these posts will now behave like the R level and the DrillCP are the same level, this makes the tool motion match rendering. &lt;br /&gt;
&lt;br /&gt;
===LoadFeat===&lt;br /&gt;
LoadFeat while obsolete has been changed in how it operates. It no longer requires the post to scale input values. Posts that used NumSC# to scale the input will need to be changed to ether not call load feat (most can just call LAST ZCP1C ) or to not scale the input.&lt;br /&gt;
&lt;br /&gt;
===ToolType$===&lt;br /&gt;
This command supports all tool types now. For instance, Form tools output &amp;quot;CUSTOM&amp;quot; in legacy but output &amp;quot;FORM&amp;quot; in UKM.&lt;br /&gt;
&lt;br /&gt;
===CutDepth in Threading===&lt;br /&gt;
Changed the CutDepth command to output a value equal to the thread height only when One Finish Pass is selected. (Defect# 12641)&lt;br /&gt;
&lt;br /&gt;
===Part Clearance and Op Clearance===&lt;br /&gt;
Approach and retract moves may be different than previous versions in some parts/operation configurations . The Part Clearance (CP1) will be moved to the Entry and Exit Operation Clearances (CP2/CP3) if needed. For some parts that set operation clearances higher than part clearances, this will have the effect of moving the part clearance up to the level of the operation clearance, and creating a zero-length feature between the 2 clearance levels. This change was made to prevent inter-op paths from going “Up then down” for parts programmed incorrectly.  &lt;br /&gt;
&lt;br /&gt;
For Example: For a turn drill cycle, CP1 is set to 0.1 in the DCD and CP2 is set to 0.3 in the process dialog, the post will output a move to Z0.3 in the approach loop and no other op clearance moves.&lt;br /&gt;
&lt;br /&gt;
===Conditionality Changes===&lt;br /&gt;
Conditionality has been changed significantly for V11. It no longer does simple comparisons of output numbers to detect a move. Conditionality in the entire posting system now uses the kinematic tree and does all tests in the tree’s machine space. This means that changes to output modes such as [[XsAreRadiiF]], [[ClearCSOffset]], and others will no longer cause unwanted output when the axis has not moved and only the mode has changed. This feature greatly reduces the redundant output caused by mode changes and ancillary axis motion (B axis head rotations in MTM). If a post developer wishes to force the output of an axis after a mode change, then they need to invalidate the status register for that axis using one of the Invalidate commands. This will force the output of the axis on the next Step that is capable of moving it. &lt;br /&gt;
&lt;br /&gt;
===Segmentation===&lt;br /&gt;
All segmentation has been upgraded to make better decisions on how to segment. The algorithm takes into account additional factors which will generate more, less, and/or different arc segments in the output. One way to think of it is the new v11 segmentation algorithm segments in Machine Space whereas the legacy solution was in Part Space. This will affect the following commands: [[EACHArcSegment]], [[EachFadalSegment]], [[EachPiece]], [[EACHQuadrant]], [[EachRotarySegment]], and [[EachSpiralSeg]].  &lt;br /&gt;
&lt;br /&gt;
===Coolant and Utility Operations===&lt;br /&gt;
The default coolant state for a utility operations is &amp;quot;Off,&amp;quot; and compost commands in legacy Gibbs would not detect this coolant state properly, now in V11 they do. This means querying IF [[CoolOff|CoolOff?]] in V11 for a Utility Operation without coolant will always be true, where legacy it wasn&#039;t necessarily. As an example, get the files in the following link and compare the .NCF (V11) and .OK (legacy) files. See how the end of Op2 (and other ops) turn off Coolant with M9 in the .NCF (V11) file. [https://svn.gibbscam.com/svn/post_dev/samples/v10_UKM_Output_Diffs/Coolant.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
===Automatic Sub Expansion===&lt;br /&gt;
Single Point Patterns and Face Polar Milling Patterns (Thread Milling) are automatically expanded longhand.&lt;br /&gt;
&lt;br /&gt;
===Spindle Control===&lt;br /&gt;
In legacy GibbsCAM, the Sync dialog allowed the user to click/unclick a multi-flow utility op tile to add or remove spindle control to the operation. In V11, all mill and utility operations will force all op tiles to be selected, whereby giving it spindle control (see defect 29679 for more details). For posting, this means the [[SpindleControl|SpindleControl?]] boolean is always true for mill and utility operations in V11, where legacy may not be the case. The [[SpindleControl|SpindleControl?]] boolean is widely used, so the impacts are too generalized to mention, but the most common usage is with turning workpiece spindles on and off.&lt;br /&gt;
&lt;br /&gt;
===[[NewTool|NewTool?]]===&lt;br /&gt;
[[NewTool|NewTool?]] will behave the same as it does in legacy, except now when transitioning from one op with a tool that uses ToolID to the next op with a tool that doesnt use ToolID, it will return false; meaning we no longer consider this scenario a tool change.&lt;br /&gt;
&lt;br /&gt;
===[[MoveC]] and [[OkumaMoveC]]===&lt;br /&gt;
There was a change in the behavior of the &amp;quot;MoveC&amp;quot; set of commands for V11. They used to be special cased and did not follow the same rules as other axes. This has been fixed in V11.&lt;br /&gt;
&lt;br /&gt;
in 10.7 the &amp;quot;rotary C&amp;quot; was updated to toolpath start on [[EachOp]]. This post then did not make any calls to [[CalcCAng]]. This prevented the special C from being updated. When the [[OkumaMoveC#]] was called after the BTC loop it just went and read the current value. If the post had done anything with C during the BTC loop, the angle after the BTC loop would have been changed. This is not good behavior since it is based on the state.&lt;br /&gt;
&lt;br /&gt;
In V11, the C axis is now read like all other axes, it is updated on every feature loop (ATC and BTC) included. This means that after the BTC loop, the C axis is at the tool change C, just like the Z value is at the tool change Z. This is consistent and desired behavior.&lt;br /&gt;
&lt;br /&gt;
When posts want values for the toolpath start location, they should use the StartPos set of commands. These commands are not based on the state of feature loops and have consistent behavior. In this case the post should call [[StartPosC#]] and set the angle output mode in the form to Okuma. This way the C axis behaves the same as all other axes (you would not call [[EPZ#]] to get the toolpath start in the same place, you&#039;d call [[StartPosZ#]])&lt;br /&gt;
&lt;br /&gt;
===[[CalcRPM2]]===&lt;br /&gt;
There is a change between 10 and 11 for the [[CalcRPM2]] command.&lt;br /&gt;
&lt;br /&gt;
GC2014 used the last X you were at to compute an RPM. GC2015 uses the RPM from CP3 where we know we turn CSS Off. This is so the command can match the prog-iterator speeds and match run-times.&lt;br /&gt;
&lt;br /&gt;
===[[FirstRotation|FirstRotation?]]===&lt;br /&gt;
The [[FirstRotation|FirstRotation?]] boolean used to return true in GC2014 if [[Rotations?]] was false (weren&#039;t any rotations). It now returns false in GC2015. &lt;br /&gt;
&lt;br /&gt;
It would also return true if called outside the [[EachRotation]]/[[NextRotation]] loop, in GC2014. It now returns false in GC2015. &lt;br /&gt;
&lt;br /&gt;
The new 5-axis canned cycle drilling implementation relies on this change to [[FirstRotation|FirstRotation?]].&lt;br /&gt;
&lt;br /&gt;
===Incremental Arc Centers===&lt;br /&gt;
The [[CircleIC]], [[CircleJC]], and [[CircleKC]] commands have been fixed to be consistent with other conditional move commands where incremental-zero moves are skipped and are no longer output. An incremental distance of 0 is the same as no output, aka “don’t move.” GC2014 would output I0, J0, or K0 for an incremental arc center move while using these conditional commands, but GC2015 no longer outputs them. In GC2015, for machines that do incremental arc centers, if they always want to output a value, then use the non-conditional commands ([[CircleI]], [[CircleJ]], and [[CircleK]]).&lt;br /&gt;
&lt;br /&gt;
Here is an example of the output difference:&lt;br /&gt;
&lt;br /&gt;
GC2014:  G3 X444.805 Z51.534 &#039;&#039;&#039;I0.&#039;&#039;&#039; K.38    &lt;br /&gt;
&lt;br /&gt;
GC2015:  G3 X444.805 Z51.534 K.38&lt;br /&gt;
&lt;br /&gt;
===[[ClearancePlane1#]]===&lt;br /&gt;
The CP1 value is only computed for operations that go to CP1. This keyword will not give desired results for a same tool operation that does not specifically use the CP1 level or is not preceded with an off part event.&lt;br /&gt;
&lt;br /&gt;
[[Category:Articles]]&lt;/div&gt;</summary>
		<author><name>Jimr</name></author>
	</entry>
	<entry>
		<id>https://compost.gibbscam.com/index.php?title=WhatsInV11&amp;diff=5350</id>
		<title>WhatsInV11</title>
		<link rel="alternate" type="text/html" href="https://compost.gibbscam.com/index.php?title=WhatsInV11&amp;diff=5350"/>
		<updated>2014-07-09T17:01:14Z</updated>

		<summary type="html">&lt;p&gt;Jimr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;GibbsCAM 2012 ( v10.8.x)&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
GibbsCAM 2013 aka Version 11 code named &#039;&#039;&#039;Galaxy&#039;&#039;&#039; is the development version of GibbsCAM and contains a number of new features will be evaluated for release. Previously Gibbs Development talked about new posting features in &amp;quot;v10&amp;quot;. These features were pulled from the V10 release and pushed back. The [[WhatsInV10|V10]] release only contains the development features that were ready for early release.&lt;br /&gt;
&lt;br /&gt;
Due to the nature of software development not all features currently in the development line may be included in the next release so information on this page may change at any time.&lt;br /&gt;
&lt;br /&gt;
==Training==&lt;br /&gt;
A series of training webinars exist for to give post developers the information on the new features. This training series has it&#039;s own page&lt;br /&gt;
[[V11 Developer Training]]&lt;br /&gt;
&lt;br /&gt;
==New Machining Options==&lt;br /&gt;
&#039;&#039;Unknown&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==New Features==&lt;br /&gt;
Kinematic Tree&lt;br /&gt;
&lt;br /&gt;
[[Interop Syncs]]&lt;br /&gt;
&lt;br /&gt;
Machine Sim updates&lt;br /&gt;
&lt;br /&gt;
New Document Dialog (aka DCD)&lt;br /&gt;
&lt;br /&gt;
New Post Engine&lt;br /&gt;
&lt;br /&gt;
[[NumericFormats|Conditional Decimal Formats]]&lt;br /&gt;
&lt;br /&gt;
[[Compost4 | Compost4 IDE]]&lt;br /&gt;
&lt;br /&gt;
==New Features that require post modifications==&lt;br /&gt;
* For Legacy post formats (these are the features that can be added to looper and non-looper posts)&lt;br /&gt;
** InterOp Syncs&lt;br /&gt;
*** Need to add new commands in every approach and retract loop&lt;br /&gt;
** Utility Operation support in a Mill post&lt;br /&gt;
*** Need to add Utility Operation commands and subs&lt;br /&gt;
** Rotary Milling on a machine with a non-zero 5th rotary axis&lt;br /&gt;
*** Need to purge all Rotary Mill specific commands and make it work like 5-axis&lt;br /&gt;
** Extend MTG&lt;br /&gt;
*** Might need to support extra axes outside the X and Z as found in legacy GibbsCAM&lt;br /&gt;
** Replace Axis specific movement commands with generic MoveAllAxes commands&lt;br /&gt;
*** Things like VMMs can write axis moves for axes outside of the existing legacy MoveXYZABC commands&lt;br /&gt;
** New Workplane modes&lt;br /&gt;
*** Spatial workplanes and custom workplane axis rotation order beyond the default ZXZ&lt;br /&gt;
*** See [[Workplane Modes]]&lt;br /&gt;
** Various changes to allow legacy posts to compile in Compost4 and to fix legacy bugs. Such as: &lt;br /&gt;
*** prog functions ending in # or ? wont compile unless you use new commands&lt;br /&gt;
*** FORMATS are now stored in the form&lt;br /&gt;
*** The &amp;quot;OR problem.&amp;quot; This is where some IF conditions are evaluated properly if an OR is present with a command that takes an argument&lt;br /&gt;
* For new Stepper post format (these are the features that require a Stepper post)&lt;br /&gt;
** 5-axis Drilling Canned Cycles&lt;br /&gt;
** Access and use of InterOp Events as defined by the MDD&lt;br /&gt;
&lt;br /&gt;
==MDD Changes==&lt;br /&gt;
Galaxy uses a completely new MDD system that represents the users CNC machine as a fully kinematic tree. This complete definition of the machine allows the software to properly support more types of machines, including swiss machines, non orthogonal rotary heads, and Lathes with tilting parts.&lt;br /&gt;
&lt;br /&gt;
The old MDD editor is not used to edit new MDDs. A new editor called [[Machine Manager]] is integrated into GibbsCAM for use in editing machines and creating machine sim models.&lt;br /&gt;
&lt;br /&gt;
This MDD change and the related changes to the prog iterator and post engine are the largest changes to the software.&lt;br /&gt;
&lt;br /&gt;
==New Commands==&lt;br /&gt;
[[EachCommentLine]] / [[NextCommentLine]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[EachCommentEventLine]] / [[EachCommentEventLine]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[CommentEventLine]]$ &amp;lt;br&amp;gt;&lt;br /&gt;
[[FilterNestedComments]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[SPAxis#]] / [[EPAxis#]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[CommentLine$]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[EachOrigin]] / [[NextOrigin]] [[FirstOrigin]]?&amp;lt;br&amp;gt;&lt;br /&gt;
[[AxisVector]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[RapidFeat?|RapidMove?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[ArcFeat|ArcMove]]? &amp;lt;br&amp;gt;&lt;br /&gt;
[[LineFeat|LineMove]]? &amp;lt;br&amp;gt;&lt;br /&gt;
[[SplineMove]]? &amp;lt;br&amp;gt;&lt;br /&gt;
[[ArcThreadFeat|ArcThreadMove?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[ThreadFeat?|ThreadMove?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[MinWFONum#]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[MaxWFONum#]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[BREAK]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[ELSEIF]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[Step#]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[SaveStep]] / [[RestoreStep]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[StartDrillCycle|StartDrillCycle?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[HolePosition]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[DrillCycleParams]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[SetDrillCycleSet]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[ThreadHeight]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[ThreadLead]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[Sync|Sync?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[Sync#]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[DwellEvent|DwellEvent?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[DepthMove|DepthMove?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[WHILE|while]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[Misc$]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[TCPOnEvent|TCPOnEvent?]] / [[TCPOffEvent|TCPOffEvent?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[NodeDistance#]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[AxisValue#]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[CommentEvent|CommentEvent?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[ToolSubPosEvent|ToolSubPosEvent?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[ProgStopEvent|ProgStopEvent?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[ThreadHeight#]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[CycleStart|CycleStart?]] / [[CycleEnd|CycleEnd?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[NeedDrillCancel|NeedDrillCancel?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[FirstAxisMove|FirstAxisMove?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[GetArgument|GetArgument#]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[NextOpModeMilling|NextOpModeMilling?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[GetSyncNum#]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[NextOpModeTurning|NextOpModeTurning?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[RetractEndSync|RetractEndSync#]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[ApproachStartSync#]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[AnyRotaryMoves?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[ASIN#]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[ATAN2#]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[AxisVector#]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[GetArgument|GetArgument?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[MDDIsGeneric|MDDIsGeneric?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[StartSequence#]] / [[SequenceIncrement#]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[AnyFlowAxisMoves|AnyFlowAxisMoves?]] / [[AnyInterpSetMoves|AnyInterpSetMoves?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[AxisMoved?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[AxisOffset#]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[AtEvent|AtEvent?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[OffPartEventChanged|OffPartEventChanged?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[GoingToInterOpEvent|GoingToInterOpEvent?]] / [[GoingToInterOpEventLocation|GoingToInterOpEventLocation?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[PartSpindleStateChanged|PartSpindleStateChanged?]] / [[PartSpindleDirChanged|PartSpindleDirChanged?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[ToolSpindleStateChanged|ToolSpindleStateChanged?]] / [[ToolSpindleDirChanged|ToolSpindleDirChanged?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[PartSpindleOff|PartSpindleOff?]] / [[PartSpindleCW|PartSpindleCW?]] / [[PartSpindleCCW|PartSpindleCCW?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[ToolSpindleOff|ToolSpindleOff?]] / [[ToolSpindleCW|ToolSpindleCW?]] / [[ToolSpindleCCW|ToolSpindleCCW?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[PartSpindleCSSOn|PartSpindleCSSOn?]] / [[PartSpindleCSSOff|PartSpindleCSSOff?]] / [[PartSpindleCSSActive|PartSpindleCSSActive?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[PartSpeedType]] / [[ToolSpeedType]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[PartSpeed]] / [[ToolSpeed]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[PartSpindleOn]] / [[PartSpindleOff]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[ToolSpindleOn]] / [[ToolSpindleOff]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[PartSpindleState]] / [[ToolSpindleState]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[InvalidatePartSpindle]] / [[InvalidateToolSpindle]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[InvalidatePartSpindleSpeed]] / [[InvalidateToolSpindleSpeed]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[LastToolpathStep|LastToolpathStep?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[RepeatStart|RepeatStart?]] / [[RepeatEnd|RepeatEnd?]] / [[FirstRepeatOccurence|FirstRepeatOccurence?]] / [[TopLevelRepeat|TopLevelRepeat?]] / [[CurrentRepeat|CurrentRepeat?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[Repeats?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[GetRepeatValue#]] / [[SetRepeatValue]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[JumpToThisRepeatEnd]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[LRoughPullOffWall|LRoughPullOffWall?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[AnyAxisGoingHome|AnyAxisGoingHome?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[AnyAxisAtHome|AnyAxisAtHome?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[SetStepMark]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[FirstMoveSinceMark|FirstMoveSinceMark?]] / [[FirstAxisMoveSinceMark|FirstAxisMoveSinceMark?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[FirstDeltaFromMark|FirstDeltaFromMark?]] / [[FirstAxisDeltaFromMark|FirstAxisDeltaFromMark?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[PreviousInterOpOffPart|PreviousInterOpOffPart?]] / [[NextInterOpOffPart|NextInterOpOffPart?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[PreviousOpEndsOffPart|PreviousOpEndsOffPart?]] / [[NextOpStartsOffPart|NextOpStartsOffPart?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[HasCannedPath|HasCannedPath?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[SetCannedPath]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[SetNormalPath]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[RetractEndSync|RetractEndSync?]] / [[ApproachStartSync|ApproachStartSync?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[PartInterpAxis|PartInterpAxis?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[AbsoluteOrIncrementalC]] / [[AbsoluteValueC]] / [[IncrementalValueC]] / [[ForceNextAbsOrInc]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[SetLocalVar#]] / [[GetLocalVar#]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[GetBoolLocal|GetBoolLocal?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[LocalFlag|LocalFlag?]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[SetLocalFlag]] / [[SetLocalFlagF]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[ReturnBool]] / [[ReturnNum]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[OutputValueAsAxis]] / [[OutputValueAsAxisC]] / [[Output]] / [[OutputAxis]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[OutputInterpSet]] / [[OutputLinInterpSet]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[OutputAxisSet]] / [[OutputLinAxisSet]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[OutputRotInterpSet]] / [[OutputRotAxisSet]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[SetWFOMode]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[AdvanceStep]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[JumpToEvent]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[NEXTStep]] / [[PREVIOUSStep]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[SetOutputMode]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[FeedRate|Feedrate#]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[InvalidateFeedRate|InvalidateFeedrate]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[InvalidatePlane]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[InvalidateOpRotaryAxisStatus]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[InvalidateInterpSetStatus]] / [[InvalidateAxisStatus]] / [[InvalidateLinInterpSetStatus]] / [[InvalidateRotInterpSetStatus]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[TrackInterpSet]] / [[TrackFlowAxisSet]] / [[TrackAxis]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[MoveLinearAxes]] / [[MoveRotaryAxes]] / [[MoveAllAxes]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[ArcCenterPoint]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[SetOutputFlowNum]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[SetAxisOffset]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[EachSortedTool]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[JumpToHoleEnd]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[JumpToFinalHoleEnd]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[OpCSAxisVector#]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[AtFinalHoleEnd]]? &amp;lt;br&amp;gt;&lt;br /&gt;
[[AxisExists]]? &amp;lt;br&amp;gt;&lt;br /&gt;
[[AxisMoveCW]]? &amp;lt;br&amp;gt;&lt;br /&gt;
[[HaveEnoughWFOs]]? &amp;lt;br&amp;gt;&lt;br /&gt;
[[ToolLoadedAtFlowStart]]? &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Axis Names===&lt;br /&gt;
A number of commands take [[Axis Names]] as arguments. These can be specific axis names as defined in the MDD or specific special &amp;quot;Meta-names&amp;quot;. Please see the [[Axis Names]] article for the list of special names.&lt;br /&gt;
&lt;br /&gt;
==Post Engine Changes==&lt;br /&gt;
Major parts of the post engine have been rewritten to support the new Kinematic system. The post engine is now entirely driven by the same prog iterator that is used for simulation. This includes both &#039;looper&#039; and &#039;legacy&#039; post styles. The changes allow the post engine to fix a number of longstanding problems with output namely redundant output due to problems with the &amp;quot;Move?&amp;quot; booleans ([[XMove?]],[[YMove?]], etc.)&lt;br /&gt;
&lt;br /&gt;
A new post format has been created to remove the majority of the limitations of the old form and to support additional axes for Swiss and other complex machines. This new format (POST) removes the 3 character limitation on command labels and adds support for new custom canned cycles. Other logical limitations have been removed as well such as Sub count, command length, and call stack depth.&lt;br /&gt;
&lt;br /&gt;
==New Tools==&lt;br /&gt;
Compost3 has been replaced with [[Compost4]] for use in V11. [[Compost4]] only generates posts in the new .post format. Users that wish to edit posts for earlier versions should use Compost3. V11 will continue to open older .pst files but with out access to the new features.&lt;br /&gt;
===Use of [[Compost4]]===&lt;br /&gt;
Many new commands and any new language features will require the use of [[Compost4]]. These features are only available in V11 and are therefor only implemented in the new tools as well as the new post processor format (POST)&lt;br /&gt;
&lt;br /&gt;
==New Prog==&lt;br /&gt;
New post processor styles and progs are being developed to take advantage of the new post engine features and will be made available to the post department before release.&lt;br /&gt;
&lt;br /&gt;
==Stepper Posts==&lt;br /&gt;
A new prog format has been created for use in new UKM style machines (Swiss, Citizen, Cublex, and other heroics). This prog format does not use the traditional BTC/ATC/Toolpath feature loops of a &#039;looper&#039; post but instead does a more direct iteration of the program using the concept of &#039;steps&#039;. A small subset of the new commands added for V11 are only available for stepper posts and will generate an error if used incorrectly.&lt;br /&gt;
===Additional Stepper Info===&lt;br /&gt;
[[Stepper Only Commands]]&lt;br /&gt;
&lt;br /&gt;
[[Overview of Stepper Posts]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Articles]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Versions]]&lt;/div&gt;</summary>
		<author><name>Jimr</name></author>
	</entry>
	<entry>
		<id>https://compost.gibbscam.com/index.php?title=Compost4_Scripting&amp;diff=5252</id>
		<title>Compost4 Scripting</title>
		<link rel="alternate" type="text/html" href="https://compost.gibbscam.com/index.php?title=Compost4_Scripting&amp;diff=5252"/>
		<updated>2014-02-15T20:17:15Z</updated>

		<summary type="html">&lt;p&gt;Jimr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
Compost 4 contains a built in scripting system built around the Iron Python(http://ironpython.net/) scripting language.&lt;br /&gt;
&lt;br /&gt;
==Scripts==&lt;br /&gt;
Compost4 scripts are loaded from the following paths&lt;br /&gt;
&lt;br /&gt;
* [APPLICATION INSTAL DIRECTIORY]\Macros&lt;br /&gt;
* [USER PROFILE DIRECTORY]\AppData\Roaming\Gibbs\Compost4\Macros&lt;br /&gt;
&lt;br /&gt;
These scripts are scanned when the application is first started.&lt;br /&gt;
&lt;br /&gt;
===Script Types===&lt;br /&gt;
There are 2 main types of scripts that can be made, simple scripts, and Callback Scripts.&lt;br /&gt;
&lt;br /&gt;
====Simple Scripts====&lt;br /&gt;
Simple Scripts contain the code for a single function and are automatically added to the end of the Scripts menu in Compost Application. When executed from the menu the entirety of the script is run from the first command in a similar way to how post processors are run. These scripts are very similar to macros, when run they simply execute predefined commands then exit.&lt;br /&gt;
&lt;br /&gt;
====Callback Scripts====&lt;br /&gt;
A Callback Script is capable of much tighter integration with the Compost Editor, and works by implementing an Initialization function that is called on start-up and then registering one or more script functions with the system that can be called during various events. These events are how scripts can create complex menu structures with multiple options and install hooks into other features such as custom error checking and axis set building.&lt;br /&gt;
&lt;br /&gt;
==ScriptAPI==&lt;br /&gt;
All Scripts have access to a Class that is called the ScriptAPI. This is a .net class that gives a script information about the current documents that are open as well as compost specific functions that they can call. Some examples include:&lt;br /&gt;
&lt;br /&gt;
* Functions to create menus and sub-menus&lt;br /&gt;
* Access to the currently selected document&lt;br /&gt;
* Access to the currently selected POST form&lt;br /&gt;
* Access to the Prog code for the current POST&lt;br /&gt;
* Access to the MDD for the selected POST&lt;br /&gt;
* Functions to compile a post and display errors&lt;br /&gt;
* Functions to manipulate the text area for the current document&lt;br /&gt;
&lt;br /&gt;
As compost is developed more functions and features will be added to this class to give scripts the powers they need.&lt;br /&gt;
The All the data from the class can be seen in Visual Studio&#039;s object browser if Compost4.exe is included as a reference.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==The Init Function==&lt;br /&gt;
All Callback macros must implement the init system. This is done by creating the following function&lt;br /&gt;
  def InitCompostMacro():&lt;br /&gt;
  	return;&lt;br /&gt;
&lt;br /&gt;
In this function you have access to the global variable:&lt;br /&gt;
  ScriptAPI.API&lt;br /&gt;
&lt;br /&gt;
This is where a script would register one or more menu names using a call to one of the &#039;&#039;&#039;RegisterMenuItem&#039;&#039;&#039; function variants&lt;br /&gt;
&lt;br /&gt;
  &#039;&#039;&#039;RegisterMenuItem&#039;&#039;&#039;&lt;br /&gt;
  void RegisterMenuItem(string menuName, string functionName)&lt;br /&gt;
  void RegisterMenuItem(ScriptMenu.MenuItem parrent, string menuName, string functionName)     &lt;br /&gt;
  void RegisterMenuItem(ScriptMenu.MenuItem parrent, string menuName, string shortcutKey, string functionName)&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;functionName&#039;&#039; item will be the name of a function in the script file that will be called when the menu is selected by the user&lt;br /&gt;
&lt;br /&gt;
The parent should be set to null for top level menus or the result of a call to the &#039;&#039;&#039;CreateMenuFolder&#039;&#039;&#039; function&lt;br /&gt;
&lt;br /&gt;
  &#039;&#039;&#039;CreateMenuFolder&#039;&#039;&#039;&lt;br /&gt;
  ScriptMenu.MenuItem CreateMenuFolder(string menuName)&lt;br /&gt;
  ScriptMenu.MenuItem CreateMenuFolder(ScriptMenu.MenuItem parrent, string menuName)    &lt;br /&gt;
&lt;br /&gt;
==Accessing Documents==&lt;br /&gt;
Compost currently supports 4 types of documents, POST, GCODE, PYTHON, and TXT. Each of these document types has a common set of text editing functions as well as a number of document specific attributes.&lt;br /&gt;
&lt;br /&gt;
The API class allows scripts to access any open document and make modifications to it. Some utility functions are provided for some of the more complicated document types (POST)&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;ScriptAPI.API.CurrentDocument&#039;&#039;&#039; contains a class that represents the current document, this can be any of the document types that Compost Supports&lt;br /&gt;
* &#039;&#039;&#039;ScriptAPI.API.OpenDocuments&#039;&#039;&#039; contains a the list of document classes that are currently open&lt;br /&gt;
* &#039;&#039;&#039;ScriptAPI.API.CurrentDocTextArea()&#039;&#039;&#039; will return the text editor class for the current document, this includes things such as the current text selection&lt;br /&gt;
* &#039;&#039;&#039;ScriptAPI.API.CurrentForm()&#039;&#039;&#039; will return the form data for the current document if it is a POST&lt;br /&gt;
* &#039;&#039;&#039;ScriptAPI.API.CurrentMachDef()&#039;&#039;&#039; will return the MDD data for the current document if it is a POST&lt;br /&gt;
* &#039;&#039;&#039;ScriptAPI.API.GetCurrentProgWindow().GetProgText()&#039;&#039;&#039; will return the Prog data for the current document if it is a POST&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Articles]]&lt;/div&gt;</summary>
		<author><name>Jimr</name></author>
	</entry>
	<entry>
		<id>https://compost.gibbscam.com/index.php?title=CRCChange&amp;diff=4723</id>
		<title>CRCChange</title>
		<link rel="alternate" type="text/html" href="https://compost.gibbscam.com/index.php?title=CRCChange&amp;diff=4723"/>
		<updated>2013-10-16T18:47:57Z</updated>

		<summary type="html">&lt;p&gt;Jimr: Blanked the page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jimr</name></author>
	</entry>
	<entry>
		<id>https://compost.gibbscam.com/index.php?title=CRCChange&amp;diff=4721</id>
		<title>CRCChange</title>
		<link rel="alternate" type="text/html" href="https://compost.gibbscam.com/index.php?title=CRCChange&amp;diff=4721"/>
		<updated>2013-10-16T18:28:23Z</updated>

		<summary type="html">&lt;p&gt;Jimr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==CRCChange?==&lt;br /&gt;
{{Description|description=Returns true if the CRC state has been changed during a feature loop.}}&lt;br /&gt;
{{Stats|id=458|type=Boolean|class=All Machines|scope=Feature Loop|version=8.9.59}}&lt;br /&gt;
==Notes==&lt;br /&gt;
This command is used with [[Extended Markers]] to tell the post when to output changes made with CRC markers.&lt;br /&gt;
[[Category:The Tool Path]]&lt;br /&gt;
[[Category:Cutter Radius Compensation]]&lt;/div&gt;</summary>
		<author><name>Jimr</name></author>
	</entry>
	<entry>
		<id>https://compost.gibbscam.com/index.php?title=ForceNextAbsOrInc&amp;diff=4532</id>
		<title>ForceNextAbsOrInc</title>
		<link rel="alternate" type="text/html" href="https://compost.gibbscam.com/index.php?title=ForceNextAbsOrInc&amp;diff=4532"/>
		<updated>2013-05-06T21:21:15Z</updated>

		<summary type="html">&lt;p&gt;Jimr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
{{Description|description=Forces the output of the next call to [[AbsValueC]], [[IncValueC]] or [[AbsOrIncC]]}}&lt;br /&gt;
{{Stats|id=833|type=Command|class=All Machines|scope=|version=10.3.10}}&lt;/div&gt;</summary>
		<author><name>Jimr</name></author>
	</entry>
	<entry>
		<id>https://compost.gibbscam.com/index.php?title=AbsoluteOrIncrementalC&amp;diff=4531</id>
		<title>AbsoluteOrIncrementalC</title>
		<link rel="alternate" type="text/html" href="https://compost.gibbscam.com/index.php?title=AbsoluteOrIncrementalC&amp;diff=4531"/>
		<updated>2013-05-06T21:20:30Z</updated>

		<summary type="html">&lt;p&gt;Jimr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
{{Description|description=Will output the current abs or inc mode at the start of the program or if [[ForceNextAbsOrInc]] has been called.}}&lt;br /&gt;
{{Stats|id=830|type=Command|class=All Machines|scope=|version=10.3.10}}&lt;/div&gt;</summary>
		<author><name>Jimr</name></author>
	</entry>
	<entry>
		<id>https://compost.gibbscam.com/index.php?title=IncrementalValueC&amp;diff=4530</id>
		<title>IncrementalValueC</title>
		<link rel="alternate" type="text/html" href="https://compost.gibbscam.com/index.php?title=IncrementalValueC&amp;diff=4530"/>
		<updated>2013-05-06T21:20:05Z</updated>

		<summary type="html">&lt;p&gt;Jimr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Description|description=Outputs the &amp;quot;Incremental Values&amp;quot; command (typically &#039;G91&#039;) found in ComPost&#039;s &amp;quot;Origins and Values&amp;quot; dialog and directs the Post Processor to output subsequent moves as incremental coordinates if the current mode is absolute}}&lt;br /&gt;
{{Stats|id=832|type=Command|class=All Machines|scope=|version=10.3.10}}&lt;/div&gt;</summary>
		<author><name>Jimr</name></author>
	</entry>
	<entry>
		<id>https://compost.gibbscam.com/index.php?title=AbsoluteValueC&amp;diff=4529</id>
		<title>AbsoluteValueC</title>
		<link rel="alternate" type="text/html" href="https://compost.gibbscam.com/index.php?title=AbsoluteValueC&amp;diff=4529"/>
		<updated>2013-05-06T21:19:25Z</updated>

		<summary type="html">&lt;p&gt;Jimr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Description|description=Outputs the &amp;quot;Absolute Values&amp;quot; command (typically `G90&#039;) found in ComPost&#039;s &amp;quot;Origins and Values dialog and directs the Post Processor to output subsequent moves as absolute coordinate if the current mode is incremental.}}&lt;br /&gt;
{{Stats|id=831|type=Command|class=All Machines|scope=|version=10.3.10}}&lt;br /&gt;
[[Category:Output Control]]&lt;/div&gt;</summary>
		<author><name>Jimr</name></author>
	</entry>
	<entry>
		<id>https://compost.gibbscam.com/index.php?title=Feedback&amp;diff=4126</id>
		<title>Feedback</title>
		<link rel="alternate" type="text/html" href="https://compost.gibbscam.com/index.php?title=Feedback&amp;diff=4126"/>
		<updated>2011-01-25T21:15:49Z</updated>

		<summary type="html">&lt;p&gt;Jimr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;For questions regarding general appearance, navigating the wiki, layout or typographical errors: [mailto:itsupport@gibbscam.com Documentation]&lt;br /&gt;
&lt;br /&gt;
Technical questions or to report a bug with a command: [mailto:jeffm@gibbscam.com Development]&lt;/div&gt;</summary>
		<author><name>Jimr</name></author>
	</entry>
</feed>