Control method, control system, electronic equipment and computer readable storage medium

By using virtual data block addresses in the control system to achieve indirect addressing peripheral equipment data and obtaining replacement data when an exception is detected, the downtime problem of traditional control systems in the event of equipment failure is solved, and production efficiency is improved and maintenance costs are reduced.

CN120029099APending Publication Date: 2025-05-23SIEMENS (CHINA) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411232494.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-03
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

Traditional control systems cannot effectively handle the failure of peripheral equipment or data input channels, resulting in the on-site equipment stopping for a long time, and the maintenance costs are high and the operation is complicated.

Method used

By introducing virtual data block addresses into the control system, indirect addressing of peripheral device data is realized. If an exception is detected, an alarm will be issued and replacement data will be obtained to prevent the device from stopping its operation. Users can simply operate the data input channel through the display interface or use preset analog data.

Benefits of technology

Improves production efficiency, reduces maintenance costs and operation complexity, avoids downtime caused by equipment failure, and facilitates data switching during the debugging stage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120029099A_ABST
    Figure CN120029099A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a control method, a control system, electronic equipment and a computer storage medium, and the method comprises the steps: reading first data provided by peripheral equipment according to a first virtual data block address of a first data input channel connected with the peripheral equipment, the data block area of the first virtual data block address is associated with the data block area of the physical address of the first data input channel; determining whether the peripheral equipment or the first data input channel is abnormal or not according to the first data; and if it is determined that the peripheral equipment or the first data input channel is abnormal according to the first data, sending out a first alarm signal, and obtaining replacement data of the first data according to the first virtual data block address. On the basis of the scheme, when it is determined that the peripheral equipment or the first data input channel is abnormal according to the first data, the situation that the field equipment stops working for a long time can be avoided, meanwhile, professional technicians do not need to specially go to the field for maintenance, and the maintenance cost and the operation complexity are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electrical technology, and in particular to a control method, a control system, an electronic device and a computer-readable storage medium. Background Art

[0002] In industrial automation applications, the control system uses a data acquisition device to obtain data provided by various peripheral devices such as temperature sensors, pressure sensors, flow sensors, etc. Usually, the control system is connected to the data acquisition device, and each data input channel of the data acquisition device is connected to the corresponding peripheral device to collect the data provided by the peripheral device for the control system to read and use.

[0003] Traditional control systems usually read the data provided by peripheral devices through direct addressing based on the physical address of the data input channel, and program based on this data to control the operation of the actuators in the field equipment. When a peripheral device fails or a data input channel fails, the data read by the control system will be wrong and cannot be processed subsequently, which may cause the field equipment to stop working for a long time, resulting in a waste of time. In addition, since traditional control systems directly address based on the absolute address of the data input channel, when replacing the data input channel, professional technicians are required to go to the site to modify the program to bind the physical address of the new data input channel, resulting in high skill requirements for field staff, high maintenance costs, and cumbersome operations. Summary of the invention

[0004] In view of this, embodiments of the present application provide a control method, a control system, an electronic device and a computer-readable storage medium to at least partially solve the above technical problems.

[0005] In a first aspect, an embodiment of the present application provides a control method, comprising: reading first data provided by a peripheral device according to a first virtual data block address of a first data input channel connected to the peripheral device, wherein a data block area of ​​the first virtual data block address is associated with a data block area of ​​a physical address of the first data input channel; determining whether an abnormality occurs in the peripheral device or the first data input channel according to the first data; if an abnormality is determined in the peripheral device or the first data input channel according to the first data, issuing a first alarm signal, and obtaining replacement data for the first data according to the first virtual data block address.

[0006] In the embodiment of the present application, since the data block area of ​​the first virtual data block address of the first data input channel is associated with the data block area of ​​the physical address of the first data input channel, the first data provided by the peripheral device can be read by indirect addressing according to the first virtual data block address. If it is determined that the peripheral device or the first data input channel is abnormal according to the first data, a first alarm signal is issued, and replacement data of the first data is obtained according to the first virtual data block address, thereby avoiding the long-term shutdown of the on-site equipment due to the abnormality of the peripheral device or the first data input channel, thereby improving production efficiency. At the same time, since indirect addressing is performed based on the first virtual data block address when the peripheral device or the first data input channel is determined to be abnormal according to the first data, the replacement data of the first data can be obtained, and there is no need for professional technicians to go to the site to perform maintenance operations by modifying the program, thereby reducing maintenance costs and complexity of operations.

[0007] In one implementation of the present application, the data block area of ​​the first virtual data block address stores preset analog data for the peripheral device, and obtaining replacement data for the first data according to the first virtual data block address includes: reading the preset analog data from the data block area of ​​the first virtual data block address as replacement data for the first data.

[0008] Through this method, it can be ensured that when the real-time requirements for the data provided by the peripheral device are not high, the field device will not stop working due to abnormalities in the peripheral device or the first data input channel, thereby maximizing production efficiency. In addition, during the programming and debugging stage of the control system, when the first data input channel is not connected to the peripheral device, the preset simulation data for the peripheral device is obtained through the first virtual data block address as the data provided by the peripheral device, which can make debugging more convenient and improve debugging efficiency.

[0009] In another implementation of the present application, preset analog data is read from a data block area of ​​a first virtual data block address as replacement data for the first data, including: receiving a first user operation on a display interface in response to a first alarm signal, the first user operation being used to allow the use of preset analog data to replace the read first data; in response to the first user operation, reading the preset analog data from the data block area corresponding to the first virtual data block address, and determining it as replacement data for the first data.

