<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Jogging EMC2</title>
	<atom:link href="http://www.anderswallin.net/2006/11/jogging-emc2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.anderswallin.net/2006/11/jogging-emc2/</link>
	<description></description>
	<pubDate>Tue, 06 Jan 2009 15:29:18 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Peter Homann</title>
		<link>http://www.anderswallin.net/2006/11/jogging-emc2/#comment-38400</link>
		<dc:creator>Peter Homann</dc:creator>
		<pubDate>Wed, 30 Apr 2008 03:45:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.anderswallin.net/2006/11/jogging-emc2/#comment-38400</guid>
		<description>Hi,

Even though your MPG jogwheel produces differential outputs via A+,A-,B+,B- you can use them as single ended outputs by ignoring the A-,B- outputs and just use the A+, B+. Eliminating the need for theDS3486.

Cheers,


Peter.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Even though your MPG jogwheel produces differential outputs via A+,A-,B+,B- you can use them as single ended outputs by ignoring the A-,B- outputs and just use the A+, B+. Eliminating the need for theDS3486.</p>
<p>Cheers,</p>
<p>Peter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Administrator</title>
		<link>http://www.anderswallin.net/2006/11/jogging-emc2/#comment-38313</link>
		<dc:creator>Administrator</dc:creator>
		<pubDate>Mon, 28 Apr 2008 13:30:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.anderswallin.net/2006/11/jogging-emc2/#comment-38313</guid>
		<description>for connecting the buttons to halui I've now created a new component:
