another EZ question about how MicroLogix scans

Skidood

Member
Join Date
Oct 2016
Location
Ontario
Posts
219
Hi, I was told that in a MicroLogix program, all the rungs and included subroutines in Ladder 2 will be scanned from top to bottom, and only when the last rung has been scanned will any outputs actually change state if needed, and their state will be based on the last scanned instructions during the scan. Is this true?
I have a situation where (halfway through Ladder 2) a certain output is unlatched based on a couple inputs that may or may not be active, and then at the bottom of ladder 2, there is a rung that may command this output ON based on a different input. This instruction must take precedence for safety reasons.
Thx in advance.
 
Last edited:
The RS500 series is a synchronous scan. This means that I/O and Communications are updated only once during the program cycle. Therefore unless changed in the program, they will remain the same throughout the program scan.
The program is scanned left to right, top to bottom. The result of the previous rung is available for the next rung.
In your situation the last rung will always override any previous setting.

Regards,
 
Hi, I was told that in a MicroLogix program, all the rungs and included subroutines in Ladder 2 will be scanned from top to bottom, and only when the last rung has been scanned will any outputs actually change state if needed, and their state will be based on the last scanned instructions during the scan. Is this true?
I have a situation where (halfway through Ladder 2) a certain output is unlatched based on a couple inputs that may or may not be active, and then at the bottom of ladder 2, there is a rung that may command this output ON based on a different input. This instruction must take precedence for safety reasons.
Thx in advance.

What type of instruction is this last one?

If it is an OTE, then it will always control the contents of its address. If the rung conditions are false, it will write a "0", if the rung conditions are true it will write a "1". Basically, that means it will render the previous "unlatch" instruction useless.
 
Hi, I was told that in a MicroLogix program, all the rungs and included subroutines in Ladder 2 will be scanned from top to bottom, and only when the last rung has been scanned will any outputs actually change state if needed, and their state will be based on the last scanned instructions during the scan. Is this true?
I have a situation where (halfway through Ladder 2) a certain output is unlatched based on a couple inputs that may or may not be active, and then at the bottom of ladder 2, there is a rung that may command this output ON based on a different input. This instruction must take precedence for safety reasons.
Thx in advance.

The PLC Rule #1 is "Last one wins!"...That is the last rung addressing any OTE makes the decision that will be implemented.
Since any PLC always Scans Inputs -> Processes Logic Program -> Sets Outputs -> Scans Inputs -> Processes Logic Program -> and so on it doesn't matter what former logic decides if there is latter one which decides something else.
Scan the "safety form logic" rung last if it has more priority.
 

Similar Topics

Hello all, I have an example scenario 1. Host serving FactoryTalk Directory server is on 10.125.54.32 2. Client 1 is on host 10.125.54.33 ...
Replies
1
Views
1,561
We've got a sump pump which is switched on/off at the HMI by clicking a button on the screen then a physical pushbutton on a console, using this...
Replies
50
Views
12,411
So, after adding a second PC, purchasing another server license and setting up to function as a redundant server for FTV SE, I think I've...
Replies
2
Views
2,187
When the subroutine is no longer being called, and then called up again, what happens with one-shots in that subroutine? I have some rungs in...
Replies
12
Views
3,069
This may very well be my last question. I'm not on to system alarming. Each station has its own set of alarms. What I have done is provide a list...
Replies
5
Views
2,412
Back
Top Bottom