[0010] In this implementation, since the user confirms whether to use the preset simulation data to replace the read first data, this ensures the safety of operation while avoiding the field device from stopping working due to an abnormality in the peripheral device or the first data input channel. In addition, since the user can freely determine whether to allow the preset simulation data to replace the read first data through the display interface, the user can easily switch between the real data and the simulation data provided by the peripheral device during the programming and debugging stage of the control system, thereby improving the debugging efficiency.

[0011] In another implementation of the present application, replacement data for the first data is obtained based on the first virtual data block address, including: receiving a second user operation on the display interface in response to the first alarm signal, the second user operation being used to instruct the user to change the peripheral device from being connected to the first data input channel to being connected to the reserved data input channel; in response to the second user operation, updating the physical address associated with the first virtual data block address to the physical address of the reserved data input channel; and reading data provided by the peripheral device through the reserved data input channel as replacement data for the first data based on the first virtual data block address.

[0012] In this implementation, since the data input channel bound to the peripheral device can be changed through simple operations of the user on the display interface, and the data provided by the peripheral device can be indirectly addressed through the first virtual data block address, there is no need for professional technicians to go to the site to modify the program to perform maintenance operations, which reduces maintenance costs and operational complexity.

[0013] In another implementation of the present application, the control method also includes: if it is determined based on the first data that no abnormality has occurred in the peripheral device and the first data input channel, calibration processing is performed based on the first data to obtain calibration data; through the second virtual data block address of the first data output channel connected to the actuator, the calibration data is provided to the actuator to control the operation of the actuator, wherein the data block area of ​​the second virtual data block address is associated with the data block area of ​​the physical address of the first data output channel.

[0014] In another implementation of the present application, the control method also includes: receiving a feedback signal for indicating the working status of the actuator; if the feedback signal indicates that the actuator is operating abnormally, issuing a second alarm signal; receiving a third user operation on the display interface in response to the second alarm signal, the third user operation being used to instruct the user to change the actuator from being connected to the first data output channel to being connected to the reserved data output channel; in response to the third user operation, updating the physical address associated with the second virtual data block address to the physical address of the reserved data output channel; and providing calibration data to the actuator through the reserved data output channel according to the second virtual data block address to control the operation of the actuator.

[0015] In this implementation, the calibration data can be provided to the actuator through the reserved data output channel based on the second virtual data block address through a simple operation of the user on the display interface. In this way, it can be avoided that the on-site equipment stops working due to the failure of the first data output channel, thereby improving production efficiency. At the same time, there is no need for professional technicians to go to the site to perform maintenance operations by modifying the program, thereby reducing maintenance costs and complexity of operations. In addition, through this implementation, it is also possible to check whether the first data output channel has a fault.

[0016] In another implementation of the present application, the data block area of ​​the second virtual data block address stores preset control data for the actuator, and the method also includes: receiving a fourth user operation on the display interface in response to the second alarm signal, the fourth user operation being used to instruct to force the first data output channel to output the preset control data; in response to the fourth user operation, reading the preset control data from the data block area of ​​the second virtual data block address; and providing the preset control data to the actuator through the first data output channel according to the second virtual data block address to control the operation of the actuator.

[0017] This method can avoid stopping the equipment on site due to errors in programming or calibration processing of the control system based on the data read from the peripheral device, thereby improving production efficiency. At the same time, since the preset control data can be provided to the actuator through simple operations on the display interface by the user, there is no need for professional technicians to go to the site to modify the program for maintenance operations, which reduces maintenance costs and operation complexity.

[0018] In another implementation of the present application, there are multiple data input channels, and the method further includes: displaying the working status of the multiple data input channels on the display interface in bytes, and each bit in the byte corresponds to a data input channel. Thus, the user can intuitively understand the working status of each data input channel and grasp the operation status of the industrial site.

[0019] In a second aspect, an embodiment of the present application also provides a control system, which includes: a reading module, used to read first data provided by a peripheral device according to a first virtual data block address of a first data input channel connected to the peripheral device, wherein the data block area of ​​the first virtual data block address is associated with the data block area of ​​the physical address of the first data input channel; a judgment module, used to determine whether an abnormality occurs in the peripheral device or the first data input channel according to the first data; and a processing module, used to issue a first alarm signal if it is determined that an abnormality occurs in the peripheral device or the first data input channel according to the first data, and obtain replacement data for the first data according to the first virtual data block address.

[0020] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a communication interface, a memory and a bus, wherein the processor, the communication interface and the memory communicate with each other through the bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the method described in any one of the first aspects.

[0021] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having computer instructions stored thereon. When the computer instructions are executed by a processor, the processor executes any one of the methods described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a flow chart of a control method provided in an embodiment of the present application;

[0023] Figure 2 The embodiment of this application provides Figure 1 A specific implementation of step S106 in;

[0024] Figure 3 The embodiment of this application provides Figure 1 Another specific implementation of step S106 in;

[0025] Figure 4 is a flow chart of another control method provided in an embodiment of the present application;

[0026] Figure 5 is a flow chart of another control method provided in an embodiment of the present application;

[0027] Figure 6 is a schematic diagram of the structure of a control system provided in an embodiment of the present application;

[0028] Figure 7 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0029] List of reference numerals:

[0030] S102: reading first data provided by the peripheral device according to a first virtual data block address of a first data input channel connected to the peripheral device;

