micrologix...JMP and LBL

Skidood

Member
Join Date
Oct 2016
Location
Ontario
Posts
215
Hello again, Happy New Year.
If the bit controlling this subroutine switches off, causing the JMP and LBL instructions to take effect, will the valve stay on?
Thanks !!

:confused:;)

Untitled.jpg
 
Assuming B3:17/2 is not written to elsewhere it will stay on, unless/until the PLC leaves and re-enters run (eg due to a power cycle) with the subroutine switched off.

In that scenario the prescan will turn off the bit, and it will never be scanned to turn it on again until the subroutine is enabled.

In the scenario where the subroutine is enabled but then disabled while running, you are correct that it should stay on.
 
Assuming B3:17/2 is not written to elsewhere it will stay on, unless/until the PLC leaves and re-enters run (eg due to a power cycle) with the subroutine switched off.

In that scenario the prescan will turn off the bit, and it will never be scanned to turn it on again until the subroutine is enabled.

In the scenario where the subroutine is enabled but then disabled while running, you are correct that it should stay on.

Thanks. Makes sense as the rung with the valve will not be evaluated so there is nothing to turn the valve bit OFF.
 
If you want to keep the program the way it is, you can use an OTU to turn the bit off when the subroutine isn't being called, but that instance would need to be in a scanned routine. It's a bit messy doing that.
 

Similar Topics

Hi everyone, I have a series of 8 or 9 subroutines that are not in the main program file (File 2)..they are all consecutively placed in Ladder 11...
Replies
8
Views
418
Hey all, first time poster here. I am wondering if anyone has tried using a Keyence SR-X300 barcode scanner to a Micrologix 1400. Keyence sent...
Replies
0
Views
46
I have been working on this for a while now and I can't seem to get it. I was finally able to view the 1500 on the PanelView under the serial...
Replies
1
Views
96
I'm using a SLC typed write from the ControlLogix5572 to the MicroLogix 1400, with path: 2, (MicroLogix IP). The ControlLogix equipment has a...
Replies
0
Views
102
"Hello! Good day! Excuse me, I have a question regarding the 1761-NET-ENI. RSLinx has already detected it but it's not connecting to the PLC...
Replies
4
Views
143
Back
Top Bottom