If you are looking to define a tags value through the use of button, then one method would be to use a push button, to set a new digital HMI tag.
Then when the memory tag is high, use a macro to write the value into the tag destination and reset the digital HMI tag.