[0031] S104: Determine whether an abnormality occurs in the peripheral device or the first data input channel according to the first data;

[0032] S106: If it is determined according to the first data that an abnormality occurs in the peripheral device or the first data input channel, a first alarm signal is issued, and replacement data for the first data is obtained according to the first virtual data block address;

[0033] S108: If it is determined according to the first data that no abnormality occurs in the peripheral device and the first data input channel, a calibration process is performed based on the first data to obtain calibration data;

[0034] S110: providing calibration data to the actuator via the second virtual data block address of the first data output channel connected to the actuator to control the operation of the actuator;

[0035] S1060: receiving a first user operation on the display interface in response to a first alarm signal;

[0036] S1062: In response to the first user operation, read preset simulation data from the data block area corresponding to the first virtual data block address, and determine it as replacement data for the first data.

[0037] S1064: receiving a second user operation on the display interface in response to the first alarm signal;

[0038] S1066: In response to the second user operation, update the physical address associated with the first virtual data block address to the physical address of the reserved data input channel;

[0039] S1068: Reading data provided by the peripheral device through the reserved data input channel according to the first virtual data block address as replacement data for the first data;

[0040] S112: receiving a feedback signal indicating a working state of the actuator;

[0041] S114: If the feedback signal indicates that the actuator is operating abnormally, a second alarm signal is issued;

[0042] S116: receiving a third user operation on the display interface in response to the second alarm signal, where the third user operation is used to instruct the user to change the actuator from being connected to the first data output channel to being connected to the reserved data output channel;

[0043] S118: in response to the third user operation, updating the physical address associated with the second virtual data block address to the physical address of the reserved data output channel;

[0044] S120: providing the calibration data to the actuator through a reserved data output channel according to the second virtual data block address to control the operation of the actuator;

[0045] S201: receiving a fourth user operation on the display interface in response to a second alarm signal;

[0046] S202: In response to a fourth user operation, read preset control data from a data block area at a second virtual data block address;

[0047] S202: providing preset control data to the actuator through the first data output channel according to the second virtual data block address to control the operation of the actuator;

[0048] 602: reading module; 604: judging module; 606: processing module;

[0049] 710: processor; 720: communication interface; 730: memory;

[0050] 740: bus; 750: program. DETAILED DESCRIPTION

[0051] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be described clearly and in detail below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the embodiments of the present application should fall within the scope of protection of the embodiments of the present application.

[0052] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0053] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0054] It should also be pointed out that the terms "first\second\third" involved in the embodiments of the present application are only used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0055] To facilitate understanding of the technical solutions of the embodiments of the present application, the relevant technologies of the embodiments of the present application are described below.

[0056] In industrial automation applications, the control system obtains data provided by various peripheral devices such as temperature sensors, pressure sensors, flow sensors, etc. through a data acquisition device. Usually, the control system is connected to the data acquisition device, and each data input channel of the data acquisition device is connected to the corresponding peripheral device to collect data related to the field device. Usually, each data input channel stores the collected data in the data block area corresponding to its physical address, and it cannot be modified. These data are usually read by the control system to control the operation of the actuator in the field device.

[0057] Traditional control systems usually perform PLC programming in a programmable logic controller (PLC) based on the physical address of the data input channel (that is, the absolute address of the data input channel), thereby obtaining data provided by peripheral devices from the data block area corresponding to the physical address through direct addressing, and directly performing various processing based on these data to control the operation of the actuator in the field device. When the data input channel is not connected to the peripheral device, the peripheral device fails, or the data input channel fails, the control system cannot read the data or the read data is wrong, which will cause the control system to be unable to perform subsequent processing, which may cause the field device to stop working for a long time, resulting in a waste of time and affecting production efficiency. In addition, since traditional control systems directly address based on the absolute address of the data input channel, this results in the need to replace the data input channel connected to the peripheral device to determine whether the data input channel has failed during fault inspection, or when it is determined that the data input channel connected to the peripheral device has failed and the data input channel needs to be replaced, in order to ensure that the data provided by the peripheral device can be read through direct addressing based on the physical address of the new data input channel, professional technicians are required to go to the site to modify the program to bind the physical address of the new data input channel, which results in high skill requirements for users, high maintenance costs, and high operational complexity.

[0058] Based on this, the present application provides a control method, which reads the first data provided by the peripheral device through indirect addressing according to the first virtual data block address of the first data input channel connected to the peripheral device. If it is determined according to the first data that the peripheral device or the first data input channel is abnormal, a first alarm signal is issued, and the replacement data of the first data is obtained according to the first virtual data block address, thereby avoiding the long-term shutdown of the on-site equipment due to the abnormality of the peripheral device or the first data input channel, thereby improving production efficiency. At the same time, since indirect addressing is performed based on the first virtual data block address when it is determined according to the first data that the peripheral device or the first data input channel is abnormal, the replacement data of the first data can be obtained, and there is no need for professional technicians to go to the site to perform maintenance operations by modifying the program, which reduces the maintenance cost and complexity of the operation.

[0059] The control method provided in the present application is described in detail below through specific embodiments with reference to the accompanying drawings.

[0060] Figure 1 is a flow chart of a control method provided in an embodiment of the present application. The control method can be executed by a control system in an industrial field. Figure 1 As shown, the method includes the following steps.

[0061] S102 . Read first data provided by the peripheral device according to a first virtual data block address of a first data input channel connected to the peripheral device.

