9 classic Siemens PLC cases for beginners to quickly get started

Publisher:AngelicJourneyLatest update time:2024-03-20 Source: elecfans Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1. Reciprocating motion of the trolley

Use S7-200 to realize the automatic control of the trolley's reciprocating movement. The control process is to press the start button, and the trolley moves from the left to the right (right to the left). When it moves to the right (left) and touches the right (left) travel switch, the trolley automatically returns, and when it touches the travel switch on the other side, it returns again. This reciprocating movement continues until the stop button is pressed and the trolley stops moving.

9662bf7a-6711-11ee-939d-92fbcf53809c.png

▲ Electrical Wiring diagram

I/O Allocation Table

9673775c-6711-11ee-939d-92fbcf53809c.png

Ladder diagram program

96773f4a-6711-11ee-939d-92fbcf53809c.png

PLC Wiring Diagram

96969912-6711-11ee-939d-92fbcf53809c.png

Program debugging and result analysis

96a1aa32-6711-11ee-939d-92fbcf53809c.png

▲Control platform operation panel

When SB2, that is, i0.0, is pressed (mouse click i0.0f), Q0.0 is turned on, and the car moves to the right (indicator light Q0.0 is on). When the car runs and hits the right limit switch SQ2, that is, i0.4 (click i0.4f with the mouse to simulate SQ2 being pressed down), the car moves to the left (indicator light Q0.0 is off, and indicator light Q0.1 is on). When it runs to the left and hits the left limit switch SQ1, that is, i0.3 (mouse click i0.3f), the car moves to the right again (indicator light Q0.1 is off, and indicator light Q0.0 is on). The car moves back and forth like this until SB1, that is, i0.2, is pressed (mouse click i0.2f), and the car stops.

Attachment:

96ab050a-6711-11ee-939d-92fbcf53809c.png

2. Flash Photoelectric Road

When the start button is pressed, the light is required to be on for one second and off for one second within two seconds, and repeat this process, with the light flashing.

I/O Allocation Table

96b697e4-6711-11ee-939d-92fbcf53809c.png

Ladder diagram program

96c9c120-6711-11ee-939d-92fbcf53809c.png

PLC Wiring Diagram

96d9c11a-6711-11ee-939d-92fbcf53809c.png

Program debugging and result analysis

Download the written program to Siemens s7-200PLC for debugging. Observe whether the running results are the same as the experimental requirements. Debug through the online control panel. When I0.0f on the online control panel is pressed (i.e. I0.0 is turned on), Q0.0 has output, and the load light connected to Q0.0 is on. At the same time, start timer T37 to start timing. After one second of timing, T37 is activated and its normally closed contact is disconnected, so Q0.0 has no output and the connected load light is off. When the light is off, start timer T38. After T38 counts for one second, the normally closed contact in series with timer T37 is disconnected, so T37 is reset and the normally closed contact of T37 is restored to normally closed. At this time, Q0.0 has output again, and the connected load light is on again. In this way, the load light connected to output Q0.0 keeps flashing at a frequency of one second on and one second off until I0.1f on the online control panel is pressed (i.e. I0.1 is turned on), and the flash circuit no longer continues to work. If you want to change the frequency of the light flashing, just change the time of the timer to achieve the change requirement.

3. Star-delta step-down starting

The Siemens S7-200 PLC is used to realize the star-delta connection step-down starting.

Circuit diagram and control diagram of star-delta step-down starting

96e7c12a-6711-11ee-939d-92fbcf53809c.png

The process framework diagram is as follows

970229c0-6711-11ee-939d-92fbcf53809c.png

I/O Allocation Table

971a822c-6711-11ee-939d-92fbcf53809c.png

Ladder diagram program

9725646c-6711-11ee-939d-92fbcf53809c.png

PLC Wiring Diagram

973c1432-6711-11ee-939d-92fbcf53809c.png

Program debugging and result analysis

Download the written program to the PLC of Siemens S7-200 for debugging. After downloading, we open the online control panel for debugging to see if the running results meet the requirements. First, set i0.2f on the control panel to a button and press it, that is, i0.2 is turned on, indicating that the circuit breaker QF is closed. Press the start button i0.0f (SB2), that is, i0.0 is turned on. At this time, the motor starts in star shape, Q0.0 and Q0.1 have outputs. The experimental wiring diagram shows that the two lights L1 and L2 are both on and drive the time counter at the same time. When the timer counts to 10S, it switches to delta start. At this time, Q0.1 has no output, Q0.2 has output, then Q0.0 and Q0.2 have output, and the motor runs in triangle star. L1 and L3 lights on the wiring panel are on. After pressing i0.1f on the online panel (i0.1 is turned on), the motor stops running. All output points have no output.

