Jump to content

Keypad, Buttons, and Numeric Variables


Recommended Posts

 I need to be able to open the Keypad with a Button ( not touching the Numeric Variable) and store the keypad value in an MI where I can use it later in the program. 

I need this because , depending on a switch setting, I need a Numeric Variable to:

                  If Switch  = "0" (System Automatic Mode )  then show value from an Analog Input.

                   If Switch  = "1" (System Manual Mode)  show the MI storing the keypad entered value. 

I can do the switching, I just need to know how to open the Keypad with a button.

Thanks - 

 

Link to comment
Share on other sites

  • MVP 2023

I don't believe you can open the keypad without referencing a numeric variable because the input from the keypad must have a place to go. However, you can accomplish what you wish easily enough. Just copy the analog value into the numeric variable when switch = 0 and disable it. When the switch = 1, then re-enable the variable to allow keypad input.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.