[0062] The data block area of ​​the first virtual data block address is associated with the data block area of ​​the physical address of the first data input channel.

[0063] In step S102, the peripheral device may be a detection or measurement device such as a temperature sensor, a flow sensor, a pressure sensor, a liquid level sensor, etc. in an industrial site. It should be noted that the industrial site may include multiple peripheral devices, each of which is connected to the control system through a corresponding data input channel in the data acquisition device, so that the control system reads the data provided by the peripheral device. For ease of description, this application takes one peripheral device as an example for description.

[0064] The data types provided by different peripheral devices may be different, and may be analog data or digital data represented by 0 or 1. It should be understood that for analog data, when data is collected through the corresponding data input channel in the data acquisition device, the data input channel will perform analog-to-digital conversion on the analog data to convert the analog data into integer data for storage and reading and use by the control system. For example, the data input channel can convert current data ranging from 0 to 20mA into integer data ranging from -27,648 to 27,648 for storage and use. Therefore, in an embodiment of the present application, the first data may be analog data stored in the form of integer data, or may be digital data represented by 0 or 1, and this embodiment does not limit this.

[0065] The first data input channel is a data input channel that is currently electrically connected to a peripheral device in a data acquisition device. The first data input channel has a corresponding physical address, and a data block area is correspondingly provided to the physical address. The data collected by the first data input channel from the peripheral device is stored in the data block area corresponding to the physical address, and the data stored in the data block area corresponding to the physical address cannot be modified. In addition, in an embodiment of the present application, the first data input channel also has a first virtual data block address. The first virtual data block address is associated with the physical address of the first data input channel, that is, there is a one-to-one mapping relationship. The first virtual data block address is also correspondingly provided with a data block area. The first virtual data block address of the first data input channel is associated with the physical address of the first data input channel, and accordingly, an association is established between the data block area of ​​the first virtual data block address and the data block area of ​​the physical address of the first data input channel. Therefore, the data stored in the data block area of ​​the physical address of the first data input channel can be obtained through the first virtual data block address.

[0066] S104, determining whether an abnormality occurs in a peripheral device or a first data input channel according to the first data;

[0067] In step S104, after the first data is acquired, it is determined whether an abnormality occurs in the peripheral device or the first data input channel according to the first data. For example, when the first data is analog data, it is determined whether an abnormality occurs in the peripheral device or the first data input channel by whether the first data is within a preset data range. When the first data is not within the preset data range, it is determined that an abnormality occurs in the peripheral device or the first data input channel. On the contrary, when the first data is within the preset data range, it is determined that no abnormality occurs in the peripheral device and the first data input channel. For another example, when the first data is digital data, it is determined whether an abnormality occurs in the peripheral device or the first data input channel by determining whether the first data is read within a preset time interval. If the first data is not read within the preset time interval, it is determined that an abnormality occurs in the peripheral device or the first data input channel, otherwise, it is determined that no abnormality occurs in the peripheral device and the first data input channel.

[0068] S106: If it is determined according to the first data that an abnormality occurs in the peripheral device or the first data input channel, a first alarm signal is issued, and replacement data for the first data is obtained according to the first virtual data block address.

[0069] In step S106, the control system sends out a first alarm signal, which can inform the user (for example, the on-site staff) that the data collected by the first data input channel is wrong, and an abnormality occurs in the peripheral device or the first data input channel. The first alarm signal can be a sound alarm signal or a light alarm signal, which is not limited in this embodiment. Since the abnormality of the peripheral device or the first data input channel is determined according to the first data, the replacement data of the first data can be obtained according to the first virtual data block address, thereby avoiding the on-site equipment from stopping working for a long time due to the abnormality of the peripheral device or the first data input channel, thereby improving production efficiency. At the same time, by performing indirect addressing based on the first virtual data block address, the replacement data of the first data can be obtained, which also eliminates the need for professional technicians to go to the site to perform maintenance operations by modifying the program, reducing maintenance costs and complexity of operations.

[0070] In the embodiment of the present application, according to different user requirements or user settings, the control system can obtain replacement data for the first data according to the first virtual data block address in different ways. The following describes how to obtain replacement data for the first data according to the first virtual data block address through multiple possible implementations.

[0071] In a first implementation, the data block area of ​​the first virtual data block address stores preset simulation data for the peripheral device, and obtaining replacement data for the first data according to the first virtual data block address includes: reading the preset simulation data from the data block area of ​​the first virtual data block address as replacement data for the first data.

[0072] Specifically, since the data block area of ​​the first virtual data block address is associated with the data block area of ​​the physical address of the first data input channel, in addition to the real data provided by the peripheral device that can be obtained through the first virtual data block address, the data block area of ​​the first virtual data block address also stores preset simulation data for the peripheral device. These preset simulation data are consistent with the data provided when no abnormality occurs in the peripheral device. In the case where the real-time requirements for the data provided by the peripheral device are not high, the control system can read the preset simulation data stored in its data block area through the first virtual data block address as replacement data for the first data, so that the control system can perform subsequent processing, avoid the field equipment from stopping working due to abnormalities in the peripheral device or the first data input channel, and improve production efficiency.

[0073] In addition, during the programming and debugging stage of the control system, when the first data input channel is not connected to a peripheral device, preset analog data for the peripheral device is obtained through the first virtual data block address for debugging, making the debugging process more convenient.

[0074] To ensure the safety of operation, Figure 2As shown, in a second implementation, the data block area of ​​the first virtual data block address stores preset simulation data for the peripheral device, and obtaining replacement data for the first data according to the first virtual data block address includes:

