CN112526949A - Module information setting method, acquisition method and device of industrial control system - Google Patents

Module information setting method, acquisition method and device of industrial control system Download PDF

Info

Publication number
CN112526949A
CN112526949A CN202011389746.8A CN202011389746A CN112526949A CN 112526949 A CN112526949 A CN 112526949A CN 202011389746 A CN202011389746 A CN 202011389746A CN 112526949 A CN112526949 A CN 112526949A
Authority
CN
China
Prior art keywords
module information
module
data packet
controller
setting
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.)
Granted
Application number
CN202011389746.8A
Other languages
Chinese (zh)
Other versions
CN112526949B (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.)
Hangzhou Hollysys Automation Co Ltd
Original Assignee
Hangzhou Hollysys Automation 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 Hangzhou Hollysys Automation Co Ltd filed Critical Hangzhou Hollysys Automation Co Ltd
Priority to CN202011389746.8A priority Critical patent/CN112526949B/en
Publication of CN112526949A publication Critical patent/CN112526949A/en
Application granted granted Critical
Publication of CN112526949B publication Critical patent/CN112526949B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM]
    • G05B19/4185Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM] characterised by the network communication
    • 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)
  • General Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)

Abstract

The application discloses a method and a device for setting module information of an industrial control system, wherein the method comprises the following steps: sending a preset setting data packet for setting module information to a communication unit of the industrial control system so that the communication unit can set corresponding first module information according to the setting data packet; the control communication unit forwards the setting data packet to the controller so that the controller can set corresponding second module information according to the setting data packet; and calling configuration software by using the controller to acquire the third module information and setting corresponding third module information for the IO module. The method can improve the convenience of setting the module information for each module in the industrial control system and can improve the convenience of subsequently reading the module information of each module. The application also discloses a module information acquisition method and device of the industrial control system and the industrial control system, and the industrial control system has the beneficial effects.

Description

