Is it possible to program this onto a Click PLC? If so, I need help anyway.

Subroutine 30 Discrete Valves, Rung 2, Compare of DS1 Sequence Step to 60 (Test Pressure Hold) should be <, not ≤, because the pump should not be available to restore the test part pressure if it drops.

By the same reasoning, in Subroutine 99 Outmap, Rungs 6 and 7 should write 0.0 to the I/P transducer during step 60, the ≤ 60 on Rung 6 should be < 60, and the > 60 on Rung 7 should be ≥ 60.
 
Regarding slowly increasing the pressure the pump will not run at probably 6-7 ma (assume 10 psi, so I suggest when you start the pump on a oneshot (perhaps an extra step you have plenty spare as it appears that all posts so far are keeping the steps of 10) for example if step 10 was to start the pump, from 0 (Idle) move 5 or what ever into the sequence step number, move say 7 ma (min pump start air pressure) then move 10 into the seq register this in itself is a oneshot so then you have a starting air pressure rather than starting at 0 & the pump will not run until the I/P (Current to pressure) (yes that is what it is called not a transducer that is ambiguous as it also refers to a signal back (analog input)rather than analog output).
See pic on extra step to pre-load (you may have to change the step number to fit in what others or you have done).

Extra step.png
 
Another bug in Subroutine 20 States, I think; see the attached image.
Untitled.png
What started me thinking about this is, after the NO Contact C2 HMI_PB_Cycle_Stop on Rung 3, the NC Contact C2 HMI_PB_Cycle_Stop on Rung 4, which is not necessary:

  • If C2 is 1 on a scan, then Rung 3 will trigger, which will prevent Rung 4 from triggering even if the NC C2 is not there.
  • So the only way Rung 4 can trigger is if C2 is 0 in the first place, plus all the other contacts on Rung 4, so the NC C2 is redundant.
Also, this is the only reference to C1 HMI_PB_Cycle_Start in the entire program, so pressing the HMI start button is the only way to affect anything, and all it does is prevent the 10=>20 transition. Then there is the issue whether the HMI sets and clears the button's bits, or if those bits are set-and-forget.

So maybe that is supposed to be C1 in Rung 3?

P.S. I assume each of those bits is "active" (i.e. to start or to stop) when its value is 1.

Or maybe this is what was intended: pressing HMI Stop transitions to State 10 (Idle) from any state; pressing HMI Stopm, while both (i) in State Idle AND (ii) test part is depressured, transitions to State 20 Ready.
Untitled2.png
 
This might work. I wonder if there is a conversion app from Click to DoMore; this should be straightforward to simulate.


[Edited: fixed a typo in the program]
 
Last edited:
Here are some of the key pieces of the algorithm that sets the air pressure regulator setpoint. At its core it does summat similar to what the human operator seems to be doing:

  • initially turn "knob" most of the way to a fixed value that should bring the system nearly to the setpoint
    • With the known pump pressure ratio, the Click can do this in one go
    • This is State 20 Start Pump
    • Transition to next state at 10psi
  • Leave knob at initial fixed value, wait for pressure to settle
    • it should settle a bit below the setpoint
    • This is State 30 Pump to initial stall
    • Transition to next state when settled
      • current "settled" criterion is empirical and untested
  • Sneak up on setpoint from there
    • "Small moves, Ellie, small moves" - tweak "knob" by ~1psi
    • compare feedback from pressure sensor to setpoint
      • stop if all sampled pressures for a full second are above the setpoint
    • repeat at 1Hz
    • This is State 40 Pump until test pressure
Not shown are the 1-second group sampling metrics, used to determine "settled" and "above setpoint," a but they are simple.
 
Update: I forgot to attach the image to that last post; here it is below.


here are some of the key pieces of the algorithm that sets the air pressure regulator setpoint. At its core it does summat similar to what the human operator seems to be doing:

  • initially turn "knob" most of the way to a fixed value that should bring the system nearly to the setpoint
    • with the known pump pressure ratio, the click can do this in one go
    • this is state 20 start pump
    • transition to next state at 10psi
  • leave knob at initial fixed value, wait for pressure to settle
    • it should settle a bit below the setpoint
    • this is state 30 pump to initial stall
    • transition to next state when settled
      • current "settled" criterion is empirical and untested
  • sneak up on setpoint from there
    • "small moves, ellie, small moves" - tweak "knob" by ~1psi
    • compare feedback from pressure sensor to setpoint
      • stop if all sampled pressures for a full second are above the setpoint
    • repeat at 1hz
    • this is state 40 pump until test pressure
not shown are the 1-second group sampling metrics, used to determine "settled" and "above setpoint," a but they are simple.
Untitled.png
 
Hello all. I have been making the program that @drbitboy made into do more designer and also edited some things. Before I try to finish up the simulation I need to understand what things I really need for this whole system to work.
I redid my diagram for what parts I need and other things.
Here is the diagram.

https://imgur.com/a/XpzsHdk

The pressure regulator we are using now has a filter in it so I will put that at the beginning of the system, it can also act as a safety valve just in case the pump air shutoff valve does not work.
Before an operator starts their day testing parts all they need to do is fully open the regulator knob. Also added the shutoff valve right after it because the I/p transducer cannot fully stop the pump from running, it can only go down to 3psig.

When the shutoff valve is closed during pressure testing, there will be pressure still between the shutoff valve and the pump which will hold the systems pressure. When the test is done simply all we need to do is send a signal to open this valve and the output pressure in the pump will go to zero and the test is ready to go again.
Let me know If this all looks okay because soon, I will simulate the pump and the devices.

I am not 100% sure if the 2-way pneumatic solenoid valve I picked can withstand a difference of 120psig on one side and 0psig on the other. It says on the website that its maximum operating pressure is 180psig so I think this valve will be fine. Here is the link to it.
https://www.grainger.com/product/REDHAT-Solenoid-Valve-1-4-in-Pipe-6WTP5

I still need to find a pneumatic solenoid relief valve for part D, I can't find one that is solenoid controlled and can withstand a pressure of at least 1500psi. I want to be able to open this pneumatic solenoid relief valve at any pressure.

I also still need to find a mechanical water pressure relief valve that's setpoint is 1500psi.
 
Last edited:
Sounds great.

I don't see how solenoid relief valve D can reduce pressure on the water discharge side of the pump, because the pump has check valves on the water side.

Also, valve D should never see more than 120psig.
 
Sounds great.

I don't see how solenoid relief valve D can reduce pressure on the water discharge side of the pump, because the pump has check valves on the water side.

Also, valve D should never see more than 120psig.

How would I reduce pressure in the whole system then? Would I also need to put a solenoid valve on the water side or is their one solution to depressurize the whole system?
 
You should't need too, the water is dumped by G (but you have that as a manual dump, B will shut off air to the I/P so assume the following:
G (Water dump) should be open to drain, blocked to water from pump when de-energised So this should be an automated valve n/o tp drain. This closes at the start of process i.e. energised throughout the test. When pressure is required for the pump to run (regardless of if it is low i.e. 4ma or 20ma) then open Valve B, modulate the air as required by the I/P, when target pressure reached shut of Valve B. at the end of the test open valve G. I have no idea why you have the pressure relief valve if the pump can take max supply air pressure there is no need (if it is a relief in the sense you energise it as thre pump expells air everytime it pumps) if the valve B is closed the air to the I/P will be released by the pump (at least after one cycle)

if you sequence was for example:


10 (pressurise system)
20 ( Up to pressure run test time )
30 (release pressure)
40 (end of test)


so Valve B will open between 10 & 20 (Energised)

Valve G will close between 10 & 30 (Energised)

YOU REALLY NEED AN AUTOMATED VALVE FOR G
What could be simpler.
 
Last edited:
The first image below is one example of what a typical, manually-operated hydrostatic test setup would look like, with the #13 unloading (water dump) valve for the pump water discharge side. Note the ball -<o- check valves between #6 Booster Pump and #9 Pressure Gauge: they will prevent the water side from depressuring when the air pressure drops. In your system, the #2 Driving Air Switch is a manual valve that the operator opens at the start of the day.
H9621e5a8469046e29ada5cc465537012G.png

I think you are right that in your case, if the I/P transducer* has a minimum pressure of 3psi, then you will need a way dump air pressure between #1 F.R.L and #6 Booster Pump. That could be a 3/2 solenoid valve as shown in the image below. 1(P) is connected to the regulator output; 2(A) is connected to the pump air inlet; 4(R) exhausts to the atmosphere. In the Normally Closed position (as shown below) this 3/2 will dump air from the 2(A) pump side when depressuring and block the 1(P) regulator outlet; in the Open position, the block solenoid on the left shifts the block in the middle shifts to the right against the spring on the right, and then this 3/2 connects the 1(P) regulator to the 2(A) pump air inlet when pressurizing the system.

* which is the R in #1 F.R.L. (Filter, Regulator, Lubricator)
 
Last edited:
Pity we did not know what the pump part number or type is, If it is a dual diaphram type then there is no need to dump the air as it will no run (or should not) at such a low pressure, also you have a valve B just make it a dump valve i.e. when de-energised it closes the input & drains the output I do really think this is being overthought Brians diagram is exactly what I would expect in that instance tere is no air dump, Once the valve is closed it will naturally lose the air as when the pump cycles the air is expelled, switching the air off wii not leave a pressure (or at least much in the pump) I have used them many times & never dumped the air just turned it off, it usually cycles for about one cycle. I even doubt the requirement of the I/P, you are bringing it up to a pressure & stopping it probably is not needed.
I would be more concerned about safety, any modification to existing macvhinery needs to have a risk assesment done & any safeties upgraded to the latest.
 
Last edited:

Similar Topics

Hello. I have been trying to crack this one without success and could not find any hint after several search attempts. I wonder if any CODESYS...
Replies
4
Views
3,884
Hello, I'm pretty sure I know the answer to this, but wanted to verify with the experts. Am I able to write a program using the Micro Starter...
Replies
7
Views
3,134
First off, i am new to ladder logic. I do have some experience programming microcontrollers in C. I will try and give a short version and if more...
Replies
7
Views
1,973
This is a CompactLogix L33ERM, version 30 (31 is too unstable on my machine to work with), with a Kinetix 5500 drive. I have a program where...
Replies
2
Views
1,981
Good morning guys! I have a doubt. I uploaded a program from a S7-200xp on the field and took it to the office. Before doing any test I tried to...
Replies
7
Views
2,131
Back
Top Bottom