[0075] S1060, receiving a first user operation on the display interface in response to the first alarm signal, where the first user operation is used to allow the use of preset simulation data to replace the read first data;

[0076] S1062. In response to a first user operation, read preset simulation data from a data block area corresponding to a first virtual data block address, and determine the data as replacement data for the first data.

[0077] Specifically, a first reserved interface for allowing preset analog data to be read from a data block area corresponding to a first virtual data block address is displayed on the display interface, and the first reserved interface can be provided in any manner such as a button, an option, etc. After the control system issues a first alarm signal, the user can determine whether to allow the preset analog data to be read from the data block area of ​​the first virtual data block address to replace the read first data by operating the first reserved interface on the display interface according to actual needs.

[0078] In response to the first user operation, the control system can read the preset simulation data stored in its data block area through the first virtual data block address as replacement data for the first data. Since it is confirmed by the user, it is possible to ensure the safety of the operation while avoiding the field device from stopping working due to an abnormality in the peripheral device or the first data input channel. In addition, since the user can freely determine whether to allow the use of preset simulation data to replace the read first data through the display interface, this allows the user to easily realize the free switching between the real data and simulation data provided by the peripheral device during the programming and debugging stage of the control system, thereby improving the convenience and efficiency of debugging.

[0079] In the third implementation, Figure 3 As shown, obtaining replacement data for the first data according to the first virtual data block address includes:

[0080] S1064, receiving a second user operation on the display interface in response to the first alarm signal, where the second user operation is used to instruct the user to change the peripheral device from being connected to the first data input channel to being connected to the reserved data input channel;

[0081] S1066. In response to the second user operation, update the physical address associated with the first virtual data block address to the physical address of the reserved data input channel;

[0082] S1068. Read data provided by the peripheral device through the reserved data input channel according to the first virtual data block address as replacement data for the first data.

[0083] Specifically, a second reserved interface that allows the user to change the data input channel bound to the peripheral device is displayed on the display interface, and the interface can be provided in any manner such as a button, an option, etc. After the control system sends a first alarm signal, the user can determine that the peripheral device or the first data input channel has failed. In order to prevent the field device from stopping working for a long time due to a failure of the peripheral device or the first data input channel, the user can change the peripheral device from being connected to the first data input channel to being connected to the reserved data input channel through a second user operation on the display interface. The reserved data input channel can be one of a plurality of data input channels that are reserved in the design stage and are not connected to other peripheral devices.

[0084] When the user performs a second user operation on the display interface to change the peripheral device from being connected to the first data input channel to being connected to the reserved data input channel, the control system controls to disconnect the association between the physical address of the first data input channel and the first virtual data block address, and associates the physical address of the reserved data input channel with the first virtual data block address, that is, updates the physical address associated with the first virtual data block address to the physical address of the reserved data input channel. Since the physical address of the reserved data input channel is associated with the first virtual data block address, correspondingly, an association is established between the data block area of ​​the physical address of the reserved data input channel and the data block area of ​​the first virtual data block address. Therefore, according to the first virtual data block address, the data provided by the peripheral device through the reserved data input channel can be read as replacement data for the first data.

[0085] In this implementation, since the user can indirectly address the replacement data of the first data through the first virtual data block address through simple operations on the display interface, there is no need for professional technicians to go to the site to perform maintenance operations by modifying the program, which reduces maintenance costs and operational complexity.

[0086] After obtaining the replacement data, the control system can determine whether the peripheral device or the first data input channel has an abnormality based on the rationality of the replacement data. For example, if the replacement data is analog data, it can be determined by whether the replacement data is within a preset data range. For another example, if the replacement data is digital data, it can be determined by determining whether the replacement data is read within a preset time interval. If the replacement data is reasonable, it is determined that the first data input channel has an abnormality, otherwise it is determined that the peripheral device has an abnormality.

[0087] If the replacement data is determined to be reasonable, subsequent processing can be performed based on the replacement data. Specifically, calibration processing is performed based on the replacement data to obtain calibration data, and the operation of the corresponding actuator in the field device is controlled based on the calibration data. On the contrary, if the replacement data is determined to be unreasonable, it is determined that the peripheral device is abnormal. At this time, the control system will continue to issue a first alarm signal to prompt the user to replace the peripheral device as soon as possible, so as to minimize the time when the field device stops working due to the failure of the peripheral device.

[0088] In one embodiment of the present application, Figure 1 As shown, the control method also includes S108 and S110.

[0089] S108: If it is determined according to the first data that no abnormality occurs in the peripheral device and the first data input channel, a calibration process is performed based on the first data to obtain calibration data.

[0090] S110. Provide calibration data to the actuator through the second virtual data block address of the first data output channel connected to the actuator to control the operation of the actuator, wherein the data block area of ​​the second virtual data block address is associated with the data block area of ​​the physical address of the first data output channel.

[0091] Specifically, when it is determined based on the first data that no abnormality has occurred in the peripheral device and the first data input channel, the control system can use the first data for programming processing to obtain calibration data, and provide the calibration data as control data to the actuator to control the operation of the actuator.

[0092] The actuator may be a component of a field device in an industrial field. The actuator is connected to a control system via a data output device. Typically, a field device may include multiple actuators, each of which is connected to a control system via a corresponding data output channel in the data output device to receive control data sent by the control system. Different actuators may receive control data of different data types. The control data may be analog data or digital data, which is not limited in this embodiment. For ease of description, an actuator is used as an example in this application for illustration.