Module information setting method, acquisition method and device of industrial control system
Technical Field
The invention relates to the field of system control, in particular to a method and a device for setting module information of an industrial control system, a method and a device for acquiring module information of the industrial control system and the industrial control system.
Background
Fig. 1 is a system structure diagram of a maximum control station of an industrial control system; the maximum control station capacity of the current industrial control system is as follows: 1 host cage +6 extension cages, two communication units in total, three controllers, and 58 pairs of IO modules; before each module is sent to the field for actual use, module information with the function of identity ID needs to be set for each module. In the prior art, a physical form of a barcode is generally set for each module, and the barcode includes module information corresponding to the module, so as to set the module information for each module. Obviously, in the prior art, the mode of setting the corresponding module information for each module not only is difficult and troublesome in the process of setting the module information, but also is difficult and troublesome in the process of reading the module information because each barcode needs to be scanned on site when the module information of each module needs to be read subsequently.
Therefore, how to improve the convenience of setting module information for each module in the industrial control system and improve the convenience of subsequently reading the module information of each module is a technical problem that needs to be solved by technical personnel in the field at present.
Disclosure of Invention
In view of this, an object of the present invention is to provide a method for setting module information of an industrial control system, which can improve the convenience of setting module information for each module in the industrial control system and improve the convenience of subsequently reading the module information of each module; another objective of the present invention is to provide a module information setting device of an industrial control system, a module information collecting method and device of an industrial control system, and an industrial control system, all having the above beneficial effects.
In order to solve the above technical problem, the present invention provides a method for setting module information of an industrial control system, including:
sending a preset setting data packet for setting module information to a communication unit of an industrial control system so that the communication unit can set corresponding first module information according to the setting data packet;
controlling the communication unit to forward the setting data packet to a controller so that the controller sets corresponding second module information according to the setting data packet;
and calling configuration software by using the controller to acquire third module information, and setting the corresponding third module information for the IO module.
Preferably, the controlling the communication unit to forward the setting data packet to the controller so that the controller sets the corresponding second module information according to the setting data packet specifically includes:
after the communication unit ToolComm thread receives the setting data packet, setting a controller serial number internal command;
the communication unit RTS thread forwards the internal command of the serial number of the controller and the setting data packet to the controller through a ComBus bus;
and after receiving the internal command of the controller serial number, the controller sets the second module information by using the setting data packet.
Preferably, after the setting of the first module information and/or the second module information and/or the third module information, the method further includes:
and sending out corresponding feedback information.
Preferably, after the setting of the first module information and/or the second module information and/or the third module information, the method further includes:
and recording the first module information and/or the second module information and/or the third module information.
Preferably, the first module information and/or the second module information and/or the third module information includes a serial number.
In order to solve the above technical problem, the present invention further provides a module information setting apparatus for an industrial control system, including:
the first setting module is used for sending a preset setting data packet for setting module information to a communication unit of the industrial control system so that the communication unit can set corresponding first module information according to the setting data packet;
the second setting module is used for controlling the communication unit to forward the setting data packet to the controller so that the controller can set corresponding second module information according to the setting data packet;
and the third setting module is used for calling configuration software by using the controller to acquire third module information and setting the corresponding third module information for the IO module.
In order to solve the above technical problem, the present invention provides a method for acquiring module information of an industrial control system, including:
sending a preset reading data packet for reading module information to a communication unit of the industrial control system so that the communication unit feeds back corresponding first module information according to the reading data packet;
controlling the communication unit to forward the read data packet to a controller so that the controller feeds back corresponding second module information according to the read data packet;
and after the IO module sends the third module information of the IO module to the controller, sending the read data packet to the controller so that the controller feeds back the third module information according to the read data packet.
Preferably, the process of sending, by the IO module, the third module information of the IO module to the controller specifically includes:
the IO module sends the third module information of the IO module to an IO master station;
and the controller and the IO master station realize data interaction through a double-port RAM (random access memory), and acquire the third module information of the IO module.
In order to solve the above technical problem, the present invention further provides a module information collecting apparatus of an industrial control system, including:
the system comprises a first acquisition module, a second acquisition module and a communication unit, wherein the first acquisition module is used for sending a preset reading data packet for reading module information to the communication unit of the industrial control system so that the communication unit feeds back corresponding first module information according to the reading data packet;
the second acquisition module is used for controlling the communication unit to forward the read data packet to the controller so that the controller can feed back corresponding second module information according to the read data packet;
and the third acquisition module is used for sending the read data packet to the controller after the IO module sends the third module information of the IO module to the controller, so that the controller feeds back the third module information according to the read data packet.
In order to solve the technical problem, the invention also provides an industrial control system, which comprises a module information setting device and a module information acquisition device;
the module information setting device is used for sending a preset setting data packet for setting module information to a communication unit of the industrial control system, so that the communication unit can set corresponding first module information according to the setting data packet; controlling the communication unit to forward the setting data packet to a controller so that the controller sets corresponding second module information according to the setting data packet; calling configuration software by using the controller to acquire third module information, and setting the corresponding third module information for the IO module;
the module information acquisition device is used for sending a preset reading data packet for reading module information to a communication unit of the industrial control system so that the communication unit feeds back corresponding first module information according to the reading data packet; controlling the communication unit to forward the read data packet to a controller so that the controller feeds back corresponding second module information according to the read data packet; and after the IO module sends the third module information of the IO module to the controller, sending the read data packet to the controller so that the controller feeds back the third module information according to the read data packet.
Compared with the prior art, the method for setting the module information of the industrial control system has the advantages that the corresponding module information is set for the communication unit and the controller by sending the setting data packet for setting the module information to the communication unit and the controller, and the corresponding third module information is set for the IO module by calling the configuration software through the controller, so that the convenience of setting the module information for each module in the industrial control system can be improved, and the set module information can be directly read in a program instruction mode subsequently, so that the convenience of subsequently reading the module information of each module can be improved.
In order to solve the technical problems, the invention also provides a module information setting device of the industrial control system, a module information acquisition method and device of the industrial control system and the industrial control system, which have the beneficial effects.
Drawings
In order to more clearly illustrate the embodiments or technical solutions of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a system block diagram of a current industrial control system maximum control station;
fig. 2 is a flowchart of a module information setting method of an industrial control system according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a process of setting second module information in a module information setting method of an industrial control system according to an embodiment of the present invention;
fig. 4 is a structural diagram of a module information setting apparatus of an industrial control system according to an embodiment of the present invention;
fig. 5 is a flowchart of a module information collecting method of an industrial control system according to an embodiment of the present invention;
fig. 6 is a structural diagram of a module information acquisition device of an industrial control system according to an embodiment of the present invention;
fig. 7 is a block diagram of an industrial control system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The core of the embodiment of the invention is to provide a module information setting method of an industrial control system, which can improve the convenience of setting module information for each module in the industrial control system and the convenience of subsequently reading the module information of each module; the other core of the invention is to provide a module information setting device of an industrial control system, a module information acquisition method and device of the industrial control system and the industrial control system, which have the beneficial effects.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 2 is a flowchart of a module information setting method of an industrial control system according to an embodiment of the present invention. As shown in fig. 2, a module information setting method of an industrial control system includes:
s11: and sending a preset setting data packet for setting the module information to a communication unit of the industrial control system so that the communication unit sets the corresponding first module information according to the setting data packet.
First, the controller refers to a module that performs control functions such as IEC operations and IO module management in the industrial control system.
Specifically, in actual operation, a setup packet for setting up module information is set up by using tooling software, and specifically, a setup packet of a corresponding type is set up according to the number and type of the module information that needs to be set up actually. In addition, the setting data packet may be a UDP data packet, or may be a data packet of another data type, which is not limited in this embodiment.
Specifically, after the setting data packet is obtained, the setting data packet is sent to a communication unit of the industrial control system, the communication unit receives the setting data packet sent by the tooling software, sets corresponding first module information for the communication unit according to a control instruction in the setting data packet, and writes the first module information into a FLASH (FLASH memory, a non-volatile memory) of the communication unit.
S12: and the control communication unit forwards the setting data packet to the controller so that the controller sets corresponding second module information according to the setting data packet.
It should be noted that, the communication unit refers to a separate hardware module dedicated to communication in the industrial control system. Specifically, in this embodiment, the tooling software first sends the setting data packet to the communication unit, then the communication unit forwards the setting data packet to the controller, and after receiving the setting data packet, the controller sets corresponding second module information for itself according to a control instruction in the setting data packet, and then writes the second module information into an EEPROM (Electrically Erasable Programmable read only memory, a storage chip with no data loss after power failure) of itself.
It should be noted that, in actual operation, the setting data packet for setting the first module information of the communication unit and the setting data packet for setting the second module information of the controller may be the same data packet, that is, the same setting data packet includes a control instruction for setting the first module information of the communication unit and the second module information of the controller; of course, corresponding setting data packets may be set for the communication unit and the controller, respectively, which is not limited in this embodiment.
S13: and calling configuration software by using the controller to acquire the third module information and setting corresponding third module information for the IO module.
In this step, specifically, a configuration software algorithm block SETIOSN interface is called by the controller, corresponding third module information is set by using the configuration software algorithm block SETIOSN, the third module information is acquired by using a controller external library function exibsetioslavesn, and the controller sends the third module information to an IO module (input/output module), so that the setting of corresponding second module information for the IO module is realized.
Compared with the prior art, the method for setting the module information of the industrial control system provided by the embodiment of the invention realizes the setting of the corresponding module information for the communication unit and the controller by sending the setting data packet for setting the module information to the communication unit and the controller, and sets the corresponding third module information for the IO module by calling the configuration software through the controller, so that the convenience for setting the module information for each module in the industrial control system can be improved, and the set module information can be directly read in a program instruction mode subsequently, so that the convenience for subsequently reading the module information of each module can be improved.
Fig. 3 is a schematic diagram of a process of setting second module information in a module information setting method of an industrial control system according to an embodiment of the present invention, as shown in fig. 3, in this embodiment, a process of controlling a communication unit to forward a setting data packet to a controller so that the controller sets corresponding second module information according to the setting data packet specifically includes:
after the communication unit ToolComm thread receives the setting data packet, setting a serial number internal command of the controller;
the internal command of the serial number of the controller and the setting data packet are forwarded to the controller through a ComBus bus by a RTS thread of a communication unit;
and after the controller receives the internal command of the serial number of the controller, setting the information of the second module by using the setting data packet.
Specifically, in this embodiment, the process of setting the second module information of the controller needs four objects in total, including the tooling software, the Toolcomm thread, the RTS thread and the controller. Specifically, the communication unit runs two threads: the ToolComm thread receives a setting data packet which is sent by tooling software and used for setting module information, and sets a controller serial number internal command; then, the internal command of the serial number of the controller and the setting data packet are forwarded to the controller through a ComBus bus by a RTS thread of a communication unit; and after receiving the internal command of the serial number of the controller, the controller sets second module information by using the setting data packet and stores the set second module information into the EEPROM.
Therefore, the method according to the embodiment sets the second module information for the controller, and the operation mode is convenient and feasible.
On the basis of the foregoing embodiment, the present embodiment further describes and optimizes the technical solution, and specifically, after the first module information and/or the second module information and/or the third module information are set, the present embodiment further includes:
and sending out corresponding feedback information.
Specifically, in this embodiment, after the communication unit sets corresponding first module information according to the setting data packet, the communication unit sends corresponding feedback information to the tooling software; setting corresponding feedback information at the controller according to the information whether the module information setting is successfully completed or not, and replying the feedback information to the communication unit, wherein if the setting is successful, the communication unit packs the second module information of the controller and replys the second module information to the tool software in a UDP (user datagram protocol) data packet mode; after the IO module sets the corresponding third module information, since the third module information of the IO module is set by using the configuration software algorithm block SETIOSN in this embodiment, the user can obtain the feedback information of whether the third module information of the IO module is successfully set by using the configuration software algorithm block.
It can be seen that, in this embodiment, after the first module information and/or the second module information and/or the third module information are set, the corresponding feedback information is further sent out, so that the user can timely know the specific situation of setting the corresponding module information for each module.
On the basis of the foregoing embodiment, the present embodiment further describes and optimizes the technical solution, and specifically, after the first module information and/or the second module information and/or the third module information are set, the present embodiment further includes:
and recording the first module information and/or the second module information and/or the third module information.
Specifically, in this embodiment, after the first module information and/or the second module information and/or the third module information is set, the set first module information and/or second module information and/or third module information is recorded.
It should be noted that, in actual operation, a specific recording manner may be recorded in a form of text, an excel table, or a database table, which is not limited in this embodiment and is selected according to actual requirements. More specifically, the storage record may be performed in a Memory bank, a hard disk, a TF (Trans-flash Card) Card, an sd (secure Digital Memory Card) Card, or the like, and the selection is specifically performed according to actual requirements, which is not limited in this embodiment.
In this embodiment, by further recording the first module information and/or the second module information and/or the third module information, a user can conveniently view the module conditions in the industrial control system, such as the number of each module, and the use experience of the user is further improved.
On the basis of the above embodiment, this embodiment further describes and optimizes the technical solution, and specifically, in this embodiment, the first module information and/or the second module information and/or the third module information includes a serial number.
Specifically, the serial number refers to a number set for each module according to a preset rule, and for example, the serial number may be set for each module in a mode of "module type + number". In actual operation, the control instruction is set in the setting data packet, so that each module can conveniently set a corresponding serial number for itself according to the control instruction.
It can be seen that, in this embodiment, the first module information and/or the second module information and/or the third module information includes a serial number, so that the serial numbers of the modules can be conveniently obtained in the following.
Fig. 4 is a structural diagram of a module information setting device of an industrial control system according to an embodiment of the present invention, and as shown in fig. 4, the module information setting device of the industrial control system includes:
a first setting module 41, configured to send a preset setting data packet for setting module information to a communication unit of the industrial control system, so that the communication unit sets corresponding first module information according to the setting data packet;
the second setting module 42 is configured to control the communication unit to forward the setting data packet to the controller, so that the controller sets corresponding second module information according to the setting data packet;
the third setting module 43 is configured to call the configuration software by using the controller to obtain third module information, and set corresponding third module information for the IO module.
The module information setting device of the industrial control system provided by the embodiment of the invention has the beneficial effect of the module information setting method of the industrial control system.
Fig. 5 is a flowchart of a module information collecting method of an industrial control system according to an embodiment of the present invention. As shown in fig. 5, a method for acquiring module information of an industrial control system includes:
s51: and sending a preset reading data packet for reading the module information to a communication unit of the industrial control system so that the communication unit feeds back the corresponding first module information according to the reading data packet.
Specifically, in this embodiment, the tool software sets a read packet for reading the module information in advance, and specifically sets a read packet of a corresponding type according to the number and type of the module information that needs to be read actually. In addition, the read packet may be a UDP packet or a packet of another data type, which is not limited in this embodiment. In addition, the tool software may specifically be HSRTSTool, and may also be other types of tool software, which is not limited in this embodiment.
Specifically, after the read data packet is set, the read data packet is sent to a communication unit of the industrial control system, the communication unit receives the read data packet sent by the tool software, first module information of the communication unit is acquired from the FLASH according to a control instruction in the read data packet, and the first module information packet is sent to the tool software.
S52: and the control communication unit forwards the read data packet to the controller so that the controller feeds back corresponding second module information according to the read data packet.
In this embodiment, the tool software first sends the read data packet to the communication unit, the communication unit forwards the read data packet to the controller, the controller obtains the second module information of the controller from the eerp rom according to the control instruction in the read data packet after receiving the read data packet, and sends the second module information to the communication unit, and the communication unit packages the information and sends the information to the tool software.
It should be noted that, in actual operation, the read data packet for reading the first module information of the communication unit and the read data packet for reading the second module information of the controller may be the same data packet, that is, the same read data packet includes a control instruction for reading the module information of the communication unit and the controller; of course, the communication unit and the controller may also be provided with corresponding read data packets, which is not limited in this embodiment.
S53: and after the IO module sends the third module information of the IO module to the controller, sending a read data packet to the controller so that the controller feeds back the third module information according to the read data packet.
Specifically, in this step, the IO module sends the third module information of itself to the controller through the IO master station, the tool software sends a read data packet for reading the IO module information to the communication unit, the communication unit forwards the read data packet to the controller, the controller sends the obtained third module information of the IO module to the communication unit, and the communication unit packages the information to be sent to the tool software.
It should be noted that, in actual operation, the third module information of the corresponding IO module is determined according to the redundant configuration condition of the industrial control system. For example, suppose that the industrial control system is a triple redundancy architecture, that is, the controller has three systems, so the tool software can obtain the third module information of three IO modules at the same time, and the tool software needs to vote the information data of the three pieces of the third module information to determine the final third module data.
It should be noted that, in this embodiment, the first module information and/or the second module information and/or the third module information includes a serial number, hardware version information, and software version information; the serial number is module information which is set for each module by utilizing a set data packet in advance, and in actual operation, when the module information of each module is obtained, hardware version information and software version information of the module, recorded by a current CPU running program of the module, can also be obtained; the hardware version information is used for distinguishing different model versions of modules of the same type; the software version information is used for distinguishing software versions in the modules, so that the module information acquired in the embodiment is more comprehensive. In addition, after the tool software receives the first module information and/or the second module information and/or the third module information, the tool software analyzes the module information and displays the analyzed information on an interface.
The embodiment of the invention provides a module information acquisition method of an industrial control system, which is characterized in that a preset reading data packet for reading module information is sent to a communication unit of the industrial control system, so that the communication unit feeds back corresponding first module information according to the reading data packet; the control communication unit forwards the read data packet to the controller so that the controller feeds back corresponding second module information according to the read data packet; and after the IO module sends the third module information of the IO module to the controller, sending a read data packet to the controller so that the controller feeds back the third module information according to the read data packet. Therefore, the method can read the module information of each module by using the read data packet, and can improve the convenience of reading the module information of each module.
On the basis of the foregoing embodiment, this embodiment further describes and optimizes the technical solution, and specifically, in this embodiment, a process in which the IO module sends the third module information of itself to the controller specifically includes:
the IO module sends the third module information to the IO master station;
and the controller and the IO master station realize data interaction through the double-port RAM and acquire third module information of the IO module.
Specifically, in this embodiment, the IO module sends three kinds of module information, namely hardware version information, software version information and serial number, to the IO master station in a non-periodic data form according to an IOBUS protocol, and the controller and the IO master station realize data interaction through the dual-port RAM to obtain the module information of the IO module. And the communication unit and the controller obtain the third module information of the IO module through an internal command and then send the third module information to the tool software.
Therefore, according to the method of the embodiment, the third module information of the IO module can be conveniently and accurately acquired under the conditions that the industrial control system is not stopped and the normal operation of the industrial control system is not influenced.
Fig. 6 is a structural diagram of a module information acquisition device of an industrial control system according to an embodiment of the present invention, and as shown in fig. 6, the module information acquisition device of the industrial control system includes:
the first acquisition module 61 is used for sending a preset reading data packet for reading module information to a communication unit of the industrial control system, so that the communication unit feeds back corresponding first module information according to the reading data packet;
the second acquisition module 62 is configured to control the communication unit to forward the read data packet to the controller, so that the controller feeds back corresponding second module information according to the read data packet;
and the third acquisition module 63 is configured to send a read data packet to the controller after the IO module sends the third module information of itself to the controller, so that the controller feeds back the third module information according to the read data packet.
The module information acquisition device of the industrial control system provided by the embodiment of the invention has the beneficial effects of the module information acquisition method of the industrial control system.
Fig. 7 is a structural diagram of an industrial control system according to an embodiment of the present invention, and as shown in fig. 7, an industrial control system includes a module information setting device 71 and a module information collecting device 72;
the module information setting device 71 is configured to send a preset setting data packet for setting module information to a communication unit of the industrial control system, so that the communication unit sets corresponding first module information according to the setting data packet; the control communication unit forwards the setting data packet to the controller so that the controller can set corresponding second module information according to the setting data packet; calling configuration software by using a controller to acquire third module information and setting corresponding third module information for the IO module;
the module information acquisition device 72 is configured to send a preset read data packet for reading module information to a communication unit of the industrial control system, so that the communication unit feeds back corresponding first module information according to the read data packet; the control communication unit forwards the read data packet to the controller so that the controller feeds back corresponding second module information according to the read data packet; and after the IO module sends the third module information of the IO module to the controller, sending a read data packet to the controller so that the controller feeds back the third module information according to the read data packet.
The industrial control system provided by the embodiment of the invention has the beneficial effects of the module information setting and module information acquisition method of the industrial control system.
The method and the device for setting the module information of the industrial control system, the method and the device for acquiring the module information of the industrial control system and the industrial control system provided by the invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are set forth only to help understand the method and its core ideas of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.

