Ageedog (Customer) asked a question.

Click Plus Programing question

I am new to programing and i need some help with a way to write an adjustable countdown timer. I am using a C-more EA( and a Click PLus PLC. i created a button on the touchscreen so we can enter timer value setpoints. I don't know how to set up this button to alter a countdown timer in the plc program. I could set up multiple timers and make a recipe schedule in the touchscreen so the operator can choose the time from a list. What i would like to do is have the operator select time on the touchscreen and change one timers setpoint in the plc. Has anyone done this before?


  • Todd Dice (Customer)

    Assuming your "Start" input is enabled by a maintained switch, create a keypad object in the HMI and the address it would edit is DS1. Eliminate timer T2 and instead have a N.O. contact T1 connected to an output instruction where the address of the output is the one your horn/strobe is wired to.

    Selected as Best
  • bcarlton (Customer)

    You have have two questions here. How to make a countdown timer and how to make it adjustable.

     

    Since the timer's accumulators are counting up you must subtract the current accumulator value from the set point value to get the number of remaining counts.

     

    As far as adjustability, the set point can be a constant or it can be the contents of a DS register. Simply provide the address of a DS register as the set point then adjust its value from the HMI.

    Expand Post
  • PatDaly (Customer)

    Sounds like what I am doing with one. This is the rung from my program with one such timer. Basically you set the time value in the HMI and it passes it to the PLC. Whenever you change the HMI, it puts the new value to the PLC. I haven't noticed much delay in the new value being instituted, but my program is relatively simple and scan times must be fast,

     

    If you don't understand, let me know and I will try and help

     

    hmi delay rung

    Expand Post
    • Critter175 (Customer)

      I have a question. Where are u getting CT1 from

      • PatDaly (Customer)

        Is that question directed to me? I don't show a CT1, but if you meant CT2, it is a related counter earlier in the program that counts prox switch pulses to determine 1 full rotation of the wheel, the completion of the rotation invokes the run over weld timer, which is what the HMI gives the value for, in my case I specified DS1.

    • Critter175 (Customer)

      This is what I am looking at, all I want is to have a circuit that can adjust a timer with an HMI, and turns on a horn and strobe when the timer is complete. Any and all help would be extremely appreciated. Thank you all in advance

      • 83427F24-AB76-4CF8-9D99-564643B94D16
      • Todd Dice (Customer)

        Assuming your "Start" input is enabled by a maintained switch, create a keypad object in the HMI and the address it would edit is DS1. Eliminate timer T2 and instead have a N.O. contact T1 connected to an output instruction where the address of the output is the one your horn/strobe is wired to.

        Selected as Best
10 of 13