SIMATIC S7-1500 PLC Error Handling Organization Block Description

Publisher:EuphoricMelodyLatest update time:2024-06-04 Source: elecfansKeywords:SIMATIC  S7-1500  PLC Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Error Handling Organization Block

(1) Error handling overview

SIMATIC S7-1500 PLC has strong error (or fault) detection and handling capabilities, which refers to functional errors or programming errors within the PLC, rather than failures of external devices. After the CPU detects an error, the operating system calls the corresponding organization block, and the user can program in the organization block to take appropriate measures for the error that occurred. For most errors, if the organization block is not programmed, the CPU will enter STOP mode when an error occurs.

(2) Incorrect classification

There are two basic types of errors that are detected by the S7 CPU and can be handled by the user via organization blocks.

① Asynchronous errors are errors that are closely related to the PLC hardware or operating system, have nothing to do with program execution, and have serious consequences. Asynchronous error OBs have the highest priority and other OBs cannot interrupt them. If multiple asynchronous error OBs of the same priority appear at the same time, they will be processed in the order they appear.

The system program can detect the following errors: incorrect CPU functions, errors in the execution of the system program, errors in the user program, and errors in the I/O. Depending on the type of error, the CPU is set to enter STOP mode or call an error handling organization block (OB).

When the CPU detects an error, it calls the appropriate organization block, as shown in Figure 1. If there is no corresponding error handling OB, the CPU will enter STOP mode. The user can write a program in the error handling OB to handle this error in order to reduce or eliminate the impact of the error.

b41ed5e4-4420-11ee-a2ef-92fbcf53809c.png

Figure 1

To prevent the CPU from shutting down when a certain error occurs, you can create a corresponding empty organization block in the CPU. Users can use the information provided by the variable declaration table in the OB to determine the type of error.

② Synchronous errors (OB121 and OB122) are errors related to program execution. The priority of their OBs is the same as the priority of the block that was interrupted when the error occurred, that is, the program in the synchronous error OB can access the contents of the accumulator and status register when the block was interrupted. After processing the error, the processing result can be returned to the interrupted block.


Keywords:SIMATIC  S7-1500  PLC Reference address:SIMATIC S7-1500 PLC Error Handling Organization Block Description

Previous article:What is the difference between F-type PLC data types and standard PLC data types (UDT)?
Next article:In-depth discussion of the relationship and role of servo motors and machine tools

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

Which programming method does Mitsubishi FX series PLC support?
Mitsubishi FX series PLC is a programmable logic controller widely used in the field of industrial automation. It has powerful functions and flexibility, and supports a variety of programming methods to meet the needs of different users. This article will introduce in detail the programming methods supported by Mits
[Embedded]
How to choose PLC reasonably
There are three types of PLC brands on the market: imported European and American brands such as Siemens, Schneider and GE; imported Japanese and Korean brands such as Omron, Mitsubishi and Panasonic; domestic brands such as Inovance, Delta and Xinjie. It should be noted that all PLCs of different brands meet intern
[Embedded]
What are the types of PLC and how to deploy them
Technology deployment PLC data acquisition and processing is based on the data analysis and control of the remote server configuration software. The data is transmitted to the server through wireless 4G, so that multiple project points can be centrally managed and controlled. Due to different application scenar
[Embedded]
HMI and PLC integration accelerates digital transformation of smart factories
In the field of contemporary automation applications, programmable logic controllers (PLC) and human-machine interfaces (HMI) are the two most important devices. With the popularization of smart factories, the first step to realize the Industrial Internet of Things (IIoT) is to visualize the information of PLC devic
[Embedded]
HMI and PLC integration accelerates digital transformation of smart factories
SIMATIC PN/CAN LINK CANopen Manager Configuration Instructions
Configuration Instructions Step 1: Add a hardware device in the TIA Portal. In the network view, double-click the hardware directory. In the gateway directory, click PN/CAN LINK. Double-click the order number of the device and add it to the network view. See Figure 2-1. Figure 2-1 Hardware Addition
[Embedded]
SIMATIC PN/CAN LINK CANopen Manager Configuration Instructions
10 Practical Tips on PLC (Part 2)
6. Label input and output Convenient maintenance PLC controls a complex system. What you can see are two rows of staggered input and output relay terminals, corresponding indicator lights and PLC numbers, just like an integrated circuit with dozens of pins. Anyone who does not look at the schematic diagram to r
[Embedded]
How does the PLC data acquisition gateway realize data acquisition and remote program upload and download of Mitsubishi PLCs such as FX3SA/FX3GA/FX3G/FX3U?
With the development of industry, PLCs produced by Mitsubishi manufacturers can be used in various industrial equipment. These PLC devices can use the corresponding Wutong Bolin PLC data acquisition gateway to collect data. By connecting the PLC data acquisition gateway and the Mitsubishi PLC controller, data collec
[Embedded]
How does the PLC data acquisition gateway realize data acquisition and remote program upload and download of Mitsubishi PLCs such as FX3SA/FX3GA/FX3G/FX3U?
PLC interlocking signal control of robot
This block coordinates interlock requests between the various To prevent a "deadlock" between robots, the robots output an interlock request and wait for confirmation before entering an interlock. Each robot has 16 robot/robot interlocks. Before entering interlock 1, the robot outputs the bit "Ver_Afn.
[robot]
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号