JSR in RSLogix5000

^that is the way i always do it. Its significantly faster/easier than searching through all the tabs and trying to find the JSR one anyway.

Do you really use the tabs to find instructions?

Have you tried pressing the Insert key on your keyboard?

Try it, then start typing the instruction mnemonic, as soon as the box shows the instruction you want, just hit enter. Nothing else, just hit insert, then key in J, the display will go straight to JMP - then hit S, the display goes to JSR, hit enter, and job done. In most cases, you only need to press the first letter of the instruction mnemonic, some cases 2, and rarely 3.

I never use the multiple tabs of the Instruction Element Toolbar - it's tedious.....
 
daba said:
...So now we have a little problem. If we put SBR where it must be, what do we put on the rest of the rung? If we start to put application logic, we have mixed Program Control Instructions and application instructions on the same rung, and that's not a good idea...

...I would recommend that when you are using SBR's, that you put them on a rung to themselves, with a NOP as the output on that rung. Doing so will isolate the program control instruction from the application code.

daba,

I would agree with the use of a NOP after SBR for clarity, but can you explain why it's not a good idea to mix program control instructions and application instructions on the same rung? I don't mean in general, but specifically after an SBR?

It's my understanding that the SBR is always evaluated true. So, while it is "there" as far as the scan is concerned, it's as though it isn't "there" as far as application logic is concerned. So you should be able to start your application logic on the first rung after an SBR instruction?

An XIC and OTE, for instance, directly after an SBR on the first rung would act as though the XIC is the first instruction. The OTE instruction would only be dependant on the XIC and not the SBR.

Also, if using a conditional rung ending in a JSR instruction, there would be a mix of application and program control instructions here.

What potential problems are there in mixing?

G.
 

Similar Topics

Hi, I am dealing with a single SBR subroutine thats handed 1 input paramter UDT P.x multiple times: (Pump) P.1/2/3/4/5. I JSR into the same...
Replies
3
Views
1,995
I have: 1734-AENTR processor RSLogix5000 version 20 I am working with a JSR and it is behaving in a way I did not expect and I am unable to...
Replies
3
Views
2,428
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
531
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
860
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,560
Back
Top Bottom