Sitemap

Amicuk Programming Answers

Position error

-0001-11-30   Views:0

Advertisement

I am having encoder position issues. I am using 3 Kollmorgen servos attached to 3 AKD Ethercat drives. I have a cRio running as the Ecat master. All of my Vis are running in scan mode on the cRio.  I am building a capstan pulling system that will hav

I am having encoder position issues.
I am using 3 Kollmorgen servos attached to 3 AKD Ethercat drives. I have a cRio running as the Ecat master. All of my Vis are running in scan mode on the cRio.
 I am building a capstan pulling system that will have a constantly changing velocity based upon position within a 3 meter repeating cycle. I change the velocity based upon sensor input every mm of the cycle and then start the 3 meter cycle over. The velocity various from 1 RVS to 10RVS.  I use the encoder position to determine my position within a cycle. The system runs great for around 5 minutes and then my encoder goes crazy. Even when I stop the servo the encoder continues to increase. In the help for the “Reset Position” command I noticed that encoder values higher than 2^52 can be unstable. Does this apply to user units or RAW encoder pulses?
  I have tried the following methods to try and fix the problem.
Test and verified that the issue occurs in the Axis test panel.
I just set a long move at a given speed. After a time the position error goes crazy as in 4.0 e +12 and the position continues to increase after the servo stops.
I removed my units and used just encoder pulses and again after a few minutes the same thing occurred.
Changed my VI so that after each 3 meter cycle the encoder was reset to zero. Again after roughly the same amount of time the issue occurred.
One strange thing is that I can still control the servo accurately. If I tell it to go 100mm it goes 100mm, but once there I cannot read the position because it returns a very large and inaccurate number.
A further observation is that I can recover by resetting the cRio. This makes me think that the encoder number is exceeding some register U32 or U64. If that were the case I would have thought that resetting it after each cycle would have fixed it. Unless when you reset the position you are just setting an offset that is subtracted for the actual encoder from that point forward.
 I am sure that I have confused you all but any and all help is greatly appreciated.
Perpetual LabView noob…..
Jeff Lee

The replay answer
Advertisement
Hi Jeff,
I have a few questions for you to help me get a better understanding of the issue:
- What version of LabVIEW software is your application written in (2010? 2011 SP1?, 2012? etc)?
- Have you tried swapping your motor with a different one?  Or your Drive?  Did you still observe the same behavior?  If possible, I think this would be a useful test to help narrow down the issue.
- What does your motion system look like at a high level (What components are involved and how are they connected to eachother)?  Does the encoder feedback connect back to the drive or back to your cRIO controller?  
Andrew T.
National Instruments

Go to See the other 3 answers

Invalid Cursor Position Error

Category:DefaultRelease time:2015-10-11Views:130

Help! I am using JRun3.1 and developing a web interface to a database. In this particular screen, I am using CachedRowSet (I downloaded this and added it to jrun classpath). I am getting "Invalid cursor position" error. I feel there is a problem[More]

Invalid Cursor Position Error on Windows XP using CachedRowSet

Category:DefaultRelease time:2015-10-11Views:130

Hello, I don't know if this question lies here, but I thought it would be the well suited place so please pardon me if it isn't. I am trying to access multiple pages from my database on my XP machine but I am getting an "invalid cursor position"[More]

Position error

Category:DefaultRelease time:-0001-11-30Views:130

I am having encoder position issues. I am using 3 Kollmorgen servos attached to 3 AKD Ethercat drives. I have a cRio running as the Ecat master. All of my Vis are running in scan mode on the cRio.  I am building a capstan pulling system that will hav[More]

"Column Width should be positive" error

Category:DefaultRelease time:-0001-11-30Views:130

I have a flash chart that has a fairly simple query (whic works fine when run via SQLPLUS etc), that when I run via Apex I get "Column Width should be positive" errors. What does this mean, and how do I debug it?I realise that I have to have a c[More]

Set file position error

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I am using LabVIEW 2009 SP1 on Win XP OS system. I am reading and writing data to a text file whose size does not exceed 50 MB. whenever i try to set file position to a value of say 128 bytes from the start of file, the function does not show an[More]