Claims (10)

1. A module information setting method of an industrial control system is characterized by comprising the following steps:
sending a preset setting data packet for setting module information to a communication unit of an industrial control system so that the communication unit can set corresponding first module information according to the setting data packet;
controlling the communication unit to forward the setting data packet to a controller so that the controller sets corresponding second module information according to the setting data packet;
and calling configuration software by using the controller to acquire third module information, and setting the corresponding third module information for the IO module.
2. The method according to claim 1, wherein the controlling the communication unit to forward the setting data packet to the controller so that the controller sets the corresponding second module information according to the setting data packet specifically comprises:
after the communication unit ToolComm thread receives the setting data packet, setting a controller serial number internal command;
the communication unit RTS thread forwards the internal command of the serial number of the controller and the setting data packet to the controller through a ComBus bus;
and after receiving the internal command of the controller serial number, the controller sets the second module information by using the setting data packet.
3. The method according to claim 1, further comprising, after setting the first module information and/or the second module information and/or the third module information:
and sending out corresponding feedback information.
4. The method according to claim 1, further comprising, after setting the first module information and/or the second module information and/or the third module information:
and recording the first module information and/or the second module information and/or the third module information.
5. The method according to any of claims 1 to 4, characterized in that the first module information and/or the second module information and/or the third module information comprises a serial number.
6. A module information setting apparatus of an industrial control system, comprising:
the first setting module is used for sending a preset setting data packet for setting module information to a communication unit of the industrial control system so that the communication unit can set corresponding first module information according to the setting data packet;
the second setting module is used for controlling the communication unit to forward the setting data packet to the controller so that the controller can set corresponding second module information according to the setting data packet;
and the third setting module is used for calling configuration software by using the controller to acquire third module information and setting the corresponding third module information for the IO module.
7. A module information acquisition method of an industrial control system is characterized by comprising the following steps:
sending a preset reading data packet for reading module information to a communication unit of the industrial control system so that the communication unit feeds back corresponding first module information according to the reading data packet;
controlling the communication unit to forward the read data packet to a controller so that the controller feeds back corresponding second module information according to the read data packet;
and after the IO module sends the third module information of the IO module to the controller, sending the read data packet to the controller so that the controller feeds back the third module information according to the read data packet.
8. The method according to claim 7, wherein the process of the IO module sending the third module information of the IO module to the controller specifically includes:
the IO module sends the third module information of the IO module to an IO master station;
and the controller and the IO master station realize data interaction through a double-port RAM (random access memory), and acquire the third module information of the IO module.
9. A module information acquisition device of an industrial control system, comprising:
the system comprises a first acquisition module, a second acquisition module and a communication unit, wherein the first acquisition module is used for sending a preset reading data packet for reading module information to the communication unit of the industrial control system so that the communication unit feeds back corresponding first module information according to the reading data packet;
the second acquisition module is used for controlling the communication unit to forward the read data packet to the controller so that the controller can feed back corresponding second module information according to the read data packet;
and the third acquisition module is used for sending the read data packet to the controller after the IO module sends the third module information of the IO module to the controller, so that the controller feeds back the third module information according to the read data packet.
10. An industrial control system is characterized by comprising a module information setting device and a module information acquisition device;
the module information setting device is used for sending a preset setting data packet for setting module information to a communication unit of the industrial control system, so that the communication unit can set corresponding first module information according to the setting data packet; controlling the communication unit to forward the setting data packet to a controller so that the controller sets corresponding second module information according to the setting data packet; calling configuration software by using the controller to acquire third module information, and setting the corresponding third module information for the IO module;
the module information acquisition device is used for sending a preset reading data packet for reading module information to a communication unit of the industrial control system so that the communication unit feeds back corresponding first module information according to the reading data packet; controlling the communication unit to forward the read data packet to a controller so that the controller feeds back corresponding second module information according to the read data packet; and after the IO module sends the third module information of the IO module to the controller, sending the read data packet to the controller so that the controller feeds back the third module information according to the read data packet.
CN202011389746.8A 2020-12-02 2020-12-02 Module information setting method, acquisition method and device of industrial control system Active CN112526949B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011389746.8A CN112526949B (en) 2020-12-02 2020-12-02 Module information setting method, acquisition method and device of industrial control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011389746.8A CN112526949B (en) 2020-12-02 2020-12-02 Module information setting method, acquisition method and device of industrial control system

