<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://compost.gibbscam.com/index.php?action=history&amp;feed=atom&amp;title=Talk%3AChangeCS</id>
	<title>Talk:ChangeCS - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://compost.gibbscam.com/index.php?action=history&amp;feed=atom&amp;title=Talk%3AChangeCS"/>
	<link rel="alternate" type="text/html" href="https://compost.gibbscam.com/index.php?title=Talk:ChangeCS&amp;action=history"/>
	<updated>2026-12-06T00:11:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://compost.gibbscam.com/index.php?title=Talk:ChangeCS&amp;diff=7186&amp;oldid=prev</id>
		<title>Jimr: Created page with &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...&quot;</title>
		<link rel="alternate" type="text/html" href="https://compost.gibbscam.com/index.php?title=Talk:ChangeCS&amp;diff=7186&amp;oldid=prev"/>
		<updated>2019-09-30T19:53:10Z</updated>

		<summary type="html">&lt;p&gt;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;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&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#(&amp;#039;PrevCS&amp;#039;) GetVar#(&amp;#039;ThisCS&amp;#039;)&lt;br /&gt;
		IF AnyRotaryMoves? OR ABCToolPath? OR RotaryMill?&lt;br /&gt;
			SetVar#(&amp;#039;ThisCS&amp;#039;) WPXYCS CSListID#&lt;br /&gt;
		ELSE&lt;br /&gt;
			SetVar#(&amp;#039;ThisCS&amp;#039;) CSListID#&lt;br /&gt;
		END&lt;br /&gt;
		IF Equal? GetVar#(&amp;#039;PrevCS&amp;#039;) GetVar#(&amp;#039;ThisCS&amp;#039;)&lt;br /&gt;
			SetFlagF(&amp;#039;ChngCS&amp;#039;)&lt;br /&gt;
		ELSE&lt;br /&gt;
			SetFlag(&amp;#039;ChngCS&amp;#039;)&lt;br /&gt;
		END&lt;br /&gt;
	RETURN&lt;br /&gt;
After calling this routine you can replace the “ChangeCS?” Boolean with “Flag?(&amp;#039;ChngCS&amp;#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#(&amp;#039;PrevCS&amp;#039;) WPXYCS CSListID#&lt;br /&gt;
		ELSE&lt;br /&gt;
			SetLocalVar#(&amp;#039;PrevCS&amp;#039;) LastOperation CSListID#&lt;br /&gt;
		END&lt;br /&gt;
		IF AnyRotaryMoves? OR ABCToolPath? OR RotaryMill?&lt;br /&gt;
			SetLocalVar#(&amp;#039;ThisCS&amp;#039;) WPXYCS CSListID#&lt;br /&gt;
		ELSE&lt;br /&gt;
			SetLocalVar#(&amp;#039;ThisCS&amp;#039;) CSListID#&lt;br /&gt;
		END&lt;br /&gt;
		IF Equal? SetLocalVar#(&amp;#039;PrevCS&amp;#039;) SetLocalVar#(&amp;#039;ThisCS&amp;#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>
</feed>