Adding the most recent Value to a list

gbradley

Lifetime Supporting Member
Join Date
Apr 2002
Location
Corona, Ca.
Posts
1,637
I have a Counter accumulating a value that is stored in L9:0
When I reset the counter I want to include it in the last 10 reset values by storing the current value, and cycling the stack.
I know how to do this with Mov, at least in RSLogix 500 that is.
Is there an elegant way to do this in a CompactLogix environment, RSLogix5000?
I think maybe I should use the COP command.
Thanks

Stack.PNG
 
Thanks for the example, that worked great.
I actually made the array from 0 to 99.
I am still learning RSLogix 5000, so I copied your example almost to the tee.

When I created the Tags, I created them as Program tags e.g. (MyArray[0]).
I'm still a little bit hazy on the difference between Controller tags, and Program tags.

Array.PNG
 
Controller scoped tags are available to all programs. Program tags are limited to just the program in which the tag resides, another program cannot access that tag, it doesn't even know it exists.

Generally I make all my tags program scope unless I specifically need to share it with other programs and tasks unless its something that is controller only scoped, such as a message tag. That way I don't have to wade through lists of unrelevant tags in the tag browser.
 

Similar Topics

Hi, I need help adding a new interlock switch to an existing circuit. I have never done on the existing circuit. I did set it up on the...
Replies
5
Views
154
Hi all I’m looking at adding a RFID card reader to comfort panel pro , how do you set the rfid up can you connect to existing users and password...
Replies
0
Views
69
Hello all! So I have one project with a S7-1214 and a MTP1500 "Project1" and one project with another S7-1214 "Project2". Both of these PLC:s need...
Replies
6
Views
125
Hi Everyone, Currently we have three plants running with Controllogix PLCs (L72, L73, L74). In each of these plants we have 2 FTView SE...
Replies
0
Views
104
Hello, Im building project with 1756-L82ES controller and 1756-IB16S card but i cant find it when trying to add the card to IO configuration...
Replies
3
Views
177
Back
Top Bottom