Push Button on Siemens web server using html

XxLinkxX

Member
Join Date
Oct 2015
Location
Hyrule
Posts
86
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.
 
https://www.dmcinfo.com/latest-thinking/blog/id/8567/siemens-s7-1200-web-server-tutorial--from-getting-started-to-html5-user-defined-pages

The above link should help you out.

You will have to read the current state and then use the submit button as a trigger to turn it off/on.

Regards,

Thanks GCl for responding, I was on that site earlier and learned quite a lot. I basically used the code twice. One to turn it on and than off like you said. It works so far. Now im trying to figure out how to hide some buttons. Which is now off topic relating to PLC. :p
 
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.
Dear Friend. Do not tell me which way you managed to solve your problem ?
Thanks for your help.
 
Hi

Hi
Im just wondering if you can post a solution for button trigering a switch in step 7 becouse im really strugling to get it work in html.
 

Similar Topics

Hello Siemens experts please help me to Configure PP17 panel on Ethernet network in S7-300 CPU315 2PN/DP. I have "S7-300 CPU315 2PN/DP" and...
Replies
0
Views
2,121
Q
Hello All, I'm struggling with a easy task! I wish to create a simple pushbutton using Siemens TP Designer for a Siemens TP070 Touch Panel...
Replies
0
Views
7,400
qeeplc
Q
FactoryTalk View ME running on PanelView Plus 7, connected to Compact GuardLogix 5380 PLC Customer is asking for a physical push button to be...
Replies
6
Views
180
Looking for some help ! I need to change an inverters frequency using two speed steps. The operator uses a momentary push button. So first press...
Replies
8
Views
1,382
Hello all, I'm currently working on a project where I need to have a reset in place on my HMI (PanelView Plus 1500 for reference) to put my...
Replies
5
Views
1,422
Back
Top Bottom