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

So i've been at this for a long while, i have Citect Scada 2018, i have full access to everything but i can't seem to find any option or...
Replies
0
Views
45
Hello I have a s7-1200 and I would like to read the tags present in this controller with my controllogix controller. The two controllers don't use...
Replies
5
Views
156
Hi folks, I'm not as accustom with Siemens & WinCC, however I've been asked to increase the amount of data an existing application is logging...
Replies
2
Views
70
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
51
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
10
Views
259
Back
Top Bottom