Host Engineering Forum
General Category => CTRIO and CTRIO2 => Topic started by: Peng1 on October 30, 2008, 04:29:57 PM
-
I have a DL 205 with a 260 CPU and an H2-CTRIO counter. The counter is currently configured to report position in mm. The problem is that I also need to know the velocity
in this same direction. I thought that I sould be able to put the position in V-memory and set a timer. Then take the current position - the last position and divide by the accumlated time. however I can only get 0 as a velosity because for some reason the last position is always equal to the current position.
I was currious if there was some secret way to set up the counter so that I can have both. Or if some one knows of a way to use one to get the other.
Thanks for any input.
-
one option to consider is wiring the encoder to both input channels on the H2-CTRIO, then use the built-in scaling function to compute the velocity for you ...
-
I cant do this as Channel 1 is already full, with an encoder for another function and an Edge Timer for yet another function. Any other suggestions, this has to be using only one channel, that is part of the issue.
Thanks for the thought though