Simulating PLC Programs in TIA Portal V17 | S7-PLCSIM Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello guys today I'll show you how to simulate the software of Pia portal which is used to program a Siemens plc so we need main two tools like a TI portal 7 and S7 PLC Simi okay so let's open the Ki portal it will take a little bit time because the software is huge one so if you want to open any project which you already created just select the project then click on open if you want to delete it you can click on remove okay we want to create a new project so we'll click on create a new project and mention the name of project like a dual Charter dual program and click on create so once the project is created so we can we have to add or configure a device okay so configure device click on a configure device here we have to add a device click on add a device see here we are getting all the options like creating HMI PC system for scada and controller so I'll select the controller we'll start with the controller now and select the CPU I am here I am selecting S7 1200 so click on CPU any CPU you can select but don't forget that tr2 it has to be the version 4.0 and above okay here it is for the simulation purpose this should be the criteria Okay click on add this PLC is added to the network it will take a little bit time because the software is huge one so all the options are available in one software that's why it is called as a totally integrated automation software so here this wizard will appear if you are willing to set up any password you can click on setup and set up the password to protect the program to be changed okay so for now for simulation I am going to remove all the protections and all so click on next and only the secure pgpc connections like a specific uh programming cable we have to use for communicating between HMI PLC or programming the PC sorry plc so I'll remove this one too click OK here no access if this program will not be having an access or a PLC so I'll give the full access here and click on next and click on finish this is what we have added the device now so after adding the device here we can see the device okay you can zoom it and check the device here so it has got already inputs like a 0 to 7 that is eight inputs and 0 to 5. her dresser has been mentioned here I 0.0 and q0.025 so we can use this same address to work with the inputs and outputs so one more important information that we cannot trigger them to the program okay there are two types like we can use for input purpose for simulation purpose memory flags for triggering in program or else we have to trigger them through the simulator so that's that I will let you know in the next sessions like click on program blocks here and click on Main ob1 okay this is the main object where we are developing the program double click on it it will open one programming window where we can develop the ladder diagram so here we can see this we can minimize and this I'll take up so here we got one rung okay so to develop the program as I already said normally open normally close contacts and empty boxes are available so we can take them and develop it so here I will select M 0.0 so to show the difference like how we can control the inputs in program and on the simulator like here q0.0 I'll give you one address this is a simple series circuit I have created series program and one more duel program we will create we can take no and and see and one parallel contact so Take One external line from here to take the parallel contact to this no contact you have to select this okay so first selector so Rail and click on this open branch one branch will be open so click on no contact and connect up so here I'll mention I 0.0 Q 0.0 hi 0.1 so we have to take same address as it is mentioned on the plc okay so Q 0 Dot one I'll take because 0 I have already taken over there Q 0 Dot okay if you want to rename the tags click on right click and click on rename tag here I will take flag start flash I'll take okay press enter enter I'll name it as a output this is for test purpose and this is the Dual Charter program in the sense here I will take it as a start underscore EB next this is a stop underscore PB this will take it as a motor so here we can see a if I change the tag name of this q0 0.1 automatically it is also changed because address is same so now the program is being developed so we have to compile this first check the errors whether any errors are created or not or a program is correct or not okay here we'll get the result like a zero errors and zero earnings now this program is ready to dump in a PLC so we right now we don't have any PLC with us so we can simulate it so for that purpose we have to click on simulator it will open the simulator so it gives some warnings the blocks contains in this project cannot be simulated with the PLC sync you want to enable the support simulation during lock compilation option in the project properties yes so here simulator is turned on so we have to open the simulator figure if you want to trigger these inputs and check the result uh we have to import so here it is asking for the certificate or considered as a trusted click on consider as a trusted which is asking for security we have to allow it to communicate with this PLC program it is compiling all blocks and configurations and the simulator will be started so now we have to load the program once it is loaded click on finish or else we can put it in a start model okay will not start this model from here we will keep it as a no action click on finish once if it is created then we are ready to open the simulator during this process if it is asked anything just click on load and finish it and then click on the button over here it will open the simulator where we can import the tags and Trigger those tags to trigger those inputs so here KLC Sim is on now go to projects click on new project so I'll make it as a duel PRC you can give any name Okay click on create here you can see this version 17. click on create so similarly if we are working on any previous develop project you are opening the same project and you can open this simulator file also okay so that that will directly link to that file so once the project is created so here you will find the same tables so double click on the Sim table one you will find this table no need to add anything manually just click on this load project tags because it is already created and connected to that PLC and just click on this load Project X all the tags being created means added over here okay here if you check okay all the inputs and uh these things are already available over here just we have to check which all the inputs we are using and Trigger those inputs as we have selected the different PLC like it has got a mini descriptions so here we'll find out the trigger inputs we are used so okay I 0.0 i0.1 this is a start and this is stop here you can see and this is output and this is motor and this is start flag so this we can trigger over here okay now the difference between memory flag triggering and input triggering I'll I'll show you how we can do it just open TI portal 7 and minimize this compilation and open this so now we have this program with us and click on go to online and put the PLS in run mode that we can do it from here also in PLC mode this is run button here you will find the Run button okay now PLC is in run mode so to check the status here one monitor on off button is there will turn on the monitor okay now we can check this inputs and outputs so this is not really open contact signal is Flowing till this point after this we have to trigger this so now from this in program I can trigger to modify it to 1. okay now it is triggered so output u0.0 is on if I release this modified to 0 it is possible to do it from here but what about this I 0.0 I 0.1 if I trigger this from here it will not be triggered so to trigger these things okay we have got this PLC simulator so these are the bits we can trigger over here this is a start bit and stop bit here it is been clearly mentioned clearly it is seen that m0.0 this bit cannot be triggered from here because that is a memory flag which can only be triggered inside the program okay now this is the start bit so once the start bit is turned on motor is on here we can see the motor so I'll trigger the I will release it you can see the working of this program over here okay now I'll click on stop button it turns off the motor so this is how we can simulate it and you can save the project and you can work on these things in next video I will show you the primers and counters and other different programming blocks how we can use it and how we can program them and thank you for thank you guys thank you for watching my video and don't forget to subscribe to my channel and if anybody needs this video just share the link with them so that they can also learn these things and don't forget to subscribe to my channel like it thank you guys thank you for watching
Info
Channel: Hybrid Automation Technologies
Views: 3,402
Rating: undefined out of 5
Keywords: TIA Portal V17, PLC programming, S7-PLCSIM, simulation, virtual environment, PLC program testing, virtual PLC, programming tutorial, automation, PLC simulation guide, virtual hardware configuration, ladder logic simulation, Siemens PLC simulation, step-by-step, online PLC simulation
Id: o-ZBiA23AlM
Channel Id: undefined
Length: 15min 49sec (949 seconds)
Published: Fri Aug 18 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.