Understanding the different types of OB blocks and their usage in Siemens S7 PLCs is essential for efficient program development and system stability. Here's a detailed breakdown of each organization block (OB) and its purpose:
1. Free Loop Organization Block (OB1): This is the main cyclic block that runs continuously after the CPU starts. It can call other functions like FB, FC, etc., and has the lowest priority. If it exceeds the set scan time (default 150ms), OB80 is triggered, potentially stopping the CPU if not handled.
2. Date-Time Interrupt Blocks (OB10–OB17): These are triggered based on specific date or time settings. They can be configured to run once or periodically. The SFC28 function allows dynamic adjustments during runtime, making them flexible for scheduling tasks.
3. Time-Delay Interrupt Blocks (OB20–OB23): These allow triggering an OB after a specified delay. The SFC32 function is used to activate them, with delays ranging from 1 to 60,000 ms. This provides better accuracy than standard timers.
4. Cyclic Interrupt Blocks (OB30–OB38): These execute at fixed intervals, typically used for real-time applications like PID control. The minimum interval is 55 ms, and the execution time must be shorter than the interval to avoid errors. They can be enabled/disabled via SFC39–SFC42.
5. Hardware Interrupt Blocks (OB40–OB47): Triggered by external events such as digital inputs or modules. These are ideal for fast response applications where normal input scanning isn't sufficient. They can be configured to trigger on rising/falling edges or both.
6. DPV1 Interrupt Blocks (OB55–OB57): Used for PROFIBUS-DP V1 slave communication. These blocks handle interrupts generated by the DP slaves and are crucial for synchronization in distributed systems.
7. Multi-Processor Interrupt Block (OB60): Designed for multi-CPU systems (e.g., S7-400). It allows all CPUs to execute the same OB simultaneously, useful for complex parallel processing tasks.
8. Clock Synchronization Interrupt Blocks (OB61–OB64): Ensures synchronization across multiple PROFIBUS-DP stations. These blocks help maintain timing consistency, especially in high-speed automation environments.
9. Process Synchronization Block (OB65): Used for motion control applications. It ensures synchronized execution of technology blocks and start programs in T-CPU systems.
10. Redundant Fault Blocks (OB70, OB72): For S7-400H redundant systems, these blocks handle I/O and CPU redundancy faults. They prevent the CPU from entering stop mode if properly implemented.
11. Asynchronous Fault Blocks (OB80–OB87): These handle various fault conditions like timeout errors, power issues, diagnostics, and communication failures. Each block addresses specific error types and can cause the CPU to stop if not managed.
12. Processing Error Block (OB88): Triggers when there are memory allocation or program nesting issues. It ensures the system remains in a safe state even during critical errors.
13. Background Loop Block (OB90): Has the lowest priority and is used to ensure minimal scan time. It’s triggered during program download or deletion and is exclusive to S7-400 CPUs.
14. Start-up Blocks (OB100–OB102): These are executed during different startup modes (cold, warm, hot). They’re ideal for initialization routines and resetting variables upon boot.
15. Synchronization Error Blocks (OB121, OB122): Handle programming and I/O access errors. Proper handling of these blocks prevents unexpected system behavior and ensures stable operation.
When using OB blocks, keep the following in mind:
- OBs respond to faults but do not resolve them. They allow the CPU to continue running with some faults.
- Diagnostic OBs like OB82 or OB122 indicate hardware issues, which must be addressed manually.
- Excessive use of diagnostic OBs can slow down the system, especially in high-speed applications.
- Never ignore faults—implement safety measures to bring the system into a controlled state quickly.
For simple logic-based programs, only OB1 may be needed. However, for more complex systems involving DP communication or analog modules, additional OBs are necessary to ensure smooth operation and error handling.
Each OB plays a unique role in the system, and understanding their priorities and behaviors is key to developing robust and reliable PLC programs. Always refer to the CPU manual for specific configurations and capabilities.
I. Definition and overview
A high-frequency UPS is an Uninterruptible Power Supply (UPS) technology. It uses the high-frequency switching power supply technology to convert the input AC power into high-frequency AC power through the inverter and then converts the input AC power into stable direct current (DC) power for electronic devices. High frequency UPS plays an important role in modern power supply system because of its efficient conversion rate, small size design and fast response ability.
Two, the main characteristics
Efficient conversion rate:
High frequency UPS adopts a new IGBT (insulated gate bipolar transistor) inverter technology, and its conversion efficiency can reach more than 90%, which is much higher than the traditional low-frequency UPS, effectively reducing energy loss and improving the use efficiency. (Source: Shunqi network enterprise yellow pages and supply and demand information release platform)
Small volume design:
Because high-frequency UPS uses a more compact design, its volume is significantly smaller than low-frequency UPS, and its footprint is smaller, which is very suitable for use in space-limited environments, such as data centers and computer rooms. (source ibid.)
High power density:
The power density of high-frequency UPS is large, and it can provide greater power output in a small volume, improving the capacity and power supply efficiency of the equipment.
Quick response:
The high frequency UPS has a fast response capability and can provide stable power for the device immediately when the power supply of the grid is interrupted, ensuring that the continuous operation of the device is not affected.
Intelligent management:
Many high-frequency UPS are equipped with advanced intelligent management systems, which can monitor the status of power supply, battery status, load situation in real time, and have fault diagnosis, automatic switching, remote monitoring and other functions, improving the reliability and maintainability of the system.
High frequency Uninterrupted Power Supply,High frequency UPS system, High frequency online UPS
Foshan Keylewatt Technology Co., LTD , https://www.klwenergy.com