Persistant data on allen bradley high speed counter

einnh

Lifetime Supporting Member
Join Date
Mar 2014
Location
New England
Posts
275
We have two staggered prox. sensors hooked up to an allen bradley vhsc24 point io module. They are counting up and down in encoder mode due to being staggered.

The problem I am having is the count resets on power cycles. Is there a way to pull in the last known position on power-up via some hardware variable or logic?

Using CLX.

Please assist!

Thanks

Eric
 
In the program store the current value. On restart store the recorded value to Preset (Configuration Word 11). Then trigger the Counter Preset output bit. There may be more to this (especially setting the preset value) than this simple description shows. Note: this is just from reading the manual tables and familiarity with other AB counter modules.
 
For CLX, my favorite method of handling any counter module is to pass the count through a PMUL instruction, with a word size of 8 bits, and then in the same task, accumulate the output of the PMUL with an ADD instruction.

On power-up, I disable the ADD instruction for a couple seconds to prevent false counts, and you can easily run multiple counters off of one physical counter (say, run footage, shift footage, day footage, etc).

This method works with any counter module without any special programming or wierd reset/preset handling.
 

Similar Topics

Has anyone migrated Proficy Historian data to a new server? I followed the guide to move all the data over, but when I run the utility, it stops...
Replies
0
Views
21
I cannot add SLC500 analog input tag (I: 8.3) to EZSeries Touch Panel Editor (V 5.3). I used all the listed tag datatype but it all says "Invalid...
Replies
3
Views
68
Hi, Wy we log data in PLC using DLG instruction, when we have option to log data in HMI
Replies
1
Views
63
Hi, I cannot find the DLCA1764.EXE utilty software for data retrieving. Can someone share the link to download this software. Thanks!
Replies
1
Views
40
I have an expression in a structured text routine of a Logix controller that looks more or less like the following: ResultInteger := Integer1 *...
Replies
13
Views
363
Back
Top Bottom