You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

Reply
 
Thread Tools Display Modes
Old September 19th, 2023, 07:45 AM   #46
koloyewo
Member
United Kingdom

koloyewo is offline
 
Join Date: Jun 2023
Location: England
Posts: 26
This is the modified program, but is not working based on your logic, i have explained how i want it to wort in my previous comments, but if you are still nor clear, tell m, i will explain further
  Reply With Quote
Old September 19th, 2023, 07:51 AM   #47
koloyewo
Member
United Kingdom

koloyewo is offline
 
Join Date: Jun 2023
Location: England
Posts: 26
This is the modified program, but is not working based on your logic, i have explained how i want it to wort in my previous comments, but if you are still nor clear, tell m, i will explain further
Attached Images
File Type: png Dosing pump.PNG (36.3 KB, 26 views)
  Reply With Quote
Old September 19th, 2023, 07:55 AM   #48
drbitboy
Lifetime Supporting Member
United States

drbitboy is online now
 
drbitboy's Avatar
 
Join Date: Dec 2019
Location: Rochester, NY
Posts: 7,007
Is this correct?

Quote:
Originally Posted by koloyewo View Post

Now wWhen start button is pressed, the chemical pump should start and run (Q3=1) till the set.

When the count of flow meter pulses,
reaches which is pulses are connected to a counter, reaches the counter preset, at which point the chemical pump stops (Q3=0) and the water solenoid valve opens (Q2=1), and w.

When the water reaches the high level
tank sensor, the high level sensor should stop the water solenoid valve should close (Q2=0)., w

When the water goes below the high level sensor, it should not turn on the water solenoid valve (Q2 remains 0).


The process should stsrt start again when the water reaches the low level sensor.
__________________
_
Brian T. Carcich
i) Take care of the bits, and the bytes will take care of themselves.
ii) There is no software problem that cannot be solved with another layer of indirection.
iii) Measurement is hard.
iv) I solemnly swear that I am up to no good
v) I probably have the highest ratio of forum posts to actual applications in the field (but no longer ∞ ).
vi) Hakuna matata.
vii) Bookkeeping.
  Reply With Quote
Old September 19th, 2023, 08:13 AM   #49
drbitboy
Lifetime Supporting Member
United States

drbitboy is online now
 
drbitboy's Avatar
 
Join Date: Dec 2019
Location: Rochester, NY
Posts: 7,007
Quote:
Originally Posted by koloyewo View Post
This is the modified program, but is not working based on your logic, i have explained how i want it to wort in my previous comments, but if you are still nor clear, tell m, i will explain further

Like I said, in my back of the envelope start/stop circuit, I swapped the low and high level sensor contacts.

So swap I3 and I6 in that last branch, i.e. the one that controls Q2; I6 (water low) should be examined by an NO contact; I3 (water high) should be examined by an NC contact.

Also, if you want to ensure the process starts when the start button is pressed even if the water level is not low, put an NO contact with I1 in parallel with the NO contacts of the I6 and the Q2 seal-in branches.
PXL_20230919_120837619.png
__________________
_
Brian T. Carcich
i) Take care of the bits, and the bytes will take care of themselves.
ii) There is no software problem that cannot be solved with another layer of indirection.
iii) Measurement is hard.
iv) I solemnly swear that I am up to no good
v) I probably have the highest ratio of forum posts to actual applications in the field (but no longer ∞ ).
vi) Hakuna matata.
vii) Bookkeeping.
  Reply With Quote
Old September 19th, 2023, 08:26 AM   #50
koloyewo
Member
United Kingdom

koloyewo is offline
 
Join Date: Jun 2023
Location: England
Posts: 26
It is still not working, when Q3 is off, Q2 needs to come on, and that can only happen if I3 is NC, but when I3 turns to NO, i do not want it to affect Q2 by turning it off. thanks
Attached Images
File Type: png PLctalk1.PNG (30.5 KB, 21 views)
  Reply With Quote
Old September 19th, 2023, 08:43 AM   #51
mylespetro
Supporting Member
Canada

mylespetro is offline
 
mylespetro's Avatar
 
