adccommunitymod (AutomationDirect) asked a question.

C-More Micro Radio Buttons (Touch Screen)

Created Date: October 03,2007

Created By: Engineer2112

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

How would I go about this? Let's say I have a 3 position valve. I would like to have 3 buttons in a row (representing each of the three positions). When one button is pushed, the other two go off. Kind of like a three position toggle switch. I thought this functionality was built-in but I may have been mistaken.


  • adccommunitymod (AutomationDirect)

    Created Date: October 05,2007

    Created by: HMI Eng

    It is built-in to the C-more Radio Button object, but C-more Micro does not support this object. It can be accomplished using 3 pushbuttons and logic in your PLC, assuming you are connected to a PLC.

  • adccommunitymod (AutomationDirect)

    Created Date: December 29,2008

    Created by: Tubecut

    Radio Buttons - C-More Micro

    Any example PLC logic that can be posted?

    I have a similar requirement as well.

  • adccommunitymod (AutomationDirect)

    Created Date: December 29,2008

    Created by: bcarlton

    Try this as a fragment:

    PLC 05

    // Rung 1

    // Address 0

    #BEGIN COMMENT

    "Create a three button radio. On any bit turn on clear the other two. Make sure this is at the "

    "top of the program before any of the bits are used to control other functions. "

    #END

    STRPD C0

    RST C1 C2

    // Rung 2

    // Address 3

    STRPD C1

    RST C0

    RST C2

    // Rung 3

    // Address 6

    STRPD C2

    RST C0 C1

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: December 29,2008

    Created by: Tubecut

    OK, I will give this a try. I usually shy away from the SET/RST instructions ;) and use latched bits. I am sure that I can use the latch bit scenario or just stick with your example.

    I forget about the SET/RST can handle a range of bits, worked great.:)

  • adccommunitymod (AutomationDirect)

    Created Date: December 29,2008

    Created by: Tubecut

    Well I tried out using internal control bits and everything works as expected.

    However, when using the C-More Micro Indicator Button objects, it doesn't work. I have the Push Button Tag and the Indicator Light Tag set to the same address (C30 in this case). If I use DataView to activate the bit, it works as expected.:confused:

    I am not sure what the HMI is doing as the PB are set as momentary outputs.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: December 30,2008

    Created by: bcarlton

    Try changing the buttons to a 'set on ' mode. The logic will take care of zeroing out the ones you didn't push.

    The important thing to realize about an HMI button set as a 'momentary '. The HMI must do TWO writes. One when you push the button, Another when you release the button. If anything gets screwed up in this process everything goes haywire.

    I, in my unformed days (last Tuesday), set a momentary which was recognized in the PLC program as a request to change screens. Unfortunately, the screen change took place before I had released the button so the HMI logic never looked for a reason to turn the bit back off. So I was stuck with a turned on bit.

    I also take care to group all the bits that the HMI modifies into 16 bit groups and NEVER let the PLC program modify those groups. Similarly, any bits which the PLC modifies are ONLY READ by the HMI.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: December 30,2008

    Created by: bcarlton

    Try changing the buttons to a 'set on ' mode. The logic will take care of zeroing out the one you didn't last push.

  • adccommunitymod (AutomationDirect)

    Created Date: December 30,2008

    Created by: a agnone

    I am not sure this would help, but what I do is use the PLC-To-HMI v-memory and HMI-TO-PLC v-memory to confirm screen changes. For instance LD K1 on V2000 then wait to see confirmation by the HMI on V2001 before I allow the program to continue. Since I have used this method I have never had another problem with hay-wire behavior.

  • adccommunitymod (AutomationDirect)

    Created Date: January 02,2009

    Created by: HMI Eng

    I created a C-more Micro Project with 3 Momentary Pushbuttons. I used C1, C2, C3 for the Pushbutton and Y1, Y2, Y3 for the Indicator and used the attached logic. (See attached JPG) This was done in a Click PLC, but should be easily implemented in a DirectLogic PLC.

  • adccommunitymod (AutomationDirect)

    Created Date: January 02,2009

    Created by: Tubecut

    Thanks HMI ENG. I had a clue from Bernie and went from there. I had six Push buttons and everything worked out great. I can post that bit of logic if there is any interest.

    I was able to use the C30 -C35 bit for b0th the button and the indicator.

    The trick seemed to be using the SET/RST instructions as they allow a range of bits to be specified in the SET/RST functions.

    I usually shy away from using the SET/RST instructions but in this case it was a lot easier to implement the code.

    Thanks HMI ENG and also thanks to b_carlton. :D

    Expand Post
10 of 11