Swf positioning error in cs3

Category:DefaultRelease time:-0001-11-30Views:130

I've added a .swf file to my html page but when attributing a CSS ID to the object to position it on the page, it shows as in the correct position on the dreamweaver layout, but when viewing in firefox, opera or safari the flash object displays out o[More]

Batch Input ME47 - Get Item position error

Category:DefaultRelease time:-0001-11-30Views:130

I'm doing BDC to ME47 passing header and several positions in a RFC. The functional wants  the RFC inform which position caused the error. In the message table of the call transaction doesn't show any info of the position. I think it can't be done bu[More]

Read Encoder Position Error -70012

Category:DefaultRelease time:-0001-11-30Views:130

I am using the "Read Encoder Position" and I keep getting error #-70012.  There are no errors up to this point and it does not SEEM to affect the way my program runs.  Does anyone know what this error is?  I did try to look up the error # to no[More]

Cursor Position Error

Category:DefaultRelease time:-0001-11-30Views:130

Hi There, Can anyone tell me why the attached VI returns a error? Many Thanks, Dan Dan CLD Attachments: cursor error.vi ‏9 KBHi Dan, You are getting this error because you have not yet 'created/ initialized' the Cursor. Either, Manually add cursor.([More]

Motor position error

Category:DefaultRelease time:-0001-11-30Views:130

As a beginner in motor contol, one of my motor systems consisted of Thorlab Z612B(0.4 nm/step, 8 micrometer blacklash) and Precision MicroControl DCX-PC100. The motor was used in XY scanning; the x direction(fast axis) will move in small interval con[More]

Playback position error

Category:DefaultRelease time:-0001-11-30Views:130

Okay so this error is driving me nuts! I used to see this occasionaly on my old iPod Nano (3g), and I thought I'd seen the last of it until it started happening consistently on my iPhone with one of my podcasts (http://phobos.apple.com/WebObjects/MZS[More]

Hot
Hi! I was deploying a test application for a session bean with sun 1 studio 5 and I started getting this message while deploying. I had tested the bean previously and I had no problems. I found this in the sun app server 7 release notes, but I don't [More]
I'm having trouble getting a friend's Core Duo Macbook hooked up wirelessly to her d-link wbr-2310 router when I try to enable WPA security. When I type in the ip address and go to the admin page of the router and select no security for the wireless [More]
Hello all, I am not sure if I am posting this question in the right forum, anyway I am working on a JSF project. I have some tags in my jsp pages for e.g.                <h:inputText size="20" value="#{authentication.userName}" /> [More]
When I was choosing my new mobile, I had two options : Samsung Wave 533 and Nokia C3-01. After a lot of hesitance I decided to pick up Nokia, believing to its high quality despite its poor media potential. However, now I think that it was a bad idea. [More]
I just upgraded. I thought that previous versions showed the folder name of the Library in the title bar. Now it just says "iPhoto" and the only obvious way to determine where the library is, is to use the "Show File" item on a photo, [More]
Worlds dumbest question, I'm sure, but for the life of me I can't figure this out: Video_TS folder .... does DVDSP automatically create one for every project or do I have to export one? I can't find a button to create one and all I see on my hard dri [More]
Here's our situation.  One of our accounting staff installed the upgrade to SP1 for CR 2008, after which Calculated Members & Embedded Summaries in Cross-Tab objects would not function.  He tells me he searched these forums and that the problem is a [More]
There's a problem with my ipod every time i plug it into my mac it connects then disconnects right away not letting do anything. Then it says its syncing with my mac before it disconnects and then there's nothing on it, and when i try it on windows i [More]
Hi Experts, I have a requirement of adding a message on transaction OB08 (Exchange rate maintenance) or program SAPL0SAP to be exact to check the difference between the old exchange rate amount and the new amount. Since the update of the exchange rat [More]
Hello,     Iam new to LabVIEW development & need help regarding this:     We are trying to port a LabVIEW application from desktop to a Windows Mobile PDA. Please note that the LabVIEW application works fine on the desktop. In one of the VIs, a Tab c [More]