Hsce rollover

roxusa

Lifetime Supporting Member
Join Date
Nov 2008
Location
NJ
Posts
994
I copied this from a 2011 post
I have tried it and can not get to work
I dont see how to set up an HSCE to count to 32767 then -32767 then rollover to 0
rollover is only in ring mode 32767-0 as far as I can see
I am trying to get position from a 100 ppr encoder on a cylinder that is 51" in diameter and gives 49900 pulses per rotation with the 100 ppr on the back of the motor.
I could do it with a ppr encoder of less than 50 but would like to use what is on each on now

here is the earlier post
"Okay, actually, a float might work here, but you need to handle the counter differently.

First, let the counter just count, make sure it is bidirectional, and leave the rollover at default (32767 IIRC). That way, it will go from 0 to 32767, then to -32768 and back to 0 (going forward).

Now, put in a rung, that is scanned every scan, and what you want is like in the picture.

N9:0 is the raw value in from the HSCE module
N9:1 is the last scan raw value
N9:2 is the difference between scans

F8:0 is the total accumulated count
F8:1 is your actual current position in inches
F8:2 is the counts to inches calibration.

Note that if the platform supported it, a long integer (4 byte) would be better to use for F8:0, but you will not run out of mantissa bits in this application, so the float is okay.

Oh, while I'm at it, you can preset any particular position simply by writing the desired value to F8:0, or set home (zero) by clearing it."
 

Similar Topics

The attached picture and the text below are from a 2011 post, I also attache d a copy of my ladder,I have tried this all day and cant seem to get...
Replies
8
Views
2,687
I'm trying to set up a ring counter - one that transitions from 3599 to 0 (and 0 to 3599 in the reverse direction). My counter insists on...
Replies
2
Views
360
I had a 1746-HSCE go suspected bad. have to swap the card in the morning. Other than dip switch settings is there any configuration to do?
Replies
1
Views
1,024
Hi there, I have a machine where was a servo with extra encoder. That encoder had resolution 100ppr/5V. We did replace complet servopack (...
Replies
0
Views
948
Hello, First I looked at Manuel and Plctalk but I did not find or maybe not understand. How I can connect ''HTL / Push pull-24 volt encoder'' to...
Replies
4
Views
2,524
Back
Top Bottom