[0093] The first data output channel is a data output channel currently connected to the execution mechanism in the data output device. The first data output channel has a corresponding physical address, and a data block area is correspondingly arranged at the physical address.

[0094] In addition, the first data output channel has a corresponding second virtual data block address. The second virtual data block address is associated with the physical address of the first data output channel, that is, there is a one-to-one mapping relationship. The second virtual data block address is also correspondingly provided with a data block area. The second virtual data block address is associated with the physical address of the first data output channel, and accordingly, the data block area of ​​the second virtual data block address is associated with the data block area of ​​the physical address of the first data output channel. In this way, the control data to be output by the control system (that is, the calibration data generated in S108) can be stored in the data block area corresponding to the physical address based on the second virtual data block address, so as to be provided to the actuator via the first data output channel. As a result, the control system can provide the calibration data generated in S108 to the actuator by indirect addressing. Similar to data input, outputting data by indirect addressing can avoid long-term shutdown of field equipment due to failure of the first data output channel, etc., and at the same time, there is no need for professional technicians to go to the site to perform maintenance operations by modifying the program, which reduces maintenance costs and complexity of operations.

[0095] In one embodiment of the present application, after providing the calibration data to the actuator to control the operation of the actuator, the control method further includes: Figure 4 It should be understood that in order to avoid redundancy, Figure 4 Only the steps after the calibration data is provided to the actuator to control the operation of the actuator are shown.

[0096] S112. Receive a feedback signal indicating the working status of the actuator.

[0097] Specifically, similar to data input, the control system receives a feedback signal indicating the working state of the actuator through a corresponding data input channel in the data acquisition device.

[0098] S114. If the feedback signal indicates that the actuator operates abnormally, a second alarm signal is issued.

[0099] For example, when the actuator does not perform the operation corresponding to the control data output by the control system, it indicates that the actuator is working abnormally. The actuator may be working abnormally because the actuator itself is faulty, or because the first data output channel is faulty, or because the control system has an error in programming or calibration based on the first data. At this time, the control system sends a second alarm signal. The second alarm signal is similar to the first alarm signal, and can be a sound alarm signal or a light alarm signal, etc.

[0100] S116. Receive a third user operation on the display interface in response to the second alarm signal, where the third user operation is used to instruct the user to change the actuator from being connected to the first data output channel to being connected to the reserved data output channel.

[0101] Specifically, a third reserved interface is provided on the display interface to allow the user to change the data input channel bound to the actuator, and the interface can be provided in the form of a button or an option. In response to the second alarm signal, the user can perform a third user operation by operating the third reserved interface on the display interface to change the actuator from being connected to the first data output channel to being connected to the reserved data output channel, so as to avoid the field device from stopping working for a long time due to the failure of the first data output channel. The reserved data output channel can be one of a plurality of data output channels reserved in the design stage and not bound to other actuators.

[0102] S118. In response to the third user operation, update the physical address associated with the second virtual data block address to the physical address of the reserved data output channel.

[0103] Specifically, when the user performs a third user operation on the display interface, the actuator is changed from being connected to the first data output channel to being connected to the reserved data output channel, and the control system controls to disconnect the association between the physical address of the first data output channel and the second virtual data block address, and associates the second virtual data block address with the physical address of the reserved data output channel. That is, the physical address associated with the second virtual data block address is updated to the physical address of the reserved data output channel. Since the physical address of the reserved data output channel is associated with the second virtual data block address, accordingly, the data block area of ​​the physical address of the reserved data output channel is associated with the data block area of ​​the second virtual data block address.

[0104] S120. According to the second virtual data block address, provide the calibration data to the actuator through the reserved data output channel to control the operation of the actuator.

[0105] Specifically, since the physical address of the reserved data output channel is associated with the second virtual data block address, the data block area of ​​the physical address of the reserved data output channel is associated with the data block area of ​​the second virtual data block address. Therefore, based on the second virtual data block address, the calibration data can be stored in the data block area of ​​the physical address of the reserved data output channel to be provided to the actuator via the reserved data output channel. In this way, it is possible to avoid the on-site equipment from stopping working due to a failure of the first data output channel, thereby improving production efficiency. At the same time, since the data can be provided to the actuator via the reserved data output channel through simple operations by the user on the display interface, there is no need for professional technicians to go to the site to perform maintenance operations by modifying the program, thereby reducing maintenance costs and operational complexity.

[0106] In addition, after replacing the data output channel, if it is found through the feedback signal that the actuator is still oper- ating abnormally, it can be determined that the first data output channel has not failed, and the actuator is oper- ating abnormally because the control system makes an error in programming or calibration based on the data read from the peripheral device, or because of an error in the actuator itself.

[0107] In order to avoid the field device from stopping working due to errors in programming or calibration processing of the control system based on the data read from the peripheral device. In another embodiment of the present application, after providing the calibration data to the actuator to control the operation of the actuator, the control method further includes: Figure 5 It should be understood that in order to avoid redundancy, Figure 5 Only steps S202 to S206 after the calibration data is provided to the actuator to control the operation of the actuator are shown.

[0108] The data block area of ​​the second virtual data block address stores preset control data for the actuator, and the control method further includes:

[0109] S202, receiving a fourth user operation on the display interface in response to the second alarm signal, where the fourth user operation is used to instruct to force the first data output channel to output preset control data;

