How to make Momentary Switch in HMI?
Learn more from the full course
Learn Siemens S7-1200 PLC & HMI from Scratch using TIA
Learn wiring, programming and Installation of S7-1200 PLC & HMI with Siemens TIA- Total Integrated Automation Software
18:45:56 of on-demand video • Updated November 2024
Learn how to communicate PLC with PC using Siemens TIA
Learn how to convert standard circuits to PLC Circuits
Learn fundamentals commands of Siemens S7-1200 in TIA
English
Alright, so let's see how we can
create a push button now. You can see that in this element
section we don't have a push button specifically we have
switch, bar, date, this is like graphics, symbolic button, an
IO. So we will use a normal button element here. Alright,
now this button can be assigned to various different functions.
So let's first rename this button and name it as "Start"
Okay. Now you have to double click the button and you will
see its properties here, right in the properties you will see
there is no tag tag option alright, unlike the switch
button, there is no tag option. So what you can do is you can
just go to the events of this button. Now in the event of this
button you'll find click alright, you'll find press,
release, activate. So let me take press so when we press the
button so here I can add some function and the function I
would write "set while key pressed" alright because the
push buttons are the momentary button says you have to turn on
something when it is pressed, not when it is released. Okay,
so cick this function, and here you have to give the tag now,
now you have the tag option. So typically go to tag 1 of my PLC
and selected here. So my tag 1 is given to this button. Now all
you have to do is just download in your HMI. And we will see
that, overwrite all , load. And hence you will see the HMI, it's
being downloaded. And let's check the monitoring screen and
the HMI here. Now again, I go to screen 0. So this is my Start.
So initially, you can see here this button was pressed before.
Now you will notice this button act as a push button. Okay, so
let me just open it again. So when I press it, output is on,
if I release it, output is off. Okay, so this is like a push
button. That's like your normal push button. That's how you can
assign a push button function to the normal button in HMI. I hope
this makes sense. And similarly you can also use this button to
work as a toggle button. We'll see that in the next video.
Thank you