<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>.:Doing my little part, changing the world:. &#187; Communication</title>
	<atom:link href="http://bono02.wordpress.com/category/communication/feed/" rel="self" type="application/rss+xml" />
	<link>http://bono02.wordpress.com</link>
	<description>I want to change the world! I have my part!</description>
	<lastBuildDate>Sun, 23 Aug 2009 08:03:21 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='bono02.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/d6b49e06335a94b8ce6115b9d1952986?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>.:Doing my little part, changing the world:. &#187; Communication</title>
		<link>http://bono02.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://bono02.wordpress.com/osd.xml" title=".:Doing my little part, changing the world:." />
		<item>
		<title>Maxon EPOS with CANOpen</title>
		<link>http://bono02.wordpress.com/2008/02/03/maxon-epos-with-canopen/</link>
		<comments>http://bono02.wordpress.com/2008/02/03/maxon-epos-with-canopen/#comments</comments>
		<pubDate>Sun, 03 Feb 2008 12:44:30 +0000</pubDate>
		<dc:creator>Bondhan Novandy</dc:creator>
				<category><![CDATA[Communication]]></category>
		<category><![CDATA[LabView]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://bono02.wordpress.com/?p=48</guid>
		<description><![CDATA[Any of you who is using EPOS from MAXON motor and LabVIEW Real-Time might face the same problem with me. The RS232 -IMHO- is not fast enough to achieve real-time communication between the EPOS and RT controller, also I am using the LV-RT for the main program, thus it will be difficult to synchronize between [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bono02.wordpress.com&blog=532246&post=48&subd=bono02&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Any of you who is using <a href="http://www.google.com/search?q=EPOS+Maxon&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.mozilla:en-US:official&amp;client=firefox-a">EPOS</a> from MAXON motor and LabVIEW Real-Time might face the same problem with me. The RS232 -IMHO- is not fast enough to achieve real-time communication between the EPOS and RT controller, also I am using the LV-RT for the main program, thus it will be difficult to synchronize between two LVs program from two different computers which mainly caused by the communication overhead. The problem got worse when I knew that we could not download the EPOS dll file onto the RT.  After getting my <a href="http://forums.ni.com/ni/board/message?board.id=240&amp;message.id=5801&amp;requireLogin=False">answer</a> from NI forum, I decided to use the CAN Protocol which can reach up to 1Mbps.</p>
<p><a title="CANOpen Terminate 120 Ohm" href="http://bono02.files.wordpress.com/2008/02/maxon-canopen.jpg"><img src="http://bono02.files.wordpress.com/2008/02/maxon-canopen.jpg?w=836&#038;h=396" alt="CANOpen Terminate 120 Ohm" width="836" height="396" /></a></p>
<p>For the first trial, we have the IXXAT CAN-USB device. The question is, how to interface USB device to the RT? Because if I use this device, then it will be RT &lt;-&gt; USB &lt;-&gt; CAN, which means that I need a driver for IXXAT CAN-USB for the RT! I emailed the IXXAT company, the engineer replied that they do not support the LV-RT. Anyway I successfully  send command through CANOpen with this device on Windows platform, but <span id="more-48"></span>it took 1 day for me to realize that I need to terminate the final CAN-bus with 120 Ohm. Fiuhh.. <a href="http://en.wikipedia.org/wiki/Alhamdulillah">alhamdulillah</a> it was working though <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a title="CANOpen Terminate 120 Ohm" href="http://bono02.files.wordpress.com/2008/02/img_0153.jpg"><img src="http://bono02.files.wordpress.com/2008/02/img_0153.jpg" alt="CANOpen Terminate 120 Ohm" /></a></p>
<p>Then we bought the NI-CAN PXI 2 Port  from NI with the OPENCan library. I successfully controlled the speed of the BLDC motor with the CANOPen using SDO only, but then I realized that there was a big delay between two SDO commands, which resulted almost 100% error (current speed &#8211; desired speed), currently I am going to write a new program by using both SDO and PDO.</p>
<p>I -insyaAllah- will continue this writing and explain briefly about SDO &amp; PDO especially in the case of Maxon EPOS.</p>
<p>Monday, 4/feb/2007 @ 20:52 KST</p>
<p>The definition of CAN and CANOpen  can be found by yourself in google <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . I will explain briefly what I have learned, the CANOpen method to control the Maxon Motor using EPOS, for more detail you can read the EPOS Application Note: CANOpen Basic Information (pdf).</p>
<p>In EPOS there is an <strong>important</strong> dictionary (the source of everything), called <strong>Object Dictionary</strong> <strong>Access</strong>. It contains the System parameter (e.g. PID tuning value, velocity, etc), the DataRecorder(Encoder counter, etc), and so on. To control the motor, these parameters need to be changed. We can change the value by 3 methods:</p>
<ol>
<li>Directly click the field (of the column)  and enter the desired value</li>
<li>Using the Serial communication RS232  protocol</li>
<li>CANOpen protocol</li>
</ol>
<p>In the case of 1, you must be joking, but if you want to do it manually, no one can blame on you =P. The 2nd method, I have explained above, that it is not possible if we want to utilize the LabView RT, because there is a dll file which does not support the RT so it can not be downloaded onto the RT, unless you know how to reverse engineer this file and re-write your own code <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> .</p>
<p>Now the 3rd method, with CANOpen there are 2 ways of writing the object dictionary access:</p>
<p>#1 is SDO (Service Data Object). It is a confirmed service, means that after you send the command, in between the  timeout value you specified, there will be a confirmation packet which contains the value whether you successfully write the object or not.</p>
<p>#2 is PDO (Process Data Object). Opposite to the SDO, it is unconfirmed, thus it is very fast. But as a trade off, there are a &#8220;little&#8221; work to do, which is the PDO mapping.</p>
<p>At first time, I am using the SDO only, the problem is that, there is a big gap between sending the packet and receiving the confirmation packet, thus it become less real-time and worse, the data is not valid (I am writing a quite time critical program) .</p>
<p>Here&#8217;s some picture with SDO only:</p>
<p><a title="EPOS with SDO Only" href="http://bono02.files.wordpress.com/2008/02/sdo_only.jpg"><img src="http://bono02.files.wordpress.com/2008/02/sdo_only.jpg" alt="EPOS with SDO Only" /></a></p>
<p>If you take a look at the picture above the error looks very big, I guess it is caused by the delay of the SDO packets.</p>
<p><a title="Maxon MOTOR with PDO access" href="http://bono02.files.wordpress.com/2008/02/pdo.jpg"><img src="http://bono02.files.wordpress.com/2008/02/pdo.jpg" alt="Maxon MOTOR with PDO access" /></a></p>
<p>And in the above picture the error is very small with PDO packets.</p>
<p>And here is the video, if you need the code just write me a comment or send an email <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>This is an example program to initialize the Maxon EPOS through CANOpen. To be noted that the maxon UI Interface is always on when the lv program is running. Download <a href="http://bono02.files.wordpress.com/2008/06/epos_sdo_initzip.pdf">here</a> (rename the file to become .zip)!</p>
<p><span style="text-align:center; display: block;"><a href="http://bono02.wordpress.com/2008/02/03/maxon-epos-with-canopen/"><img src="http://img.youtube.com/vi/Kr5t9HlvVHg/2.jpg" alt="" /></a></span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bono02.wordpress.com/48/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bono02.wordpress.com/48/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bono02.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bono02.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bono02.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bono02.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bono02.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bono02.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bono02.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bono02.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bono02.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bono02.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bono02.wordpress.com&blog=532246&post=48&subd=bono02&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bono02.wordpress.com/2008/02/03/maxon-epos-with-canopen/feed/</wfw:commentRss>
		<slash:comments>38</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ce973d04c8a663398081f5f440344518?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bondan</media:title>
		</media:content>

		<media:content url="http://bono02.files.wordpress.com/2008/02/maxon-canopen.jpg" medium="image">
			<media:title type="html">CANOpen Terminate 120 Ohm</media:title>
		</media:content>

		<media:content url="http://bono02.files.wordpress.com/2008/02/img_0153.jpg" medium="image">
			<media:title type="html">CANOpen Terminate 120 Ohm</media:title>
		</media:content>

		<media:content url="http://bono02.files.wordpress.com/2008/02/sdo_only.jpg" medium="image">
			<media:title type="html">EPOS with SDO Only</media:title>
		</media:content>

		<media:content url="http://bono02.files.wordpress.com/2008/02/pdo.jpg" medium="image">
			<media:title type="html">Maxon MOTOR with PDO access</media:title>
		</media:content>

		<media:content url="http://img.youtube.com/vi/Kr5t9HlvVHg/2.jpg" medium="image" />
	</item>
	</channel>
</rss>