Logic Race

jflores18

Member
Join Date
Jul 2019
Location
Chicago
Posts
2
Hi Everyone, I am new here. I have been working with PLC's for a few years now so I still have much to learn, but I have an issue that has been confusing me and wracking my mind for a few weeks now. All I know is that the issue is probably related to the scan sequence but no matter how I look at it, it has not made sense. I have even set up a test bench to try to analyze it further but with no luck. I have attached the section of logic that I am referring too.

Some things to note:
Working with a SLC 504 Processor communicating with an HMI through DH+

N16:60/15 is triggered by a momentary pushbutton on an HMI

B3:2/0, B3:2/2, B3:6/3 and B3:5/0 start condition is 0 before triggering N16:60/15

N10:68/0 and T4:23/DN start condition is 1 before triggering N16:60/15

:mad: So where the confusion sets in... when the logic is as seen in the attachement I can latch B3:2/0 but cannot unlatch it. However when as shown in red you move up rung 144 two lines you can latch and unlatch without a problem.

I have gone through this the way I understand scanning (as described by the Ron Beaufort Method) but I do not get the same results I do in real life.

What am I missing? Thanks in advance for the replies!
 
Last edited:
Greetings Jorge ...

any chance that you could attach the original RSS project file? ... the contrast in the PDF that you attached is too weak for my 72 years old eyes to read ...

(but maybe some of the younger members can make it out) ...
 
take a good look at the MVM instruction in Rung 144 of Ladder File 2 ... notice that its Destination is aimed at word B3:2 - which of course includes your "problem" bit B3:2/0 ...

so maybe when you move the MVM rung up ABOVE the OTL and the OTU rungs, then the Latch and Unlatch functions don't get overwritten by the MVM instruction ...

I'm working on some other projects right now - so I don't have time to go all the way through your problem - but SO FAR it looks like the MVM instruction could be overwriting the OTU (Unlatch) instruction ...

hope this helps ... I'll spend some more time on it later if necessary ...
 
Last edited:
take a good look at the MVM instruction in Rung 144 of Ladder File 2 ... notice that its Destination is aimed at word B3:2 - which of course includes your "problem" bit B3:2/0 ...

so maybe when you move the MVM rung up ABOVE the OTL and the OTU rungs, then the Latch and Unlatch functions don't get overwritten by the MVM instruction ...

I'm working on some other projects right now - so I don't have time to go all the way through your problem - but SO FAR it looks like the MVM instruction could be overwriting the OTU (Unlatch) instruction ...

hope this helps ... I'll spend some more time on it later if necessary ...

Thanks Ron!

This is exactly what is happening. I did notice that as a possibility before and tested a few different things to verify that but I must have missed something because I did it again and sure enough rung 144 is changing that bit. Thanks again!:geek:
 

Similar Topics

Hey guys, I'm using version 10.00.00 (CPR 9) or RSlogix500. The main processor I talk to is a SLC 5/05. I was recently told about the "logic...
Replies
2
Views
1,818
Hello, I need to answer this ladder logic question, but I dont understand how the race conditions work. Can anyone explain how the outputs update...
Replies
17
Views
11,919
Hi friends, Can anyone elaborate on the " Logic trace functionality" and "cross reference navigation" features in RS Logix? These are new...
Replies
1
Views
3,933
Hello, I am trying to replicate a piece of logic on the PLC5 onto an SEL RTAC. I am using ladder on SEL and FBD. I am having issue on the ladder...
Replies
9
Views
105
Hello again..trying something on an existing poorly written program and just wanted to double check something system is an A-B MicroLogix 1200 In...
Replies
5
Views
165
Back
Top Bottom