Jump to content

Can't turn on a pump using multiple inputs


Recommended Posts

  • MVP 2023

Direct coils should be used in one, and only one, place in your program. In your case, you are turning it on in net 1 then turning it off again in net 2. The state doesn't get written to the physical output until after it's turned off in net 2. We have a saying with ladder logic - "the last one wins".

Figure out all the conditions you need to turn the coil on and write them into a single net.

The exception to this is Set & Reset coils activated by a transition contact. You can have those in multiple places if you choose.

Link to comment
Share on other sites

  • MVP 2023

Flex speaks truth.  In addition-

You've made good use of positive transitionals to help keep your logic from getting stuck.

Each net is considered one logical statement in UnitronicsLand.  Each of your nets has three statements - don't do that.  Separate timer contacts from their coils, too.

image.thumb.png.04271d735fb93afdc47acc9239bcee1c.png

I realize this looks inefficient compared to your logic, but if you look at the compiled logic  - STL Quick View - of what you've written you'll see it's rather messy.  Extra nets have zero memory cost when the logic is compiled.

Joe T.

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...