Wonderware Intouch Scripting - Keyboard Input

jme

Member
Join Date
Jan 2019
Location
Denver, Co
Posts
2
I am looking for a way to capture keyboard input data and store it in a tag. Something like ‘MessageTag = System.In.NextLine();” From there I can parse the string and use part of it for a lookup. Using InTouch 10.1.301

I have a keystroking badge reader I’d like to use for logins. Here’s the first order idea:
- The reader inserts characters before the badge ID which call a key script.
- Take the remaining data from the input and store it in a tag
- Pull the ID number from the tag and use it as a parameter to a QuickFunction that looks up a username and password and returns those values
- Then set the $OperatorEntered = username & $PasswordEntered = password

Any thoughts on storing the ‘keyboard’ input in a tag or the overall agenda would be appreciated.
 
I use a lot of the RF Ideas units that do USB keyboard emulation.
I set the string to have a Control-F12 and Control-F11 keys as the preamble. Then in Wonderware I setup a Control-F12 key script to pop open a small window that's below the screen line. On that window the is a text entry field activated by the Control-F11. Then when that text entry field tag is <> "" it then clears the tag and then calls the quick function to login (if logged out) or logout (if logged in) that person.


The little popup screen is only seen for a split second at the bottom of the current screen.
 
Last edited:
That makes sense. Is there a built-in function for highlighting the entry field? I tried {TAB} etc. With no success.
 

Similar Topics

Hi guys, I have experience with PLC to Excel etc...just starting on using intouch scada screens. I have an Excel sheet that uses mainly...
Replies
1
Views
128
Hola chicos. Tengo un problema con el driver de comucicacion dasabcip 5, y un plc controllogix v34, ya realice la comunicacion pero en ciertos...
Replies
2
Views
144
Hi, I am upgrading a Wonderware SCADA form version 9.5 to version 23. I am able to migrate all the graphic, but when to activate the runtime this...
Replies
8
Views
391
Hi all, I am using OI.GATEWAY.2 to communicate to the PLC using an OPC UA. I can see the tags using an OPC explorer connecting to the...
Replies
0
Views
168
For a while, I have been working with InTouch 10.1. The problem I am currently facing is the need to implement certain functions that do not...
Replies
0
Views
472
Back
Top Bottom