Siemens S7-1500: First Time Wiring and Programming

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] hey everybody shawn tierney here from theautomationschool.com and in this episode of the automation show we're going to wire up and program that s7 1500 controller that we got from siemens in that starter pack i think we unboxed it in episode 40. and before we do that a couple of housekeeping things first of all i want to thank all our patrons over at patreon.com forward slash automation i got a new insider video coming for you guys here shortly and uh for everybody else i just want to explain what i'm doing here with this uh with this trainer this is the trainer i used in the first half of my compactlogix course i had an l1 in there and my first half is done so now i'm using the 5380 in a different trainer with more il so i actually put the l1 here and um i figured hey let's reuse this for the s7 1500 right so um that's what the trainer has it has actually has 12 inputs and eight outputs we got buttons we have selector switches we got um horns and lights and motors photo eyes inductive proxies so um that's what i'm going to be wiring up to the s7 1500 today and um this is the first time it actually was a little learning experience for me having used so much control logics and you know micrologix compact logic so um but it's good stuff it's all good and uh we'll go ahead and get started now i'll fast forward when i'm actually doing the wiring so you don't have to sit here and watch me land every single wire in real time but i did kind of want to walk through it because it is if you've never wired an s7 1500 it is a little different than other controllers so with that said let me put my glasses on so i can see what i'm doing here and you can see the unit i'll go ahead and zoom in a little bit and uh the first thing i wanted to show you was that these um terminal blocks while they're the exact same exact part number okay i'll show you that here in case you missed the unboxing all right you can see that they're upside down but they're the same exact part number um one of the things i noticed is that the keys were set in different positions okay so i think you can see that right there those little white keys and that corresponds to these down here you see this one's on the right that one's on the left so when we put these in we want to make sure we match them so they can go in just like that now this is the analog terminal block i'm not going to be wiring any analog in so i just put that all the way in but because we will be wiring digital i won't put this one all the way in i'm going to put it in its wiring position which is pretty cool now i know you can't see here it's too small but the wiring diagram's right here on the door so i'm not going to try to zoom in on that but it's also in the manuals on the on the siemens website too so with that said the first thing we want to do is power now i do have the system unpowered right so um that's always a safety check you want to do because we all know how dangerous it would be to work with live wires right so with that said there's two blocks here on the power supply we have where the ac 120 volt ac comes in and then we have where the dc comes out and you can see we come out two different uh dc outputs i'll send one to my terminal block here for my i o and then one over to the controller and if we look at the controller it has its own dc input and it allows you to daisy chain it so we'll take the second one and we'll chain it over here for the inputs on the terminal block which is uh these bottom two connections right here so let me get those all wired up i'll speed up the video here and then we'll be back when it's done okay with that done you know i'm gonna have my 12 inputs on this side i also have outputs and i need to provide power to my outputs and i have uh eight and then there's two spots to land wires there so let me put those in from the terminal block okay now i'm ready for the i o so let me start with the inputs here 0 through 11. okay finally we have the outputs i got eight of those let me do those zero through seven all right should it be all uh wired up here so let's move the swing arm down into its installed position here wired position active position and then we'll close that door i'm not going to put a tie wrap around it because we may be changing it removing it and actually i'll leave that open so we can turn it on here everything's looking good oh i do want to plug in our ethernet cable that's way way way in there there we go get that in there and now we're ready for power plug it in turn it on and now we'll go ahead and turn the power switch on on the power supply you can see the control is coming up i love that little display in there you can do so much on that display and i probably should open up this door here you can see the controls here stop run escape okay then uh arrow so you can go through the menu there and do different things okay you can see it's in the stopped mode all right and looks like i have one input on this would be my normally closed push button stop button so when i press it goes off when i release it comes on let's try some of the other buttons here that's one two three the selected switches four five let's see what is number six here well number ten is the key switch number eight's the photo eye uh let's see we've got an inductive prox here let's put a piece of metal on that okay it's number nine oh number six is the motor let's go ahead and close those contacts so that's six so i think we got everything working there as far as inputs are concerned um let's see i can take that off there excellent turn off the switch so with that said i think we got everything running let me go ahead and close these doors here and i think with that it's time to go right off first s7 1500 program so let's go over to the computer and here you can see the good folks over at siemens sent in tia portal v16 so we'll open that up okay here i'm going to go ahead and create a new project now i meant not in the project view i'm in the portal view so i create a new project here and i'm just going to call it let's call it project s715 and i'll click on create okay now i'm going to go ahead and configure a device add a new device okay and this time instead of choosing the exact part number i have i'm going to choose an unspecified 1500. okay i'll leave those defaults there click on add okay and you can see device not specified let's go ahead and detect it so it is on it is plugged into the network okay i have to choose my network here and then i can go ahead and start search okay you can see it already has an ip address originally it showed up as 0.1 and i changed the address in preparation for the show now we can tell that this is the right one by flashing the leds so let me go ahead we'll look over there i'll click flash led yep we can see it flashing right there excellent okay so that's the one we want you can also see the mac address that's the same mac address you'll see underneath the door of the processor so let's go ahead and detect okay there it is now again when i was trying this out earlier i had come in here and given it an address on my network again it was 0.1 initially and the next thing i want to do is we're not using the analog i want to go right to the tags for the digital module and here we're going to create some tags i usually use i'm going to call a pb stop for my stop button on xero and then pb start whoops these are just the same addresses i use in my courses here this is the motor contactor so we'll give it an m1 and then for the outputs let me make this bigger here then for the outputs okay we have let's see pilot light stopped pilot running and then m1 matter of fact what i'm going to do is i'm going to call this one m1x because that's the auxiliary contacts coming in from the motor starter in this case i'm just using a relay but uh those are the auxiliary contacts coming back in this is actually the output that drives the close of the the relay okay so let's see can't have two m ones so we put a one in there okay we're looking good there now um let's see what else what else do we want to do here let's go back to our device and i think the other thing i want to do is create some plc tags because um i want to add tags for the basic panel if you remember the first program i did for the basic panel was to also control the motor in the stop and stop the motor in the 1200 and so i'd like to do that with this as well so i'm going to just go ahead and add those tags now and i'll call let's see we'll call it hmi start and what do we want this it will be a boolean but we want it to be an m okay and really start is a one in r we'll do address zero and bit number one here okay and then we'll do an hmi stop which will be zero so stop and my programs are typically zero and one just keep things simple so i'll have those as well so now we're ready to actually write some code so let's go to our programming blocks here and we'll go to a main ob1 okay we'll start our motor control uh line like this we'll do uh the e-stop here we'll do the hmi stop and then we'll do a start this will be the hardwired stop but we'll definitely want to put a branch around that so we'll open branch we'll put another start and then we'll open another branch and put a seal in okay so now we can close these guys and then of course we need i'll just drag and drop this one we need our output so this will be let's see push button stop this one will be hmi stop this one will be push button start and this one will be hmi start and this will be the contacts coming in the auxiliary contacts from the modus starter which we called m1x and this would be m1 the motor itself or the output to the contactor excellent excellent okay so the other thing i want to do here is i want to say when the contactor is on then i want an output and i want to turn on the pilot lights so pilot light running okay but i also want to turn off the stop light okay so you can see here when the auxiliary is on that means i'm running when the auxiliary is off it means i'm stopped so that's a very simple application let's go ahead and download it so i'll come up here and i'll click on download okay i have my network selected and let me go ahead and search for my device okay there it is and now let's go ahead download to it okay yep continue without synchronization and load okay now let's see if we can put the controller in the run mode from here sure yep and no it's still in the stop mode so i'll just open up the door here and put it in run mode here okay so let me come over here i'm gonna release the stop i'm gonna press the start and it doesn't start what did i do wrong well unlike unlike my stop button which is normally closed right my hmi which isn't even connected is not normally closed okay that button will only turn on when i press it on the hmi so that's stopping our logic well let's go take a look at it i'll show you so here let's go ahead and monitor okay now look i can press the start all day long but because my hmi stop right my hmi doesn't even exist on a network and when it does it'll only turn on when i press stop so in this case that is stopping the code from working so we could have fixed that so let's go ahead and see if we can't edit this all right now i'll download again and yes i do okay that's looking a lot better doesn't it all right so let's go back out here to the field we've got the stop is not pressed we'll press the start hey and look at that i was able to press it let me do that again i'll do it slower this time i'll press and hold it you can see my logical continuity and then the apple comes on and then the contacts come on sealing it in the cool thing is if i were to remove the contacts right just remove this whole contact block you can see because i'm using the output of this contact the second set of contacts it trips the circuit okay if i was just using the output from the plc then it would just it wouldn't trip right so let's go ahead and start it up again and that's it so now the next thing to do is see if we can't add the hmi to the network and add some buttons to it as well so let's go ahead and do that okay you can see here i've brought over the 1200 and the basic panel from the previous uh shows and you can see here i got the start and the stop and it still works in conjunction with the start and stop push buttons on the 1200 so now let's see if we get the 1500 to also use the screen we'll create some new buttons there we'll copy and paste them and see if we can address them over here so that we can use that basic hmi for both of these systems so let's go over to the computer here and what i'm going to do here is let's go into let me go offline first here i'm going to go ahead and save my project i'm going to do a project open let's see if we can find our old project browse my project o2 let's open that up and here it's telling me that hey that's an old 15.1 project so it's going to upgrade it and rename the new project the upgraded project with an underscore v16 so let's go ahead and do that and i don't know how long this is going to take so i'm going to speed up the video okay the project finally opened we can see v16 here was added to the end of the name because we input it into v16 and you can see my hmi project right here and the way i'm going to do this may not be the best way it may not be the most effective way but it's the only way i found to get it to work so let me stop by going to device and networks and i'm going to go ahead and add my s7 1500 here oops i need some more room can't see it i think it's this one right here okay i'll click on the profinet port there and assign it the address of 1.115 okay and now i'm going to drag and drop a connection to the hmi okay now that that's done i'm going to go ahead and and again maybe there's some way to import the tags or import the entire project but i couldn't find an easy way to do it so i'm just going to go in here into the sm 1500 that was just added i'm going to re-add those tags just so i can pick them in the hmi so we had three tags there we had a hmi start okay and that was a m01 okay then we had an hmi stop and that was m zero zero and then we had our m1 underscore x which was believe it was input 10 6. okay and again i'm just adding these in here so i can pick it in the hmi so let's come down to the hmi and we'll go to hmi tags show all tags and you know i'm going to copy these three existing tags from when we integrated the hmi into the s7 1200 i'm going to paste them okay i'm going to rename them to 15. instead of open one close okay so now we want to change the tags that they point to we don't want them pointing to the same tags that we use in the s7 1200 we want to go to the 1500 so here we'll close up the 1200 this is the 1500 i just added we look at the default tag table and this will be start and then this one will be again in the 1500 stop and ox and it looks like i made a typo there that looks like an exclamation let's go back to the s7 1500 i added and nope show all tags yeah it looks like man the text is really small for old guys like me all right so let's go back to let's see here and see if that updated yeah it did automatically update here good so at this point we should be ready to do some graphics so let's go to our existing screen here which is called motor control and let's grab these three objects for the s7 1200 we'll drag them over here and then i'm going to do a copy and then i'll do a paste okay we'll drag them over here i'm not going to get too fancy with the hmi this is just you know part of the demonstration here in the real world you'd probably want to have you know indicators so you know which motor this was but um what we're going to do here is change here on their appearance we're going to change that from hmi start to hmis.15 we also want to change the events so the press event we want that to be hmi start 15 i want the release to be hmi start 15 for our 1500 okay now let's see the stop button here again we'll make this stop 15 and the press will be stop 15. okay and the animation that we put on there will be stop 15. last but not least we have this indicator which is just the animation and we will make that aux 15. okay if i've done everything correctly this should work so again this is my first time trying to get two plcs to communicate to the same hmi or get the same hmi to talk to two different plcs so we will see what happens but i think i did everything right let's find out we're going to go ahead and come up here and click on download there we go okay it's going to say hey find your product okay that's the only device i have so i'm going to go ahead and load it it's compiling okay i'm going to overwrite everything load okay we can see it's getting downloaded right now it's almost done okay let's come out here to the field and we can see you know i'll zoom in on that see it flickers a little bit i got to see the camera on 60 hertz so i don't know why but let's go to motor control okay let's see if the 1200 still works yep probably need the yeah all right let's see if the 1500 works yes success we zoom out a little bit more here i know that seems easy but it took a while to figure that out off camera so um again if you are a siemens expert and there's an easier way to do what i did then um please let me know because you know i'm just starting out with siemens but um hey we got it to work and i'm happy i mean that was a lot to do to wire the whole thing up to write a program for it and then the configure a basic panel to talk to it so i hope you enjoyed this show if you did please give us a like and a sub and um if you want to support our show you can do so over at patreon.com forward slash automation and uh you should see the scrolling below the names of all our current patrons and i want to say thank you to them also if you're looking for automation training check out my full-time job over at theautomationschool.com that's where i work full time and we got lots of courses there we go lots more courses coming so if you know anybody looking for training please send them over and with that i just want to thank you for watching for subscribing and for just supporting my work here and until next time my friends peace
Info
Channel: Insights In Automation
Views: 242,620
Rating: 4.9523907 out of 5
Keywords: The Automation Show, Shawn Tierney, Insights In Automation, Siemens, S7-1500, Program, Wire, TIA Portal, V16
Id: YiVKUT1mkoA
Channel Id: undefined
Length: 27min 24sec (1644 seconds)
Published: Thu Aug 13 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.