Join Date: Dec 2015
Location: NS
Posts: 719
Quote:
Originally Posted by koloyewo View Post
It is still not working, when Q3 is off, Q2 needs to come on, and that can only happen if I3 is NC, but when I3 turns to NO, i do not want it to affect Q2 by turning it off. thanks
In your screenshot, I3 is going to turn off Q2 once it changes state because it's not sealed in.

I've attached a screenshot of how I would program this (this is in AB Studio 5000 but it works the same). If indeed your high level switch opens when water reaches it, you would program it the bottom way, but I typically run into the situation where the switches close when floating, in which case it would be programmed the top way. In that situation, the low level float I6 is typically floating, so it's closed and will open once the water pumps down that far and Q2 will go false, and the pump will stop until the high level float I3 closes, starting the pump and then sealing itself in around I3 which should go false quickly, but Q2 will stay on until it hits I6 again, rinse and repeat. The stop button needs to be outside of the parallel start rungs so that it breaks the "power flow", if left the way you have it, it will not stop the pump if I3 or Q2 are already true (I also programmed an NC stop button out of habit). I'm wondering if maybe you have the address labelled as Stop but are actually using it as a Start PB?

I think a few photos/screenshots from you (or even a video if you can) of the system state and the program state would really help us troubleshoot with you.
Attached Images
File Type: png LvlControl.PNG (5.8 KB, 22 views)

Last edited by mylespetro; September 19th, 2023 at 08:48 AM.
  Reply With Quote
Old September 19th, 2023, 09:44 AM   #52
drbitboy
Lifetime Supporting Member
United States

drbitboy is online now
 
drbitboy's Avatar
 
Join Date: Dec 2019
Location: Rochester, NY
Posts: 7,007
Quote:
Originally Posted by koloyewo View Post
It is still not working, when Q3 (do you mean I3?) is off, Q2 needs to come on, and that can only happen if I3 is NC, but when I3 turns to NO, i do not want it to affect Q2 by turning it off. thanks

Terminology is important, so please note that booleans CANNOT be described as "NC" or "NO" i.e. the phrases "I3 is NC" or "I3 is NO" have no sensible meaning.
  • The discrete (boolean) input I3 can have a value of either 1 or 0
  • IF
    • the input rung state to an NO contact is TRUE,
    • AND I3 is examined by that NO contact,
    • AND the value of I3 is 1,
  • THEN
    • the output rung state of that NO contact will be TRUE
  • IF
    • the input rung state to an NC contact is TRUE,
    • AND I3 is examined by that NC contact,
    • AND the value of I3 is 0,
  • THEN
    • the output rung state of that NC contact will be TRUE
  • For ALL other cases the output rung state of any NO or NC contact examining I3 will be FALSE.
__________________
_
Brian T. Carcich
i) Take care of the bits, and the bytes will take care of themselves.
ii) There is no software problem that cannot be solved with another layer of indirection.
iii) Measurement is hard.
iv) I solemnly swear that I am up to no good
v) I probably have the highest ratio of forum posts to actual applications in the field (but no longer ∞ ).
vi) Hakuna matata.
vii) Bookkeeping.

Last edited by drbitboy; September 19th, 2023 at 10:06 AM.
  Reply With Quote
Old September 19th, 2023, 10:02 AM   #53
drbitboy
Lifetime Supporting Member
United States

drbitboy is online now
 
drbitboy's Avatar
 
Join Date: Dec 2019
Location: Rochester, NY
Posts: 7,007
Red face

Quote:
Originally Posted by koloyewo View Post
the water reachesing the high level tank sensor, the high level sensor should stop close the solenoid valve i.e. it should write a 0 to Q2,

when the water goes below the high level sensor, it should not turn on open the solenoid valve.

the process should stsrt again when the water reaches the low level sensor/
@mylespetro: close valve at high level; open valve at low level. you need to swap I6 and I3, but you got it.

@koloyewo needs to better understand the Start/Stop Circuit pattern (e.g. here), NC contacts, and NO contacts; apparently, so do I :
PXL_20230919_120837619.png
__________________
_
Brian T. Carcich
i) Take care of the bits, and the bytes will take care of themselves.
ii) There is no software problem that cannot be solved with another layer of indirection.
iii) Measurement is hard.
iv) I solemnly swear that I am up to no good
v) I probably have the highest ratio of forum posts to actual applications in the field (but no longer ∞ ).
vi) Hakuna matata.
vii) Bookkeeping.

