• Not Answered

Momentary Button Required

Hi to All,

In Delta-V, do we have a "Momenty Push Button" option...??

I have found the "Toggle Button option", but couldn't Momentary.  Anyone have some idea.?

Thanx

7 Replies

  • If you are referring to the graphics, no there isn't a momentary push button option that people would traditionally think of.

    You can have a button that you write VBA code to do something on the MouseDown Event (i.e. set a parameter True) and then write more code on the same button for the MouseUp Event (i.e. set the same parameter False) which would act like a field pushbutton.

    Hope this helps.

  • In reply to Matt Stoner:

    You can also use any Bitmap and set the "ButtonStyle" property to "BitmapButtonPush"

  • In reply to Roman Kostuniak:

    Student,

    Roman's Youtube presentation is one way, and looks pretty good.  You have to ensure that the control logic is not left in an On State if the communication between the workstation and the controller is interrupted.  The control module execution scan rate must be taken into consideration.  Also, you will typically have multiple workstations and you need to have a solution that is robust.

    So you need handshaking between the initiating action (VBA Pushbutton wirte) and the actual logic of the control module.  With Roman's example, the VBA initiates the momentary signal.  The module can run at 100 ms or 10 seconds, and will "see" the request on M_ON to trigger the logic.  The Module resets the initiator to confirm to the workstation that the action has been initiated.

    If you simply wrote VBA code to trigger the controller value on then off, you might trigger the parameter on and then off inbetween module exeuction and the module would miss it.  You could leave the "button" left ON if the VBA code was interrupted or failed in some way to reset the value. Finally, you do not have good control of the duration of the push button.  Having the timer in the control module ensures that once triggered, the pushbutton behavior will be predictable, and guaranteed.

    Andre Dicaire

  • In reply to Andre Dicaire:

    You have to think what if operator decides moving to other picture aftef pushing the button but before time of momentary pulse elapses.

    As Andre says, pulse logic has to be in deltav controller.

  • In reply to gamella:

    I prefer to handle things like this in control module (thus in the controller, rather then through VBA). You can send a variable (to which you are writing to using a VBE toggle) through a NDE and PDE in parallel, then OR-ed and pulsed to get the desired fuctionality

  • In reply to marko.dragojevic:

    "You can have a button that you write VBA code to do something on the MouseDown Event (i.e. set a parameter True) and then write more code on the same button for the MouseUp Event (i.e. set the same parameter False) which would act like a field pushbutton."

    The "while pressed function" works better.

    Niklas Flykt 

    Klinkmann Oy

    Key Account Manager safety products

    nikfly@gmail.com