4. Color Light Control

Use the eight output terminals Q0.0 to Q0.7 of the PLC to control eight colored lights, so that one lights up every second and cycles. When I0.0 is turned on, all lights go out. When I0.1 is turned on, the cycle starts again from Q0.0.

I/O Allocation Table

974bb0a4-6711-11ee-939d-92fbcf53809c.png

Ladder diagram program

9760f306-6711-11ee-939d-92fbcf53809c.png

976bd884-6711-11ee-939d-92fbcf53809c.png

9781be92-6711-11ee-939d-92fbcf53809c.png

PLC Wiring Diagram

979c0522-6711-11ee-939d-92fbcf53809c.png

Program debugging and result analysis

Download the written program to the PLC for debugging. After downloading, we open the online control panel for debugging to see if the running results meet the requirements.

As soon as the PLC is powered on, sm0.0 remains connected. So t37 performs delay timing, and after the delay is up, t38 timing is started. After t38 timing is up, the normally closed contact of t38 is disconnected, so t37 timing is disconnected. The normally open contact of t37 returns to normally open, so t38 timing is also disconnected. At this time, the normally closed contact of t38 returns to normally closed, so t37 starts timing again, and counter C0 starts counting once. This counting is repeated. When the count is 1, Q0.0 is connected. When the counter counts to 2, Q0.1 is connected... and so on. When the counter counts to 8, Q0.7 is connected. When the counter counts to 9, counter C0 is cleared. When I0.0f (i.e. I0.0) on the online control panel is pressed to turn it on, the counter, and Q0.0~Q0.7 are all cleared, that is, no light is on. When I0.1f on the online control panel is pressed (i.e. I0.1 is turned on), the counter starts counting again, and the lights start lighting up one by one from Q0.0.

5. Comparison Instructions

Record the goods in and out of the warehouse. The warehouse can hold up to 6,000 cartons of goods. If there are more than 1,000 cartons, light L1 will be on, and if there are more than 5,000 cartons, light L2 will be on.

I/O Allocation Table

97ab4460-6711-11ee-939d-92fbcf53809c.png

Ladder diagram program

97b6661a-6711-11ee-939d-92fbcf53809c.png

PLC Wiring Diagram

97c1412a-6711-11ee-939d-92fbcf53809c.png

Program debugging and result analysis

Download the program to the S7-200 PLC for debugging. Before downloading, we first reduce the numbers in the program so that we can see the experimental results better and faster in the experiment. We set the light of L1 to 5. We set the light of L2 to 10. In this way, we can see the experimental results faster.

When I0.0f on the online control panel is pressed, I0.0 is connected, indicating that there are goods entering. When we click I0.0f on the online control panel five times, the count value in the timer is 5 (that is, there are already 1000 boxes of goods in the warehouse), then the light L1 will be on, that is, Q0.0 has output. When I0.0f is clicked ten times, the count value of the counter is 10 (that is, there are 5000 items in the warehouse), and the light L2 is also on, that is, Q0.1 has output. When I0.0f on the online control panel is clicked, the count value in the counter continues to increase. When I0.1f is pressed on the online control panel, the counter starts to decrease. Click once, and the count value in the counter decreases once. When the value in the counter is less than 10, it means that there are less than 5000 boxes of goods in the warehouse, and the light L2 is off (that is, Q0.1 has no output). When I0.1f is clicked, the count value in the counter continues to decrease, and when it decreases to less than 5 times. Indicates that there are less than 1000 items in the warehouse, and the light L1 is off. Q0.0 has no output. When I0.2f on the online control panel is pressed, the counter is reset. L1 and L2 are not lit (that is, Q0. and Q0.1 have no output).

6. 8 color lights shift control

Use IO wires to control the cyclic shift of the eight colored lights connected to Q0.0 to Q0.7. Use t37 timing to shift one position every 0.5S. Set the initial value of Q0.0 to Q0.7 during the first scan, so that Q0.0 and Q0.2 have output first. Use I0.1 to control the direction of the colored lights' displacement.

I/O Allocation Table

97cbc1c2-6711-11ee-939d-92fbcf53809c.png

Ladder diagram programming

97daaf20-6711-11ee-939d-92fbcf53809c.png

PLC Wiring Diagram

97f643c0-6711-11ee-939d-92fbcf53809c.png

Program debugging and result analysis