http://www.anderswallin.net/2008/04/toggle2nist/</description>
		<content:encoded><![CDATA[<p>for connecting the buttons to halui I&#8217;ve now created a new component:<br />
<a href="http://www.anderswallin.net/2008/04/toggle2nist/"  rel="nofollow">http://www.anderswallin.net/2008/04/toggle2nist/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Administrator</title>
		<link>http://www.anderswallin.net/2006/11/jogging-emc2/#comment-32593</link>
		<dc:creator>Administrator</dc:creator>
		<pubDate>Sat, 19 Jan 2008 18:39:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.anderswallin.net/2006/11/jogging-emc2/#comment-32593</guid>
		<description>BigJohnT: 
(re jogging while in motion) the jogging commands will only be accepted by EMC when in the manual/jogging mode. EMC just ignores any motion of the jogwheel if you are running a program (or in MDI mode)

GaryDrew:
All the m5i20 inputs are essentially identical, so it doesn't matter to which input number you wire a switch as long as your HAL configuration has that same number. Once the signal is in HAL it can then be wired whichever way you like to the motion-controller or other parts of EMC.

I don't have a diagram for the selector switch. The 8-to-3-line decoder is used just to save pins, it could easily be left out of the design and the 6-pos selector switch would then use 6 input pins on the m5i20.

If you look at the datasheet:
http://focus.ti.com/docs/prod/folders/print/sn74hc148.html
there is a truth-table on p. 2 which should explain how it works. You pull any of the inputs low, and a corresponding bit-pattern will be output on the three output-pins. That is easily wired by having pull-up resistors on all the inputs, and then having the 6-pos switch ground one of inputs 0 to 5.

HTH,

Anders</description>
		<content:encoded><![CDATA[<p>BigJohnT:<br />
(re jogging while in motion) the jogging commands will only be accepted by EMC when in the manual/jogging mode. EMC just ignores any motion of the jogwheel if you are running a program (or in MDI mode)</p>
<p>GaryDrew:<br />
All the m5i20 inputs are essentially identical, so it doesn&#8217;t matter to which input number you wire a switch as long as your HAL configuration has that same number. Once the signal is in HAL it can then be wired whichever way you like to the motion-controller or other parts of EMC.</p>
<p>I don&#8217;t have a diagram for the selector switch. The 8-to-3-line decoder is used just to save pins, it could easily be left out of the design and the 6-pos selector switch would then use 6 input pins on the m5i20.</p>
<p>If you look at the datasheet:<br />
<a href="http://focus.ti.com/docs/prod/folders/print/sn74hc148.html" onclick="javascript:pageTracker._trackPageview('/outbound/comment/focus.ti.com');" rel="nofollow">http://focus.ti.com/docs/prod/folders/print/sn74hc148.html</a><br />
there is a truth-table on p. 2 which should explain how it works. You pull any of the inputs low, and a corresponding bit-pattern will be output on the three output-pins. That is easily wired by having pull-up resistors on all the inputs, and then having the 6-pos switch ground one of inputs 0 to 5.</p>
<p>HTH,</p>
<p>Anders</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary Drew</title>
		<link>http://www.anderswallin.net/2006/11/jogging-emc2/#comment-32078</link>
		<dc:creator>Gary Drew</dc:creator>
		<pubDate>Mon, 07 Jan 2008 20:45:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.anderswallin.net/2006/11/jogging-emc2/#comment-32078</guid>
		<description>Anders

Many thanks for listing the pendant info.
I did the 3d_chips.ngc gcode demo file thats in emc many years ago,and I am finally trying a emc based servo control with the mesa  5i20 / 7i33 / 7i37 over in the UK
I wandered which 5i20 inputs you used for the Pushbuttons: spindle on/off (yellow, m5i20.0.in-XX?), and program execution (red=pause m5i20.0.in-XX?, green=play/step m5i20.0.in-XX?) and if you have a diagram of the selector switch logic for the pendant.

Regards Gary</description>
		<content:encoded><![CDATA[<p>Anders</p>
<p>Many thanks for listing the pendant info.<br />
I did the 3d_chips.ngc gcode demo file thats in emc many years ago,and I am finally trying a emc based servo control with the mesa  5i20 / 7i33 / 7i37 over in the UK<br />
I wandered which 5i20 inputs you used for the Pushbuttons: spindle on/off (yellow, m5i20.0.in-XX?), and program execution (red=pause m5i20.0.in-XX?, green=play/step m5i20.0.in-XX?) and if you have a diagram of the selector switch logic for the pendant.</p>
<p>Regards Gary</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BigJohnT</title>
		<link>http://www.anderswallin.net/2006/11/jogging-emc2/#comment-25903</link>
		<dc:creator>BigJohnT</dc:creator>
		<pubDate>Tue, 23 Oct 2007 11:46:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.anderswallin.net/2006/11/jogging-emc2/#comment-25903</guid>
		<description>Thanks Anders,

Now I see in the file where you are using "sets" and "linksp" to set the match pattern for the match8.x.bx.

Will the jog wheel function while in motion?

Thanks for the information.</description>
		<content:encoded><![CDATA[<p>Thanks Anders,</p>
<p>Now I see in the file where you are using &#8220;sets&#8221; and &#8220;linksp&#8221; to set the match pattern for the match8.x.bx.</p>
<p>Will the jog wheel function while in motion?</p>
<p>Thanks for the information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Administrator</title>
		<link>http://www.anderswallin.net/2006/11/jogging-emc2/#comment-25368</link>
		<dc:creator>Administrator</dc:creator>
		<pubDate>Thu, 18 Oct 2007 18:31:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.anderswallin.net/2006/11/jogging-emc2/#comment-25368</guid>
		<description>Hi John,

EMC contains a software PLC, classicladder, which I'm sure could be for the functionality I want - I just haven't had time to look at this for a while.

You have most of the idea right for my rotary switch HAL. The rotary switch has six positions which are encoded by the SN74HC148 into a three-bit value. In theory those three bits can be in eight different states, but as the switch only has six positions only six of those states are used.

I use a match8 block to detect which state we are in. The match8 block has two 8-bit inputs, and will output a true signal if those two 8-bit inputs are identical.

So for one function, say X-jog, I decide it's going to be on when the 3-bit patter is for example 1-0-1. I then hard-wire constant 1s and 0s to one input of a match8 block, and the SN74HC148  to the other input. So now this particular match8 block will show a true output only when the rotary switch is in the 1-0-1 position.

There's a corresponding match8 block for each of the other functions where the other 8-bit input is just hardwired to a different constant state 0-0-0, 0-0-1, and so on.

No BCD involved, just raw matching of bit-patterns. The output of the match8 block is then used as an enable for jogging etc.

Anders</description>
		<content:encoded><![CDATA[<p>Hi John,</p>
<p>EMC contains a software PLC, classicladder, which I&#8217;m sure could be for the functionality I want - I just haven&#8217;t had time to look at this for a while.</p>
<p>You have most of the idea right for my rotary switch HAL. The rotary switch has six positions which are encoded by the SN74HC148 into a three-bit value. In theory those three bits can be in eight different states, but as the switch only has six positions only six of those states are used.</p>
<p>I use a match8 block to detect which state we are in. The match8 block has two 8-bit inputs, and will output a true signal if those two 8-bit inputs are identical.</p>
<p>So for one function, say X-jog, I decide it&#8217;s going to be on when the 3-bit patter is for example 1-0-1. I then hard-wire constant 1s and 0s to one input of a match8 block, and the SN74HC148  to the other input. So now this particular match8 block will show a true output only when the rotary switch is in the 1-0-1 position.</p>
<p>There&#8217;s a corresponding match8 block for each of the other functions where the other 8-bit input is just hardwired to a different constant state 0-0-0, 0-0-1, and so on.</p>
<p>No BCD involved, just raw matching of bit-patterns. The output of the match8 block is then used as an enable for jogging etc.</p>
<p>Anders</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BigJohnT</title>
		<link>http://www.anderswallin.net/2006/11/jogging-emc2/#comment-25119</link>
		<dc:creator>BigJohnT</dc:creator>
		<pubDate>Sun, 14 Oct 2007 14:06:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.anderswallin.net/2006/11/jogging-emc2/#comment-25119</guid>
		<description>Anders,

I do a lot of PLC programming and in that world I would use the logic
Button On if output is off latch it on else if output is on latch it off. Don't know if this helps in any way with your coolant issue. Is the input being reevaluated some how at certain intervals?

Trying hard to understand your jog.hal file. Your using the pins m5i20.0.in-00, 01, 02 as your selection inputs which gives you eight possible combinations. The match8 sections for each axis is the same except for the match8.x. How does HAL make a match based on the inputs? Is it converting the inputs to BCD?

Thanks for the information on the pendant control.
John</description>
		<content:encoded><![CDATA[<p>Anders,</p>
<p>I do a lot of PLC programming and in that world I would use the logic<br />
Button On if output is off latch it on else if output is on latch it off. Don&#8217;t know if this helps in any way with your coolant issue. Is the input being reevaluated some how at certain intervals?</p>
<p>Trying hard to understand your jog.hal file. Your using the pins m5i20.0.in-00, 01, 02 as your selection inputs which gives you eight possible combinations. The match8 sections for each axis is the same except for the match8.x. How does HAL make a match based on the inputs? Is it converting the inputs to BCD?</p>
<p>Thanks for the information on the pendant control.<br />
John</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Administrator</title>
		<link>http://www.anderswallin.net/2006/11/jogging-emc2/#comment-16996</link>
		<dc:creator>Administrator</dc:creator>
		<pubDate>Mon, 11 Jun 2007 05:01:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.anderswallin.net/2006/11/jogging-emc2/#comment-16996</guid>
		<description>Hi Williams,

HAL is very much like building real electronics, so a degree in electrical engineering can't hurt :)

There should be some tutorial with siggen and halscope in the manual, did you go through that? Also learn to use halmeter.

Jeff Epler recently worked on visualizing a HAL circuit. That might help you see how everything is connected:
http://axis.unpythonic.net/01174426278

pyVCP should be ideal for learning to build easy HAL circuits and testing them. Maybe someone should make a set of tutorials using pyVCP and HAL?

Anders</description>
		<content:encoded><![CDATA[<p>Hi Williams,</p>
<p>HAL is very much like building real electronics, so a degree in electrical engineering can&#8217;t hurt <img src='http://www.anderswallin.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>There should be some tutorial with siggen and halscope in the manual, did you go through that? Also learn to use halmeter.</p>
<p>Jeff Epler recently worked on visualizing a HAL circuit. That might help you see how everything is connected:<br />
<a href="http://axis.unpythonic.net/01174426278" onclick="javascript:pageTracker._trackPageview('/outbound/comment/axis.unpythonic.net');" rel="nofollow">http://axis.unpythonic.net/01174426278</a></p>
<p>pyVCP should be ideal for learning to build easy HAL circuits and testing them. Maybe someone should make a set of tutorials using pyVCP and HAL?</p>
<p>Anders</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Williams</title>
		<link>http://www.anderswallin.net/2006/11/jogging-emc2/#comment-16993</link>
		<dc:creator>Williams</dc:creator>
		<pubDate>Sun, 10 Jun 2007 18:39:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.anderswallin.net/2006/11/jogging-emc2/#comment-16993</guid>
		<description>I've been looking at the HAL tutorial for EMC2 and, even with that, I still can't follow the jog.hal program.  How do people go about becoming proficient in HAL (documentation, trial and error, etc)? 

Williams</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been looking at the HAL tutorial for EMC2 and, even with that, I still can&#8217;t follow the jog.hal program.  How do people go about becoming proficient in HAL (documentation, trial and error, etc)? </p>
<p>Williams</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anders</title>
		<link>http://www.anderswallin.net/2006/11/jogging-emc2/#comment-4220</link>
		<dc:creator>Anders</dc:creator>
		<pubDate>Mon, 12 Feb 2007 18:27:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.anderswallin.net/2006/11/jogging-emc2/#comment-4220</guid>
		<description>Manfredi asked if a normal rotary encoder can be used as a jogwheel, and how I decode the differential signals with a DS3486

My reply:
Hi Manfredi,

The benefit with a purpose-made joghweel is that it has detents, i.e. it will stay at the position you leave it. A normal rotary encoder would work, but it would not be as nice to use.

A quick-and-dirty way of using differential encoder signals is to just use the +A and +B signals (leave the -A and -B signals unconnected).
If you really want the added noise immunity offered by differential signals then you need the DS3486 circuit or something similar.

The circuit I am using is from an IRF datasheet/application note.
http://www.irf.com/technical-info/refdesigns/dg-irmck201.pdf
see the next to last page.


Anders</description>
		<content:encoded><![CDATA[<p>Manfredi asked if a normal rotary encoder can be used as a jogwheel, and how I decode the differential signals with a DS3486</p>
<p>My reply:<br />
Hi Manfredi,</p>
<p>The benefit with a purpose-made joghweel is that it has detents, i.e. it will stay at the position you leave it. A normal rotary encoder would work, but it would not be as nice to use.</p>
<p>A quick-and-dirty way of using differential encoder signals is to just use the +A and +B signals (leave the -A and -B signals unconnected).<br />
If you really want the added noise immunity offered by differential signals then you need the DS3486 circuit or something similar.</p>
<p>The circuit I am using is from an IRF datasheet/application note.<br />
<a href="http://www.irf.com/technical-info/refdesigns/dg-irmck201.pdf" onclick="javascript:pageTracker._trackPageview('/outbound/comment/www.irf.com');" rel="nofollow">http://www.irf.com/technical-info/refdesigns/dg-irmck201.pdf</a><br />
see the next to last page.</p>
<p>Anders</p>
]]></content:encoded>
	</item>
</channel>
</rss>
