adccommunitymod (AutomationDirect) asked a question.

CLICK Counters

Created Date: September 08,2017

Created By: durallymax

**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****

Working on my second CLICK project that involves counting sensor pulses from a cable winch to determine position. Currently hoping there is a way to do this with a single sensor and the correct logic. I can easily set a counter for the "Up/Raise " and "Down/Lower " however if someone is to hit the stop button in between and then reverse the direction I would run into issues. What would be a good way to write this program? I assume it would need to store and compare the counter value based on which button is pressed? Or will I need to do this with two sensors so that it can determine rotation? I do have a hard reset via limit switch for when the winch reaches the very top. Thanks.


  • adccommunitymod (AutomationDirect)

    Created Date: September 08,2017

    Created by: durallymax

    Working on my second CLICK project that involves counting sensor pulses from a cable winch to determine position. Currently hoping there is a way to do this with a single sensor and the correct logic. I can easily set a counter for the "Up/Raise " and "Down/Lower " however if someone is to hit the stop button in between and then reverse the direction I would run into issues. What would be a good way to write this program? I assume it would need to store and compare the counter value based on which button is pressed? Or will I need to do this with two sensors so that it can determine rotation? I do have a hard reset via limit switch for when the winch reaches the very top.

    Thanks.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: September 09,2017

    Created by: Ridgeline Mach

    Like this? { "data-align ": "none ", "data-size ": "full ", "data-attachmentid ":107975}

  • adccommunitymod (AutomationDirect)

    Created Date: September 09,2017

    Created by: kewakl

    How fast is this winch going to activate the sensor (pulses)? Does this CLICK have anything else to do?

  • adccommunitymod (AutomationDirect)

    Created Date: September 09,2017

    Created by: kewakl

    Like this? { "data-align ": "none ", "data-size ": "full ", "data-attachmentid ":107975}

    Hey Todd, I can post/attach again.

    gotta wait 13 more seconds to post again, so I'll type a bunch of garbage in to waste that time!

  • adccommunitymod (AutomationDirect)

    Created Date: September 09,2017

    Created by: Ridgeline Mach

    Awesome!

    Oops, 10-character rule.

  • adccommunitymod (AutomationDirect)

    Created Date: September 09,2017

    Created by: Ridgeline Mach

    I like this one better. I don't know why I thought interlocks were a good idea.

    Edit:

    Kewakl has a point; how fast will you be sending pulses to the Click? Depending on the frequency, the Click "may " miss some pulses. If the Click is too slow, the BRX plc is your next best bet.

    - Todd

    { "alt ": "Click image for larger version Name:\tDurallymax1.jpg Views:\t1 Size:\t163.1 KB ID:\t107982 ", "data-align ": "none ", "data-attachmentid ": "107982 ", "data-size ": "full "}

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: September 09,2017

    Created by: Ridgeline Mach

    Based on your response, I coded the attached.

    I don't think what your asking is troublesome. I have a pool cover I'd like to do the same to, as the manufacturer had a less than robust control set-up.

    - Todd