adccommunitymod (AutomationDirect) asked a question.

Click, Double Click and Triple Click

Created Date: August 13,2015

Created By: trellend

**** 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.****

Click PLC http://snag.gy/wS9u5.jpg 1 click on X1 turns on Y5 2 clicks on X1 turns on Y6 3 clicks on X1 turns off both. Critiques are welcome, customer asks for multi functional buttons. Rung 4 was not needed, left over from testing. In application, 1 click runs the ram through a cycle of forward, and back. 2 click runs it forward to limit and stop. 3 clicks runs it backwards to limit and stop (imagine obstruction). They want all the single button controls like this.


  • adccommunitymod (AutomationDirect)

    Created Date: August 14,2015

    Created by: Adisharr

    Looks like it will work fine. For me, I tend to rarely use counters. I like directly increment / decrementing memory locations but that's just a personal preference.

    You'll find many do not like using SET on outputs directly. For a program this small I don't see any reason it would be a problem.

  • adccommunitymod (AutomationDirect)

    Created Date: August 15,2015

    Created by: trellend

    I noticed that.

    I guess it gets complicated if there are a bunch of sets and resets on a bunch of different outputs. In my case (it's a modified example), each click 1,2,3 just sets a memory bit, there is no reset in this. Memory bit starts a process in another subroutine.

  • adccommunitymod (AutomationDirect)

    Created Date: August 19,2015

    Created by: Ridgeline Mach

    You can try this. Just using a math function and compares to operate the outputs.

  • adccommunitymod (AutomationDirect)

    Created Date: August 28,2015

    Created by: dumpsta

    I guess it gets complicated if there are a bunch of sets and resets on a bunch of different outputs. In my case (it's a modified example), each click 1,2,3 just sets a memory bit, there is no reset in this. Memory bit starts a process in another subroutine.

    If you look at old electrical diagrams for machines using ordinary relays, you'll see that a latched circuit is used many times where you would probably use the "set " instruction.

    I work with an older co-worker who used to wire machines pre-plc and he always uses latched "out " instruction instead of set.

    There are some machines with old plcs here that don't even have a set command

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: August 13,2015

    Created by: trellend

    Click PLC

    http://snag.gy/wS9u5.jpg

    1 click on X1 turns on Y5

    2 clicks on X1 turns on Y6

    3 clicks on X1 turns off both.

    Critiques are welcome, customer asks for multi functional buttons.

    Rung 4 was not needed, left over from testing.

    In application, 1 click runs the ram through a cycle of forward, and back. 2 click runs it forward to limit and stop. 3 clicks runs it backwards to limit and stop (imagine obstruction). They want all the single button controls like this.

    Expand Post