Last edited by drbitboy; September 19th, 2023 at 10:08 AM.
  Reply With Quote
Old September 19th, 2023, 10:11 AM   #54
drbitboy
Lifetime Supporting Member
United States

drbitboy is online now
 
drbitboy's Avatar
 
Join Date: Dec 2019
Location: Rochester, NY
Posts: 7,007
@koloyewo:
  • When the water level is above the high level sensor, what is the value of I3? Is it 1 or is it 0?
  • When the water level is below the high level sensor, what is the value of I3? Is it 0 or is it 1?
The answers to these questions determines the type of contact, NO or NC, that will be used to examine the value of I3 in the ladder program.
__________________
_
Brian T. Carcich
i) Take care of the bits, and the bytes will take care of themselves.
ii) There is no software problem that cannot be solved with another layer of indirection.
iii) Measurement is hard.
iv) I solemnly swear that I am up to no good
v) I probably have the highest ratio of forum posts to actual applications in the field (but no longer ∞ ).
vi) Hakuna matata.
vii) Bookkeeping.
  Reply With Quote
Old September 19th, 2023, 10:19 AM   #55
mylespetro
Supporting Member
Canada

mylespetro is offline
 
mylespetro's Avatar
 
Join Date: Dec 2015
Location: NS
Posts: 719
Quote:
Originally Posted by drbitboy View Post
@mylespetro: close valve at high level; open valve at low level. you need to swap I6 and I3, but you got it.

@koloyewo needs to better understand the Start/Stop Circuit pattern (e.g. here), NC contacts, and NO contacts; apparently, so do I :
Attachment 66529
Sorry, I'd misunderstood that Q2 was a pump.
  Reply With Quote
Old September 19th, 2023, 10:34 AM   #56
drbitboy
Lifetime Supporting Member
United States

drbitboy is online now
 
drbitboy's Avatar
 
Join Date: Dec 2019
Location: Rochester, NY
Posts: 7,007
According to two previous posts by @koloyewo (see attached image), a high water level (i.e. a water above the high water level sensor) should be writing a 1 to the value of discrete input I3, so a water level below the high water level sensor should be writing a 0 to the value of discrete input I3.

So if a high water level should close Q2, then the type of contact for the "Stop" condition in the "Start/Stop" Circuit pattern for Q2 should be an NC contact, which will
  • allow the value of Q2 to be 1 as long as the water level is below the sensor, and
  • ensure the value of Q2 is 0 if the water level rises above the sensor, and
  • does not change the value of Q2 from 0 back to 1 when the level drops (transitions) from above to below the high level sensor, until the level also drops below the low level sensor.
Untitled.png
__________________
_
Brian T. Carcich
i) Take care of the bits, and the bytes will take care of themselves.
ii) There is no software problem that cannot be solved with another layer of indirection.
iii) Measurement is hard.
iv) I solemnly swear that I am up to no good
v) I probably have the highest ratio of forum posts to actual applications in the field (but no longer ∞ ).
vi) Hakuna matata.
vii) Bookkeeping.
  Reply With Quote
Old September 19th, 2023, 10:46 AM   #57
drbitboy
Lifetime Supporting Member
United States

drbitboy is online now
 
drbitboy's Avatar
 
Join Date: Dec 2019
Location: Rochester, NY
Posts: 7,007
@koloyewo:


In the original program (Post #42), the low water level edge detection occurs when the value of I3 changes from 0 to 1.

In Posts #28, #30, and #47, the low water level edge detection (SF001) occurs when the value of I3 changes from 1 to 0, which resets a counter.

Do you want the counter to reset when the level rises (transitions) from low to not-low, or when the level drops (transitions) from not-low to low?

What is the value of I3, 1 or 0, when the water level is below the low level sensor?
__________________
_
Brian T. Carcich
i) Take care of the bits, and the bytes will take care of themselves.
ii) There is no software problem that cannot be solved with another layer of indirection.
iii) Measurement is hard.
iv) I solemnly swear that I am up to no good
v) I probably have the highest ratio of forum posts to actual applications in the field (but no longer ∞ ).
vi) Hakuna matata.
vii) Bookkeeping.
  Reply With Quote
