Why are my steppers misbehaving in closed loop mode, but work fine in open loop

I have a 7344 controlling a 4 axis prototype machine, which is configured with 50,000 steps/rev and linear encoders providing 50800 counts per inch. The physical properties of the machine are less than perfect (prototype!), so there is a considerable amount of backlash in the hardware (about 0.008" - 0.010").
The observed behaviour is as follows: when repeatedly blending in the X,Y plane using vector space 1 in closed loop mode, an axis will be driven (uncommanded) to the zero encoder reading (home position) occasionally (about 1 move in 600). I have kept a log of the commanded positions being passed to the controller (via the flex_load_vs_position function) and a move to zero is not being com
manded. The application is single-threaded, so there is no chance of race conditions. The ready state of the board is being confirmed by means of the flex_check_blend_complete function call before any blend is commanded. The programmed relationship between steps and counts/revolution have been independantly confirmed as being correct.
An A-B-A test with the only change being to initialise the X & Y steppers in open loop instead of closed loop then 'works' - although the physical positioning of the hardware is unsatisfactory due to the physical characteristics of the prototype machine already mentioned, hence the necessity to run closed loop.
I am inclined to interpret the evidence as suggesting that the 7344 is causing an 'occasional' uncommanded move to zero as a result of some interaction between pull-in moves and commanded position on a system where there is a considerable degree of 'elasticity' between the commanded position and the achieved position allied to a rapid-fire de
livery of blend moves.
This problem can be replicated under versions 5.0.1 and 5.2 of the FlexMotion software.
I can clearly run without bumping into the problem by running open loop, but unfortunately that is not acceptable in this situation. Any ideas, anyone?