Download the program to the Siemens S7-200 PLC for debugging. Once the PLC is powered on, Q0.0 and Q0.2 will have outputs, and Q0.0 and Q0.2 will light up. When the I 0.0f (indicates that I0.0 has input) setting switch on the online panel is pressed, timer T37 starts timing, and the colored lights shift to the right based on Q0.0 and Q0.2 every 0.5 seconds. When I0.1f (indicates that I0.1 has input) on the online control panel is pressed to set it, the colored lights move to the left in the same way.

7. Jump Instructions

Use the jump instruction to control the two lights L1 and L2, connect them to Q0.0 and Q0.1 respectively, switch position I0.0, and the control switch positions of the two lights are I0.1 and I0.2. When manually, use the control switches of the two lights to control them respectively. When automatically, the two lights light up alternately every one second.

I/O Allocation Table

9801842e-6711-11ee-939d-92fbcf53809c.png

Ladder Diagram Programming

9818834a-6711-11ee-939d-92fbcf53809c.png

Program debugging and result analysis

Download the written program to the PLC of s7-200 for debugging. When I0.0 is OF, the PLC runs the manual program. Pressing the set buttons I0.1f and I0.2f on the online control panel means (I 0.1 and I0.2 are closed) the lights L1 and L2 are on, and Q0.0 and Q0.1 have outputs. When we press I0.0f on the online control panel, I0.0 is ON at this time, and the program jumps to the automatic program operation. The two lights cycle every second. L1 lights up for one second and then L2 lights up. When I0.0f on the online control panel is pressed, I0.0 is OFF at this time, and the program jumps to the manual program operation.

[1] [2]
Reference address:9 classic Siemens PLC cases for beginners to quickly get started

Previous article:What is inductive? What is non-inductive? The difference between inductive and non-inductive brushless DC motors
Next article:A brief analysis of the key points of YTM32's DMA controller

Recommended ReadingLatest update time:2024-11-16 09:43

Siemens SIMATIC automation products realize the solution of automatic coal blending system
1. Introduction In the process of coal blending and coking in the coking plant, various clean coals such as fat coal, gas coal, lean coal, coking coal, lean coal, etc. need to be blended into mixed coal in appropriate proportions, which is called automatic coal blending. It is an important link in the entire co
[Embedded]
Siemens SIMATIC automation products realize the solution of automatic coal blending system
Application of Profibus-DP, Siemens touch screen and PLC devices in bucket wheel stacker and reclaimer
1. Introduction Bucket wheel stacker reclaimer is a large bulk material handling machine, widely used in ports, mines, steel mills, power plants and other bulk materials such as ore, coal, sand and gravel in the storage yard stacking and extraction operations, its work continuity is strong, the operation is fre
[Embedded]
Application of Profibus-DP, Siemens touch screen and PLC devices in bucket wheel stacker and reclaimer
Introduction to shift instructions of Siemens S7-200SMART
Siemens S7-200SMART provides a variety of rich functional instructions. Reasonable and clever use of different functional instructions can achieve twice the result with half the effort, and at the same time make your program more streamlined. Today we will explain the shift instructions in the shift and circular shi
[Embedded]
Introduction to shift instructions of Siemens S7-200SMART
How to read and write robot signals in batches using Siemens S7-1500
Method 1 DPRD_DAT: Read consistent data of a DP standard slave This instruction applies to central modules as well as DP standard slaves and PROFINET IO devices. The following data types can be used: BOOL, BY, CHAR, WCHAR, WORD, LWORD, DWORD, INT, UINT, USINT, SINT, LINT, ULINT, DINT,
[robot]
Checking Siemens PLC Program
After the PLC program design is completed, in order to ensure the reliability of the program, it is usually necessary to conduct a comprehensive check on the syntax and format of the compiled program. The check should include the following basic contents: ① There should generally be no repeated coils in the pro
[Embedded]
Checking Siemens PLC Program
Siemens Xcelerator's Capital software helps Airbus
Siemens Xcelerator's Capital software helps Airbus develop next generation electrical and electronic systems Siemens announced today that Airbus, the world's leading aircraft manufacturer, has adopted Capital™ electrical and electronic (E/E) system development software from Siemens' Xcelerator solutio
[Industrial Control]
Siemens Xcelerator's Capital software helps Airbus
Siemens 1500PLC collects modbusRTU instrument data
Scenario: Siemens 1500 needs to collect data from 64 modbusRTU instruments Application difficulties: writing polling programs is complex, the acquisition speed is slow, and using a single serial port causes large interference on site Solution: Use GRM300 series gateway, a total of 4 485 isolated seri
[Embedded]
Siemens 1500PLC collects modbusRTU instrument data
Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号