Old September 19th, 2023, 12:56 PM   #58
drbitboy
Lifetime Supporting Member
United States

drbitboy is online now
 
drbitboy's Avatar
 
Join Date: Dec 2019
Location: Rochester, NY
Posts: 7,007
[Ignore previous Post #57; I fixed typos for low level input, it's I6 not I3.]

@koloyewo:

In the original program (Post #42), the low water level edge detection occurs when the value of I6 changes from 0 to 1.

In Posts #28, #30, and #47, the low water level edge detection (SF001) occurs when the value of I6 changes from 1 to 0, which resets a counter.

Do you want the counter to reset when the level rises (transitions) from low to not-low, or when the level drops (transitions) from not-low to low?

What is the value of I6, 1 or 0, when the water level is below the low level sensor?
__________________
_
Brian T. Carcich
i) Take care of the bits, and the bytes will take care of themselves.
ii) There is no software problem that cannot be solved with another layer of indirection.
iii) Measurement is hard.
iv) I solemnly swear that I am up to no good
v) I probably have the highest ratio of forum posts to actual applications in the field (but no longer ∞ ).
vi) Hakuna matata.
vii) Bookkeeping.
  Reply With Quote
Old September 19th, 2023, 01:16 PM   #59
drbitboy
Lifetime Supporting Member
United States

drbitboy is online now
 
drbitboy's Avatar
 
Join Date: Dec 2019
Location: Rochester, NY
Posts: 7,007
Quote:
Originally Posted by mylespetro View Post
Sorry, I'd misunderstood that Q2 was a pump.
No need to apologize, @koloyewo uses inconsistent and/or incomprehensible descriptions (e.g. "stop the solenoid valve"), and also makes many typos, regarding tag names and what they do, in almost every one of their posts. Not that my posts have been any better LOL. OP's flag is UK but it appears we are separated by a common language.

I doubt we know yet either how this system operates or precisely what the control system is supposed to accomplish. It may be a dosing system but apparently it cannot measure at least one of the component flows; that was an interesting development. I have posted a couple of "is this correct?" queries and have yet to see any complete answers.

Apparently OP has the impression that our super powers include X-ray vision and/or reading minds; it's a typical thread, I guess .
__________________
_
Brian T. Carcich
i) Take care of the bits, and the bytes will take care of themselves.
ii) There is no software problem that cannot be solved with another layer of indirection.
iii) Measurement is hard.
iv) I solemnly swear that I am up to no good
v) I probably have the highest ratio of forum posts to actual applications in the field (but no longer ∞ ).
vi) Hakuna matata.
vii) Bookkeeping.
  Reply With Quote
Old September 19th, 2023, 02:43 PM   #60
parky
Member
United Kingdom

parky is offline
 
parky's Avatar
 
Join Date: Oct 2004
Location: Midlands
Posts: 5,248
Well it took me about 10 mins to code this assumes that the process is on low level & the run latch is on then the water valve opens and the chem dosing valve, it also assumes the chem dosing is shorter than the time it takes to fill the tank to high level, when the dosing pulse count = the required count it turns off the dosing solenoid, the water continues until it hits high level, it will not start again until the level falls below the low level.
UIf this is what you want then it is pretty simple.
Attached Files
File Type: pdf Dosing.pdf (77.6 KB, 7 views)
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Flow control using dosing pump and Coriolis flow meter mylespetro LIVE PLC Questions And Answers 22 February 16th, 2022 01:46 PM
Pump Control with a PLC MisterEzell LIVE PLC Questions And Answers 18 September 20th, 2021 10:37 PM
way OT: Proper installation of effluent pump in septic system advice needed. Sliver LIVE PLC Questions And Answers 17 October 19th, 2009 08:54 AM
motor alternating directsoft 32 on a DL06 DRThorne LIVE PLC Questions And Answers 15 November 9th, 2006 09:05 PM
Again and again. How to start? Alex Pel LIVE PLC Questions And Answers 33 December 31st, 2004 12:10 PM


All times are GMT -4. The time now is 08:00 PM.


.