What we are learning together is the continuous control program writing. Before writing the program, we must first create a project, add equipment, save the project, fill in the name and address in the default variable table, and open the "Main[OB1]" in the "PLC Program" to program.
See the figure below for the specific procedure:
When we start the forward rotation I0.0 action, the normally closed contact of I0.0 will be disconnected first. If the reverse coil Q0.1 is outputting at this time, the reverse coil Q0.1 will stop outputting. Then the normally open contact is conducted (all components are the same: the normally closed contact is disconnected first, and then the normally open contact is closed, with a time difference in between), so that the forward output coil Q0.0 outputs, the normally closed contact of Q0.0 is disconnected to form an interlock, and the normally open self-locking contact of Q0.0 is closed to self-lock. The reverse rotation start I0.2 is exactly the opposite of I0.0. Note: We cannot have double coil output in the program, that is, if there is already a Q0.0 coil, the second Q0.0 coil cannot appear in the program. If there is really no way to avoid it in the program, we can use the internal auxiliary relay M to replace it, as shown in the program in the figure below. In the previous program, we only need to control the two coils M0.0 and M0.1 to control Q2.0.
We can comment on the program in the red box in the figure below, or we can click the ellipsis on the right side of the program segment to give our program segment a name to facilitate our subsequent search and understanding of the program.
Next, let’s learn about setting and resetting. The set and reset buttons are on the far right of the favorites bar, and can also be dragged from the “Bit Logic Instructions” on the right.
S stands for set output, and R stands for reset output. Set output can drive "I/Q/M/D/L". In the following program, when our I1.0 is activated, Q1.0 will output. When I1.0 is reset, Q1.0 will keep outputting. Only when we use "R" to reset Q1.0, Q1.0 will stop outputting. Note: Set-reset operation does not count as double coil
Previous article:PLC programming method PLC programming computer configuration requirements
Next article:A brief analysis of several communication protocols supported by S7-200 PLC
Recommended ReadingLatest update time:2024-11-16 09:39
- Popular Resources
- Popular amplifiers
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications