Trout914 (Customer) asked a question.

Problem resetting a timer

Hello All,

I am running a Productivity 2000 and a Cmore EA9-T15CL-R. I did an update on the Cmore and PLC and now my reset buttons only work when the system is off.

I work with filtration systems (Named A-Z), each system can be enabled (turned on) at the hmi. Once a system is enabled we start to monitor Amps, PSI, temperature as well as controlling water change cycles and feeding cycles. As you can see the interval and duration of the feed and water change parameters are controlled by inputs from the HMI. With out the reset button working I can not reset the parameters if the set point has already passed. So the system is up and running On is selected enabling the scan of the system specific code. Timers are set and good to go. Now we decide we need to change the frequency of the feedings, we change it on the HMI, it updates in the PLC timers, but because the timer has already counted past that point it never feeds. Pressing the reset button on the HMI should manually reset the timer and all would be good. And it did use to do this. After an update some time ago the reset button only toggles if the specific system is disabled or turned off at the HMI.

 

Any thoughts, questions, comments?

 

Thanks All,

 

Peter


  • Durallymax (Customer)

    For a system like this, where everything is basically the same, structures are very useful. If you made these elements part of a structure, made an array of that structure and instantiated each in their own task, you'd just have to make a single change to the structure and every instantiation would be updated.

    Selected as Best
  • Durallymax (Customer)

    You're using the same tag for the reset PB on the HMI as you are in an out coil elsewhere in the program. Sometimes this works, other times it does not and is hard to debug. Use different tags.

     

    It's also all inside a Run When Called task, and will not function unless that task is called.

  • Trout914 (Customer)

    Durallymax,

    Thank you, I wondered about that since I read somewhere it could cause problems. Seems weird that it is not more consistent. I guess best practice would be to use different tags to start with. Now I just have to figure out how to change all those tags........ fun.

     

    Thanks,

    Peter

    Expand Post
    • Durallymax (Customer)

      For a system like this, where everything is basically the same, structures are very useful. If you made these elements part of a structure, made an array of that structure and instantiated each in their own task, you'd just have to make a single change to the structure and every instantiation would be updated.

      Selected as Best
  • Trout914 (Customer)

    OK, Yes I tried structures originally and just like the naming better this way. Certainly structures are the better way.

    Just for my own edification if I only had one system say "System A", could I just rename the coil and add it to the reset line as a parallel contact?

     

    Something like this: