Could you explain a JSR Instruction

Coachman

Member
Join Date
Sep 2006
Location
Maryland
Posts
97
Good Morning ,

Could you explain a little bit the purpose of a JSR instruction and some of the ins and outs of the JSR below.

____________ JSR_________________________

Jump to Subroutine

Routine Name SR_Pos_OK
Input Par WB_18BM7_CH.Actual_Position
Input Par Tabel_POS_WB_CH[PROD_TYPE,PROD COUNTER]
Input Par 40
Return Par SW_1[41].24

What does the Input Par do? and what do you think the
Return Par stands for? The help in RS Logix 5000 does
not explain enough about my application, I would like
to understand why it is used in the real world.
Thanks, You have been very helpful,hopefully soon I will
learn enough to help others.
 
A subroutine of this type takes information (the 'Input Par's) processes them and returns an answer (the Output Par). It probably can do this with a multitude of different inputs from different areas of the program thus providing one stable methodology for performing the logic.
 

Similar Topics

and then when i open the windowmaker, intouch is shutdown... that's not work that's demo I have 30days demo
Replies
3
Views
168
Hi All In my plc program in following picture there are functions FC50 in the begining and FC51 in end of organization block OB32. I can not...
Replies
3
Views
970
Just for readers in the US, when I write 'gas' I mean it as a state of matter, not shorthand for gasoline :-) I don't understand the logic of a...
Replies
39
Views
11,174
Hello all, I have recently been working on a project utilizing Allen Bradley PLC/HMI. It's an L16ER-BB1B PLC and a Panelview Plus 7 HMI. I'm...
Replies
15
Views
5,724
I’m using rslogix5000 v20 with ControlLogix L72. I added some rungs to monitor time meter of our propulsors. But with same ladder instruction I...
Replies
11
Views
4,025
Back
Top Bottom