RSLogix: How to return/exit a AOI part way through function

jatz76

Member
Join Date
May 2009
Location
Gold Coast
Posts
5
Hi,
I'm converting some code from Unity DFB (in structured text) to RSLogix AOI (in structured text). The Unity code uses the RETURN instruction to exit the DFB at certain points. Is there an equivalent in RSLogix?
Return definition in Unity:
In a DFB, a RETURN instruction forces the return to the program which called the DFB. The rest of the DFB section containing the RETURN instruction is not executed. The next sections of the DFB are not executed.

Cheers,
Jacek
 
In the logic for the AOI, put a conditional rung to execute a TND instruction. See pic from instruction help...

In ST language, it's TND();

2012-03-06_012642.jpg
 
Thanks heaps daba. I'm pretty experienced in logix but have never had to do this. I find the Logix Help useless unless you specifically know what to look for.
Cheers,
Jacek
 
Thanks heaps daba. I'm pretty experienced in logix but have never had to do this. I find the Logix Help useless unless you specifically know what to look for.
Cheers,
Jacek

I find the help extremely good.

If you want help on an instruction in the code, just highlight the instruction name and hit F1.

Or, goto Help, Instruction Help, and click on "Alphebetical List" (about the second line), then choose the first letter of the instruction. You'll see how it works.
 
It is ok if you know the name of the instruction in the first place. Searching for Return or Exit etc doesn't get you to TND. Guess they could have a few extra key words that help describe the instruction.
Anyway, thanks for your help.
 
It is ok if you know the name of the instruction in the first place. Searching for Return or Exit etc doesn't get you to TND.

Good call, and point taken. Because I know the machines, and their instruction sets quite well, it's pretty easy for me to find help. For instance I might "guess" an instruction does what I want, then I go check the help on it. I can see that I approach the help from a different angle....
 

Similar Topics

Hi all, I have a program which uses 100's of JSR instructions throughout which in theory just controls the opening and closing of valves and...
Replies
7
Views
3,302
Hi Everyone, I am not proficient in RSLogix 500 so I have a question regarding the evaluation of N7:0 data as an input. So as I understand in...
Replies
1
Views
85
Hi folks, in the alarm manager of Rslogix 5000, the tag-based alarm has been created. But when I tried to change the condition, it was found the...
Replies
2
Views
155
I have a little bit of experience with Allen-Bradley. I have a Micrologix 1500 (RSLogix 500) and a PanelView Plus 7 (FactoryTalk View Studio ME)...
Replies
3
Views
165
Back
Top Bottom