Transcript for:
PLC Programming Lab

this is an instruction for your lab sheet too we will be doing plc programming so we have a plc siemens logo here and then this is the main switch currently it is in off position and then we have input switches there are four of it and then we have an output lamp an output buzzer and also an output fan first you need to connect your power plug to the main supply second step connect your plc to the laptop using the ethernet cable third step turn on your plc by pushing the main switch up once it is turned on you will see the date and time on the plc screen fourth step you want to open the menu selection press the escape button and you will see this orange screen so right now press the arrow button down up to network and then press ok and you will see an ip address click ok and it will show the information of the ip address subnet mask and also gateway please write this down next we need to set up the ip address subnet mask and gateway on the pc or laptop go to the network icon click network settings go to ethernet and click change adapter options you will see ethernet and wi-fi right click ethernet and click properties find internet protocol version for tcp ipv4 click and click properties you will see this window please click use the following ip address refer back to the information that you get from your plc earlier for the ip address on the pc the first three numbers must be the same as the first three numbers of your plc ip address in my case the numbers are 192.168.000 and for the last number please choose a different number from your plc in my case my plc number is six so i am not going to use number six i'm going to use number one for the subnet mask once you click it it will be automatically filled in and the default gateway please refer to your plc gateway type in the same number in my case the number are 192.168.00 once you're done click ok and click close now we are going to launch the logo softcomfort software find the icon on your desktop and double click it will launch the software on your screen you will have circuit diagram 1 we are not going to use this kind of diagram i want you to go to file click new and click letter diagram now second diagram tool is showing a letter diagram saved as the file first as circuit one now open up the letter diagram that you want to draw in this case this is the letter diagram that we are going to draw in the software in the software you can find the instructions with a lot of components that you can use to develop your leather diagram for the start button we will be using the make contact so i will click on it hold and drag it [Music] on the screen choose i1 input click ok and then for the second one which is a normally closed contact go to the instruction and click great contact click and hold and drag and choose a different input in this case choose i2 and click ok and then next one we have an internal relay r1 go to the relay coil in the instruction click and drag double click the q1 we are not going to use q1 in the block name type m so we will choose m1 flag okay so m1 flag is an internal relay next one we have a normally open contact r1 go back to the make contact click and drag and you have to type in the block name as m1 and you will find the path which is m1 really quiet click and click ok now connect your component click and drag to where you want to connect it to click and drag click and drag click drag for the m1 contact for the second connection double click on it and you will see two items i2 and m1 double click on the i2 and it will automatically connect it next rung round number two we also have the normally open contact relay so go back to the instruction click and drag the make contact and again in the block name type m and you will see m1 really coil click click ok next one we have an on delay timer so in the instruction you have to scroll down a little bit and you will find the timer group you will see an on delay click and drag and now you can connect it together for the timer double click to set the time in our case here we want it to be 5 seconds so click the arrow up until 5 and click ok next we want to draw the normally open timer contact and also the lamp which is the output so go and find the make contact again this time please scroll down all the way down until you find p001 on delay click on it and click ok next we have the output for the output go and get the relay coil click and drag [Music] double click on it you will have q addresses for the real output so i'm going to use q1 click ok now connect all your components on the round tree and now you are done with your leather diagram next we want to save it first and then we want to transfer the program to the plc go to the tools and click transfer and choose or click pc to logo you will see this window i want you to click the refresh button and you will see an accessible logo click on it and then click this it will try to connect to the device and if the connection is okay you will see a green line and also a green check mark and then press ok it will continue to connect to the device and if you see this from the device is in run mode change to stop click yes and then the device is in stop mode change to run click yes now you are done with transferring your ladder diagram to your actual poc circuit now we will test the actual plc circuit i will press the i1 button and off it after five seconds the lamp should turn on and now the lamp is turned on and to turn it off i have to press stop button and release and we repeat again the test press i1 release after 5 seconds lamp shoot turns on and then use the i2 button to turn it off again you can also use the software to perform simulation on the leather diagram on the diagram editor taskbar go and find the icon sim which stands for the simulation and click on it and now you can look at the bottom there is i1 i2 and then you have two lamps representing m1 which is the internal relay coil and q1 which is the real output lamp let's test the circuit press i1 and release timer starts counting and m1 turns on and after 5 seconds the q1 also turns on and if we want to turn off the lamp we will have to break the current flowing to the m1 ethernet relay coil so go to i2 button and press it and both the m1 and q1 will be off immediately