CN113220229B - Online I/O undisturbed configuration method for distributed control system - Google Patents

Online I/O undisturbed configuration method for distributed control system Download PDF

Info

Publication number
CN113220229B
CN113220229B CN202110488346.0A CN202110488346A CN113220229B CN 113220229 B CN113220229 B CN 113220229B CN 202110488346 A CN202110488346 A CN 202110488346A CN 113220229 B CN113220229 B CN 113220229B
Authority
CN
China
Prior art keywords
configuration
module
information
configuration file
controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110488346.0A
Other languages
Chinese (zh)
Other versions
CN113220229A (en
Inventor
徐瑞东
陆利军
施忠民
张创勋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chitic Control Engineering Co ltd
Original Assignee
Chitic Control Engineering Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chitic Control Engineering Co ltd filed Critical Chitic Control Engineering Co ltd
Priority to CN202110488346.0A priority Critical patent/CN113220229B/en
Publication of CN113220229A publication Critical patent/CN113220229A/en
Application granted granted Critical
Publication of CN113220229B publication Critical patent/CN113220229B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0643Management of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0658Controller construction arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Hardware Redundancy (AREA)

Abstract

The invention discloses an online I/O undisturbed configuration method for a distributed control system, wherein the distributed control system comprises a controller and at least one I/O module, the controller calls an I/O configuration file when being started, marks the I/O configuration file according to the content of the I/O configuration file, monitors whether the updated I/O configuration file is received in real time, frames the updated I/O configuration file after being received, adds configuration information into communication information, sends the communication information to the I/O module and receives feedback information of the I/O module; and each I/O module checks and receives a new configuration file in real time, updates and replies to the controller after receiving the new configuration file. According to the method and the device, the I/O module configuration file is arranged in the controller, framing is carried out according to the I/O module configuration file, the configuration file is updated in real time and is issued to the corresponding I/O module, automatic online configuration of the I/O module is achieved, the updated configuration file is generated when changes occur, and communication load is reduced.

Description

Online I/O undisturbed configuration method for distributed control system
Technical Field
The invention relates to the technical field of automatic control, in particular to an online I/O undisturbed configuration method for a distributed control system.
Background
At present, a Distributed Control System DCS (Distributed Control System) has been generally applied to industrial Control, particularly in each factory, however, the type configuration of I/O modules and the configuration of I/O points in a Control System are often different according to different Control objects and devices, and the number of Control stations in different partitions and Control domains is generally as many as tens; the number of I/O modules (16-point cards) of a single control station is calculated according to 64, the number of I/O points of a set of control system is up to 1024, the increase of the number of the I/O points increases the configuration debugging time of configuration personnel, the professional knowledge of personnel performing engineering maintenance tasks on site is insufficient, and the configuration lacks self-checking, so that after the DCS is put into operation, certain influence is often caused on the execution of the DCS, safety accidents are indirectly caused, and the potential safety hazards are not accepted by users in factories, particularly in the chemical industry.
In order to reduce the coupling between the interior of the controller and other functions, the main station controller needs to open up an independent thread and specially process an online configuration I/O module, so that the online configuration information is issued to the I/O module which is just accessed to the network or the configuration of which is changed, and the load of the controller is increased to a certain extent; when configuration of the I/O module is added in the controller and then all the I/O modules access to the network simultaneously, a plurality of communication messages of the configuration are sent down and sent out on the communication bus, and the network load of the I/O communication bus is increased to a certain extent; debugging personnel need carry out configuration according to the I/O module state at any time, when the I/O module gets into redundant operating mode, need cut off the power supply and plug in order to ensure the off-line, these all very big wastes the manpower.
Therefore, how to implement automatic online configuration of I/O modules and reduce load is a problem to be solved urgently.
Disclosure of Invention
The invention aims to provide an online I/O undisturbed configuration method for a distributed control system, which is characterized in that an I/O module configuration file is set in a controller, framing is carried out according to the I/O module configuration file, the configuration file is updated in real time according to change and is issued to a corresponding I/O module, automatic online configuration of the I/O module is realized, the updated configuration file is generated only when the change occurs, and the communication load is reduced.
In a first aspect, the above object of the present invention is achieved by the following technical solutions:
the distributed control system comprises a controller and at least one I/O module, the I/O configuration file is called when the controller is started, the marking is carried out according to the content of the I/O configuration file, whether the updated I/O configuration file is received or not is monitored in real time, framing is carried out after the updated I/O configuration file is received, the configuration information is added into the communication information and is sent to the I/O module, and then the information fed back by the I/O module is received.
The invention is further configured to: the I/O configuration file comprises I/O module state and node address information; the framing information includes information about whether redundant configuration, type, acquisition period, channel signal type, channel signal exception handling mode, channel signal exception safety value, and damping filtering time of analog quantity signal.
The invention is further configured to: the controller polls all I/O modules in the control system at regular time, when finding that a new I/O module is added, marks the I/O module, acquires the operation information of the new I/O module, compares the operation information of the new I/O module with the I/O configuration information in the system, and frames the I/O module and the new I/O module when the operation information of the new I/O module is inconsistent with the I/O configuration information in the system.
The invention is further configured to: when the I/O configuration file is updated, the updated file is analyzed, the memory mark is switched, the frame is re-framed and sent to the corresponding I/O module in a control operation period.
The invention is further configured to: operation of the controller, comprising the steps of:
s1, starting;
s2, initializing a shared memory and variables;
s3, reading an I/O configuration file;
s4, judging whether the format of the I/O configuration file is correct and effective, if so, entering the next step, and if not, turning to S11;
s5, marking a file;
s6, whether an updated I/O configuration file is received or not is judged, if yes, the next step is carried out, and if not, the waiting is continued;
s7, switching the memory pointer to update the configuration file;
s8, whether the configuration updating request information is received or not is judged, if yes, the next step is carried out, and if not, S10 is carried out;
s9, framing, establishing an online configuration thread, entering a sub thread, and turning to S12;
s10, marking an updated configuration file, and turning to S6;
s11, alarming when the configuration file is abnormal;
and S12, ending.
The invention is further configured to: creating an online configuration thread, comprising the steps of:
a1, starting;
a2, obtaining configuration information;
a3, judging whether the configuration information is correct or not, if so, entering the next step, and if not, waiting for receiving new configuration information;
a4, framing is carried out according to configuration information;
a5, checking frame format rules;
a6, performing cyclic redundancy check;
a7, calling whether the communication processing interface function is successful, if so, entering a next step, and if not, turning to A10;
a8, judging whether the configuration is consistent with the prior configuration, if not, entering a next step, and if so, turning to A10;
a9, issuing configuration;
and A10, ending.
In a second aspect, the above object of the present invention is achieved by the following technical solutions:
an online I/O undisturbed configuration method for a distributed control system is disclosed, wherein the distributed control system comprises a controller and at least one I/O module, and each I/O module checks and receives a new configuration file in real time, updates and replies to the controller after receiving the new configuration file.
The invention is further configured to: the operation of each I/O module comprises the following steps:
b1, starting;
b2, reading configuration information in an I/O module memory or an internal memory;
b3, updating the signal type and the exception handling mode;
b4, whether the configuration sent by the master station controller is received or not, if yes, entering the next step, and if not, continuing to receive;
b5, updating the signal type and the exception handling mode;
and B6, sending response information to the master station controller.
In a third aspect, the above object of the present invention is achieved by the following technical solutions:
a master station controller terminal for a distributed control system, comprising a memory, a processor, and a computer program stored in said memory and executable on said processor, said processor implementing the method of the present application when executing said computer program.
In a fourth aspect, the above object of the present invention is achieved by the following technical solutions:
an I/O module terminal for a distributed control system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the method of the present application when executing the computer program.
Compared with the prior art, the beneficial technical effects of this application do:
1. according to the configuration method and the configuration device, the controller automatically realizes undisturbed configuration of all the I/O modules according to the configuration file by setting the configuration file, so that the I/O configuration time of configuration debugging personnel is reduced;
2. furthermore, the state of the I/O module is set in the configuration file, the working mode of the I/O module is changed by modifying the configuration file, the I/O module is controlled to automatically enter a redundancy mode, and plugging and offline configuration are reduced;
3. furthermore, the pre-configuration information is compared with the actually effective configuration information, so that false operation caused by artificial configuration is avoided, and the configuration efficiency is improved.
Drawings
FIG. 1 is a schematic controller main thread flow diagram according to an embodiment of the present application;
FIG. 2 is a schematic flow diagram of a controller sub-thread of an embodiment of the present application;
FIG. 3 is a schematic flow chart diagram of an I/O module according to an embodiment of the present application.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
Detailed description of the preferred embodiment
The distributed control system comprises a main station controller and at least one I/O module, the controller is communicated with the I/O modules respectively, data are read from the I/O modules, files are issued from the I/O modules, and a main thread and a sub thread are arranged in the controller to carry out on-line undisturbed configuration I/O.
The configuration program generates an I/O module configuration file. When the configuration is modified, the configuration program updates the configuration file of the I/O module and sends the configuration file to the controller.
The configuration file (iocfg.dat file) of the I/O module includes file information, file version number, I/O configuration information version, site control station name information, pre-configured module identification address code, rack slot bit code, module type and other information, and defines whether the pre-configured I/O module exists, configuration address, type, redundancy, communication channel information and the like, and the configuration address includes template address, rack number and slot number.
When the controller is started, a 'read configuration file function' is called, standardized format processing is carried out on all I/O module configuration files, the I/O module configuration files are read into a controller running memory, the configuration information of each I/O module is written into a corresponding memory for representing configuration I/O data through analysis of the controller, and marking is carried out, for example, whether the I/O module in the current configuration exists is marked by 'IsActive', the node address of the I/O module in the current configuration is marked by 'BrdAddress', and the like.
And the controller monitors whether an updated I/O module configuration file exists in real time, and switches the operation pointer to point to a new operation configuration memory and reads the new configuration when the updated I/O module configuration file is monitored.
When the controller runs a main thread, the controller receives an I/O module configuration file (iocfg.dat file), performs standardized format processing on all the I/O module configuration files, reads the processed I/O module configuration files into a controller running memory, analyzes the I/O module configuration files through the controller, marks configuration information of each I/O module according to configuration contents in the configuration files, monitors whether an updated I/O module configuration file exists in real time, and if the updated I/O module configuration file is monitored, switches to the updated I/O module configuration file, triggers configuration enabling and updates configuration.
And the controller issues configuration information to each I/O module in a round-robin mode.
After the controller issues updated configuration information to an I/O module, the controller receives feedback information sent from the I/O module in a control period, if the feedback information is received, the controller marks that the updating is completed, if the feedback information is not received, a retransmission mechanism is started, the configuration information is issued again, after the configuration information is issued again for three times, if the feedback information is not received, the configuration of the I/O module is abandoned, the I/O module is marked, and alarm information is uploaded; and entering the updated configuration of the next I/O module.
When the controller runs the sub-thread, the sub-thread is an online configuration thread, the updated I/O module configuration information is written into a communication frame of the controller and the I/O module in a memory copying mode, framing processing is carried out, and after framing is finished, an interface is called to issue configuration; and comparing the current configuration information with the operation configuration information, and issuing the configuration to the corresponding I/O module when the configuration information changes.
In the communication frame, information such as whether the I/O module is redundantly configured, a module type, a module acquisition period, a channel signal type, a channel signal exception handling mode, a channel signal exception safety value, damping filtering time of an analog quantity signal, and the like is included, and the information in the communication frame is different according to different configuration information.
And after framing is finished, configuration information is issued through a bus communication interface between the controller and the I/O module.
And after the configuration updating is finished, sending feedback information to the controller so as to form a configuration information updating closed loop.
When the controller and each I/O module are in a charged operation state, configuration updating occurs, when the controller receives an updated configuration file, the controller completes analysis, storage, memory switching and configuration updating of the updated configuration file in a control operation period, and framing of configuration information is sent to the corresponding I/O module, so that undisturbed I/O configuration updating is achieved.
In an embodiment of the present application, after the main thread program is started, initialization is performed, including initialization of a shared memory and internal variables of the thread, an I/O configuration file is read, whether the format of the configuration file is correct or not is checked, and if not, the thread process is ended; when the format of the configuration file is correct, reading file information and storing the file information into a shared memory, marking the format to be correct, and when an update configuration request is received, reading the updated configuration file by switching a memory pointer; and when an online configuration request is received, an online configuration thread is created.
Specifically, as shown in fig. 1, the method comprises the following steps:
s1, starting;
s2, initializing a shared memory, internal variables and the like;
s3, reading an I/O configuration file;
s4, judging whether the format of the I/O configuration file is correct and whether the file is valid, if so, entering the next step, and if not, turning to S11;
s5, marking a file;
s6, whether an updated I/O configuration file is received or not is judged, if yes, the next step is carried out, and if not, the waiting is continued;
s7, switching the memory pointer to update the configuration file;
s8, whether the configuration updating request information is received or not is judged, if yes, the next step is carried out, and if not, S10 is carried out;
s9, framing, establishing an online configuration thread, entering a sub thread, and turning to S12;
s10, marking an updated configuration file, and turning to S6;
s11, alarming when the configuration file is abnormal;
and S12, ending.
In an embodiment of the present application, after the online configuration thread is started, the configuration information is copied, whether the configuration information is correct is detected, and if the configuration information has an error, the process waits; if the configuration information is correct, framing is carried out according to the content of the configuration information, the framed frame format is verified, and cyclic redundancy check is added; after framing is finished, calling a communication processing interface function to send configuration information, if sending is unsuccessful, retransmitting, if sending is successful, comparing updated configuration information with running configuration information, and if the updated configuration information is inconsistent with the running configuration information, issuing updated configuration; otherwise, ending the thread.
Specifically, as shown in fig. 2, the method comprises the following steps:
a1, starting;
a2, obtaining configuration information;
a3, judging whether the configuration information is correct, if so, entering the next step, and if not, waiting for receiving new configuration information;
a4, framing is carried out according to configuration information;
a5, checking frame format rules;
a6, performing cyclic redundancy check;
a7, calling whether the communication processing interface function is successful, if so, entering a next step, and if not, turning to A10;
a8, judging whether the newly received configuration is consistent with the configuration which is running, if not, entering a next step, and if yes, turning to A10;
a9, issuing configuration;
a10, ending;
and A11, rotating A2 and entering the next round.
In a specific embodiment of the application, each I/O module starts to operate, performs corresponding initialization operation, reads whether the configuration information stored in its own memory or internal memory has been updated, if the configuration information is updated, updates the information type and exception handling mode input by the I/O module card according to the configuration information, and sends response information to the controller;
detecting whether the controller issues the configuration file in real time, comparing the configuration file with stored prior configuration information after receiving a new configuration file, updating the I/O signal type and the exception handling mode, sending response information to the main station controller, wherein the response information comprises an updating result, and continuing to wait if the updated configuration file does not exist.
Specifically, as shown in fig. 3, the method includes the following steps:
b1, starting;
b2, reading configuration information in an I/O module memory or an internal memory;
b3, updating the signal type and the exception handling mode;
b4, whether an updated configuration file sent by the master station controller is received or not, if yes, entering the next step, and if not, continuing to receive;
b5, updating the signal type and the exception handling mode;
and B6, sending response information to the master station controller.
Detailed description of the invention
A master station controller terminal for a distributed control system of the present application, comprising: the system comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the computer program to realize the online I/O undisturbed configuration method in the first embodiment.
Illustratively, the computer program may be partitioned into one or more modules/units, stored in the memory and executed by the processor. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program in the master station controller terminal device for the distributed control system. For example, the computer program may be divided into a plurality of modules, each module having the following specific functions:
1. the main thread module is used for executing a main thread program;
2. and the sub-thread module is used for executing the sub-thread program.
The master station controller terminal device for the distributed control system can be a desktop computer, a notebook computer, a palm computer, a cloud server and other computing devices. The terminal equipment of the master station controller for the distributed control system can comprise, but is not limited to, a processor and a memory. It will be appreciated by those skilled in the art that the above examples are merely examples of the terminal device and do not constitute a limitation on the base station controller terminal device for the distributed control system, and that more or fewer components may be included, or certain components may be combined, or different components may be included, for example, the base station controller terminal device for the distributed control system may also include input-output devices, network access devices, buses, etc.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, said processor being the control centre of the kind of master station controller terminal equipment for a distributed control system, the various parts of the whole kind of master station controller terminal equipment for a distributed control system being connected by various interfaces and lines.
The memory may be used to store the computer programs and/or modules, and the processor may implement the various functions of the master station controller terminal device for the distributed control system by running or executing the computer programs and/or modules stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Detailed description of the preferred embodiment
An I/O module terminal for a distributed control system of the present application includes: the processor, the memory and the computer program stored in the memory and capable of running on the processor implement the method for updating the configuration of the I/O module without disturbance in the first embodiment when the processor executes the computer program.
Illustratively, the computer program may be partitioned into one or more modules/units that are stored in the memory and executed by the processor. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program in the master controller terminal device for the distributed control system.
The I/O module terminal for the distributed control system may be a desktop computer, a notebook, a palm top computer, a cloud server, or other computing device. The terminal equipment of the master station controller for the distributed control system can comprise, but is not limited to, a processor and a memory. It will be appreciated by those skilled in the art that the above examples are merely examples of the terminal device and do not constitute a limitation on the I/O module terminal for the distributed control system, and that more or fewer components may be included, or certain components may be combined, or different components may be included, for example, the I/O module terminal for the distributed control system may also include input output devices, network access devices, buses, etc.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like that is the control center for the one type of I/O module terminal for the distributed control system, with various interfaces and lines connecting the various parts of the overall one type of I/O module terminal for the distributed control system.
The memory may be used to store the computer programs and/or modules, and the processor may implement the various functions of the I/O module terminal for the distributed control system by executing or executing the computer programs and/or modules stored in the memory and calling the data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The embodiments of the present invention are preferred embodiments of the present invention, and the scope of the present invention is not limited by these embodiments, so: all equivalent changes made according to the structure, shape and principle of the invention are covered by the protection scope of the invention.

Claims (10)

1. An online I/O undisturbed configuration method for a distributed control system, comprising: the distributed control system comprises a controller and at least one I/O module, wherein the controller is communicated with each I/O module respectively, data and issued files are read from each I/O module, a main thread and a sub thread are arranged in the controller to carry out online undisturbed configuration I/O, a configuration program generates an I/O module configuration file, the I/O configuration file is called when the controller is started, and marking is carried out according to the content of the I/O configuration file; when the controller runs a main thread, receiving an I/O module configuration file, performing standardized format processing on all the I/O module configuration files, marking configuration information of each I/O module according to configuration contents in the configuration files, monitoring whether an updated I/O module configuration file is received in real time, if the updated I/O module configuration file is monitored, switching to the updated I/O module configuration file, triggering configuration enabling, and updating configuration; when the controller runs the sub-thread, the sub-thread is an on-line configuration thread, the updated configuration information of the I/O module is written into a communication frame of the controller and the I/O module for framing processing, after framing is finished, the current configuration information is compared with the running configuration information, and when the configuration information changes, configuration is issued to the corresponding I/O module; when the controller and each I/O module are in a charged operation state, configuration updating occurs, when the controller receives an updated configuration file, the controller completes analysis, storage, memory switching and configuration updating of the updated configuration file in a control operation period, and framing of configuration information is sent to the corresponding I/O module, so that undisturbed I/O configuration updating is achieved.
2. The method of claim 1, wherein the method further comprises: the I/O configuration file comprises I/O module state and node address information; the framing information comprises information about whether redundant configuration, type, acquisition period, channel signal type, channel signal exception handling mode, channel signal exception safety value and damping filtering time of analog quantity signals.
3. The method of claim 1, wherein the method further comprises: the controller polls all I/O modules in the control system regularly, when finding that a new I/O module is added, marks the I/O module, acquires the operation information of the new I/O module, compares the operation information of the new I/O module with the I/O configuration information in the system, and frames the I/O module and the new I/O module when the operation information of the new I/O module is not consistent with the I/O configuration information in the system.
4. The method of claim 1, wherein the method comprises: when the I/O configuration file is updated, the updated file is analyzed, the memory mark is switched, the frame is re-framed and sent to the corresponding I/O module in a control operation period.
5. The method of claim 1, wherein the method further comprises: operation of the controller, comprising the steps of:
s1, starting;
s2, initializing a shared memory and variables;
s3, reading an I/O configuration file;
s4, judging whether the format of the I/O configuration file is correct and effective, if so, entering the next step, and if not, turning to S11;
s5, marking the file;
s6, whether an updated I/O configuration file is received or not is judged, if yes, the next step is carried out, and if not, the waiting is continued;
s7, switching the memory pointer to update the configuration file;
s8, whether the configuration updating request information is received or not is judged, if yes, the next step is carried out, and if not, S10 is carried out;
s9, framing, establishing an online configuration thread, entering a sub thread, and turning to S12;
s10, marking an updated configuration file, and turning to S6;
s11, alarming when the configuration file is abnormal;
and S12, ending.
6. The method of claim 5, wherein the method comprises: creating an online configuration thread, comprising the steps of:
a1, starting;
a2, obtaining configuration information;
a3, judging whether the configuration information is correct or not, if so, entering the next step, and if not, waiting for receiving new configuration information;
a4, framing is carried out according to configuration information;
a5, checking frame format rules;
a6, performing cyclic redundancy check;
a7, calling whether the communication processing interface function is successful, if so, entering a next step, and if not, turning to A10;
a8, judging whether the configuration is consistent with the prior configuration, if not, entering a next step, and if so, turning to A10;
a9, issuing configuration;
and A10, finishing.
7. The method of claim 1, wherein the method further comprises: each I/O module starts to operate, corresponding initialization operation is carried out, whether the configuration information stored in a memory or an internal memory of the I/O module is updated or not is read, if the configuration information is updated, the information type and the exception handling mode input by the I/O module card are updated according to the configuration information, and response information is sent to the controller; checking and receiving a new configuration file in real time, comparing the new configuration file with the stored prior configuration information after receiving the new configuration file, updating the configuration and the I/O signal type and the exception handling mode in a control period, and sending response information to the master station controller after completing the configuration and the updating.
8. The method of claim 7, wherein the method further comprises: the operation of each I/O module comprises the following steps:
b1, starting;
b2, reading configuration information in an I/O module memory or an internal memory;
b3, updating the signal type and the exception handling mode;
b4, whether the configuration sent by the master station controller is received or not, if yes, entering the next step, and if not, continuing to receive;
b5, updating the signal type and the exception handling mode;
and B6, sending response information to the main station controller.
9. A master controller terminal for a distributed control system comprising a memory, a processor, and a computer program stored in said memory and executable on said processor, characterized in that: the processor, when executing the computer program, implements the method of any of claims 1-6.
10. An I/O module terminal for a distributed control system comprising a memory, a processor, and a computer program stored in said memory and executable on said processor, characterized in that: the processor, when executing the computer program, implements the method of any of claims 7-8.
CN202110488346.0A 2021-05-06 2021-05-06 Online I/O undisturbed configuration method for distributed control system Active CN113220229B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110488346.0A CN113220229B (en) 2021-05-06 2021-05-06 Online I/O undisturbed configuration method for distributed control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110488346.0A CN113220229B (en) 2021-05-06 2021-05-06 Online I/O undisturbed configuration method for distributed control system

Publications (2)

Publication Number Publication Date
CN113220229A CN113220229A (en) 2021-08-06
CN113220229B true CN113220229B (en) 2023-02-28

Family

ID=77090908

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110488346.0A Active CN113220229B (en) 2021-05-06 2021-05-06 Online I/O undisturbed configuration method for distributed control system

Country Status (1)

Country Link
CN (1) CN113220229B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113422724B (en) * 2021-08-11 2021-11-19 浙江国利信安科技有限公司 Method, device, communication system and storage medium for EPA configuration switching
CN117311772B (en) * 2023-11-30 2024-02-06 中控技术股份有限公司 Configuration updating method, device, equipment and medium
CN117687344B (en) * 2024-01-31 2024-04-30 杭州康吉森自动化科技有限公司 I/O data sharing method, controller and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106054849A (en) * 2016-08-09 2016-10-26 西安西热控制技术有限公司 Controller initial downloading and installation and on-line downloading and installation system structure and method thereof
CN107360237A (en) * 2017-07-24 2017-11-17 南京国电南自维美德自动化有限公司 A kind of graphical configuration system of the DCS of multiple-person cooperative work and method
CN110888408A (en) * 2019-12-11 2020-03-17 杭州和利时自动化有限公司 Remote switching method, device and equipment for IO module channel
CN111651640A (en) * 2020-05-29 2020-09-11 南京南瑞继保电气有限公司 Cross indexing method, device, computer storage medium and equipment
CN112286144A (en) * 2019-07-24 2021-01-29 北京国电智深控制技术有限公司 Configuration method and system and computer readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515295A (en) * 2019-07-25 2019-11-29 南京南瑞继保电气有限公司 A kind of method of the redundancy I/O module of dynamic and configurable
CN112328270A (en) * 2020-11-27 2021-02-05 杭州和利时自动化有限公司 Configuration program installation method, device, equipment and medium based on multiple controllers

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106054849A (en) * 2016-08-09 2016-10-26 西安西热控制技术有限公司 Controller initial downloading and installation and on-line downloading and installation system structure and method thereof
CN107360237A (en) * 2017-07-24 2017-11-17 南京国电南自维美德自动化有限公司 A kind of graphical configuration system of the DCS of multiple-person cooperative work and method
CN112286144A (en) * 2019-07-24 2021-01-29 北京国电智深控制技术有限公司 Configuration method and system and computer readable storage medium
CN110888408A (en) * 2019-12-11 2020-03-17 杭州和利时自动化有限公司 Remote switching method, device and equipment for IO module channel
CN111651640A (en) * 2020-05-29 2020-09-11 南京南瑞继保电气有限公司 Cross indexing method, device, computer storage medium and equipment

Also Published As

Publication number Publication date
CN113220229A (en) 2021-08-06

Similar Documents

Publication Publication Date Title
CN113220229B (en) Online I/O undisturbed configuration method for distributed control system
US20180203437A1 (en) Containerized communications gateway
CN108959199B (en) Log highlighting method and device, storage medium and android terminal
CN114237676B (en) FPGA logic updating method, device, equipment and readable storage medium
EP2733613B1 (en) Controller and program
CN111142480A (en) Safety communication method and system for process control station and distributed control system
CN113778391A (en) Page processing method, device and equipment for native application program
CN106603125B (en) Method and device for data interaction with Bluetooth equipment
CN107065820A (en) A kind of steering wheel information anti-loss method and device
CN113656378A (en) Server management method, device and medium
KR102102335B1 (en) Dual memory structure and method for processing message of PLC using thereof
CN108460078B (en) Auxiliary function execution method and device, storage medium and terminal
CN112202969A (en) Bluetooth control method and device
CN111538371A (en) Real-time clock device, working method thereof and USB (universal serial bus) equipment
CN112526949B (en) Module information setting method, acquisition method and device of industrial control system
CN111027104A (en) Method, device and mainboard for preventing loss of network card identification data
CN110597536A (en) Software upgrading method, system and terminal equipment
CN110703988A (en) Storage pool creating method, system, terminal and storage medium for distributed storage
CN116263866B (en) Automatic burning method and equipment
US20040093357A1 (en) Method for parameterizing an apparatus
JP3003197B2 (en) Robot numerical controller
CN114004578A (en) Method, device and medium for processing client ID information of server mainboard
CN116737269A (en) Data source dynamic operation method, device, system and medium
CN114327613A (en) Method, device and equipment for generating function block diagram program and storage medium
JPH03144705A (en) Operation state monitor for programmable controller

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant