Jump to content

Recommended Posts

  • 2 months later...
  • MVP 2023

"Why?"  Because the very last net that refers to the output is the one that over-rides all the other ones.  Remember that the controller steps through the ladder sequentially, rung by rung.  An analogy is a number of people going into a room and wanting the lights either on or off.

George goes in and turns them on.  Geoff goes in next and wants them off.  Derek goes in after him and wants them on.  Last of all, Admir goes in and wants them off.  Because Admir is the last person in the room before everyone else is allowed in again (the end of the scan) the lights are switched according to what Admir wants, (in this case OFF) totally ignoring any other preferences from George, Geoff and Derek.

So if the need is for any of the 4 people to independently turn the lights on, they all have to have their request processed at the same time (in the same rung) and if any one or combination of them wants them on then it is done.

There are variations of this rule according to whether the various controls are in subroutines that are being called, but for now this hopefully helps you understand this basic PLC programming rule.

cheers, Aus

  • Like 1
Link to comment
Share on other sites

  • MVP 2023

And to just expand on what Ausman is saying. The actual physical output from the PLC is not altered until the complete ladder routine has finished executing. It is only the final state of the digital output coil that will be sent to the output module on each PLC scan. Also keep in mind that ladder code is not like other computer code. A direct coil that is not explicitly turned on is explicitly turned off. Understanding that last sentence is critical to understanding the difference between ladder logic and regular computer programming.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...