![]() ![]() ![]() ![]() ![]() ![]() |
||
![]() |
||
![]() ![]() ![]() ![]() This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
![]() |
![]() |
#16 |
Member
![]() ![]() Join Date: Jun 2023
Location: England
Posts: 26
|
Chemical dosing pump
When I changed the NO of the counter to NC, it was working the other way round, so I change it back to the way it was, From the attached image, the High level sensor is seen at the second rung, to stop both the water solenoid and the pump.
|
![]() |
![]() |
#17 |
Member
![]() ![]() Join Date: Jun 2023
Location: England
Posts: 26
|
When I changed the NO of the counter to NC, it was working the other way round, so I change it back to the way it was, From the attached image, the High level sensor is seen at the second rung, to stop both the water solenoid and the pump.
|
![]() |
![]() |
#18 | |
Lifetime Supporting Member
|
Quote:
Ah, I see: you are inverting M2 and M3 (which effectively inverts C001 and C002, as I suggested) on the rungs feeding Q2 and Q3. If you replace M2 and M3 in those Break (NC) Contacts with C001 and C002, then you can eliminate the redundant --|C001|--(M2)-- and --|C002|--(M3)-- rungs. If you do not eliminate the redundant rungs, then you do not need to have the --|M1|-- Make Contacts on them. Ah: this is a different ladder logic diagram than the one for which you asked for help to check it.
__________________
_ 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. |
|
![]() |
![]() |
#19 |
Lifetime Supporting Member
|
Simplify, eliminate redundant intermediate tags, and clean up.
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. |
![]() |
![]() |
#20 |
Lifetime Supporting Member
|
You could even do this:
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. |
![]() |
![]() |
#21 |
Member
![]() ![]() Join Date: Jun 2023
Location: England
Posts: 26
|
@drbitboy, thank you for the feedback, all corrections have been made. But I am still unable to upload the program onto the plc controller (logo siemens). "showing it could connect to the remote device". Kindly help me on thi
|
![]() |
![]() |
#22 | |
Lifetime Supporting Member
|
Quote:
I do not have a LOGO! and have never connected to one, hopefully someone else could help you with that. You could also try searching the forum.
__________________
_ 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. |
|
![]() |
![]() |
#23 |
Member
![]() ![]() Join Date: Jun 2023
Location: England
Posts: 26
|
Thank you for the reply, I have been able to connect and uploaded the program to the PLC, it was tested, everything working fine except the flowmeter. While the fluid was running through the flowmeter, it was not sending any signal to the PLC, hence the input signal of the PLC could detect any pulse. Kindly find attached the datasheet of the flowmeter.
|
![]() |
![]() |
#24 |
Member
|
The output is open collector, (NpN) in other words it will not drive a PNP type input, if the PLC is capable of sink/source connection should be ok if connected properly, or you could try connecting a 4.7k resistor to the input to 24v but this may reduce the frequency it will work at.
I once did this when a replacement flowmeter was NPN rather than PNP, it worked but it is only a guess that 4.7k will switch the voltage above & below the switching points of the input, generally, inputs are 10ma if I remember correctly, the other thing is that the signal is effectively inverted i.e. input is on when no signal but should not matter. Last edited by parky; June 26th, 2023 at 03:04 AM. |
![]() |
![]() |
#25 |
Member
![]() ![]() Join Date: Jun 2023
Location: England
Posts: 26
|
Do you mean connecting the 4.7k resistor or to the power supply or the input of the PLC
|
![]() |
![]() |
#26 |
Member
![]() ![]() Join Date: Jun 2023
Location: England
Posts: 26
|
And will the connection be in series or parallel
|
![]() |
![]() |
#27 |
Member
|
Assuming you are using a PLC with PNP input i.e. 24v as a signal then as the output of the transistor in the flowmeter being NPN it actually pulses down i.e. sinks.
So use a pull up resistor connected as shown. This gives 24v (well lower due to current being drawn by plc input but should be high enough to turn the input on, when the flowmeter turns on the output transistor in the flowmeter it drags the voltage down i.e. almost grounds it so the input to the plc goes low, it will depend on the input of the PLC but I believe a 4.7k resistor will allow enough voltage swing to stitch the input on & off. normally you would use a flowmeter with PNP output that actually sources 24v via the emmiter of the FM output transistor Shown is the output stage transistor of the flowmeter, this is connected to the PLC input (Source type) & the pull up resistor is connected to this & the supply. |
![]() |
![]() |
#28 |
Member
![]() ![]() Join Date: Jun 2023
Location: England
Posts: 26
|
Hello guys, thank you for your continuous support. Concerning my chemical dosing pump project, I have had some issues, the flow meter for the water is not working so I tried to modify the program, now only to be controlled by the solenoid valve, and if the water reaches the high level sensor, the solenoid valve should stop, and when the water goes low past the low level sensor the system should start back again. But at the moment from the program (attached), when the water reached the high level sensor, it stops the solenoid valve and starts back again when the water goes below the solenoid valve. Please help me on this.
|
![]() |
![]() |
#29 |
Lifetime Supporting Member
|
1) The Start-On-High-Level/Stop-On-Low-Level circuit is the same as the Start/Stop Circuit pattern that is writing a 1 or 0 to the M1 bit (cf. here).
1.1) So you want summat like this back of the envelope: 2) I kept the "do it all on one rung" approach here, which saves instructions, but ...PXL_20230918_122421429.png 2.1) moving each of those branches hanging on the Run System logic to its own rung, also adding a Normally Open contact that examines M1 to each, will spread out the logic and make troubleshooting later (e.g. when a sensor or input channel fails) much easier, and that is where the real money is saved. 2.2) I.e. this 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. Last edited by drbitboy; September 18th, 2023 at 08:43 AM. |
![]() |
![]() |
#30 |
Member
![]() ![]() Join Date: Jun 2023
Location: England
Posts: 26
|
Thank you for the reply, I implemented program you sent, but when i simulated it, the start solenoid (Q2) did not come up, and that should happen after the flowmeter for the chemical reaches 33 pulses and and the counter deactivate the chemical pump.
|
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
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 |