Hello everyone,
I needed some help with my html script. I basically want to create a push button that would toggle an input on (give it a value of 1) while the button is pushed. When released it will toggle it off( give it a value of 0). Here is what I have tried (I think I'm close):
<form>
<input type="BUTTON" value="push button"> <input type="hidden" name='"DataBlock_DB".pushbutton' OnClick ="1">
</form>
Im not sure if I should use submit or button for this particular task.
Also note this is used with the siemens web server on the S7 1200 plc. Thanks for your help.
I needed some help with my html script. I basically want to create a push button that would toggle an input on (give it a value of 1) while the button is pushed. When released it will toggle it off( give it a value of 0). Here is what I have tried (I think I'm close):
<form>
<input type="BUTTON" value="push button"> <input type="hidden" name='"DataBlock_DB".pushbutton' OnClick ="1">
</form>
Im not sure if I should use submit or button for this particular task.
Also note this is used with the siemens web server on the S7 1200 plc. Thanks for your help.