Hi, and thanks for coming back so promptly. I think I need to give you some more information - sorry if it turns into a long post!
The system behaviour when it 'misbehaves' is that it starts the anomolous behaviour well clear of any home or limit switch (>6"). When it 'goes wrong', it then slews one or both axes to the zero position. Having arrived at the zero position, it then carries on with the next blend without killing the motor.
The initialisation functions include a seek to home switch, a search for the nearest index point, and a zeroing of the encoder count at the index pulse: hence the zero point is a little displaced from the home microswitch.
I believe that once the system has 'gone wrong', it is stopping at the zero point *not* the h
ome switch.
I have carried out some further tests that may be of help:
If I place a large (1 sec) inter-blend delay in the calling functions, the anomalous behaviour is not noticed. However, the start/stop nature of each move means that this test is knocking the bejezus out of a rather fragile prototype machine, so I can't do this too often!
The encoder positions are being read back on each move cycle and monitored, and they are not showing any anomolous behaviour, so I don't think they are the culprit. I have placed a 'scope on the quadrature encoder inputs and the edges are good and sharp with no real indications of noise.
I could test with a blend factor other than -1 if you think that might be illuminating?"

Similar Messages

  • Why does this snippet produce ORA-01002 in 10g, but works fine in 9i.

    While migrating from 9i to 10g, we found that one of our processes failed with ORA-01002: fetch out of sequence. Debugging produced the following example:
    DECLARE
    CURSOR A IS SELECT Dummy FROM Dual FOR UPDATE;
    BEGIN
    FOR B IN A LOOP COMMIT;  END LOOP;
    END;This code works in 9i, but produces an EXCEPTION in 10g:
    SQL> SELECT Banner FROM V$Version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
    PL/SQL Release 9.2.0.8.0 - Production
    CORE    9.2.0.8.0       Production
    TNS for Linux: Version 9.2.0.8.0 - Production
    NLSRTL Version 9.2.0.8.0 - Production
    SQL> DECLARE
      2   CURSOR A IS SELECT Dummy FROM Dual FOR UPDATE;
      3  BEGIN
      4   FOR B IN A LOOP COMMIT;  END LOOP;
      5  END;
      6  /
    PL/SQL procedure successfully completed.
    SQL> SELECT Banner FROM V$Version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for Linux: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    SQL> DECLARE
      2   CURSOR A IS SELECT Dummy FROM Dual FOR UPDATE;
      3  BEGIN
      4   FOR B IN A LOOP COMMIT;  END LOOP;
      5  END;
      6  /
    DECLARE
    ERROR at line 1:
    ORA-01002: fetch out of sequence
    ORA-06512: at line 4The documentation on the error explains this case in both 9i and more explicitly 10g. Should this have produced the EXCEPTION in 9i as well? Or, is there something else about 10g?

    e.g. a FOR row IN cursor LOOP is now implicit using a bulk fetch operation (100 rows or so).This was also my first guess, but said optimization does not take place when the cursor is defined FOR UPDATE:
    SQL> exec dbms_application_info.set_client_info(0)
    PL/SQL procedure successfully completed.
    SQL> declare
    cursor a is select last_name, set_client_info(rownum) from employees;
    begin
    for b in a loop
        exit; 
    end loop;
    end;
    PL/SQL procedure successfully completed.
    SQL> select sys_context('userenv','client_info') from dual
    SYS_CONTEXT('USERENV','CLIENT_INFO')                                           
    100                                                                            
    1 row selected.
    Now with FOR UPDATE:
    SQL> exec dbms_application_info.set_client_info(0)
    PL/SQL procedure successfully completed.
    SQL> declare
    cursor a is select last_name, set_client_info(rownum) from employees for update;
    begin
    for b in a loop
        exit; 
    end loop;
    end;
    PL/SQL procedure successfully completed.
    SQL> select sys_context('userenv','client_info') from dual
    SYS_CONTEXT('USERENV','CLIENT_INFO')                                           
    1                                                                              
    1 row selected.

  • Why does my slideshow stop on my live site, but works fine in test?

    I have an auto-play slideshow of 7 images that stops after 4 on our live
    website. If you click the arrow to advance, the next three images never
    load.
    http://www.baidesign.com/our-process.html
    However, when I test it—preview page and business catalyst— it plays through
    to 7, then replays (what I want)
    http://baitestsite.businesscatalyst.com/our-process.html
    I have tried rebuilding it, but that didn't help. Can't think of anything.
    The whole site is full of slideshows. Other than the horizontal transition,
    this one is not much different. I have checked the file names of the images
    and updated the assets.
    Please help! We would like to announce the new website to our clients.

    Hello
    If the slideshow is working fine in Business Catalyst and not on another (external) host, the issue may be with the upload not being completely successful, or the host itself. Please make sure it's not an upload issue, by reuploading the site again with "all files" selected in the upload option. If that doesn't resolve the issue, then have your host "reset the FTP permissions" for you and then reupload the site to see if that fixes the issue.
    Cheers
    Parikshit

  • Why are you still selling iphone 4 when it dont work in your hand tryed a rubber sleeve and still no signal in my hand.

    why are you still selling iphone 4 when it dont work in your hand tryed a rubber sleeve and still no signal in my hand.i think they should all be called back or given the iphone 5 free in its place.

    http://www.heise.de/mac-and-i/kolumnen/artikel/Die-geheimnisvolle-iPhone-Energie -1226682.html?view=zoom;zoom=1
    Step 1: take an empty glass, put the iphone into the glass as shown in the picture.
    Step 2: stare in disbelief about this BS really helping 

  • I just started using my iphone 5s. I have a problem with new incoming emails from my POP account. Why are they marked as read automatically even though I have not even opened them yet.

    I just started using my iphone 5s. I have a problem with new incoming emails from my POP account. Why are they marked as read automatically even though I have not even opened them yet.
    At first I thought it might be because I was using simultaneously my old iPhone 4S so it somehow realized the emails where being pushed to another device and the it marked as read, this has nothing to do since I have deleted the email account from the iPhone 4S

    Contact the email provider for assistance with their service.

  • TS3899 the links in my email are not live, I can click on them but they no longer open up

    The links in my emails are not live, I can click on them but they no longer open up the web pages

    Me too but it's happening on my iMac after I did a software update this morning which included fixes in Mail it said. My Mail was fine before the update!

  • TS2972 First night I was able to watch 2 TV shows (45 min each) with no problems, but thereafter programs will not stream without constant pause to buffer. Weather conditions are ideal and my internet comes from crappy hugesnet, but worked fine the first

    First night I was able to watch 2 TV shows (45 min each) with no problems, but thereafter programs will not stream without constant pause to buffer. Weather conditions are ideal and my internet comes from crappy hugesnet, but worked fine the first night.

    The speed may have been ok at that time and is too inconsistent/too slow overall. interference may have proven to be more of an issue since as well. If using public DNS that will provide Intermittant results
    I'm sure using a hotspot would be fine but it depends on your viewing habits. An HD movie is around 4-5GB. It would also be subject to speed. requirements so best to test to see how it compares.
    You would have to check with your Carrier if hotspot it's enabled then just to into your settings and toggle it ON

  • My photos are not printing right with adobe manages color but works when i use printer manages color. never had any issues untill a week ago.

    my photos are not printing right with adobe manages color but works when i use printer manages color. never had any issues untill a week ago.

    We use CS6, yes we calibrate using x-rite. I have always had adobe manage colors when printing. This problem just occurred, all my settings are the same as they have been for years. The only thing we did lately is do an update to CS6. We thought it might be our printer but when we use the printer manages color it works fine, The problem with adobe manages color is it is not blending the light highlights like on top of the cheeks with the colors around the cheeks  and its putting a faint red between the two it just does not have a smooth transition. I printed a photo that I had printed 4 months ago with no issue, and this time it had the issue that I am dealing with now. Somehow the photo shop manages color is not getting the right info to my printer.  
    I set paper type
    set quality
    no color adjustment
    set my profile
    Teri

  • Why are my deleted songs back on my phone but not in my itune library

    After I did the 7 update, all my really old songs that have long since been deleted have shown up in my music library again, but they are not in my itunes library on my computer for my to delete again. Why are they suddenly back and how do i get rid of them?
    Thanks for your help!

    I had the same problem. This is what I did,
    1. Go to settings
    2. Scroll down until you find Music
    3. Tap on Music
    4. Scroll until you find Show All Music
    5. Switch it off (if it's green then switch it to turn it white)
    That's what I did and when I go to my music library it only shows the ones i havent deleted.
    I hope this helps

  • Why are pdf file attachment in emails converting to wordpad and I can open them?

    when I use webmail on my laptop why are attachments to email converting to wordpad and I can't open them.
    == This happened ==
    Every time Firefox opened
    == unknown

    You probably have the wrong Action set for Content-Type PDF, see this:
    [http://support.mozilla.com/en-US/kb/Managing+file+types]

  • Why are regional calls not in Five Cents plan, but instead are 21 cents/min.?

    Why are "regional calls" not included in Five Cents/minute calling plan, but instead billed at 21 cents/minute !??!
    "Local" calls are 9 cents/Call, everywhere else in the U.S. It is 5 cents/minute on the plan.  So regional calls are much more expensive than calls to Hawaii!!
    Also how do I find what is the "regional" area (for Manhattan, New York City), and what is the "local" area?  Is there a link  somewhere on the Verizon site to enable finding your own regional area versus local or long distance?

    Sorry you are having difficulty, an agent with access to your account will reach out to you directly by email, private message in the Forums and/or the billing telephone number on your Verizon account for more information to help you resolve your issue.Please remember to check your spam/junk folder if you do not hear from an agent.

  • HT4539 Why are all these apps only available for everything but my MacBook Pro?

    Why are all apps only available for phones or pads??I only want to use them on my MacBook Pro???

    Itunes does not sell any apps at all for computers.
    Itunes ONLY sells apps for iphone/ipod/ipad.
    If you want an app for your Mac, tehn shop in th Mac App Store

  • Videos will not work in Firefox but work fine in windows explorer. why?

    I tried to verify my plug-in's and all are enabled. I found where was suggested to remove and reinstall Firefox but that did not fix problem either. I tried to change viewer for videos but still no luck. Not certain why Quicktime doesn't work. Note, videos when browsing will not open but everything else works fine. Videos work fine with windows Explorer, but not Firefox.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Drum Loops Missing But Plays Fine? EXS24 Instrument "2-step remix.exs"

    Half of my drum loops play just great in the loop browser but when I drag them to the playhead I get the error message "EXS24 Instrument "2-step remix.exs" not found." and the same loop that just sounded great in the loop browser instantly morphs into some nasty series of sine wave beeps and clicks. What could possibly cause this?
    Much thanks for any ideas.

    That does make a lot of sense, I'll check the computers tomorrow when I get back to the studio and see. I usually sling the control over to "never" for putting the computer to sleep but I don't remember doing anything to the HD sleep.
    Many thanks for that suggestion, fingers crossed.

  • Why won't Words With Friends open in Firefox but works fine with IE?

    The game "Words with Friends" worked fine until firefox update and Words with Friends new version. Now it will not open. Tried all the support suggestions to no avail. Then I tried it through IE and it works fine.

    -> Update Firefox to the latest version 10
    * [[Installing Firefox on Windows]]
    Perform the suggestions mentioned in the following articles:
    * [https://support.mozilla.com/en-US/kb/Template:clearCookiesCache/ Clear Cookies & Cache]
    * [[Troubleshooting extensions and themes]]
    Check and tell if its working.
    May not be related to your problem but some of your Firefox Plugins are out-dated
    * Update All your Firefox Plugins -> [https://www.mozilla.org/en-US/plugincheck/]
    * '''When Downloading Plugins Update setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)'''

Maybe you are looking for

  • File_file scenario

    Hi, After configuring the XI server I am doing first scenario in it that is file_file scenario. My problem is the file is not picking up. Is it configuration problem because even i checked in RWB there is no data coming. Even I checked in sxmb_moni i

  • How can I see the contents of the Firefox cache?

    How can I view the contents of the Firefox cache?

  • How do I find what revision of VISA I'm running

    I'm sure this is simple, how do I determine the current revision of ni VISA installed on my computer

  • EJB JAR options

    When I use IDEA to generate my session beans it appends to a single ejb-jar.xml file in a single META-INF folder. This file gets bigger for each EJB I add. On the other hand, the ant <ejb-jar> task looks for a file called [ejbname]-ejb-jar.xml for ea

  • What are the improvements in versions 7.0

    I know portal is a must BFR are added in Version what elese is improved or introduced in 7.0 over previous versions