Publications (2)

Publication Number Publication Date
CN112526949A true CN112526949A (en) 2021-03-19
CN112526949B CN112526949B (en) 2022-02-25

Family

ID=74996171

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011389746.8A Active CN112526949B (en) 2020-12-02 2020-12-02 Module information setting method, acquisition method and device of industrial control system

Country Status (1)

Country Link
CN (1) CN112526949B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101848105A (en) * 2010-04-22 2010-09-29 华为技术有限公司 Number setting method and system for communication equipment
JP2011123829A (en) * 2009-12-14 2011-06-23 Ns Solutions Corp Production management device, production management method, and program
CN204390023U (en) * 2015-02-02 2015-06-10 武汉辉达工控技术有限公司 A kind of industrial control system
US9138825B2 (en) * 2005-10-07 2015-09-22 Illinois Tool Works Inc. Wireless communication system for welding-type devices
CN105468787A (en) * 2015-12-29 2016-04-06 深圳市英威腾电气股份有限公司 Method, apparatus and system for setting parameters of industrial equipment
CN110096685A (en) * 2019-04-28 2019-08-06 新华三信息安全技术有限公司 A kind of device identification generation method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9138825B2 (en) * 2005-10-07 2015-09-22 Illinois Tool Works Inc. Wireless communication system for welding-type devices
JP2011123829A (en) * 2009-12-14 2011-06-23 Ns Solutions Corp Production management device, production management method, and program
CN101848105A (en) * 2010-04-22 2010-09-29 华为技术有限公司 Number setting method and system for communication equipment
CN204390023U (en) * 2015-02-02 2015-06-10 武汉辉达工控技术有限公司 A kind of industrial control system
CN105468787A (en) * 2015-12-29 2016-04-06 深圳市英威腾电气股份有限公司 Method, apparatus and system for setting parameters of industrial equipment
CN110096685A (en) * 2019-04-28 2019-08-06 新华三信息安全技术有限公司 A kind of device identification generation method and device

