AML (Customer) asked a question.

How to store data from voltage module so I can then check to see that voltage is rising?

I tried copy / store command - DF1 voltage input to DS2 register.


Garry likes this.
  • Garry (Customer)

    Hi AML,

    A couple of things to keep in mind. You must limit your comparison so that you are not reading noise.

    You must set up a time frame to look at the voltage input to see if it is rising.

    Example:

    Analog input 0.0 to 10.0 volts = 100.0 to 0.0 in DF1

    Click Analog Risising 2The first rung will use the math instruction to limit DF1 to one decimal digit. You can experiment with this to filter out the noise.

    The second rung is the timer. This sets up how often you want to check the analog input for a change. In my case, I am using 1 second. (1000 ms) This is a self-resetting timer.

    The third rung will compare to see if DS1 is greater than DS11 when the timer bit is on. (Every second) If it is then output Y1 is set indicating the voltage is rising. If DS1 is less than or equal to DS11 then output Y1 is reset.

    The fourth line will copy DS1 into DS11 when the timer bit is on. This will set up the next comparison.

     

    I hope this helps you out.

    Regards,

    Garry

     

    https://accautomation.ca/series/click-plc/

    Expand Post
  • kewakl (Customer)

    I do this all the time. What Garry posted will get you on-track.

    Using Garry's snippet and a little math, you can also calculate voltage rise/fall over time.

    I do it a bit differently than what Garry posted, but I usually monitor 100 voltage and 100 current channels at a time -- on a P3 rack.

     

  • AML (Customer)

    Thanks to everyone for the quick reply. I used the copy command.. but I wasn't using "integers".

     

    Works great now.

    • Garry (Customer)

      You are welcome. Thanks for the follow-up.

      Garry