Multi touch, phone style keypad

cribby546
2019-05-14
2019-07-04
  • cribby546 - 2019-05-14

    Hi I am wonderingwhat is the easiest way to create a button, that when pressed once goes to 2, second time A third B, fourth time C. Thus is for a phone key pad style touch screen setup. I want to use the existing mechanical/ virtual touch buttons on the sides of a HMI screen to use as phone style key pad for entering the password. I am trying to add it to am IFM CR1201 screen.

     
  • RoryLDM - 2019-07-04

    Make the text a text variable. Then every time they push the button at increments a counter and then make a little function block that outputs a string that changes based on the number imputed, 0-3. Count 0 is default, count 1 is 2, count 2 is A, count 3 is B.

    Then you might want to wrap all of that into another function block for easy readability and reproducibility.

    I'm not sure if that's the best way but it would definitely work.

     

Log in to post a comment.