Help needed with a simple Add On Instruction

J

Thread Starter

Joe

I want to create an Add-On-Instruction for a product. I am using RSLogix 5000 V16.00.00. My initial attempt is to create something as simple as adding two INT's together and maybe Increment a Count Up Counter just to see an instance of the instruction actually execute. I follow all the How To guides that I can find on the Web and create what appears to be a straight forward procedure. I Input into the AOI a value then Add 1 to that value and Output the result and toggle a local counter. I create an Instance of this new AOI and place into the Main Program section of my logic. Nothing ever happens. I toggle a bit in main that should be seen by my AOI, I look into the AOI "NOTHING" No counting no adding of the number. Maybe I have a buggy version of RSLogix 5000 Version 16.00.00 ? I have my Input and Outputs Visible and Required. I've tried using InOuts. I can't toggle a bit in the AOI, I can't increment a counter. I do not understand what could be missing?
 
D

Dave Ferguson

If you send your program with the AOI in it to the email below i will look into it. I have tons of them working fine.

Dave Ferguson
Control Systems Engineer

Send to
Dave.Ferguson [at] upm.com
 
this may be obvious, but did you set the enable in and enable out bits?

you don't mention them in your problem description.
 
J

James Ingraham

Not sure why we're talking about this old post, but I don't really need a good reason to expound on a topic. :)

My suspicion from the description is that the poster did not realize that AOIs have no access to the global (or program) scoped tags. He says he toggled a bit that the AOI should "see." The only way to do that is to have it as an input to the function, since the AOI can't "see" any tags otherwise. Of course, this is just a guess; I can't really answer it without looking at the code.

-James Ingraham
Sage Automation, Inc.
 
Top