(1) Interruption process
Interrupt processing is used to achieve a quick response to special internal or external events. When the CPU detects an interrupt request, it immediately responds to the interrupt and calls the interrupt program corresponding to the interrupt source, that is, the organization block OB. After executing the interrupt program, it returns to the interrupted program to continue executing the program. For example, when executing the main program OB1 block, the time interrupt block OB10 can interrupt the program being executed by the main program block OB1 and execute the program in the interrupt program block OB10 instead. After the program in the interrupt program block is executed, it will be transferred to the main program block OB1 and execute the main program from the breakpoint.
An event source is an interrupt event that can send an interrupt request to the PLC, such as date and time interrupts, delay interrupts, cycle interrupts, and interrupts caused by programming errors.
(2) OB priority
The execution of an organization block OB call can interrupt the execution of another OB. Whether an OB allows another OB to interrupt depends on its priority. SIMATIC S7-1500 PLC supports a total of 26 priorities, 1 is the lowest and 26 is the highest. A high-priority OB can interrupt a low-priority OB. For example, the priority of OB10 is 2, and the priority of OB1 is 1, so OB10 can interrupt OB1. S7-300/400 CPU supports 29 priorities.
The types and priorities of organization blocks will be announced in the next issue.
illustrate:
1. The S7-300/400 CPU only supports one main program block OB1, while the SIMATIC S7-1500 PLC supports up to 100 main programs, but the second main program number starts from 123 and is set by the configuration. For example, OB123 can be configured as the main program.
2. Cyclic interrupts can be OB30 to OB38. If they are not enough, you can also use OB123 and above organization blocks through configuration;
3. The startup organization blocks of S7-300/400 CPU are OB100, OB101 and OB102, but SIMATIC S7-1500 PLC does not support OB101 and OB102.
Previous article:What are the differences between explosion-proof servo motors and explosion-proof stepper motors?
Next article:What are the cooling methods for high-speed motors?
- 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
- Comparison between fixed-point dsp and floating-point dsp
- Reliability Design of PCB Board for High-speed DSP System
- How to daisy chain 485
- Silergy SY5072 specification sheet help
- Please help me find out which movie the characters in the attached picture are from. Thank you.
- Renovation of old items + transformation of discarded charging heads into bathroom lighting
- How should I draw the various layers of the Allegro pad pins?
- MSP430 variant 3-wire SPI bus implementation (for DS1302 clock chip)
- EEWORLD University Hall----Overview of Operational Amplifier Technology
- Design of multifunctional air quality detection system based on Gizwits IoT platform