<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unidrive SP PDO Communication in LabVIEW</title>
    <link>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/1672908#M596367</link>
    <description>&lt;P&gt;I was asking you Ravens. I thought it would fit inside of this thread so I didn't want to create another. I've tried using the MODBUS drivers with the drive set up for RTU but always received a timeout error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ok, while I was replying I decided &amp;nbsp;to&amp;nbsp; try the MODBUS drivers and had sucess in reading a register. Forgive me but this is both a new instrument and new protocol for me. I've only dealt with GPIB and basic RS232 scpi commands in the past.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It could be a great help to have a peek at those drivers though so I can have an idea of where to continue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 16 Aug 2011 21:11:46 GMT</pubDate>
    <dc:creator>Mustanghipo65</dc:creator>
    <dc:date>2011-08-16T21:11:46Z</dc:date>
    <item>
      <title>Unidrive SP PDO Communication</title>
      <link>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/935452#M420019</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently working on controlling through Labview and CanOpen a testrig that includes a Control Techniques Drive, so it can act as a vehicle emulator. So far I've been able to do it through SDO, however I would like to do it through PDO. If I configure manually PDO1, I can read values stored in the drive without a problem, however when it comes to write I don't get any error but I also don't get any response. As I go through the CT CanOpen manual, there seems to be a gap in how to do the mapping for the different PDOs, and how to access the specific menu and parameter. I've also been unable to do the mappings through SDO for the other PDOs. I'm attaching what I've been working on so far, and I hope you can point me in the right direction. Probably I'm not making myself clear, so if you need any other information let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Enrico &lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2009 14:59:42 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/935452#M420019</guid>
      <dc:creator>enorrav</dc:creator>
      <dc:date>2009-06-29T14:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unidrive SP PDO Communication</title>
      <link>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/948896#M425549</link>
      <description>&lt;P&gt;Hello Enrico,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which version of LabVIEW are you using?&lt;/P&gt;&lt;P&gt;What hardware instrument are you using to communicate with your drive?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have looked at the attached VIs, however it seems that certain SubVI's are missing from the ZIP file for the PDO Write.&amp;nbsp; As you are receiving no error when running the VI, then your programming must be in the right direction.&amp;nbsp; As there is a SubVI missing, I am not entirely sure what the data packets look like that you are trying to write to the drive.&amp;nbsp; It may be that the data packet contains data, but is not enabling the drive to do anything.&amp;nbsp; Frames for PDO contain a Control bit.&amp;nbsp; If this is set to zero, it could mean that the remain bits of data are being ignored.&amp;nbsp; Can you check whether this is the issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At this point, I would also like to point out that a specific CAN section exists on the forums that is monitored by enthusiasts and users of that field.&amp;nbsp; In the future, you may wish to consider using that section for a noticebly quicker reply on the topic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2009 09:38:08 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/948896#M425549</guid>
      <dc:creator>gt3000</dc:creator>
      <dc:date>2009-07-21T09:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unidrive SP PDO Communication</title>
      <link>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/950604#M426295</link>
      <description>&lt;P&gt;Hey George,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply. I'm currently using LabVIEW version 8.5. &lt;/P&gt;&lt;P&gt;To communicate with the drive I'm using CANopen, NI-PCI-CAN Software version 1.1.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached now the SubVI's that were missing, I apologize for that. As for the control bit, there is a parameter in the drive that controls the motor 6.43, called 'control word enable' that sets that specific bit to 1. I've done it before the PDO configuration, but I still have the same issue, unless it has to be set at another point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To make things a bit easier, I'm attaching a slight modified version of the Analogue Output VI, that's found in the CANopen examples folder. In the drive, there are 4 PDOs, each with 4 TxPDO and 4 RxPDO channels. The first PDO can be configured directly from the drive, and that's how I've been able to read parameteres. However, when it comes to write, that's when the problem comes. With this VI, the first RxPDO channel is configured to set the speed of the motor (directly configured in the drive), but I'm not getting any response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Enrico&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2009 12:14:35 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/950604#M426295</guid>
      <dc:creator>enorrav</dc:creator>
      <dc:date>2009-07-23T12:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unidrive SP PDO Communication</title>
      <link>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/950731#M426342</link>
      <description>&lt;P&gt;Enrico,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the address number of your drive?&amp;nbsp; I haven't used CAN with CT drives before, but I have done serial communication using their ANSI protocol, so I don't know if CAN uses the slave address also.&amp;nbsp; I had started with a Commander SE and setup my LabVIEW drivers and got them working just fine.&amp;nbsp; When we got a Unidrive SP, the same drivers worked, except I had one problem to work around.&amp;nbsp; If I remember correctly, I couldn't get a response when my drive was set to the default value of 1.&amp;nbsp; But when I changed it to another address (11 in my case), I was able to get a response.&amp;nbsp; I have no idea whether my issue was a programming problem or a quirk of the drive.&amp;nbsp; I suspect a quirk of the drive, but once I got it working, I didn't go any deeper in trying to figure it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This may or may not help you.&amp;nbsp; But it was such an odd thing and really non-intuitive thing, that maybe you are having the same issue.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2009 14:11:58 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/950731#M426342</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2009-07-23T14:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unidrive SP PDO Communication</title>
      <link>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/950784#M426359</link>
      <description>&lt;P&gt;RF,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for sharing that! Unfortunately that's not the case here. I'm guessing that you're talking about the Node Address (at least in my case or how I know it). The drive addresses are set to 60 and 61. Probably it's a matter of how I'm configuring the PDO, or something that I'm doing wrong when I'm mapping them..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Enrico&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2009 15:00:26 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/950784#M426359</guid>
      <dc:creator>enorrav</dc:creator>
      <dc:date>2009-07-23T15:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Unidrive SP PDO Communication</title>
      <link>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/950804#M426368</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;In my manual, the parameter I was talking about is called serial address at menu 11.23.&amp;nbsp; I am using the RS-485 serial communication with ANSI protocol.&amp;nbsp; The terminology for CAN is probably different and may be under its own set of menu parameters.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;I was hoping your problem would be as simple but impossible to figure out as mine was.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Times New Roman"&gt;&lt;FONT size="2"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Good luck with solving it.&amp;nbsp; And please report back with the solution once you are able to figure it out&lt;/FONT&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Ravens Fan on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 07-23-2009&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 11:13 AM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 23 Jul 2009 15:13:15 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/950804#M426368</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2009-07-23T15:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unidrive SP PDO Communication</title>
      <link>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/1672824#M596349</link>
      <description>&lt;P&gt;I'm working on controlling a unidrive sp through labview 10. I can use the software supplied from control techniques to read and set parameters on the drive using a&amp;nbsp;serial&amp;nbsp;485 connection, both ANSI and MODBUS work. I am having a hard time understanding the protocol for either ansi or modbus so I can build labview drivers. I also had to set my drive to address 11 when using their ansi protocol.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would it be possible for you to post some of your driver vi's?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2011 20:18:14 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/1672824#M596349</guid>
      <dc:creator>Mustanghipo65</dc:creator>
      <dc:date>2011-08-16T20:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unidrive SP PDO Communication</title>
      <link>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/1672860#M596359</link>
      <description>&lt;P&gt;Are you asking Enorav or me for drivers?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I came across the same situation with the Unidrive SP where I had to make the address 11 to get responses.&amp;nbsp; With the default address of 1, I just never seemed to get replies back from the drive. (Though I don't remember any problems with the Quantum 3 drives that use the dame protocol.)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2011 20:47:15 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/1672860#M596359</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2011-08-16T20:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unidrive SP PDO Communication</title>
      <link>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/1672908#M596367</link>
      <description>&lt;P&gt;I was asking you Ravens. I thought it would fit inside of this thread so I didn't want to create another. I've tried using the MODBUS drivers with the drive set up for RTU but always received a timeout error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ok, while I was replying I decided &amp;nbsp;to&amp;nbsp; try the MODBUS drivers and had sucess in reading a register. Forgive me but this is both a new instrument and new protocol for me. I've only dealt with GPIB and basic RS232 scpi commands in the past.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It could be a great help to have a peek at those drivers though so I can have an idea of where to continue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2011 21:11:46 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/1672908#M596367</guid>
      <dc:creator>Mustanghipo65</dc:creator>
      <dc:date>2011-08-16T21:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Unidrive SP PDO Communication</title>
      <link>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/1672918#M596372</link>
      <description>&lt;P&gt;Sure.&amp;nbsp; Let me dig those up, zip them up, and post them to the thread.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2011 21:18:01 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/1672918#M596372</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2011-08-16T21:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unidrive SP PDO Communication</title>
      <link>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/1672970#M596386</link>
      <description>&lt;P&gt;Take a look at the attached zip file.&amp;nbsp; I had a project where I was primarily controlling a 150 HP AC motor with a Unidrive SP.&amp;nbsp; I stripped out some auxiliary stuff, but most of the code is still here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I like to centralize the motor controller communications, so I do that in a single loop.&amp;nbsp; I also set it up as an action engine so I can initialize things like the com port and the drive address and keep those values stored.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One thing I added was a side dialog that pops up so that I can read or write to any parameter besides the handful I'm looking during normal operation.&amp;nbsp; It just injects its commands into the communication.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Note:&amp;nbsp; This is saved in LV 2009.)&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2011 21:50:15 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/1672970#M596386</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2011-08-16T21:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unidrive SP PDO Communication</title>
      <link>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/1673834#M596592</link>
      <description>&lt;P&gt;I like how&amp;nbsp;the way you&amp;nbsp;poll the drive for status updates by using recurring queues. I think&amp;nbsp;that project&amp;nbsp;will help me out greatly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using this unidrive to control a linear actuator from Exlar, which is nothing more than a strong servo. Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2011 13:53:31 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/1673834#M596592</guid>
      <dc:creator>Mustanghipo65</dc:creator>
      <dc:date>2011-08-17T13:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unidrive SP PDO Communication</title>
      <link>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/1674038#M596631</link>
      <description>&lt;P&gt;We use some Exlar actuators also.&amp;nbsp; But we've used some Control Techniques MD-434 servo drives to control them.&amp;nbsp; For my more advanced test stand, that drive has a program module add-on.&amp;nbsp; I wrote a program on that which would take some parameters and actually issue and execute a move command.&amp;nbsp; So it is the real brains of the system.&amp;nbsp; But I used modbus parameters to get the motion parameters from the PC to the drive and also return some status parameters such as current position, velocity, etc.&amp;nbsp; If I remember correctly, I used the same queue mechanism where I re-enqueue the repetitive commands such as polling the modbus status parameters.&amp;nbsp; I like this method because once I set up the recurring stuff, I don't have to do any extra work to keep them running.&amp;nbsp; The one-time commands get put into the queue and get executed soon enough.&amp;nbsp; And by not doing an actual polling, I'm not flooding the communications with multiple copies of the same data requests in the event the serial communication gets slowed down or lost for some reason like a disconnected cabled.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2011 14:58:38 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/1674038#M596631</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2011-08-17T14:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unidrive SP PDO Communication</title>
      <link>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/1674154#M596651</link>
      <description>&lt;P&gt;This is our first project that is using actuators/servos so we went with what the applications engineer said would be best, which was the unidrive SP. We're testing the hold strength of an item, it must be able to hold piano wire with almost 1,000 lbs tension. What i'm planning on is&amp;nbsp;commanding the unidrive to move a few inches with a low current limit on the drive. Ramp the current limit up while monitoring the tension in the wire.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Exlar has the motor files for a unidrive so i plan on loading that using Control Tech's software, then using labview to do the rest.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2011 15:39:09 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/1674154#M596651</guid>
      <dc:creator>Mustanghipo65</dc:creator>
      <dc:date>2011-08-17T15:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unidrive SP PDO Communication</title>
      <link>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/1674190#M596659</link>
      <description>&lt;P&gt;That sounds good.&amp;nbsp; Good luck with your application.&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.ni.com/i/smilies/16x16_smiley-happy.gif" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2011 15:58:09 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/1674190#M596659</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2011-08-17T15:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unidrive SP PDO Communication</title>
      <link>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/1898725#M638890</link>
      <description>&lt;P&gt;Sort of a related question here, I've got a Unidrive SP and I'm using the SM-CAN module. The problem I have is that the SM-CAN user guide shows command usage for Emerson's SYPT software, and of course I'm using LabVIEW.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone know of a programmer's reference that provides the lower-level CAN IDs and data word values for the drive's command set? I've looked through the user guide and Emerson's site, no luck. Called tech support three times, can't get anyone to call me back.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Help?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2012 14:52:02 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Unidrive-SP-PDO-Communication/m-p/1898725#M638890</guid>
      <dc:creator>ElectricWraith</dc:creator>
      <dc:date>2012-03-02T14:52:02Z</dc:date>
    </item>
  </channel>
</rss>