[0110] S204, in response to a fourth user operation, reading preset control data from the data block area of ​​the second virtual data block address;

[0111] S206 . According to the second virtual data block address, provide the preset control data to the actuator through the first data output channel to control the operation of the actuator.

[0112] Specifically, a fourth reserved interface is provided on the display interface, which allows the user to force the first data output channel to output (i.e., the data output channel bound to the actuator to output) preset control data, and the interface can be provided in the form of a button or an option, etc. The user can perform a fourth user operation by operating the fourth reserved interface on the display interface to instruct the first data output channel to output the preset control data.

[0113] In response to a fourth user operation, preset control data is read from the data block area of ​​the second virtual data block address, and based on the second virtual data block address, the preset control data is stored in the data block area of ​​the physical address of the first data output channel so as to be provided to the actuator via the first data output channel.

[0114] In this way, it is possible to avoid the field equipment stopping working due to errors in programming or calibration processing of the control system based on the data read from the peripheral device, thereby improving production efficiency. At the same time, since the preset control data can be provided to the actuator through simple operations on the display interface by the user, there is no need for professional technicians to go to the site to modify the program for maintenance operations, which reduces maintenance costs and operation complexity.

[0115] In addition, the data acquisition device includes multiple data input channels connected to different peripheral devices, so that the user can understand the working status of each data input channel. In one embodiment of the present application, the control method also includes: displaying the working status of multiple data input channels on the display interface in bytes, and each bit in the byte corresponds to a data input channel. As a result, the user can intuitively know the working status of each data input channel and grasp the operation status of the industrial site.

[0116] Furthermore, in order to facilitate the user to understand the working status of each data input channel. In one embodiment of the present application, the control method further includes: displaying the working status of multiple data output channels on the display interface in bytes, and each bit in the byte corresponds to a data output channel. Thus, the user can intuitively know the working status of each data output channel and grasp the operation status of the industrial site.

[0117] The present application also provides a control system. Figure 5 As shown, the control system includes:

[0118] A reading module 602, configured to read first data provided by a peripheral device according to a first virtual data block address of a first data input channel connected to the peripheral device, wherein a data block area of ​​the first virtual data block address is associated with a data block area of ​​a physical address of the first data input channel;

[0119] A judgment module 604 is used to determine whether an abnormality occurs in the peripheral device or the first data input channel according to the first data;

[0120] The processing module 606 is configured to issue a first alarm signal if it is determined according to the first data that an abnormality occurs in the peripheral device or the first data input channel, and obtain replacement data for the first data according to the first virtual data block address.

[0121] In an implementation of the present application, the processing module 606 is specifically configured to: read preset simulation data from the data block area of ​​the first virtual data block address as replacement data for the first data.

[0122] In one implementation of the present application, the processing module 606 is specifically used to: receive a first user operation on a display interface in response to a first alarm signal, the first user operation being used to allow the use of preset analog data to replace the read first data; in response to the first user operation, read the preset analog data from the data block area of ​​the first virtual data block address, and determine it as replacement data for the first data.

[0123] In one implementation of the present application, the processing module 606 is specifically used to: receive a second user operation on the display interface in response to the first alarm signal, the second user operation is used to instruct the user to change the peripheral device from being connected to the first data input channel to being connected to the reserved data input channel; in response to the second user operation, update the physical address associated with the first virtual data block address to the physical address of the reserved data input channel; according to the first virtual data block address, read the data provided by the peripheral device through the reserved data input channel as replacement data for the first data.

[0124] In one implementation of the present application, the processing module 606 is also used for: if it is determined based on the first data that no abnormality has occurred in the peripheral device and the first data input channel, calibration processing is performed based on the first data to obtain calibration data; the calibration data is provided to the actuator through the second virtual data block address of the first data output channel connected to the actuator to control the operation of the actuator, wherein the data block area of ​​the second virtual data block address is associated with the data block area of ​​the physical address of the first data output channel.

[0125] In one implementation of the present application, the processing module 606 is also used to: receive a feedback signal indicating the working status of the actuator; if the feedback signal indicates that the actuator is operating abnormally, issue a second alarm signal; receive a third user operation on the display interface in response to the second alarm signal, the third user operation being used to instruct the user to change the actuator from being connected to the first data output channel to being connected to the reserved data output channel; in response to the third user operation, update the physical address associated with the second virtual data block address to the physical address of the reserved data output channel; and according to the second virtual data block address, provide calibration data to the actuator through the reserved data output channel to control the operation of the actuator.

[0126] In one implementation of the present application, the processing module 606 is also used to: receive a fourth user operation on the display interface in response to the second alarm signal, the fourth user operation being used to indicate forcing the first data output channel to output preset control data; in response to the fourth user operation, read the preset control data from the data block area of ​​the second virtual data block address; and according to the second virtual data block address, provide the preset control data to the actuator through the first data output channel to control the operation of the actuator.

[0127] In one implementation of the present application, the processing module 606 is further used to: display the working status of multiple data input channels on the display interface in units of bytes, and each bit in the byte corresponds to a data input channel.

[0128] The control system provided in this embodiment is used to implement the corresponding control methods in the aforementioned multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here. In addition, the functional implementation of each module in the control system of this embodiment can refer to the description of the corresponding parts in the aforementioned method embodiments, which will not be repeated here.

