Counting tags

notfet

Member
Join Date
Jan 2016
Location
texas
Posts
14
I have a Productivity 2000 PAC and based on my program I have created 60 alarm tags. Storing them one by one as a string and indexed them to alarm1,2,3 etc... I only want to display 10 at a time on the HMI but depending on what is happening there may be more than that so what I need to do is count the tags that are made, I will copy them in groups of 10 and display them as groups. But how do you count N.O. contacts? Since they will appear in random order I can't branch off each one and call them a number. In series or parallel the end result would only be one. Any ideas?
 
I am not sure if this is a solution but it might work if anyone has a better idea I would like to hear your thoughts. My idea would be, within each CPD instruction I could assign 2 variables one would assign each alarm an increasing number ex alarm1 = 1 alarm 2 = 2etc... the next variable would add each true statement by 1. That way I could know the total number of alarms and compare them to display 10 per page the tricky part would be how to compare the lowest numbers to assign each message window until 10 is reached. so again any better ideas would be appreciated
 
Can the moderators delete this thread? The edit button is off and I found a better way to ask my question
 

Similar Topics

Hello I am looking for tips on how to count the duration of a given function and then how to display it on the hmi panel in the hh:mm:ss format...
Replies
4
Views
1,699
Guys, I know it will be silly but can't get my head around it. I have 3 conveyors, every one on a separate servo drive, and 2...
Replies
25
Views
3,496
The 1734-IB8 has no hardware counting function correct? I am trying to find something to substitute in for a 5069-IB16F (since lead times are...
Replies
3
Views
1,412
Been scratching my head at what I thought should be a relatively simple task. I need to count how many rows a .csv file has, so I can later read...
Replies
6
Views
2,540
Hi All, I need to count my Contactor switching times. There are lots of them so I created a template logic with local variables in FC2000. Now I...
Replies
10
Views
2,115
Back
Top Bottom