RsLogix 5000 Timer Values

nik124

Member
Join Date
Jul 2018
Location
Cali
Posts
40
I have 47 timers that I want to change the .PRE value in with one instruction but different values from a saved "SavedTimers" INT[46] array file. Is there a easy way to do this besides creating 47 MOV instructions? Maybe a SavedTimer[46] array? I cant seem to be able to shove the "SavedTimers" INT[46] values into the SavedTimer[0].PRE - SavedTimer[46].PRE in a one shot instruction approach. Thanks for any help.
 
If I understand the question correctly, a FAL instruction will meet the requirement.

This worked!!! Now I realize if you put the .POS in the expression with the destination it will move your sourced value to each individual presets depending on the Position of the FAL instruction! Thank you so much you have been a great help!
 
This worked!!! Now I realize if you put the .POS in the expression with the destination it will move your sourced value to each individual presets depending on the Position of the FAL instruction! Thank you so much you have been a great help!

Yes you always need the .POS in the expression to index the destination tag.

What I would like to see is a return of the # (indexed) symbol, because that .POS can make the expressions very long and hard to read.

Example :- SavedTimers[tstFALCntrl.POS].PRE would reduce to SavedTimers[#tstFALCntrl].PRE

In fact, if you wanted to use the .POS of the current FAL control, it could be simply SavedTimers[#].PRE


Now that would make life easier !
 

Similar Topics

If any of you wizards can help in this I would be ever more grateful. We have this device that generates 9 second pulses coming into a DI module...
Replies
31
Views
3,550
Processor: 1769-L30ER; Logix 5000: v32.02 I have an AOI that's been used in previous applications without issue, and have added a TON...
Replies
6
Views
2,727
Hi there, I am accustomed to working with Logix 500 but have a program modification I need to do on a CompactLogix.... I created a timer...no...
Replies
7
Views
2,429
All, I've done a search on this but did not have any luck, but if I have overlooked a topic on this by all means let me know. I am a little...
Replies
11
Views
5,325
Is there a way to find duplicate timers used in an application. Rung verification does not detect this.
Replies
7
Views
2,616
Back
Top Bottom