Problem with afi

Dera bsee

Member
Join Date
Sep 2012
Location
Los Angeles
Posts
36
Hi,

I'm having problems with an AFI. I copied and pasted a rung's logic, made a single edit, and AFId the previous logic in case they wanted me to revert the changes. But doing so caused problems. As you can see in the image everything in the rung is true therefor my output should be enabled but it's not. Has this happened to anyone else? If so why does that happen?
I'm using a control logix with remote IOs and my revision for the software is V17.

Milk silo 300 new logic not working.jpg
 
"AFI"(always false) is just that, false,like any other instruction(s) on the rung. Its just always false . It does not cause the rung to not be executed (the rung is executed). So because the rung is false the output instruction at the end is turned off. Last one wins. The last instance in the program that controls the output in question.
 
Last edited:
The OTE programmed on two rungs are competing with each other. Rung 9 IS turning it on during the scan of that rung but when rung 10 is scanned it evaluate the rung to be false, due to the AFI and turns the output off.

I suspect if you put a trend on the output tag you would see it occasionally transitioning on and off. The rate will be so fast that each transition will not be caught by the trend.

Instead ot the AFI to inhibit the rung replace the OTE with an unused tag temporarily or substitute a NOP instruction in its place.
 
Afi

The rungs are been scanned from left to right & from up to down, that means rung 10 takes precedence over rung 9, so the processor remembers rung 10 right before it updates the output table, and since that rung 10 contains AFI ,it will be the one that the CPU takes it's decision against.

Hagos
 
ahhh... the joys of AFI's, reminds me of one time when I moved a motor's MCC from bucket A to B.

It should have taken 5 minutes, I ended up spending 4 hours.

The motor would run but the contactor would shatter very badly, the conveyor moving forward with excessive jerking.

I traced and checked every wire, swapped the contactor, auxiliary contacts....

When I sat down because I had explored every possibility and was about to revert everything, I figured that it had to be in the program.

So I cross-referenced the output and of course bucket B had its program on AFI in another task.... eurg.

Deleted the AFI rungs and problem solved...

I was turning on the output in my program but the later task would turn it off because it was AFI'd.
 
I'll show you how I test changes very easily and quickly.

Let's say this is the rung I want to test.

I want to bypass the PSC2.

2016-08-11 09_55_01-RSLogix 5000 [Running] - Oracle VM VirtualBox _ 1.jpg


I add a branch under the logic I want to change. Then, with a bit I created, I use an examine off for the original logic and I use an examine on for the logic to be tested.

2016-08-11 09_57_18-RSLogix 5000 [Running] - Oracle VM VirtualBox _ 1.jpg

That way, when I assemble the edits, the rung is still behaving in it's original way.

Then when I want to test the changes, I right click my test bit and toggle it.

So instead of taking 15-30 secs or more to re-modify my rung and assemble edits, it just takes a fraction of a second to toggle.

This made it possible for me to test out changes in production very quickly.
 
AFI's still examine the rung and set the output(s) to false. If you are wanting to keep the code without issue, use a [NOP] (no operation) or [JMP] [LBL] around it to prevent the rung from being examined.

You will probably still get a warning on compile that there are multiple OTE's with the same tag name.
 

Similar Topics

Hi, I am having a challenge installing a new drive ACS355-03E-44A0-4 as it keeps on displaying Fault code F00018 even when the load is not...
Replies
3
Views
106
I have an issue on my vessel, we have water tight door system created in China, company is no longer operating. We have 7 doors each with their...
Replies
3
Views
108
Hi all. Simple as simple can be, I don't understand what's happening. I'm toggling he OSR on, GX_LUB_PUMP1_LEAD should switch. It doesn't. The...
Replies
27
Views
638
Hi; In a cabinet of a machine, a Fatek PLC with an Ethernet communication card is working. In the same cabinet, there is a 1 kW inverter. When...
Replies
16
Views
487
Hello Dear users, I am writing about a problem that has been bothering me for a few days, i.e. I am trying to establish remote access to the Allen...
Replies
0
Views
75
Back
Top Bottom