ajsteinm Posted October 31, 2012 Report 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
MVP 2023 Flex727 Posted October 31, 2012 MVP 2023 Report 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
Damian Posted October 31, 2012 Report 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
ajsteinm Posted November 6, 2012 Author Report Posted November 6, 2012 Thanks for the tips. I did not know about the ASCII keyboard.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now