- hace 14 horas
La programaci贸n de una pantalla HMI (Interfaz Hombre-M谩quina) con Siemens TIA Portal (utilizando WinCC) permite visualizar y controlar los procesos de un aut贸mata PLC (como un S7-1200)
Categor铆a
馃摎
AprendizajeTranscripci贸n
00:01Continuing with the lesson we are reviewing on analog window management,
00:08We will complement the work by creating a small interface on a touchscreen.
00:18To do this, we will add an HMI device,
00:24In this case, a 7-inch type; we could use any of the ones we have here.
00:32We will use the ones we have available in the laboratories so that we can apply them at some point.
00:38This is a KTP 700 BASIC, in this case the model we have below. Accept, we wait for it to...
00:47believes,
00:52We'll start configuring each item, we'll review them as we go.
00:56In this case, I have the connection wizard, which helps me optimize some steps and talk,
01:05Here it asks me to select which PLC I am going to connect to,
01:10Then I click on browse and the PLC I'm going to connect to appears.
01:16In this case, it's the only one we have in this program; we select it and click on "done".
01:20And I have already established communication between the two devices.
01:25Let's move on, here I could choose the background color of the screen and customize it to what I like.
01:36I want,
01:36For example, I could set it to this color, or I could change it to any other color.
01:42For this, while it is true we can use any color, there is a rule,
01:48There is a standard that tells us that for the development of screens,
01:57In HMI and SCADA systems, strong colors are not used; for example, look at this color.
02:06Well, it might be striking at first glance,
02:10But let's imagine we work with this background color for 8 hours a day,
02:18This color already causes physical fatigue in the operator,
02:23in the person in front of this screen, and that causes them some exhaustion,
02:28So there is a standard that I will provide to you.
02:32in which it tells us that we should work with muted colors,
02:36In this case, you must have noticed that most screens are this shape.
02:41with colors that are not too heavy, in this case lead or blue.
02:48We could display the time, add a logo, disable the header,
02:54Let's leave it at this point; later, we could even delete it within the programming.
03:01Warning screens, we could activate or deactivate,
03:05Let's just leave it activated.
03:08Images, we could also use an image as a background, a root image,
03:13In this case, I'm not going to do it.
03:19Also, images for the system part,
03:22and the button section, how I want the structure of my buttons to be.
03:26The buttons are usually located at the bottom.
03:30Finish.
03:32Once I click finish, the screen will be created, right?
03:38In this way.
03:41To begin working, I have, I distinguish two sections.
03:46The one section, where the PLC programming is located.
03:51Yes? Here is the programming we did in the PLC.
03:55And the other section, where I'm going to configure my screen.
04:01In this case, we already worked on the PLC part in the previous class.
04:05So, now we're going to work on the screen part.
04:08So, before we begin, here I am, in pictures,
04:12This is where I will have the respective screens that I am generating.
04:20But, we're going to go where it says, image management and templates.
04:26Yes? And we're going to click where it says, template 1.
04:32Look, what this template does is create a standard form for me.
04:39which will be reproduced on the other screens that we will generate.
04:43So, I'm going to say that, for example, the structure of my screen
04:46It's going to be like this and I could change, for example, this logo.
04:51Let's double-click it and this little screen appears, right?
04:55And if it doesn't appear, we select it and click below where it says properties.
05:01Here I would have some characteristics of this element.
05:05I'm going to general him.
05:07I could change that logo here.
05:10So, I go here where the HMI logo is.
05:13We click on this section.
05:25Let's see, we have here all the parts, the elements that make up this part here.
05:42Now we'll see, then, right?
05:48There you go.
05:49I have to click down here where it says create graph from file.
05:53In the other one it tells me about the object of the law.
05:57So, let's click here.
05:58And I could choose an image that I have downloaded on my computer.
06:03Let's see, in this case, if I have any image.
06:06Well, I can't preview.
06:08Let's see if I can.
06:09Here I have it.
06:10So, here are some preview images.
06:12Let's put this image here to replace the original one.
06:16I'm going to open it and look.
06:18I just replaced the default company logo image.
06:22In this case, I have another logo that I just added.
06:25So, this will serve as a template for all future screens we create.
06:29Here, at the beginning, it told us the date and time, right?
06:34If we double-click, properties.
06:37Look, what we're using are the date and time texts, these texts.
06:45Yeah?
06:46Which can be modified.
06:50Should we show the date and time, or just the time, or just the date, or nothing at all?
06:56Yeah.
06:56So, this text is the one that's already taken up here.
07:00It might work for us, right?
07:03Ready.
07:04Down here we have some buttons that will perform a function.
07:10Nothing else.
07:13So, based on this, what I'm going to do is generate...
07:18I'm going to delete the root image, okay?
07:21We're back.
07:22Accept.
07:24So, here...
07:25What I just did was on a template, right?
07:29On staff.
07:30I'm going up here to images, add image.
07:34Yeah?
07:34So, here I can give it a name.
07:36For example, let's say the general name that is given is root image.
07:52Yeah?
07:52Okay.
07:53Can I add another image now?
07:54Yeah.
07:54Yeah?
07:57Yeah?
07:59Yeah?
08:07Yeah?
08:07Close here, I can close each of the screens that I generate here.
08:11I'm going to close the template
08:15I'm going to the
08:19Image 1 and the
08:20I can delete it, look, I right-click and I'm deleting it.
08:25and I can add again
08:28We can do this as many times as we want.
08:31I go to root image and within root image
08:34Let's visualize that data, the data that we created.
08:38in the PLC, then I go back to PLC
08:41And within PLC I go to PLC variables
08:45Show all variables here
08:50within show all variables
08:52Let's look for the variable tag
08:55which I use for
08:58view tank data
09:01In this case, I have it on the MD300.
09:06So I'll go to the variables
09:09add image
09:12We're going to put it this way here.
09:13in this icon up here
09:30Okay, so we're going to look for the MD300 here.
09:33which was the value we wanted to visualize
09:36And all we do is drag
09:38to our screen that we are viewing
09:41in this case within the root image
09:44I can minimize or close this screen
09:46And I would basically have the visualization here.
09:49of the level
09:53Let's run the exercise
09:56I'm going on main
09:58I'm going to activate the display
10:01Well, in this exercise
10:02Continuing with the above
10:04I didn't get it.
10:05That's why I only activate the visualization
10:06I put myself inside the screen
10:09I put myself inside the screen
10:09I click here on HMI 1
10:12and I click on start simulation
10:17if I don't have any mistakes
10:20I'm going to get it
10:22the value
10:23I'm going to get what I just configured
10:25in this case
10:26in this way
10:28I'm going to Factory
10:30I'm going to start the simulation
10:35I'm going to
10:37Sorry, the fill valve
10:40It comes, it begins to fill
10:42and I have that value
10:44filling the tank
10:45I'm visualizing it now
10:47in this variable
10:48I'm 70 now.
10:50Well, reaching 70, 80
10:52I'm going to reach 100
10:53look
10:54I now have the value visualized
10:56here on the screen
10:58We've had a small interaction
11:01between factory
11:03and I'm already visualizing this data
11:04on my screen
11:06KTP
11:20This is in centimeters.
11:22look
11:23300 centimeters
11:24the 300 centimeters
11:25from the tank
11:26me again
11:27I'll start downloading it
11:30He's showing her
11:32that value
11:35I can stop him there.
11:36should show me
11:38more or less
11:38about 213
11:39214
11:40which is the value
11:41which is showing
11:43this data here
11:45more or less
11:46about 213
11:47214
11:49which is the value
11:49that I have there
11:51so
11:52of the program
11:53what did we do
11:54previously
11:55the programming
11:56with PLC
11:56the part here
11:58We've now passed it.
12:00to the visualization
12:01here
12:03Now to complement
12:04us
12:06we could
12:08we could
12:10show them
12:11in a better way
12:12we are in
12:13root image
12:15on the right side
12:16We have some elements
12:17that allow us
12:18do something
12:20presentations
12:21from here
12:22within elements
12:23I have
12:23this way
12:24tank
12:26Now I'm going
12:27to visualize
12:28the height
12:28from that column
12:30in this tank
12:34we selected
12:34the tank
12:36properties
12:40if we want
12:41We can go and check.
12:42each
12:42of these
12:43values
12:44what I
12:45whether I should
12:45modify
12:46is the value
12:46maximum
12:46look
12:47the tank
12:48I have
12:48100
12:48and my variable
12:49from my tank
12:50physically
12:51It's 300
12:51then I'll
12:52to modify
12:52here
12:53300
12:54I already have
12:55300
12:57Let's give it a try
12:58click again
13:00can I
13:00change appearance
13:01the color
13:03of the filling
13:03that isn't blue
13:06Let's suppose
13:07which is a green color
13:09and
13:11We give the other blue
13:12already
13:12then look
13:12that blue
13:13that I'm putting
13:13the background color
13:16white
13:16or whatever
13:17in some other way
13:18Let's suppose
13:19that's the color
13:19background
13:20or let's see
13:21one more color
13:24Well
13:24that would be it
13:25questions
13:26of tastes
13:27No
13:29Let's put it
13:30this color
13:30Well
13:31He's going to get confused
13:32with the
13:35with the background
13:37of the
13:37from the screen
13:39Well
13:40something like that
13:41in the type
13:43edge
13:44the scales
13:46how many
13:47divisions
13:47wanna
13:48let's put
13:48that they be
13:49fewer divisions
13:53all this
13:55we could
13:55us
13:56keep an eye on it
14:00that already
14:01it would depend
14:02the presentation
14:03that you
14:03want
14:03carry out
14:08ready
14:08in the title
14:10Well
14:11some title
14:11that we
14:12we do
14:12the representation
14:15all that
14:16This in properties
14:17in animations
14:18I can put
14:19with which variable
14:20I want it to connect
14:21For example
14:23I want to connect
14:24to the variable
14:25I click
14:25in this type
14:26little folder
14:27value of the process
14:29accept
14:30and here
14:30I choose
14:30I
14:31the variable
14:32we give it to you
14:33Click on the three dots
14:34and we're leaving
14:35to the
14:36plc
14:39variables
14:39of the plc
14:40And here we choose
14:41the variable
14:42with whom I want
14:42that works
14:43in this case
14:44it was
14:44md300
14:46I click
14:47in the seen
14:48And that's it.
14:50is connected
14:52Yeah
14:53and nothing more
14:55Let's run
14:55again
14:56I click
14:58about HMIKTP
14:59I click
14:59to start
15:00simulation
15:00and it appears now
15:03Well, in this case
15:04if I don't have
15:04no error
15:06And look
15:08213
15:09centimeters
15:10appears painted
15:11213
15:12if I force him
15:13again
15:14the tank
15:19look
15:20I begin to fill
15:21And here too
15:21it begins to fill
15:22on the little screen
15:24the simulation
15:25of that tank
15:26that I just did
15:28obviously
15:29is coming
15:29300
15:29What will it be?
15:30my limit
15:32Yeah
15:32if I open
15:33the download
15:35if I open
15:35the filling
15:36It will be downloaded
15:36quickly
15:38between 0
15:38and 300
15:47look
15:48so
15:48We're already here
15:48working
15:49with data
15:49analog
15:50also
15:50for the part
15:51of screens
15:53in this case
15:55look
15:55the 1st
15:55I dragged him
15:56from the
15:57from the
15:58from the table
15:59of variables
16:01in this case
16:02It's already visible
16:02I dragged her
16:03and I let her go
16:04and the other
16:05I configured it
16:06or we could
16:07give it
16:07to do it
16:08this exercise
16:09or we could
16:10I'm going to generate
16:11other
16:12another tank
16:14sorry
16:15I'm going to generate
16:16another tank
16:18in my image
16:18root
16:21I'm going to put
16:21this way
16:24for the tremor
16:26Yeah
16:27I'm going to
16:27variables
16:28of the plc
16:29I'm going to put
16:30here
16:30in releasing
16:33I'm going to do
16:33further from here
16:34and the variable
16:34that I want
16:35I'm going to put
16:36there
16:36that
16:36I'm going to let him go
16:37about the tank
16:37It is already configured
16:38automatically
16:39tag 6
16:40in this case
16:41look
16:41I limp here
16:42and I let it go
16:43And that's it.
16:44configured
16:45I'm going to close
16:45this little screen
16:47I click
16:48in the tank
16:48that I wanted
16:49we click
16:50in properties
16:52look
16:52that's it
16:53associated
16:54to tag 6
16:55in the other tank
16:57from here
16:57we put
16:58manually
16:59in the tank
16:59from here
17:00now only
17:00I told him
17:01on
17:01and it's already configured
17:02automatically
17:03I'm going to compile
17:04so they can see
17:05lots of time
17:14I'm going to activate
17:15And here I have
17:18already
17:18What happened
17:19Look here
17:20the limits
17:20I forgot
17:21to configure
17:22to change
17:22This one is from 0
17:23It ranges from 0 to 100
17:24and the value
17:25of the variable
17:25It has 153
17:26That's why
17:27I get this little arrow
17:28that the value
17:28It's superior.
17:30I'm going to download
17:36if you are working
17:37only the range
17:38It's at 100
17:39and the variable
17:40It was over 100
17:41look
17:42That's where it started
17:42to work
17:43What I should do
17:44is to modify
17:45this data
17:49then look
17:50we have already seen
17:50two ways
17:51to configure
17:51the variable
17:52Let's just do it.
17:53the configuration
17:54of this data
17:54for
17:56to wrap things up
17:57in properties
17:59in general
18:01Here I have
18:01boundaries
18:02the limits
18:03superior
18:03lower
18:03300
18:06now yes
18:07again
18:08to conclude
18:09we compile
18:18And it already appeared.
18:20He's already walking
18:21300
18:21No?
18:23to aunt
18:24and we forced
18:25the filling
18:32in the next
18:33classes
18:33we will begin
18:34to work
18:35already in development
18:36of HMI
18:37on the screens
18:38the screens
18:39tactics
18:40for that
18:41we're going to make use of
18:42of everything we are
18:43seeing so far
18:46I hope so too.
18:47I hope it was helpful
18:48this part
18:48from this video
18:49that we are
18:50developing
18:51complementing
18:52with the video
18:52from the previous class
18:53of the connection
18:54and display
18:55through inputs
18:55analog
18:56in this case
18:57a launched
18:57to the process
18:57factory
18:59to view
19:00on this screen
19:00is the JTP
19:02JTP model
19:04as I have told you
19:05This is similar.
19:06in all PLCs
19:07if indeed
19:09We understand.
19:10in this PLC
19:10we wouldn't have
19:11no other drawbacks
19:14Well
19:15before we finish
19:16Let's do it
19:17this small practice
19:19Okay, I'm going to delete it.
19:20this screen
19:21that in the end
19:21It's the same
19:22from here
19:23well we
19:24we have the possibility
19:25to visualize
19:26tendencies
19:26also
19:30I'm going to take out
19:31the graph
19:31trends
19:32And I'm going to let it go
19:33And I'm going to let it go
19:34here
19:36I'm going to click on it
19:37about this chart
19:39properties
19:40here on the curve
19:41I can add
19:42the variables
19:43that I want to be graphed
19:44we click
19:45in add
19:46we click
19:47here in settings
19:50Here I must choose
19:51the variable
19:51in this case
19:52the tag6
19:53which is my variable
19:53I should put names.
19:54in this case
19:55not worked with tags
19:58accept
19:59I could put
20:00the color of the line
20:01I want this graph
20:02Let's graph it
20:03a color
20:04of the line
20:05that it be red
20:08and finish
20:10Let's run
20:11again
20:14Okay, here it is done.
20:15there is no step
20:16so elaborate
20:17a screen
20:18the HMI also
20:18prepared
20:20We already have this
20:21What to do about it through little screens
20:24more elaborate
20:26as it is the first
20:27interaction
20:28with the analog ones
20:29and in this way
20:31We're just going to practice it like this
20:34We initialize the display
20:40look
20:44I'm being
20:47showing
20:47Same here
20:49It ranges from 0 to 100
20:50and the variable is at 195
20:52That's why it's giving me
20:54There's an error down here.
20:55We should have changed it too
20:57I'm going to download
21:00the tank
21:03the time I reach 100
21:05will begin to be graphed
21:06wherever we are
21:07at the moment
21:12Look over here
21:13The signal is now appearing
21:14I'm going to have it there
21:17in the value of 62
21:18and obviously
21:20since we are not
21:20nor going up
21:21not even by lowering the tank
21:22It will be graphed
21:23a straight line
21:27We're going to try
21:28to change the limits
21:29already
21:29the ranges
21:30Let's go to properties
21:32Let's look where
21:33I need to change
21:35the limits
21:47somewhere
21:48ought
21:49in general
21:51I don't have to in general
21:57on the time axis
21:58I could put
21:59the intervals
22:02left
22:02Look, here it is
22:03on the left axis
22:05that appears to me
22:07from 0 to 300
22:11on the right axis
22:12also
22:13from 0 to 300
22:16And look
22:16I have two axes
22:17to the left
22:18and to the right
22:19in this case
22:20It should be both
22:21at the same value
22:25and we would be done
22:27we are going to simulate
22:28again
22:37ready
22:41Look here
22:42the graph
22:42despite
22:43I'm not doing anything
22:44it is being graphed
22:46in the value
22:47of 62
22:49if I start
22:50to fill
22:56we're going to fill
22:57and empty
22:58Let's see what happens
22:59If you look at the trends
23:01sometimes
23:02well generally
23:03always
23:04a trend
23:05It gives me much more information
23:07that a number
23:07Look at the number
23:08I've already forgotten
23:09but with the trend
23:10I can already see what's happening.
23:11Nothing was happening here.
23:12I filled here
23:13I'm kind of here
23:14filling more slowly
23:15And here I am emptying
23:17from there
23:20And look at this
23:21It already gives me information
23:21of the process
23:23how is it behaving
23:24I already know that
23:25that
23:26what action
23:26should control
23:27ought
23:30execute
23:33and I stop him
23:38Yes, look, I can put axes
23:40to start analyzing
23:42the values
23:48I can get closer
23:49I can move away
23:51Yeah
23:52That's the good thing.
23:54of these
23:55of these trend curves
23:56then in the next
23:58classes
23:58what we are going to do
23:59is to develop
24:00already more steps
24:01more elaborate
24:03more professionals
24:04I hope this was helpful.
24:07this class
24:07that they practice it
24:08and any concerns
24:10They let me know.
24:11that the