Keyboard Function key mapping with memory tag

How can we map a keyboard function key F1, F2,......F12 on a memory tag of ignition and then to write in PLC tag? Tag of boolean type. I want to use these function key as push button. 1 when pressed 0 when released.

1 Like

This is the definition of a "momentary pushbutton". Using keyboard press/release to implement this won't be any more reliable than using a button component's mouse press/release events.

There are continuous messaging techniques that can make a button component highly reliable within Vision, but those require back-checking the mouse status while messaging. Such would have to be figured out for keyboard events across the entire client.

More reading:

https://forum.inductiveautomation.com/search?q=momentary%20button%20stuck%20order%3Alatest

TL/DR: Don't do this. Use a different paradigm to control your process, even if you must change PLC code to do it.

3 Likes