Help with Eaton ELC program

I've only done a little bit of PLC programming, so I'm looking for some help fixing an operation error with an Eaton ELC-PA10AADR. It is controlling a duplex pump station. For each pump, there is a limit switch on a check valve that should shut the motor off if the motor is running but not moving water--i.e. the check valve doesn't open after x-seconds of running. The controller is not doing this. I managed to upload the program but am a little lost.
Below is an excerpt that I believe is this check valve timing operation. I'd appreciate it if anyone can see something wrong or offer a fix.

1772804048292.png

Y0 = pump run output
X0 = pump primed input
X2 = pump in auto input
X22 = check valve limit switch input (closed when valve is closed)
X24 = pump running input
X26 = phase monitor relay input
X33 = pump motor overload input

Thanks
 
This is, I believe, more complex than it needs to be.

For example, if the value of Y0 is 1 (pump is on), after rung 485, the value of pump-in-auto input X2 must be 1, so there is no need to AND the values of Y0 and X2 (put those bits in contacts in series) on rung 495; a single contact looking for a 1 in Y0 is enough.

Can you give any information about what controls those M bits' values? I am referring to M27, M74, M19, M50.

I see SET and RST instructions controlling M83; a single coil would make the code easier to follow.

Is this code that worked before, and it stopped working recently, or maybe someone only recently noticed it was not working because the check valve never failed to open before?

Or is it new code being developed?
 
The contact with M74 appears to be a (momentary?) Start signal; the contact with Y0 is a seal-in.

All of the other bits on rung 485 express Stop conditions, coded as ANDed not-Stop contlditions.
 
...there is a limit switch on a check valve that should shut the motor off if the motor is running but not moving water--i.e. the check valve doesn't open after x-seconds of running. The controller is not doing this. ...

What is controller not doing?

What do you want the controller to do?

There are other inputs, such as the pump being primed (X0), that also determine whether the pump should run or not. Please describe these also, whether their should stop the pump immediately or after a time delay. For example, when the pump is primed, what is the value of input bit X0, 1 or 0?
 
Here is an approach; you can experiment with it here.

Caveat: I don't know your process, so this may not work for you, but the principles it is based might help you with your coding.

It also
  • includes a button to attempt a restart button (X99_1=AttemptRestart)
    • for when the pump is in auto but has been stopped after 5s because
      • either the check valve did not open
      • or the Pump Running (X24) signal was not received
  • includes a second time to prevent a restart immediately after the first timer expires
  • Stops the pump for any of the faults:
    • Loss of prime
    • Phase Relay
    • Overload
 

Attachments

  • 1772856658184.png
    1772856658184.png
    63.5 KB · Views: 7
Thanks for the feedback! As I'm not super-experienced, I'm hesitant to make significant changes to the program and was hoping to find an obvious mistake like a NO instead of a NC contact.

I've tried to simply recreate this part of the program with the simulator you linked to, but don't know how to trigger a timer reset in the simulator. Online Ladder Logic Simulator: Learn & practice PLC programming!

One thing specifically with this ladder format you could maybe help me understand---Below line 502, is M27 a branch of only the X22, X24 rung, or does it also affect the X2---RST M83 rung?

The rest of the pump station works fine: It runs properly knowing when it's primed, etc. It's just that the pumps continue running even if the valve (X22) stays closed.
I'm going to check for signal bounce from the valve switch, but I doubt that's the problem. Several other sites have the same setup with no problem. I tried to get the program from another working site, but the controller was password protected. :(
 
Sorry, here's a better attempt at my reconstruction in the simulator:

I still can't get the T5 timer to reset, though.
In plcsimulator.online, the .R attribute of timers is not used for TON and TOF timers; see here: - YouTube

The only way to reset a TON timer is to make its feed rung be False; in this case we do that by putting an NO contact, with X22 as its operand, ORed (in parallel with) an NC contact on X24 (pump running feedback), on the feed rung to T5.

The NC(M27) resetting T5 when M27 value is 0 is irrelevant, because if M27 value is 0, then Y0 value must be 0 (first rung), and when Y0 value is 0, then T5 will be reset. So the entire third rung can be removed once the [NO(X22) OR NC(X24)] are added to the feed rung of T5.

 
Sorry, here's a better attempt at my reconstruction in the simulator:
Also note that the NO(X2) is not needed on the feed rung to T5: if X2 value is 0, then Y0 must be 0 (first rung), which means the NO(Y0) on the second rung will set the T5 feed rung state to False before the NO(X2) is even evaluated.
 
Also note that the NO(X2) is not needed on the feed rung to T5: if X2 value is 0, then Y0 must be 0 (first rung), which means the NO(Y0) on the second rung will set the T5 feed rung state to False before the NO(X2) is even evaluated.
Here is your code with T5 as a TONR, so the coil writing to T5.R will reset T5.


However, since T5 is a TONR, an expired T5 cannot reset until M27 value changes to 0, after which Y0 then cannot start until M27 value changes back to 1 so momentary M74 value can restart Y0.
 

Similar Topics

Hello all, I am currently doing a project for a client. Where they want a custom claw machine built and programmed. The ask is for there to be...
1
Replies
3,230
Views
Hey guys, I recently had to change out an old eaton drive from our WWTP with a newer DG1 Eaton drive. I had to install a DXG-Net-Device net...
10
Replies
4,887
Views
Good morning to you all , has been a while since I visited here last and am finding I need all your help once again I have a Eaton 512 AC-RC...
3
Replies
2,088
Views
I have a MPC1C10 unit and a MPC1P10 programmer. This unit is password locked and the only help the manual can give me is "Enter the password per...
2
Replies
3,382
Views
Hi there, We have a German machine with an Eaton XC-202 plc. I purchased the X-soft CoDeSys software and XT-SUB-D/RJ45 cable for programming...
3
Replies
5,618
Views
Top