Also Published As

Publication number Publication date
CN112526949B (en) 2022-02-25

Similar Documents

Publication Publication Date Title
EP2359201B1 (en) Method for determining a security step and security manager
CN111026460A (en) Method and device for quickly matching points by using area template in configuration tool
CN103023984B (en) Terminal application server and application log filtering method thereof
WO2016168788A2 (en) Containerized communications gateway
CN1954299A (en) Data processing system with trace co-processor
CN102546135A (en) System and method for switching between active and standby servers
CN109274178B (en) Automatic analysis system and method for power dispatching preposed operation information
EP2733613B1 (en) Controller and program
CN112313587B (en) Data processing method of numerical control system, computer equipment and storage medium
DE102016121493A1 (en) Selection device for selecting an engine system and a network system
CN112526949B (en) Module information setting method, acquisition method and device of industrial control system
CN102915209A (en) Storage control chip, storage equipment and system data writing method
CN102474195A (en) Inverter system and inverter
CN111459748A (en) Operation and maintenance control method, system and device based on command control and storage medium
CN101533372B (en) Data accessing system
CN113671924B (en) DCS real-time value setting method and system, equipment and storage medium
CN108206840A (en) For the communication means, server and wind turbine of wind power plant
CN101533373A (en) Data accessing system
CN112565041B (en) Hardware information configuration method, device and medium of FF field bus system
CN111078656A (en) Log collection method and device
CN112596478B (en) WCS warehouse control system architecture and implementation method
CN116050791A (en) Production line quality control method and system based on industrial Internet of things
CN114513384A (en) Device control method, device, terminal and computer readable storage medium
CN114331089A (en) Method and device for determining machining time, storage medium and processor
CN117389534A (en) Communication file generation method, device, computer equipment and storage medium

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