JordanJ (Customer) asked a question.

Push button with dynamic text

I'd like to have a push-button that has dynamic on/off text. Alternatively, a Dynamic Text that triggers an event when pressed.

 

I can't seem to find any objects that support this; is this possible? If not natively possible, might there be some way to hack it together with multiple objects (e.g. an invisible push button laid over a dynamic text)?


  • Matt Pawlak (Customer)

    If memory serves, you can put text or other objects on top of a push button and the push button will still work.

  • Cap (Customer)

    This gets Long Winded..

     

    I needed this for an On OFF Auto Display button.. If you hunt back through my Created Posts, you can find the Source Poster about this.. It was not Me, but I have used this Information from the Time I learned it..

     

    Originally I was using the 205 Series PLC ( and 05 / 06 ) then I transposed this over to to BRX..

     

    This was all done in C-More EA9..

     

    I make a Layered Button, that has the Bottom Object as an " Increment/Decrement Value" Push Button in the C-More.. Use 'Option Style 1' as its just a Push Button, then it will only Increment in Value.. I have a Loop in the PLC Running that understands the Numbers, and if the Number has Incremented too High, it will bring it back to Zero..

    In the BRX/205 PLC I have the Tag referenced to a V Memory Location associated with that Button. I'm Using Nicknames of "Selector(1)" through "Selector(64)".. this gives me 64 Different Hand Off Auto Buttons..

     

    Directly on top of the Inc/Dec Button, and the Same Size is a " Multi State Bit Map" Display, with a Tag Reference to the Same V Memory as the INC/DEC Button ( Selector (1)-(64))..

     

    In the Properties for the Bit Map Button I have Chosen a Rectangle Series of Buttons that range.. RED..Green..Yellow.. and BLUE..

    Red will be displayed if the referenced V Memory is 0

    Green Will Be Displayed if Ref is 1

    Yellow will be Displayed if 2

    Blue will display if 3..

     

     

    You can Make your Own Bit Map Graphic in Paint ( or other Program ) save as BMP File and load that into your Bit Map Files, and Choose from them..

     

    In My Application, I have the "Selector Number" ( Which will be 0/1/2/3 ) reference a set of C-bits that are Labeled, Hand1 through Hand64, Auto1, through Auto64.. I did not have an "OFF1-64" bit, as I excluded if I'm Not Hand, Not Auto, then I'm Off..

     

    It was weird Logic, but It's all written Now, and I'm Not Changing it..

     

    My Hand Off Auto Logic for 1-32 Locations comprises about FOUR Bit Number Operations on a 32 Bit Word that figures out from the On/Auto Bits, and the Requested Bit from Program ( GY0-Gy32 ) as to if the Output Bit is Forced On, Forced Off or Allowed to Follow the GY Selection of the Output..

     

     

    It's a lot to grasp.. And I've actually got Displayed Text that is Triggered by the /On/Auto Bits that show on top of the Colors..

     

    The 'Blue Display' was for the 'Timer Function' so I could force the Output to run against a timer feature in Software.. I think I outsmarted myself on that one.. as I thought I wanted it.. Spent the Time and Memory to get it to work.. Then never used it.. But Its there..

     

    Cap

    Expand Post
  • Durallymax (Customer)

    Build your own, Dynamic text objects can have a translucent background. Write to the Dynamic Text tag in the PLC based on your events. Place dynamic text in front of your pushbutton.