当前位置:网站首页>[industrial control old horse] detailed explanation of the design scheme of the running lamp control system based on Siemens S7-200PLC
[industrial control old horse] detailed explanation of the design scheme of the running lamp control system based on Siemens S7-200PLC
2022-06-29 07:43:00 【Industrial control old horse】
Based on Siemens S7-200PLC The design scheme of the control system of the running lamp based on
1、 Design background
application S7-200 PLC The hardware circuit of the lantern design , And make use of OB1 Ladder diagram control program design . By controlling S7-200 PLC The function of the timing relay is to realize that each color lamp lights up and goes out according to a certain law .
Turn on the delay timer SD Characteristics ( If RLO There is a positive jump edge , Then turn on the delay timer start command , Start the timer of the command with the set time value ). This control circuit has a simple structure , High reliability , Strong applicability ; The software program has a wide range of applications , The control of lighting and extinguishing the colored lights according to certain rules , Just change the time of the corresponding timer .
2、 Basic requirements of the system
2.1. The operation of the system is controlled by a switch :
Start switch “ON” The system works ; Start switch “OFF” The system stops working ;
2.2. S7-200 The command system of :
Turn on the delay timer SD, If RLO There is a positive jump edge , The on delay timer starts , Start the specified timer with the set time value . After reaching the set time , The dynamic contact of the timer is closed and maintained , until RLO Turn into 0 when , The timer is reset . If the timer runs for (RLO by 1 when ) Less than the timer time setting , Then when RLO from 1 Change to 0 when , The timer is also reset .
2.3. The law of control :
L1L7 common 7 A light-emitting diode , Ask to press the start button to run the lantern L1L7 Every... In positive order 1 Seconds turn on , When L7 After light , stop 2 second , then , Reverse reverse sequence 1 Seconds turn on , When L1 After re lighting , stop 5 second , Repeat the process . Press the stop button , The running lamp stops working .
2.4. Design principle
(1) Shift instructions
Shift instructions include unsigned number shift and signed number shift . The unsigned shift contains the word shift left instruction 、 Word shift right instruction 、 Doubleword left shift instruction and doubleword right shift instruction ; Signed number shift includes integer shift right instruction and double integer shift right instruction .* Unsigned number shift instruction .
Word shift left instruction
When it is allowed to enter EN Bit is high “1” when , The word shift left instruction will be executed , take IN The content specified by the end is sent to the accumulator 1 In low words , And left N The number of bits specified at the end , And then write OUT.Word shift right instruction
When it is allowed to enter EN The status of is “1.
(2) Sequential control design method
The so-called sequence control , That is, according to the predetermined sequence of production process , Under the action of each input signal, according to the internal state and time sequence , In the production process, each actuator operates automatically and orderly . Generally, sequential control design method is used , The sequence function diagram shall be drawn , The structure of the sequential function diagram has a single sequence 、 Select sequence and parallel sequence . A single sequence has no branches or merges , Branches of the selection sequence cannot be activated at the same time , Branches of parallel sequences can be activated at the same time .
2.5. Hardware selection
S7-200 Programming software based on STEP 7-MicroWIN32 Equipped with a large number of programming wizards , Such as PID、 Network reading and writing 、 Programming wizard for high-speed counters and high-speed output instructions , Position control module 、 Text display TD200、 Modem module 、 Ethernet Module 、 Internet module 、AS-i Programming wizard of communication module, etc . When using these programming wizards , Just enter the required data or determine the options , Programming software can automatically generate user programs .
With programming software and simulation function , yes , we have PLC The manufacturer provides the software to run on the computer , Can be used instead of PLC Hardware debugging user program simulation software , For example, Siemens and STEP 7 The programming software is used together S7-PLCSIM Simulation software 、 Mitsubishi Corporation and SW3D5C-GPPW-C Programming software SW3D5C-LLT-C Simulation software , Omron and CX-Programmer Simulation software for programming software CX-Simulator etc. , Siemens “LOGO! ” The programming software of the programmable logic module also has the simulation function .
PLC The simulation software is also a good learning tool for beginners to learn programming and program debugging methods .
2.6. The project design
The trend of the running lantern is as follows : When the start button is pressed ,L1、L2、L3、L4、L5、L6、L7 In order of 1 The second interval is lit ; When L7 After light , Pause 2 second , Reverse reverse sequence 1 Seconds turn on , When L1 After re lighting , stop 5 second , Repeat the process . For emergency stop, press the stop button , The running lamp stops working .
2.7. Element list 
surface 2-1 List of components for multi period intersection traffic lights
3、 PLC control system design
From the definition of programmable controller ,PLC It is also a kind of computer , It has a structure similar to that of a general-purpose computer , The programmable controller is also controlled by the central processing unit (CPU)、 Memory 、 Input / Output (I/O) Interface and power supply . However, it has stronger interface ability to connect industrial processes and more direct programming language to meet control requirements than general-purpose computers .
3.1. I/O Assignment and numbering of points
surface 3-1 System I/O Address assignment table 
3.2. PLC External terminal wiring diagram
PLC The working time reference is provided by the circuit of the running lamp . stay PLC The end of the output of , Connecting a resistor and a light-emitting diode or connecting two light-emitting diodes in parallel with a resistor constitutes PLC The circuit of the running lantern , Pictured 3-1 Shown .
The device selection in the circuit can be determined by calculation and experiment , You can also refer to some typical circuit parameters . In circuit , Resistance has partial voltage function , The resistance value is about 13KΩ , The voltage borne by one and two parallel LED is 3V about , PLC The operating voltage of the is +24V, This can make the running lamp work normally .
The switch is PLC Signal input port . The switch at the input end is used to control the operation of the output end and the operation of turning off the traffic lights , Start switch sd1, I0. 0 Power on (“1” state ), The traffic lights operate according to the designed procedure , sd2 closed , I0. 1 power failure (“0” state ) The system stops working .
chart 3-1 The design diagram of the hardware circuit of the running lantern
边栏推荐
- National Security Agency and CISA kubernetes reinforcement guidelines - new content in version 1.1
- cv2.cvtColor
- Swin Transformer理论讲解
- Appium automation test foundation ADB common commands (II)
- How to select CRM brand suppliers in garment industry?
- excel高级绘图技巧100讲(六)-甘特图在项目进度上的实战应用案例
- Fluent imitates uiswitch
- 719. 找出第 K 小的数对距离(二分)
- SYSTEMd management node exporter
- Wechat applet learning notes (summer vacation)
猜你喜欢

