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

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...