Logix AOI for timer presets

TheRooster

Member
Join Date
Jan 2022
Location
USA
Posts
39
Hello all,


I am trying to improve my skills, so I decided instead of moving a value into every single .PRE of an array of timers, I thought I would use an AOI.


My plan was to input the first Timer in the array, the number of timers in the array, and the preset value. Then do a move instruction in the AOI logic for each one, or some kind of loop in structured text if I can figure that out.


I am finding that you can't input a TIMER data type into an AOI, and am seeing no way around this except to just do it in my normal logic. Any ideas? Thanks!
 
I would just SIZE the array inside the AOI rather than passing the number of timers, unless you expect to sometimes not want to set the entire array.

EDIT: FAL is probably a better solution though.
 
@Aardwizz That worked perfectly! I am going to play around with this instruction I think it will be useful for a lot of things. I'm thinking of allowing the user to select a value for a range of recipes in this project, and this will allow me to distribute it all in one instruction.


@plvlce Another good instruction I wasn't aware of, thank you.
 

Similar Topics

I have an AOI with revision notes. Someone entered the last note into the description instead of the notes. I cannot just click into the revision...
Replies
4
Views
152
Hello, I was wondering if anyone has a ControlLogix block or routine for encoding and decoding base64. I figured I would ask before diving into...
Replies
1
Views
261
Hi Friends, I have an upcoming project were I need 20 pcs of ModBus TCP Clients / AOI. to control 10 devices I use 20 transactions to control 10...
Replies
4
Views
742
Hi. I'll say it again, I worked mostly with Unity Pro for the last 12 years and I'm trying to convert our FBD standard to Rockwell Logix...
Replies
13
Views
1,504
There is a requirement to convert some projects back to Rslogix 5k , I want to check if I can convert version 30 AOIs to version 20 AOIs. Thanks
Replies
2
Views
1,046
Back
Top Bottom