News:

  • August 22, 2026, 12:52:11 PM

Login with username, password and session length

Author Topic: Output staying on  (Read 6381 times)

mhw

  • Hero Member
  • *****
  • Posts: 250
Output staying on
« on: May 25, 2018, 03:47:07 PM »
I have a T1H-DM1E that has some bit level custom memory types. These are being used in multiple out statements, in separate ladder programs, with pointers. One program will use PumpAuto(V0) and another program will use PumpAuto(V8). V0 and V8 will never have the same number. Everything works unless both programs terminate on the same scan. This only happens when the "stop all"(X0) button is pushed. Then the out statement with the V0 does not go off. These programs have stages and there is a jump out of the stage that has the OUT statement. This behavior was not expected by me. How about you?
This program has been working since 3/2016. The problem came to light because when one of the pump VFDs started it will cause X0 to come on. I don't know why. A filter on the input of the VFD seems to have fixed that problem. However if someone hits the stop all button while both are running it will still cause the problem.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3843
    • Host Engineering
Re: Output staying on
« Reply #1 on: May 25, 2018, 04:07:36 PM »
Realize that the termination logic for an OUT PumpAuto[V0] to turn it OFF occurs on the NEXT PLC SCAN.  Hence, your V0 value must remain constant from the scan when the stage/program terminates to the NEXT PLC scan.  It will turn OFF OUT PumpAuto[V0], but what is V0 on that next scan?

Does that possibly explain the anomaly?

mhw

  • Hero Member
  • *****
  • Posts: 250
Re: Output staying on
« Reply #2 on: May 25, 2018, 05:01:43 PM »
Thanks for the quick response. I'm not sure if that is what is happening, but it makes sense. I put some RSTR in to clear all the bits when the stop all button is pressed.