Wechat applet learning notes (summer vacation)

Dump (cl\alv\tree\base================================cp|set\items\for\column) when expanding node or clicking toolbar button

MFC中利用CDockablePane实现悬浮窗

Schnuka: 3D machine vision inspection system 3D vision inspection application industry

面试官:为什么数据库连接很消耗资源,资源都消耗在哪里?

Schnuka: what is visual positioning system? How visual positioning system works

ShapeShifter: Robust Physical Adversarial Attack on Faster R-CNN Object Detector

ShapeShifter: Robust Physical Adversarial Attack on Faster R-CNN Object Detector

ES中配置ext.dic文件不生效的原因

Some examples.
随机推荐
Schnuka: 3D machine vision inspection system 3D vision inspection application industry
tf. to_ int64
KingbaseES V8R6集群维护案例之--单实例数据迁移到集群案例
Markdown skill tree (2): paragraph and emphasis
Cv:: mat and Base64 conversion (including picture compression and decompression)
Beanpostprocessor and beanfactorypostprocessor
Alternative writing of if else in a project
Autosar SWC在Simulink中Parameter的使用
【FreeRTOS】中断机制
Some examples.
100 lectures on Excel advanced drawing skills (VI) - practical application cases of Gantt chart in project progress
Markdown skill tree (6): List
Markdown skill tree (1): introduction to markdown
Imx6dl4.1.15 supports EIM bus (Part 2) - configuration principle analysis.
Simulation analysis of sailing dynamics
部署Prometheus-server服务 system管理
tf. count_ nonzero
Blue Bridge Cup - minimum frame
What tools do testers need to know
蓝桥杯——13届第二批试题解析