Studio5000 AOI and Latching

Bbarnett

Member
Join Date
Jul 2013
Location
United States
Posts
77
I am curious why my latches do not work and maybe someone here has some insight.

I have created two AOIs. One AOI latches an output on (ON). The other AOI unlatches an output (OFF).

The same output is set to both AOIs so that one AOI latches the output on and the other AOI unlatches the same output.

The ON AOI is read first.

When I run the routine, the output never turns on.

Is latching/unlatching the same output a shortcoming with AOIs? It's like the AOIs are treating this output as an OTE and not OTL/OTU.
 
What happens if you remove the rung with the second AOI, or set the rung to false e.g. put an AFI, (or [XIC output XIO output]) on that rung just before the second AOI?


Alternatively put in a counting rung e.g. [XIC output LES dint_counter 1000000000 ADD dint_counter 1 dint_counter] after the latching AOI and before the unlatching AOI; if the first AOI is not latching the output, then that counter will not change.




Ron Beaufort expained it very well a while back, cf. https://www.plctalk.net/qanda/showthread.php?p=5971#post5971.
 
Last edited:
What form is output instruction in AOIs? If you are using a standard coil (OTE) in AOIs, then it will ALWAYS write input condition to memory location represented by the coil address. That is purpose of OTL and OTU instructions, they only set (or reset) when input condition to coil instruction is ON.
 
I am curious why my latches do not work and maybe someone here has some insight.

I have created two AOIs. One AOI latches an output on (ON). The other AOI unlatches an output (OFF).

The same output is set to both AOIs so that one AOI latches the output on and the other AOI unlatches the same output.

The ON AOI is read first.

When I run the routine, the output never turns on.

Is latching/unlatching the same output a shortcoming with AOIs? It's like the AOIs are treating this output as an OTE and not OTL/OTU.

Can you export and zip your AOI's ?
 

Similar Topics

Hi Hope you all are doing well. Iam working on a project with some AOI. I also hate no online edits... lol. My problem occurs when I use a UDT...
Replies
2
Views
157
Existing environment shown in attached photo (Existing.jpeg) Proposed Environment shown in attached photo (New.jpeg) I am migrating a PLC5 system...
Replies
0
Views
590
Hi guys, Making a bunch of AOI's for company and I was wondering if there was a way to make them pre-populate their input requirements with the...
Replies
5
Views
2,348
Hi, just wondering if anyone has made an AOI that would generate a permissive from a selectable number of true inputs from say 8 discrete inputs...
Replies
1
Views
1,085
Hi all one question about Logix5000 and AOI: normally I work with Siemens, and I use FBs with multi-instances Now I need to transpose the...
Replies
8
Views
2,682
Back
Top Bottom