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.

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

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