Insert the following script into the Function node.
Where:
Input1 = instance tag of the block
set = action to perform
level = attribute to control
1 = channel of the block
msg.payload.Value = the variable value received from the touch panel
msg.payload = "Input1 set level 1 " + msg.payload.Value;
return msg;