[0129] like Figure 7 As shown, an embodiment of the present application also provides an electronic device, including: a processor 710, a communication interface 720, a memory 730 and a bus 740, the processor 710, the communication interface 720 and the memory 730 communicate with each other through the bus 740; the memory 730 is used to store at least one executable instruction 750, and the executable instruction 750 enables the processor 710 to execute the relevant steps in the above method embodiment.

[0130] An embodiment of the present application also provides a computer-readable storage medium for storing a computer program.

[0131] In some embodiments, the computer-readable storage medium can be applied to the electronic device in the embodiments of the present application, and when the computer program is executed by one or more processors, it implements the corresponding processes implemented by the electronic device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.

[0132] The present invention is shown and described in detail above through the accompanying drawings and preferred embodiments. However, the present invention is not limited to these disclosed embodiments. Based on the above multiple embodiments, those skilled in the art can know that the code review methods in the above different embodiments can be combined to obtain more embodiments of the present invention, and these embodiments are also within the protection scope of the present invention.

Claims

1. A control method, characterized in that: include: Reading first data provided by the peripheral device according to a first virtual data block address of a first data input channel connected to the peripheral device (S102), wherein a data block area of ​​the first virtual data block address is associated with a data block area of ​​a physical address of the first data input channel; determining whether an abnormality occurs in the peripheral device or the first data input channel according to the first data (S104); If it is determined according to the first data that an abnormality occurs in the peripheral device or the first data input channel, a first alarm signal is issued, and replacement data for the first data is obtained according to the first virtual data block address (S106).

2. The method according to claim 1, characterized in that The data block area of ​​the first virtual data block address stores preset simulation data for the peripheral device, and the step of obtaining replacement data for the first data according to the first virtual data block address (S106) includes: The preset simulation data is read from the data block area of ​​the first virtual data block address as replacement data for the first data.

3. The method according to claim 2, characterized in that The step of reading the preset simulation data from the data block area of ​​the first virtual data block address as replacement data for the first data includes: receiving a first user operation on a display interface in response to the first alarm signal (S1060), wherein the first user operation is used to allow the preset simulation data to be used instead of the read first data; In response to the first user operation, the preset simulation data is read from the data block area of ​​the first virtual data block address and determined as replacement data for the first data (S1062).

4. The method according to claim 1, characterized in that: The step of obtaining replacement data for the first data according to the first virtual data block address includes: receiving a second user operation on the display interface in response to the first alarm signal (S1064), wherein the second user operation is used to instruct the user to change the peripheral device from being connected to the first data input channel to being connected to a reserved data input channel; In response to the second user operation, updating the physical address associated with the first virtual data block address to the physical address of the reserved data input channel (S1066); According to the first virtual data block address, the data provided by the peripheral device through the reserved data input channel is read as replacement data for the first data (S1068).

5. The method according to claim 1, characterized in that Also includes: If it is determined according to the first data that the peripheral device and the first data input channel are not abnormal, calibration processing is performed based on the first data to obtain calibration data (S108); The calibration data is provided to the actuator through the second virtual data block address of the first data output channel connected to the actuator to control the operation of the actuator (S110), wherein the data block area of ​​the second virtual data block address is associated with the data block area of ​​the physical address of the first data output channel.

6. The method according to claim 5, characterized in that Also includes: receiving a feedback signal (112) indicating the operating status of the actuator; If the feedback signal indicates that the actuator is operating abnormally, a second alarm signal (114) is issued; receiving a third user operation on the display interface in response to the second alarm signal, the third user operation being used to instruct the user to change the actuator from being connected to the first data output channel to being connected to a reserved data output channel (116); In response to the third user operation, updating the physical address associated with the second virtual data block address to the physical address of the reserved data output channel (118); According to the second virtual data block address, the calibration data is provided to the actuator through the reserved data output channel to control the operation of the actuator (120).

7. The method according to claim 5, characterized in that The data block area of ​​the second virtual data block address stores preset control data for the actuator, and the method further includes: receiving a fourth user operation on the display interface in response to the second alarm signal, wherein the fourth user operation is used to instruct to force the first data output channel to output the preset control data; In response to the fourth user operation, reading the preset control data from the data block area of ​​the second virtual data block address; According to the second virtual data block address, the preset control data is provided to the actuator through the first data output channel to control the operation of the actuator.

8. The method according to any one of claims 1 to 7, characterized in that: There are multiple data input channels, and the method further includes: The working status of the plurality of data input channels is displayed on the display interface in units of bytes, and each bit in the byte corresponds to a data input channel.

9. A control system, characterized in that: include: A reading module (602) is used to read first data provided by the peripheral device according to a first virtual data block address of a first data input channel connected to the peripheral device, wherein a data block area of ​​the first virtual data block address is associated with a data block area of ​​a physical address of the first data input channel; A judgment module (604), configured to determine whether an abnormality occurs in the peripheral device or the first data input channel according to the first data; A processing module (606) is used to issue a first alarm signal if it is determined according to the first data that the peripheral device or the first data input channel is abnormal, and obtain replacement data for the first data according to the first virtual data block address.

10. An electronic device comprising: A processor (710), a communication interface (720), a memory (730) and a bus (740), wherein the processor (710), the communication interface (720) and the memory (730) communicate with each other via the bus (740); The memory (730) is used to store at least one executable instruction (750), and the executable instruction (750) enables the processor (710) to perform operations corresponding to the method as described in any one of claims 1-8.

11. A computer-readable storage medium having computer instructions stored thereon, wherein when the computer instructions are executed by a processor, the processor is caused to execute the method according to any one of claims 1 to 8.