Siemens S7-1200 - Box Sorting Application

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
you you hello welcome to siemens s7 1200 video tutorials in this video we'll see a box sorting application which will explain you the application of n ONC rising agent falling and so we'll be studying these commands in the application level so we are going to use a software named as factory i/o which is launched by real games in which you can actually simulate the environment and you can use your PLC to control it alright so let's see what is the application what is the objective so we'll start with signing off boxes the objective is box sorting based on height using pusher okay if you see this environment we have some conveyor we have a control box and we have a pusher which will push the box on this conveyor so we have basically two types of boxes one is a bigger one and one is the small box so the small box will just go on this conveyor but the bigger one will be pushed by this pusher on the chute conveyor so if I use this for bigger box bigger box will go here okay small box will bypass so how we can do that so I'm going to show you this environment so you can understand what are the various elements we have here so here we are so if you see here we have this main conveyor on which we are having some boxes and this is a chute conveyor alright and this is the emitter and if you see this green arrow from where we are going to get the boxes this is how the environment works this is the removal in this red arrow of the box am sure it will vanish here so that we don't have collection of boxes on the on the floor and starting from here I am going to introduce this panel here we have emergency stop we have start button we have stop button conveyor on indicator can wear off indicator alright this is it this is our control panel and you can assume that the plc is situated or located or installed in this panel right now we have this main conveyor here we have a sensor or this is found for demonstration I did not align the sensor to any frame so this is going to sense the bigger box so if you see its range that is the range so the smaller box will pass from below the sensor range below the sensor range means the smaller box will not be detected so it will just bypass the sensor and the larger box will be detected and based on the sensor signal this pusher will be on okay so to explain you how this pusher works I'll click on this pusher and I'm going to turn it turn it on forcefully so this is nice that's how it works it goes back and goes run so we are going to use this this pusher motion to push the box on this conveyor all right I'm going to release it then later when the box goes here we have a remover which will now you know make the box boxes invisible so this is the application which we have to control using the siemens s7 1200 logics all right so I will go back to the presentation yeah so I hope the concept is cleared the objective is clear so let's see how we can make the logic so then start with the first step is we have to assign inputs and outputs so in our case the start button which we saw in the control panel is assigned to i0 dot 0 this is the PLC address Siemens input address stop is assigned to 1 2 RI 0 point 1 emergency stop to i0 point to defuse defuse sensor it is a sensor which was here this is my diffuse sensor it's blue one this is going to take my large amount this is the few sensor and we have two more sensors here which is termed as push in one front limit push it one back limit now these are the two sensor which will determine the position of my pusher so for example if I again show you yeah so currently if you see the pusher is not extracted it is retracted that's why it's back limit is on okay if I make it forward you will see it's front limit is on okay so this was it a mind the pusher is extracted 100% right if I again go back in this case this is offs and this is on if I go back this is off and this is on right so we have this sensor and we have two more sensors here right let me go back to presentation so we are using position one front limit to I zero point four back ma to zero point five so we have three sensors three buttons on the output we have belt can wear can wear on can be an often pusher so this is my main conveyor the conveyor on which the box is moving this is my indicator my green indicator is detecting the conveyor is now and ready spoken very soft and pusher is which is smooth front and back of it so these are the assigned inputs and outputs in my environment all right steps to follow let's see the first step latching and unlatching of conveyor from start and stop so we'll move step by step in this exercise so before coming to the steps we also have to do one more step which is optional if you want you can also do that you have to define tags in Siemens dia tags means it's very much easy to program your letter logic if you have assigned these tags because then it's become easy to write the code so what we have done is we have just written the address and its comment that this address belongs to start this address belong to stop so the addresses which you see here the same thing we are doing this is this part of the logic this is done in factory I am like if you go to file and Driver you will see how to assign the inputs to where this is done in factory I am but this part of the presentation here this is done in Siemens DNA so to show you an example this is my ti a and if I show you my tags those are over here plc tags show all tags so in show all tags you will see all the tags so that's the screenshot taken from this software and you can add your new tag here alright so I go back to my program so this is like you have to assign the comments to your addresses then what I've done is force the Box emitted and remover now what does it mean in factory IO generally yeah generally we need to use an output more than a second you need to use an output to activate the remover and this remover and this ammeter so I don't want to include this in my programming so what I have done is I have forcefully turned it on my forcefully turning it on means these will be active all the time I don't have to program these these will be active by active it means it will it will start emitting the boxes by itself and this will you know absorb the boxes by itself I don't have to activate that and in this configuration settings I have done parts to emit here small and large I just need two parts that it will emit and I have mentioned some time that it will take maximum four seconds to rate the box our minimum three seconds so between three and four second it will emit me it will give me some boxes okay so this has been forced all three of these I'll just close this one let's go back so these are the necessary steps before we start programming the plc okay the first step latching an unlatching of conveyor queue 0.0 from is 0 dot 0 and stop is 0 to 1 so we are going to latch it using start and unlatching using stop so this is very easy as you have studied in the N ONC commands we are using a start button and this is my stop button now you know that the stop button is NC in our panel if you see here we have stop button as NC even start an emergency both are NC ok so we have to use a no-contact in the programming because by default because it is NC in my PLC panel this will be closed if it is not pressed this will remain closed so once you press the start once you energize the start the signal will pass and the signal will pass and it will actuate the belt conveyor which will actuate the spit and when you remove the star button because it's a push-button then your output will be lashed so motor is the belt conveyor motor is latched like this to unlatch it we will press the stop switch when you press the stop switch this will go off which we turn off my belt conveyor which will run off its own corresponding bit so my conveyor will be unlatched so that's how it is latched and unlatched okay now next step say is sense bigger box via the fuel sensor draw bigger box by using pusher q 0.3 okay so now we know that we have a diffuse sensor over here whose function is to push the bigger box so what we are doing is we are using its negative edge negative edge Y negative edge because if you see here when the box passes the sensor then we want pusher to be on okay so in case if you are using a positive edge then the box is here it will be on so it will not be you know logically or physically it will not be pushed properly on the chute conveyor to make it happen we will always use its negative it so that the box is at this position and conveyor is continuously running it will be diverting we will see that when we are going to take a trials okay so we are using negative edge of the sensor to push to push the Box on the chute converge the pusher is set so this is the application of set command using the negative edge of my diffuse sensor right now when you want this Porsche to be reset this will be reset here it says the next step with the positive edge of front push front limit of pusher positive edge of front limit which means when the box is totally pushed what we going to have we're going to have this front limit sensor okay the sensor will be on and this is totally extracted so when it's totally extracted this sensor will be on which will tell the sensor that the box has been pushed so it will reset the pusher itself so we are using front limit rising edge to reset this pusher in the software so this is the reset of the Koecher using positive edge of my pusher front limit right now we have to indicate the start and stop operation of conveyor by indicated zero point one and zero point two so this this is very easy our conveyor is running with Q 0.0 so it's a no-contact is going to actuate my green light this is conveyor on and it's NC contact is going to a cute my red light okay which is my Q 0.2 the last step says use emergency to stop the conveyor now if you remember where we are latching the conveyor we have to include an emergency to stop it so for that we have to include this bit here now why this bit is a no because our emergency is NC you know that emergency switches are NC this is here that's why we have an NO in our ladder logic because this will remain true and this will also remain true these two will be used to enlarge the color so download the logic and test so let me go back to my here and I will resize it so now I can align my software like this okay so I will I will make it I will make it run so that's how you run it now this is the environment so initially if you see in my panel what we have the red indicator is on why this is on because if you see the ladder logic then where is not on so it's NC contact is true which is activating my output Q 0.2 which is assigned to my red light that's why it's on okay okay now initially I have to press the start button to start the conveyor so if you see here this is true this green parallel lines indicate this is true this is also true I have to press Start to large my belt conveyor okay so I will press start here now if you see this green light goes on and the motor start one is he'll come to this part later motor is running because that can very slashed green light is on because here this bit is true just aren't joining user 0.1 and this is false so this is red like this often now let's see what's happening in this part of the logic now notice here and the box says wall it will not be sensed by the sensor so Porsche will not be on and the box will directly go to the remover and it will banish them so let's see from this angle okay the moment you have a bigger box they're falling edge of the sensor is going to actuate the pusher which will push the box so let's see when we get now this is a bigger box now you will notice falling edge will push it and this will go right to the removal this is again a bigger box now I think my pusher is not active my removal is not the force let me just I have to make it what is this forest you should remove and return is worst this is not on okay now it's fine let's go back yeah now if you make the Box managed so this is being pushed by the falling edge of the sensor okay if you wanna see more closely you have a look now you will notice when the sensor is on there will be light here okay so they're using its falling edge like this and as far clemency as a limit which would be set this pushin so when the sensor is all this way the reset will come back and this will go forward with its falling enterprises okay I hope this makes sense so this was about understanding rising edge falling edge and n ONC commands which we have used in this motion with segments recently so I hope the section one is more clear with this application if you have any doubt you can always write me a comment so let's go back to presentation and yeah we have some fact that if you want to control factory of environment if you like the software but you don't have a PLC you can use a control io driver this is a driver in which you can make your logic inside the software you don't you don't need a seven to twelve hundred PLC or Siemens dia you can write your logic within the factory aisle within this software and you can control it but the only thing is you can only write in SPD functional block diagram you cannot write in data logic but if you are good with fpd you can also learn that right so you can get the more information from the NFI website we have a special offer for student license alright so this was all about box sorting application and understanding basic commands with level instructions thank you and you can get a copy of this presentation in the course I'll see you in the next video you you you
Info
Channel: Rajvir Singh
Views: 46,607
Rating: undefined out of 5
Keywords: PLC Tutorials, PLC Training, PLC Simulator, PLC Projects, PLC Lessons, PLC Lectures, Box Sorting, Siemens PLC, Siemens PLC Project, Siemens PLC Tutorials, Siemens S7 1200 PLC, Siemens S7 1200 Videos, Siemens S7 1200 Tutorials
Id: Nl2r2A1k68Q
Channel Id: undefined
Length: 16min 35sec (995 seconds)
Published: Mon Jun 13 2016
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.