Host Engineering Forum
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 08:36:14 am


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: H2-CTRIO Reloading Position  (Read 408 times)
rgbarr
Newbie
*
Posts: 6


« on: August 10, 2011, 02:48:58 pm »

I have an application where the dynamic positioning profile may be interrupted by "Suspending the Output" - sort of an emergency stop. The problem is when taking it out of this condition it continues the profile at the point in the profile where it was suspended i.e. it can restart with the velocity at it's highest set value. This causes the stepper motor to slip and lose position. I need to ramp the velocity up like a normal trapezoidal profile but start from the count I stopped at. I tried modifying the simulated retentive counter example but once the output is enabled the counter resets to zero. Is there a way around this problem?
Logged
BobO
Host Moderator
*****
Posts: 1149


Yes Pinky, we *are* going to control the world!


« Reply #1 on: August 10, 2011, 03:48:38 pm »

Yes...but sadly it isn't available just yet. The CTRIO2 due out in a couple of months does this beautifully, at up to 250k.

In the meantime, I honestly don't know of any good way to fix it. The CTRIO was not really designed for pulse output, and it was no small feat to make it work as well as it does. The suspend function is admittedly dang near useless. How's that for honesty?
Logged

BobO

The Constitution does not guarantee us freedom from being offended...but we can choose not to be, and life gets so much easier.
Greg
HOS†ech
Host Moderator
*****
Posts: 320


Hmmm...


WWW
« Reply #2 on: August 10, 2011, 03:59:02 pm »

There is not a graceful way of doing this with the current CTRIO. It is a feature we added to the CTRIO2 that is very near official release. Unfortunately, that doesn't help you at this time. Here is what you will have to do to get this to work with the current CTRIO.

  • Run the Dynamic Position Profile.
  • SET Suspend whenever your e-stop occurs.
  • Use a System Command to Read your Output Position.
  • RESET Enable Output. (This keeps the following Suspend Output from turning the Output back ON yet.
  • RESET Suspend Output.
  • SET Enable Output. (This will zero out the Output Position as you stated).
  • Use a System Command to Write back the Output Position you read above.
  • TOGGLE the Goto Position bit.

The problem here is if your stepper motor cannot handle the sudden accel back when you were RESETTING Suspend Output, is it also intolerable to the sudden stop caused by SETTING Suspend Output? Because SETTING Suspend Output causes instant decel; it doesn't ramp down to zero speed. Thus this method may not work if the decel causes slippage on the machine's position.
Logged

"You have to believe in free will. You have no choice." -Isaac Bashevis-Singer
rgbarr
Newbie
*
Posts: 6


« Reply #3 on: August 11, 2011, 09:22:17 am »

Thanks! That worked. I just need to make sure I'm not not slipping on the sudden stop. I'll probably switch to the CTRIO2 once it's available.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM