Hello everyone,
I am very new to programming, and brand new to Allen Bradley. I am mucking my way through learning the software and things are moving along. However, I am stuck trying to figure out subroutines.
My ultimate goal is to have a subroutine that I can call on throughout my main program that, when activated (by a pushbutton, for example), will activate an output for a set amount of time.
My issue:
I activate the JSR command (ex: jump to U3) and whatever is in File 3 will remain active, even when the JSR is de-activated. I put just an output on a rung, for example, and the output would remain on permanently.
I'm sure it is something simple... any advice?
Thanks in advance.
I am very new to programming, and brand new to Allen Bradley. I am mucking my way through learning the software and things are moving along. However, I am stuck trying to figure out subroutines.
My ultimate goal is to have a subroutine that I can call on throughout my main program that, when activated (by a pushbutton, for example), will activate an output for a set amount of time.
My issue:
I activate the JSR command (ex: jump to U3) and whatever is in File 3 will remain active, even when the JSR is de-activated. I put just an output on a rung, for example, and the output would remain on permanently.
I'm sure it is something simple... any advice?
Thanks in advance.