<?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: Computmotor 6K Motion Controller LabView program in LabVIEW</title>
    <link>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1246268#M525907</link>
    <description>&lt;P&gt;If you look at my attachment I can get my axis to move, and then after they're done moving they move back to their original position. What I want, is for the "Y-axis" track to move from the sensor by the motor to the far end of the axis by the further sensor, once it reaches the far end it stops, then the "X-axis" track moves up one postion, then the "Y-axis" track moves back down toward the motor, and so forth. I want this to work many times. I have attached a copy of my code to see what I have completed so far.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Sep 2010 17:38:05 GMT</pubDate>
    <dc:creator>arthur51189</dc:creator>
    <dc:date>2010-09-13T17:38:05Z</dc:date>
    <item>
      <title>Computmotor 6K Motion Controller LabView program</title>
      <link>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1217029#M519855</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using the Viewpoint Compumotor 6k Motion Controller VI's. We have the motion controller plugged in through serial port. I'm looking at the Functions they offer(different VI's), but I don't see any for serial port. They have a VI 6k Communication Launcher.VI, but it looks like that's only for Ethernet connection not through Serial. Does anyone know how to create a connection with serial port.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2010 16:37:04 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1217029#M519855</guid>
      <dc:creator>arthur51189</dc:creator>
      <dc:date>2010-08-16T16:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Computmotor 6K Motion Controller LabView program</title>
      <link>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1217303#M519922</link>
      <description>&lt;P&gt;I don't have access to that library, but I found the manual for it here: &lt;A href="http://www.viewpointusa.com/6k/6K%20VI%20Motion%20User%20Manual.pdf" target="_self" rel="nofollow"&gt;http://www.viewpointusa.com/6k/6K%20VI%20Motion%20User%20Manual.pdf&lt;/A&gt;.&amp;nbsp; Section 11 indicates that they provide VIs for a serial connection - have you found those?&amp;nbsp; The ethernet connection provides features that aren't possible over a serial link, so you will not be able to take full advantage of the library.&amp;nbsp; I've written LabVIEW code to connect to a 6k4 using both serial and ethernet (started with serial, then moved to ethernet when I needed more control) without that library and you can make either approach work.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2010 20:26:30 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1217303#M519922</guid>
      <dc:creator>nathand</dc:creator>
      <dc:date>2010-08-16T20:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Computmotor 6K Motion Controller LabView program</title>
      <link>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1217315#M519925</link>
      <description>&lt;P&gt;I've looked through the manual the serial port VI's don't offer much, the ethernet VI's offer more flexibility it has VI's to move, set distance, set velocities, but the Serial VI's don't offer it. What kind of stuff can be done over Serial, this is my first time using this type of equipment.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2010 20:34:35 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1217315#M519925</guid>
      <dc:creator>arthur51189</dc:creator>
      <dc:date>2010-08-16T20:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Computmotor 6K Motion Controller LabView program</title>
      <link>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1217341#M519931</link>
      <description>&lt;P&gt;The major difference between serial and ethernet communications is the speed and ease with which you can do certain functions.&amp;nbsp; For example, if you want to set a variable value on the 6k4 over ethernet, you can do that directly (by sending a packet in the right format, or through functions provided by the Com6srvr ActiveX component (which the Viewpoint library appears to use).&amp;nbsp; To do it over a serial connection you have to send the command that sets a variable value, which means your computer needs to convert the value into text and send the command, then the 6k needs to parse the text and convert it back into a value.&amp;nbsp; However, all basic motion control can be done over a serial connection, and for more complex behavior you'll want to write programs in the 6k language and save them on the controller.&amp;nbsp; Have you looked through the 6k manual and programmers reference?&amp;nbsp; Have you installed the motion planner software and controlled the 6k manually?&amp;nbsp; If you don't have the manuals, you can find them on the Parker Compumotor site: &lt;A href="http://www.parkermotion.com/products/Controllers__1745__30_32_80_567_29.html" target="_self" rel="nofollow"&gt;http://www.parkermotion.com/products/Controllers__1745__30_32_80_567_29.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2010 20:59:43 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1217341#M519931</guid>
      <dc:creator>nathand</dc:creator>
      <dc:date>2010-08-16T20:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Computmotor 6K Motion Controller LabView program</title>
      <link>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1217371#M519940</link>
      <description>&lt;P&gt;I have installed the motion planner software, I have the manual the one that you posted in the previous message. Right now, I'm just trying to get the track to move at a certain speed in a certain direction using LabVIEW. They offer a communication VI, the 6k Communication RS232.vi but thats it, I don't know how to set the direction and velocity to get it to move.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2010 21:16:43 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1217371#M519940</guid>
      <dc:creator>arthur51189</dc:creator>
      <dc:date>2010-08-16T21:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Computmotor 6K Motion Controller LabView program</title>
      <link>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1217467#M519961</link>
      <description>&lt;P&gt;Can you get the motor to move using the motion planner, using the terminal to enter manual commands?&amp;nbsp; If so, you can then duplicate this in LabVIEW.&amp;nbsp; Open a VISA Serial session on the COM port to which the 6k is connected, make sure that the serial settings match (baud rate, stop bits, handshaking, parity, etc), then write text - the same commands that you entered in the motion planner - to the serial port.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2010 22:56:29 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1217467#M519961</guid>
      <dc:creator>nathand</dc:creator>
      <dc:date>2010-08-16T22:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Computmotor 6K Motion Controller LabView program</title>
      <link>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1218578#M520177</link>
      <description>&lt;P&gt;What would you&amp;nbsp;recommend&amp;nbsp;for a&amp;nbsp;beginner&amp;nbsp;with Compumotor, but I'm pretty good with LabVIEW, Ethernet or Serial?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2010 17:05:08 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1218578#M520177</guid>
      <dc:creator>arthur51189</dc:creator>
      <dc:date>2010-08-17T17:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Computmotor 6K Motion Controller LabView program</title>
      <link>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1218634#M520193</link>
      <description>&lt;P&gt;The first thing you should do is set up a serial connection, because you'll need it to configure the ethernet connection if you decide to go that route.&amp;nbsp; Once you have the serial connection working you might decide it's all you need.&amp;nbsp; You also might want to use serial if you don't want to put your 6k on your local network and you can't get a second ethernet card for your computer.&amp;nbsp; The commands are the same over either connection so you can switch between them anytime.&amp;nbsp; Which one is better for you depends somewhat on what you need the 6k to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're interacting a lot with the 6k and response speed isn't critical, the serial connection is fine.&amp;nbsp; For repeated motions and faster response, the ethernet connection is better.&amp;nbsp; Initially, I wrote programs on the 6k and ran them by sending the program name over the serial connection.&amp;nbsp; Each program would print a response to the serial port that LabVIEW could read.&amp;nbsp; It also provided flexibility for me to write individual 6k commands from LabVIEW when necessary, but it was slow because the 6k takes time to parse text into program names and LabVIEW needed to check the serial port to see if a program finished.&amp;nbsp; A faster approach is to assign a program to run when a specific input is triggered using INSELP.&amp;nbsp; That input can be a bit in a variable - a virtual input.&amp;nbsp; The ethernet communication lets you send variable values directly to the 6k, so you can run a 6k program by sending the right variable value.&amp;nbsp; Similarly the 6k can send an alert over the ethernet link when motion completes, which is simpler than putting a print command in every 6k program and checking for a response on the serial port.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2010 17:46:13 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1218634#M520193</guid>
      <dc:creator>nathand</dc:creator>
      <dc:date>2010-08-17T17:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Computmotor 6K Motion Controller LabView program</title>
      <link>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1218704#M520225</link>
      <description>&lt;P&gt;Alright it just seems confusing, because the LabVIEW examples that come with the Compumotor. It just seems like they have me select the axis and the speed and distance and it should work, but I can't test it out until i have an Ethernet Connection.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2010 18:38:50 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1218704#M520225</guid>
      <dc:creator>arthur51189</dc:creator>
      <dc:date>2010-08-17T18:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Computmotor 6K Motion Controller LabView program</title>
      <link>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1220022#M520496</link>
      <description>&lt;P&gt;Quick question when i use the Serial Write.vi for the write buffer when I enter the code from Motion Planner, can I enter more than 1 line of code into the Write buffer?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2010 17:08:04 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1220022#M520496</guid>
      <dc:creator>arthur51189</dc:creator>
      <dc:date>2010-08-18T17:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Computmotor 6K Motion Controller LabView program</title>
      <link>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1220110#M520509</link>
      <description>&lt;P&gt;You should be using the VISA Write function to write to the serial port, and you can send multiple lines of code in the same write.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2010 18:17:02 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1220110#M520509</guid>
      <dc:creator>nathand</dc:creator>
      <dc:date>2010-08-18T18:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Computmotor 6K Motion Controller LabView program</title>
      <link>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1220114#M520510</link>
      <description>&lt;P&gt;Can you check my code, I translated it word for word from Motion Planner. On Motion Planner it runs, but in LabVIEW it's not running I don't know why this is occuring?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2010 18:20:54 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1220114#M520510</guid>
      <dc:creator>arthur51189</dc:creator>
      <dc:date>2010-08-18T18:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Computmotor 6K Motion Controller LabView program</title>
      <link>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1220134#M520515</link>
      <description>&lt;P&gt;You need to send a newline after every command.&amp;nbsp; You can include the newline in the string constant, just go to the end of the string and hit "Enter".&amp;nbsp; You may want to combine all the string constants into one (or two - one for setup, one for motion) and write all the command together.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2010 18:33:52 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1220134#M520515</guid>
      <dc:creator>nathand</dc:creator>
      <dc:date>2010-08-18T18:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Computmotor 6K Motion Controller LabView program</title>
      <link>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1232033#M523052</link>
      <description>&lt;P&gt;I can get the tracks to move and when I move the tracks in a positive distance (away from the motor) after it is done moving it will go back to HOME. When I move it in a negative distance(towards the motor) the tracks will always move back to the limit and then go back to HOME, although I'm not telling it to go to the limit. Is there a way I can fix this issue? Thank You.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached my code&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2010 18:54:29 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1232033#M523052</guid>
      <dc:creator>arthur51189</dc:creator>
      <dc:date>2010-08-30T18:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Computmotor 6K Motion Controller LabView program</title>
      <link>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1232105#M523074</link>
      <description>&lt;P&gt;Are you asking about the homing operation at the end of your program?&amp;nbsp; HOM1 runs in the negative direction.&amp;nbsp; If you move past the home sensor in the negative direction and then execute HOM1, it will continue running in the negative direction until it hits the limit, then reverse direction until it finds the home sensor.&amp;nbsp; That's how homing works.&amp;nbsp; In many applications, you home the motor at the beginning to establish the zero position.&amp;nbsp; To move directly back to that home position at the end of the program, you execute an absolute move to 0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Two minor comments: 1) you don't need a blank line after every command, you just need to put each command on a separate line, with one blank line at the end, and 2) why are you setting homing parameters at the end of the program after you start the homing operation?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2010 19:47:11 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1232105#M523074</guid>
      <dc:creator>nathand</dc:creator>
      <dc:date>2010-08-30T19:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Computmotor 6K Motion Controller LabView program</title>
      <link>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1232119#M523080</link>
      <description>&lt;P&gt;I'm not sure how to set the homing parameters so after my track moves, it will move back to the home position?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2010 19:57:29 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1232119#M523080</guid>
      <dc:creator>arthur51189</dc:creator>
      <dc:date>2010-08-30T19:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Computmotor 6K Motion Controller LabView program</title>
      <link>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1232145#M523088</link>
      <description>&lt;P&gt;Am I correctly understanding that after every sequence of moves, you want it to return to the home position by the most direct route?&amp;nbsp; You never tell the system what the home position is in the first place, so it can't know which direction it needs to move to find that home position.&amp;nbsp; If you don't like watching the motor run to one end of travel and then back to find the home position, you could try homing to an end-of-travel limit instead, so you always run the same direction to find the home position.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2010 20:13:46 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1232145#M523088</guid>
      <dc:creator>nathand</dc:creator>
      <dc:date>2010-08-30T20:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Computmotor 6K Motion Controller LabView program</title>
      <link>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1232227#M523111</link>
      <description>&lt;P&gt;I'm sorry but I don't quite understand. After the movement of the track I want it to go back to the home position no matter which way it travels(whether in the positive or negative direction).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2010 21:30:24 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1232227#M523111</guid>
      <dc:creator>arthur51189</dc:creator>
      <dc:date>2010-08-30T21:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Computmotor 6K Motion Controller LabView program</title>
      <link>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1232317#M523129</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;HR /&gt;&lt;a href="https://forums.ni.com/t5/user/viewprofilepage/user-id/153917"&gt;@arthur51189&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I'm sorry but I don't quite understand. After the movement of the track I want it to go back to the home position no matter which way it travels(whether in the positive or negative direction).&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Isn't that what it's doing now, except with a detour through the end-of-travel limit when it has already passed the home sensor in the negative direction?&amp;nbsp; I think you may be misunderstanding the HOM command.&amp;nbsp; It doesn't &lt;EM&gt;go&lt;/EM&gt; to the home position, it &lt;EM&gt;finds&lt;/EM&gt; the home position, as shown in this (sloppy) picture.&amp;nbsp; You're telling it to find the home position starting in the negative direction and that's what it's doing.&amp;nbsp; It sounds like what you want it to do is to move towards the home in the positive direction if that would be shorter.&amp;nbsp;&amp;nbsp;In order for that to happen, the system would need to know where the home sensor is before it started homing, and if it knew that, why would you run the home procedure at all?&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://forums.ni.com/t5/image/serverpage/image-id/22739iD8D07F0E0EE407FD/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="22739iD8D07F0E0EE407FD" title="homing.PNG" align="center" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2010 22:46:06 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1232317#M523129</guid>
      <dc:creator>nathand</dc:creator>
      <dc:date>2010-08-30T22:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Computmotor 6K Motion Controller LabView program</title>
      <link>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1233413#M523322</link>
      <description>&lt;P&gt;But how come after the track moves, it goes back to the original home position&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2010 17:59:17 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Computmotor-6K-Motion-Controller-LabView-program/m-p/1233413#M523322</guid>
      <dc:creator>arthur51189</dc:creator>
      <dc:date>2010-08-31T17:59:17Z</dc:date>
    </item>
  </channel>
</rss>

