# How to implement "Momentary Button" function in Perspective View

**URL:** <https://forum.inductiveautomation.com/t/how-to-implement-momentary-button-function-in-perspective-view/39103>\
**Category:** Ignition\
**Created:** [September 28, 2020, 5:11am UTC](https://forum.inductiveautomation.com/t/how-to-implement-momentary-button-function-in-perspective-view/39103 "2020-09-28T05:11:19Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 6, 2024, 9:45pm UTC](https://forum.inductiveautomation.com/t/how-to-implement-momentary-button-function-in-perspective-view/39103/10 "2024-03-06T21:45:05Z")

</div>

> [@ftuquabo](#):
>
> repeating message verification?

The technique uses a fast timer tightly bound to the button in the UI to check and send "I'm still pressed" messages through the full comms path, with a PLC timeout catching any hiccups to release the button. Also requires some metadata to prevent re-activation if a UI script stalls and resumes.

Perspective cannot do this because its scripts run in the gateway, not in the UI. It might be possible to do with javascript in a custom Perspective component, but I haven't figured out how, and nobody else wants to touch it with a ten-foot pole.

For Vision, my EtherNet/IP module offers a Momemtary I/O Button, that pairs with a class 1 Host device in adapter mode (typically). It does the tight-coupled messaging internally from Vision Client to gateway, and relies on class 1 I/O status automatic monitoring in PLCs. Class 1 I/O is also a repeating message technology, and PLC provide native monitoring of connection/module status.

Latest:

> [@Automation Professionals' EtherNet/IP Communication Suite V2](https://forum.inductiveautomation.com/t/automation-professionals-ethernet-ip-communication-suite-v2/68190):
>
> Automation Professionals is pleased to announce its latest EtherNet/IP Communications Suite driver module, a major upgrade to its EtherNet/IP Class1 Communications module, as a Public Beta. As of April 15, 2023, this is now a Production Release. The primary new feature is its new Generic EtherNet/IP Client Driver, a drop-in replacement for IA's Logix V21+ driver and its Omron NJ/NX driver. It does work with older Logix processors, and also works with Rockwell's MicroLogix 8xx family (ethernet…

Older description of the technique one would use here:

> [@Snappy user interfaces with the Ethernet/IP Module](https://forum.inductiveautomation.com/t/snappy-user-interfaces-with-the-ethernet-ip-module/12617):
>
> Automation Professionals [Ethernet/IP Class1 Communications Module](https://www.automation-pros.com/modulesales.html) has been in beta for a few months with no recent issues. A release to production use is approaching soon and I thought I’d share a test project and its matching PLC code I’ve been using to exercise the module’s base features. In the simplest setup, this driver presents a virtual I/O chassis to to the outside world, populated with up to 100 virtual I/O modules – I/O modules that also appear to be ControlLogix processors with user…

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-to-implement-momentary-button-function-in-perspective-view/39103)._
