JSR/SBR on LogixPro

kohhm75

Member
Join Date
Mar 2020
Location
BC
Posts
5
Hello Gurus,

I am working on the elevator exercise of LogixPro and my output on the subroutine is being energized without its flag being called..

I believe the coil (B3:0/5) which is a flag to call subroutine 6 should go high so that will happen.
Is this a bug of the program or am I doing something wrong?
When I put the same logic on my RSLogix 500 emulator, that does not happen..

Stuck in that error and please help.

Herman
 
It's difficult to read that file type, but I did see this:

Code:
FILE,SBR 6:
SOR,0 SBR,U:6 OTE,O:4/2 EOR,0

If I'm reading that right, the first rung of Subroutine 6, calls itself again. None of the other subroutines have another SBR command inside of them. If you can upload the project file or maybe a PDF of the ladder logic, I might be able to help more.
 
Last edited:
It's difficult to read that file type, but I did see this:

Code:
FILE,SBR 6:
SOR,0 SBR,U:6 OTE,O:4/2 EOR,0
If I'm reading that right, the first rung of Subroutine 6, calls itself again. None of the other subroutines have another SBR command inside of them. If you can upload the project file or maybe a PDF of the ladder logic, I might be able to help more.




Is that calling itself, or does the SBR instruction declare that ladder unit a "subroutine?"


Either way, I agree it is suspicious that that is the only subroutine where that SBR instruction is present: the OP could remove it and see if the behavior changes.
 

Similar Topics

Hi, I have been tasked to test JSR/SBR instructions using parameters in RSLogix 5000. I found a video that was extremely helpful using 1...
Replies
12
Views
2,572
Jsr
We have a motor control JSR with Input and Output parameters, There are 36 motors that are controlled by the same JSR. What or how can I view...
Replies
8
Views
528
I intend to pass a BOOL array to an ST routine (for loop) to count the true bits. (should never have used a Bool array, lesson learned) The ST...
Replies
10
Views
856
Currently, I have a 1769-L36ERM that is being using to control a machine with 15 servos. Due to the nature of the process, the code is very...
Replies
9
Views
1,557
I have this program: ZIP (.rss inside no documentation). PDF (Italian documentation). Allen Bradley SLC5/03 PLC. I want to know how is the...
Replies
8
Views
2,059
Back
Top Bottom