ajsteinm Posted October 31, 2012 Report Share Posted October 31, 2012 I'm looking for tips on how I can allow an end user to change a text box from the PLC. My program has a system name on the top of the HMI as a text box, currently "SYSTEM 1". I would like the user to be able to change this to anything they would like. Ex: "TOP SYSTEM", "BOB". Currenlty, the only way I can think to do this would be create a numeric data table which assigns each letter a number, then let the user enter the numeric, and have the program convert the numeric to text. Ex: If A=01, B=02, C=03... Z=26, [space]=27 User inputs: 021221052713010308091405 Program Outputs: BLUE MACHINE Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted October 31, 2012 MVP 2022 Report Share Posted October 31, 2012 This is very simple - just use the ASCII String Variable for input and display. It allows input as ASCII text and stores the data in a MI vector (2 charactors per MI). 1 Quote Link to comment Share on other sites More sharing options...
Damian Posted October 31, 2012 Report Share Posted October 31, 2012 Why not simply make it a String Entry field? You can also hide a string entry field on some other config screen that allows them to enter the string. That string will point to a location in your string library. Then your text field would also point to that same spot in the string library. 1 Quote Link to comment Share on other sites More sharing options...
ajsteinm Posted November 6, 2012 Author Report Share Posted November 6, 2012 Thanks for the tips. I did not know about the ASCII keyboard. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.