micrologix...JMP and LBL

Skidood

Member
Join Date
Oct 2016
Location
Ontario
Posts
219
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
447
hi to all, have anyone tried to communicate Schneider PM800 to a ML1400 through rs485? i am having an issue with it just receiving message...
Replies
1
Views
56
Hello, I have a panelview plus that reads from 4 different PLC's. 2 of these used to be Micrologix PLC's and someone else went and updated them to...
Replies
3
Views
128
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
120
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
146
Back
Top Bottom