williamlove
Member
I have been using AOI instructions as true subroutines. They have transformed my programming practices since I started doing that a couple years ago. I never used subroutines before, except to organize code. I never passed parameters. I just modularized my code and called them with JSRs that had no input conditions on the calling rung and no parameters.
When I learned AOIs I used them as subroutines. I liked the local variables not cluttering up the tag database. Most of all I liked only having to edit logic in one place. I could not quite figure out how to get the same thing out of subroutines with parameters, so I continued to use subroutines only to organize code.
Recently Rockwell has claimed subroutines have been improved with the addition of parameters.
AOIs have proven to have everything I need for modular programming. But they don’t allow online editing.
Will someone experienced with both please compare using an AOI with the new parameter capabilities of subroutines and tell me if the latter can do everything an AOI can? If they can, and if they allow online edits, then I should probably stop using AOIs for everything and switch to the subroutines.
When I learned AOIs I used them as subroutines. I liked the local variables not cluttering up the tag database. Most of all I liked only having to edit logic in one place. I could not quite figure out how to get the same thing out of subroutines with parameters, so I continued to use subroutines only to organize code.
Recently Rockwell has claimed subroutines have been improved with the addition of parameters.
AOIs have proven to have everything I need for modular programming. But they don’t allow online editing.
Will someone experienced with both please compare using an AOI with the new parameter capabilities of subroutines and tell me if the latter can do everything an AOI can? If they can, and if they allow online edits, then I should probably stop using AOIs for everything and switch to the subroutines.
Last edited: