News:
Home
Help
Search
Login
Register
June 09, 2026, 09:21:19 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Host Engineering Forum
»
General Category
»
CTRIO and CTRIO2
»
Position And Velocity from one Encoder using DL 260
« previous
next »
Print
Pages: [
1
]
Author
Topic: Position And Velocity from one Encoder using DL 260 (Read 37513 times)
Peng1
Newbie
Posts: 3
Position And Velocity from one Encoder using DL 260
«
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.
Logged
MikeS
Host Moderator
Hero Member
Posts: 264
Re: Position And Velocity from one Encoder using DL 260
«
Reply #1 on:
October 31, 2008, 09:08:39 AM »
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 ...
Logged
Good design costs a lot. Bad design costs even more.
Peng1
Newbie
Posts: 3
Re: Position And Velocity from one Encoder using DL 260
«
Reply #2 on:
October 31, 2008, 09:36:07 AM »
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
Logged
Print
Pages: [
1
]
« previous
next »
Host Engineering Forum
»
General Category
»
CTRIO and CTRIO2
»
Position And Velocity from one Encoder using DL 260