CN113114684B - Information transmission system, method and device for field device - Google Patents

Information transmission system, method and device for field device Download PDF

Info

Publication number
CN113114684B
CN113114684B CN202110400737.2A CN202110400737A CN113114684B CN 113114684 B CN113114684 B CN 113114684B CN 202110400737 A CN202110400737 A CN 202110400737A CN 113114684 B CN113114684 B CN 113114684B
Authority
CN
China
Prior art keywords
data
period
information transmission
field
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
CN202110400737.2A
Other languages
Chinese (zh)
Other versions
CN113114684A (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.)
Zhejiang Zhongtuo Hecong Technology Co ltd
Original Assignee
Zhejiang Zhongtuo Hecong Technology 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 Zhejiang Zhongtuo Hecong Technology Co ltd filed Critical Zhejiang Zhongtuo Hecong Technology Co ltd
Priority to CN202110400737.2A priority Critical patent/CN113114684B/en
Publication of CN113114684A publication Critical patent/CN113114684A/en
Application granted granted Critical
Publication of CN113114684B publication Critical patent/CN113114684B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes
    • 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]

Abstract

The invention discloses an information transmission system, method and device for field equipment, which comprises the field equipment, a controller and an information transmission device, wherein the information transmission device is provided with a data input interface which can be adapted to multiple industrial communication protocols and a DO output interface with adjustable period, the data input interface is connected with the data transmission interface of the field equipment, the DO output interface is connected with a DI (digital interface) module of the controller, the information transmission device is configured to convert data sent by the field equipment by adopting each industrial communication protocol into uniform coded data and then send the uniform coded data to the DI module of the controller, and the information transmission device is further configured to set the signal output period of the DO output interface according to the sampling period of the DI module of the controller. The intelligent device can be adapted to various types of intelligent devices on site and various types of controllers used on site, additional hardware and software configuration is not needed, and cost is effectively saved.

Description

Information transmission system, method and device for field device
Technical Field
The invention relates to the field of industrial data acquisition, in particular to an information transmission system, method and device for field equipment.
Background
In industrial field application, the application of control systems such as PLC/DCS has been very extensive, and with the advance of the trend of device intelligence, there are more and more field intelligent devices, and data generated by these devices as a part of big data needs to be managed uniformly. The data interfaces provided by these field smart devices typically employ commonly used industrial protocols such as Modbus-RTU, Modbus-TCP, PROFIBUS DP, PROFINET, CAN, and the like. When the data interface provided by the intelligent device is an industrial Ethernet interface, the data can be directly accessed to the data management platform through the network of the industrial Ethernet on site; when the intelligent device provides a non-industrial Ethernet interface, the best mode for accessing the data to the data management platform is to access the control system PLC/DCS nearby, and then access the data management platform after the data processing is carried out by the control system.
In the prior art, when field intelligent device data needs to be accessed through the control system PLC/DCS, the control system needs to have the capability of receiving the data. The conventional scheme is that a control system is provided with interface modules corresponding to communication protocols, and data is accessed into the system through the modules, on one hand, the control system is required to have the corresponding interface modules, for example, the control system needs to have the capacity of accessing buses such as conventional industrial communication protocols Modbus-RTU, Modbus-TCP, PROFIBUS DP, PROFINET, CAN and the like, but the existing control system is mature in access scheme for the Modbus-RTU and the Modbus-TCP, is more biased for the PROFIBUS, PROFINET, CAN and the like, and cannot be supported by common control systems. In addition, even if the control system has the capability of accessing to these industrial communication protocols, the corresponding interface module needs to be configured, and once a plurality of communication protocols exist in the field, the control system needs to configure a plurality of interface modules, which requires enough installation space in the field and causes the configuration cost to increase. Meanwhile, the complexity of the control system is increased due to the configuration of the interface modules, so that the difficulty of later maintenance is increased and the maintenance cost is increased.
Disclosure of Invention
The invention aims at the defects in the prior art and provides an information transmission system for field equipment, which comprises the field equipment, a controller and an information transmission device, wherein the information transmission device is provided with a data input interface which can be adapted to a plurality of industrial communication protocols and a DO output interface with adjustable period, the data input interface is connected with the field device data transmission interface, the DO output interface is connected with the controller DI module, the information transmission device is configured to convert data transmitted by the field devices by adopting various industrial communication protocols into uniform coded data and then transmit the uniform coded data to the controller DI module, the unified coding data comprises a data starting unit, a device type identifier and specific acquisition information, the data starting unit is used for representing the beginning of a data packet and consists of a fixed level signal, and the device type identifier is used for representing the type of a field device and consists of one byte of digits; the information transmitting device is further configured to set a signal output period of the DO output interface according to a controller DI module sampling period, the signal output period being greater than the controller DI module sampling period and less than twice the controller DI module sampling period.
Preferably, the information transmission device is configured to perform normalization processing on the information sent by the field device, buffer the information, and perform encoding output through the DO output interface according to a preset uniform encoding in a set signal output period after the data reception is confirmed to be complete.
Preferably, the information transmission device is configured to perform normalization processing on a plurality of sets of received data periodically transmitted by the field device, form a data buffer area, copy data in the data buffer area to the data transmission area after the data is completely received, and output the data through the DO output interface according to a preset unified coding and a set signal output period.
Preferably, the information transmission device is configured to continuously receive data sent by the field device according to the field device output period and repeatedly cover the data to the data buffer area without interruption during the data output process of the DO output interface, wherein the signal output period is greater than the field device output period; and after the data output of the DO output interface is finished, copying the data in the latest and complete data buffer area to the data sending area again, and carrying out coding output by the DO output interface according to the set signal output period.
Preferably, the controller is configured to compile a data receiving and processing function block before receiving data and complete downloading of the configuration, the data receiving and processing function block is configured to judge integrity of the received data, and after complete data reception is completed, analyze the data according to a preset code and store the analyzed data in the controller; and when the input data stops refreshing, sending abnormal alarm information to the controller through the DO output interface, simultaneously stopping the real-time data sending of the DO output interface, and sending the abnormal alarm information when the data receiving and processing functional block of the controller fails to receive valid data within a preset time.
Preferably, the data input interface of the information transmission apparatus is connected to the data transmission interfaces of the plurality of field devices, and has a plurality of data buffer areas in which data are independent from each other and are updated respectively, the data buffer areas are provided with corresponding field device identifiers for storing data of the field devices, and the information transmission apparatus is configured to temporarily store data received from different field devices into the respective corresponding data buffer areas, and cyclically transmit the data of each data buffer area in a signal output period.
The invention also discloses a data transmission method for the field device, which is used for an information transmission device, wherein the information transmission device is provided with a data input interface which can be adapted to various industrial communication protocols and a DO output interface with adjustable period, the data input interface is connected with the data transmission interface of the field device, the DO output interface is connected with the DI module of the controller, and the data transmission method specifically comprises the following steps:
configuring a corresponding data input interface according to a data interface protocol provided by a connected field device, and setting a signal output period of a DO (data only) output interface according to a sampling period of a controller DI (digital interface) module, wherein the signal output period is greater than the sampling period of the controller DI module and less than twice of the sampling period of the controller DI module;
the method comprises the steps that received data sent by different industrial communication protocols adopted by field equipment are converted into unified encoding data through a data input interface and then sent to a controller DI module through a DO output interface, wherein the unified encoding data comprise a data starting unit, equipment type identification and specific acquisition information, the data starting unit is used for representing the start of a data packet and consists of fixed level signals, and the equipment type identification is used for representing the type of the field equipment and consists of one-byte numbers;
continuously receiving data sent by the field equipment according to the output period of the field equipment, carrying out normalization processing on the data, and repeatedly covering the data in a data cache region of a memory, wherein the signal output period is greater than the output period of the field equipment;
and after the group of data is completely received, outputting the codes through the DO output interface according to the preset unified codes and the set signal output period.
The invention also discloses an information transmission device, which comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, wherein the processor executes the computer program to realize the steps of the data transmission method for the field device.
The invention also discloses a computer-readable storage medium, which stores a computer program that, when executed by a processor, implements the steps of the data transmission method for a field device as described above.
The invention discloses an information transmission system and method for field device, which adds an information transmission device between controllers such as PLC and field intelligent device, the information transmission device has data input interface and DO output interface with adjustable period, which can be adapted to various industrial communication protocols, and can be directly connected with the field intelligent device adopting any industrial communication protocol on the market, and convert the data into uniform coding format to be sent to controller DI module, the data input interface of the information transmission device can realize multi-protocol by configuration, and is adapted to various intelligent devices on the field; meanwhile, the output period of the DO output interface can be flexibly configured and can be adapted to controllers of various types used on site, the controllers can receive complex information only by providing a simple DI channel, additional hardware/software configuration is not needed, and cost is effectively saved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention and do not constitute a limitation of the invention. In the drawings:
fig. 1 is a schematic structural diagram of an information transmission system for a field device according to an embodiment of the present invention.
Fig. 2 is a schematic structural diagram of an information transmission system for a field device according to another embodiment of the present invention.
Fig. 3 is a flowchart illustrating an information transmission method for a field device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the drawings of the embodiments of the present invention. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the described embodiments of the invention without inventive step, are within the scope of protection of the invention.
In the present invention, unless otherwise expressly specified or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, "above" or "below" a first feature means that the first and second features are in direct contact, or that the first and second features are not in direct contact but are in contact with each other via another feature therebetween. Also, the first feature being "on," "above" and "over" the second feature includes the first feature being directly on and obliquely above the second feature, or merely indicating that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature includes the first feature being directly under and obliquely below the second feature, or simply meaning that the first feature is at a lesser elevation than the second feature.
Unless defined otherwise, technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this invention belongs. The use of "first," "second," and similar terms in the description and in the claims of the present application does not denote any order, quantity, or importance, but rather the terms are used to distinguish one element from another. Also, the use of the terms "a" or "an" and the like do not denote a limitation of quantity, but rather denote the presence of at least one.
Fig. 1 shows an information transmission system for a field device according to this embodiment, which can utilize the existing vacant DI channel of a control system to perform reliable transmission of information, so that when the field intelligent device accesses the system, no special requirements are imposed on the control system itself, and the increase of the configuration cost and the maintenance cost of the system is not caused. The information transmission system for the field device specifically comprises the field device, a controller and an information transmission device, wherein the information transmission device is provided with a data input interface which can be adapted to various industrial communication protocols and a DO output interface with adjustable period, the data input interface is connected with the data transmission interface of the field device, and the DO output interface is connected with a DI module of the controller. The information transmission device is configured to convert data sent by the field devices by adopting various industrial communication protocols into unified encoding data and then send the data to the controller DI module, the unified encoding data comprises a data starting unit, a device type identifier and specific acquisition information, the data starting unit is used for representing the start of a data packet and consists of fixed level signals, and the device type identifier is used for representing the types of the field devices and consists of one byte of numbers. And the information transmission device is also configured to set a signal output period of the DO output interface according to the controller DI module sampling period, wherein the signal output period is larger than the controller DI module sampling period and smaller than twice of the controller DI module sampling period. The data input interface of the information transmission device can be adapted to the interfaces of various common industrial communication protocols, field configuration can be carried out through the setting interface, meanwhile, the information transmission device can adjust the information sending period according to the sampling period of the DI module of the industrial system, the information transmission device can be perfectly matched with the industrial control system, and the industrial control system is not influenced.
In a specific embodiment, after the information transmission device is installed on site, the data transmission interface of the intelligent field device is connected with the data access interface of the information transmission device, the data access interface of the module is configured according to a data interface protocol provided by the field device, the DO output interface of the information transmission device is connected with a vacant DI channel in the field control system, and meanwhile, the output period of the DO signal is periodically set according to the DI module of the field control system.
The communication protocol configuration of the data input interface of the information transmission device needs to be consistent with the communication protocol provided by the data transmission interface of the field device. The communication protocol supported by the data input interface of the information transmission device CAN be any one of industrial communication protocols currently used in the market, such as Modbus-RTU, Modbus-TCP, PROFIBUS DP, PROFINET, CAN, custom protocol and the like.
The data period T of the DO output interface of the information transmission device needs to be configured according to the signal acquisition period of the DI module of the controller in the embodiment, which is an industrial control system, before configuration, the control period of the controller needs to be acquired, and then the output period T of the DO channel is set according to the period, and after the configuration items are set, the information transmission device can normally work.
The information output period TDO of the DO output interface is determined according to the configuration of the connected control system, that is, the controller, and in general, the sampling period of the DI module in the control system is the control period T of the controller in the control system, and at this time, the output period of the module DO channel must be greater than the control period of the controller in the control system, and in order to achieve the best data transmission efficiency, the range of the output period TDO of the module DO channel is proposed as follows: t < TDO < 2T.
In this embodiment, the information transmission device is configured to perform normalization processing on information sent by the field device, cache the information, and perform encoding output through the DO output interface according to a preset uniform encoding in a set signal output period after it is confirmed that data reception is complete. Specifically, the information transmission device is configured to perform normalization processing on a plurality of groups of received data periodically transmitted by the field device, form a data buffer area, copy data in the data buffer area to the data transmission area after the data is completely received, and output the data through the DO output interface according to a preset unified coding and a set signal output period.
The information transmission device can judge whether the data is complete or not after receiving the data of the field equipment, the data output by the field equipment can be periodically transmitted in groups under the general condition, and the information transmission device respectively performs normalization processing on the groups of data when receiving the data and forms a complete data buffer area. After a group of data is completely received and processed, the information transmission device copies the data in the data buffer area to the data sending area, and starts the DO output interface to output the data in the data sending area according to the predetermined code. The information transmission device is configured to perform normalization processing on information sent by the field device, cache the information, and perform coding output through a DO channel according to a preset coding and a set signal output period after the data is confirmed to be received completely. Specifically, after it is confirmed that a group of data is received completely, the information transmission apparatus outputs the codes by using the DO channel according to the set period and the unified codes.
In this embodiment, the information transmission apparatus is configured to continuously receive data sent by the field device according to the field device output period and repeatedly cover the data to the data buffer area without interruption during the data output process of the DO output interface, where the signal output period is greater than the field device output period; and after the data output of the DO output interface is finished, copying the data in the latest and complete data buffer area to the data sending area again, and carrying out coding output by the DO output interface according to the set signal output period. In general, the period of the signal output at the DO output interface is longer than the period of the field device output data, and during the data output at the DO output interface, the data reception is not interrupted, but is performed according to the output period of the field device, and only when receiving, the data is repeatedly covered in the data buffer. When the data output of the DO output interface is finished, the information transmission device can copy the data in the latest complete data buffer area to the data sending area again, the DO output interface outputs the data immediately, and the operation is repeated periodically.
In this embodiment, the controller is configured to compile a data receiving processing function block before receiving data and complete downloading of the configuration, where the data receiving processing function block is configured to determine integrity of the received data, and after receiving the complete data, analyze the data according to a preset code and store the analyzed data in the controller; and when the input data stops refreshing, sending abnormal alarm information to the controller through the DO output interface, simultaneously stopping the real-time data sending of the DO output interface, and sending the abnormal alarm information when the data receiving and processing functional block of the controller fails to receive valid data within a preset time.
Specifically, a data receiving and processing function block which is uniformly coded according to an agreement is compiled in the field control system, and data analysis is prepared. And the field control system receives data through the DI module and analyzes the data through the data receiving and processing function block. Before the control system receives data, a data receiving and processing function block needs to be programmed in the control system, and the downloading work of the configuration is completed. The function block analyzes data according to the unified coding agreed in the previous step, and stores the analyzed data into the control system. In general, the DO output interface of the information transmission apparatus outputs data in packets, so that the data processing function block in the control system also judges the integrity of the data when processing the data, and immediately starts the data parsing operation once a complete set of data is received. In some embodiments, when the input port of the information transmission device is interrupted in communication or otherwise abnormal, which causes the input data of the information transmission device to stop refreshing, the device immediately sends an abnormal alarm message to the control system through the DO output interface, and stops sending the real-time data, at this time, the alarm message may be prompted in the control system. When the data receiving and processing function block in the control system fails to receive valid data for a certain time, the function block can automatically send out abnormal alarm information and can prompt the alarm information in the control system.
In this embodiment, when each field device accesses the information transmission apparatus, the basic format of the unified coding is agreed as follows:
data start unit Device type identification Information length Specific information
Wherein the data start unit: for characterizing the start of a data packet, it consists of a fixed and special level signal. Device type identification: the device type is characterized by comprising a byte (8-bit) number, and different types of devices are provided with different type identifications. Specific information: the specific information to be transmitted, different types of devices also have different information contents.
As shown in fig. 2, when there are multiple field devices simultaneously accessing, the agreed unified coding format is as follows:
Figure BDA0003020180290000091
the data input interface of the information transmission device is connected with the data transmission interfaces of the field devices, the information transmission device is provided with a plurality of data cache regions with mutually independent data and respectively updated data, the data cache regions are provided with corresponding field device identification marks used for storing the data of the field devices, and the information transmission device is configured to temporarily store the data received from different field devices into the respective corresponding data cache regions and circularly transmit the data of each data cache region in a signal output period.
In this mode, the information transmission device, when receiving data from a plurality of field intelligent devices, places the data from different devices in different data buffer areas, one data buffer area corresponds to one device, and the data in each data buffer area are independent and updated respectively. When the information transmission device adopts a DO channel to output data, the data of the data buffer areas are sent circularly in a mode that each buffer area is provided with an ID of equipment identity identification, so that the data processing function block in the control system can conveniently identify each intelligent equipment and analyze respective output data.
In some embodiments, the information transmission apparatus is configured to adjust the data transmission order to each data buffer according to the data transmission period of each field intelligent device, and if the data transmission period of a first field device is less than half of the average data transmission period of all the field devices connected to the information transmission apparatus, the data transmission of the data buffer corresponding to the first field device needs to be completed at least twice within one cycle transmission period in which the information transmission apparatus completes data transmission of all the data buffers at least once. Specifically, each data buffer area may be divided into two groups, and after one group of packet data including the data buffer area corresponding to the first field device is completed, the data buffer area corresponding to the first field device is sent again before the other group is completed, so that the data buffer area corresponding to the first field device is sent twice within one cycle sending period. If the data transmission period of the second field device is less than one N times of the average data transmission period of all the field devices connected with the information transmission device, the data transmission of the data buffer area corresponding to the second field device needs to be completed at least N times within one cycle transmission period in which the information transmission device completes the data transmission of all the data buffer areas at least once. Specifically, each data buffer area can be divided into N groups, and after a group of packet data including the data buffer area corresponding to the second field device is completed, the data of the data buffer area corresponding to the second field device is sent before other remaining groups of data are sent, so that the data of the data buffer area corresponding to the second field device is sent N times within one cycle sending period.
In the information transmission system for the field device disclosed in this embodiment, an information transmission device is added between a controller such as a PLC and a field intelligent device, and the information transmission device has a data input interface adaptable to a plurality of industrial communication protocols and a DO output interface with an adjustable period, and can be directly docked with the field intelligent device adopting any one of the industrial communication protocols on the market at present, and convert data into a uniform coding format and send the data to a controller DI module. The data input interface of the information transmission device can realize multiple protocols through configuration and adapt to various types of intelligent equipment on site; meanwhile, the output period of the DO output interface can be flexibly configured and can be adapted to controllers of various types used on site, the controllers can receive complex information only by providing a simple DI channel, additional hardware/software configuration is not needed, and cost is effectively saved.
Fig. 3 is a schematic flow chart of a data transmission method for a field device according to an embodiment, which can be used in an information transmission apparatus, in particular, an information transmission apparatus in an information transmission system for a field device according to the foregoing embodiment, where the information transmission apparatus has a data input interface adaptable to multiple industrial communication protocols and a DO output interface with an adjustable period, the data input interface is connected to the field device data transmission interface, and the DO output interface is connected to the controller DI module. Specifically, the data transmission method specifically includes the following steps:
step S1, configuring a corresponding data input interface according to a data interface protocol provided by the connected field device, and setting a signal output period of the DO output interface according to a sampling period of the controller DI module, where the signal output period is greater than the sampling period of the controller DI module and less than twice the sampling period of the controller DI module.
After the information transmission device is installed on site, the data transmission interface of the intelligent field device is connected with the data access interface of the information transmission device, the data access interface of the module is configured according to a data interface protocol provided by the field device, the DO output interface of the information transmission device is connected with an idle DI channel in the field control system, and meanwhile, the output period of the DO signal is periodically set according to the DI module of the field control system.
The communication protocol configuration of the data input interface of the information transmission device needs to be consistent with the communication protocol provided by the data transmission interface of the field device. The communication protocol supported by the data input interface of the information transmission device CAN be any one of industrial communication protocols currently used in the market, such as Modbus-RTU, Modbus-TCP, PROFIBUS DP, PROFINET, CAN, custom protocol and the like. The data period T of the DO output interface of the information transmission device needs to be configured according to the signal acquisition period of the DI module of the controller in the embodiment, which is an industrial control system, before configuration, the control period of the controller needs to be acquired, and then the output period T of the DO channel is set according to the period, and after the configuration items are set, the information transmission device can normally work. The information output period TDO of the DO output interface is determined according to the configuration of the connected control system, i.e. the controller, generally, the sampling period of the DI module in the control system is the control period T of the controller in the control system, and at this time, the output period of the module DO channel must be greater than the control period of the controller in the control system, and in order to achieve the best data transmission efficiency, the range of the output period TDO of the module DO channel is proposed as follows: t < TDO < 2T.
Step S2, converting the received data sent by different industrial communication protocols adopted by the field device into unified encoding data through the data input interface, and sending the data to the controller DI module through the DO output interface, wherein the unified encoding data comprises a data starting unit, a device type identifier and specific acquisition information, the data starting unit is used for representing the start of a data packet and is composed of fixed level signals, and the device type identifier is used for representing the type of the field device and is composed of one byte of numbers.
Specifically, the information transmission device converts data sent by the field device by adopting each industrial communication protocol into unified encoding data and sends the data to the controller DI module, wherein the unified encoding data comprise a data starting unit, a device type identifier and specific acquisition information, and the data starting unit is used for representing the start of a data packet and consists of a fixed level signal. The device type identifier is used for characterizing the field device type and is composed of one-byte numbers. The specific information represents the specific information transmitted, and different types of devices also have different information contents. Meanwhile, the information transmission device sets a signal output period of the DO output interface according to a sampling period of the controller DI module, wherein the signal output period is larger than the sampling period of the controller DI module and is smaller than twice of the sampling period of the controller DI module. The data input interface of the information transmission device can be adapted to the interfaces of various common industrial communication protocols, field configuration can be carried out through the setting interface, meanwhile, the information transmission device can adjust the information sending period according to the sampling period of the DI module of the industrial system, the information transmission device can be perfectly matched with the industrial control system, and the industrial control system is not influenced.
And step S3, continuously receiving the data sent by the field device according to the output period of the field device, carrying out normalization processing on the data, and repeatedly covering the data to a data buffer area of the memory, wherein the signal output period is greater than the output period of the field device.
Specifically, the information transmission device performs normalization processing and caching on information sent by the field device, and performs coding output through a DO output interface according to a preset unified coding and a set signal output period after data reception is confirmed to be complete. The information transmission device then normalizes the received multiple groups of data periodically sent by the field equipment to form a data buffer area, copies the data in the data buffer area to the data sending area after the data are completely received, and outputs the data through a DO output interface according to a preset unified code and a set signal output period.
And step S4, after the group of data is completely received, outputting the codes through the DO output interface according to the preset unified codes and the set signal output period.
Specifically, the information transmission device determines whether the data is complete after receiving the data of the field device, generally, the data output by the field device is periodically transmitted in several groups, and the information transmission device respectively performs normalization processing on the several groups of data when receiving the data, and forms a complete data buffer. After a group of data is completely received and processed, the information transmission device copies the data in the data buffer area to the data sending area, and starts the DO output interface to output the data in the data sending area according to the predetermined code. The information transmission device is configured to perform normalization processing on information sent by the field device, cache the information, and perform coding output through a DO channel according to a preset coding and a set signal output period after the data is confirmed to be received completely. Specifically, after it is determined that a group of data is received completely, the information transmission apparatus outputs the codes by using the DO channel according to the set period and the uniform codes.
In the data output process of the DO output interface, the information transmission device continuously receives data sent by the field equipment according to the output period of the field equipment and repeatedly covers the data to the data buffer area without interruption, wherein the signal output period is greater than the output period of the field equipment; and after the data output of the DO output interface is finished, copying the data in the latest and complete data buffer area to the data sending area again, and carrying out coding output by the DO output interface according to the set signal output period. In general, the period of the signal output at the DO output interface is longer than the period of the field device output data, and during the data output at the DO output interface, the data reception is not interrupted, but is performed according to the output period of the field device, and only when receiving, the data is repeatedly covered in the data buffer. When the data output of the DO output interface is finished, the information transmission device can copy the data in the latest complete data buffer area to the data sending area again, the DO output interface outputs the data immediately, and the operation is repeated periodically.
In some embodiments, the information transmission apparatus adjusts a data transmission order to each data buffer according to a data transmission period of each field intelligent device, and if there is a data transmission period of a first field device that is less than half of an average data transmission period of all field devices connected to the information transmission apparatus, it is necessary to complete data transmission of data of the data buffer corresponding to the first field device at least twice within one cycle transmission period in which the information transmission apparatus completes data transmission of all data buffers at least once. Specifically, each data buffer area may be divided into two groups, and after one group of packet data including the data buffer area corresponding to the first field device is completed, the data buffer area corresponding to the first field device is sent again before the other group is completed, so that the data buffer area corresponding to the first field device is sent twice within one cycle sending period. If the data transmission period of the second field device is less than one N times of the average data transmission period of all the field devices connected with the information transmission device, the data transmission of the data buffer area corresponding to the second field device needs to be completed at least N times within one cycle transmission period in which the information transmission device completes the data transmission of all the data buffer areas at least once. Specifically, each data buffer area can be divided into N groups, and after a group of packet data including the data buffer area corresponding to the second field device is completed, the data of the data buffer area corresponding to the second field device is sent before other remaining groups of data are sent, so that the data of the data buffer area corresponding to the second field device is sent N times within one cycle sending period.
In this embodiment, the DO output interface of the information transmission apparatus is also used for outputting data in packets, so that the data processing function block in the control system also judges the integrity of the data when processing the data, and once a complete set of data is received, the data analysis operation is started immediately. When communication interruption or other abnormality occurs at the input port of the information transmission device, which causes the input data of the information transmission device to stop refreshing, the device immediately sends out abnormality alarm information to the control system through the DO output interface, and simultaneously stops sending real-time data, and at the moment, the alarm information can be prompted in the control system.
The data transmission method for the field device disclosed in this embodiment configures a corresponding data input interface according to a data interface protocol provided by a connected field device, sets a signal output period of a DO output interface according to a sampling period of a controller DI module, converts received data sent by different industrial communication protocols adopted by the field device into uniform coded data, sends the uniform coded data to the controller DI module through the DO output interface, continuously receives the data sent by the field device according to the output period of the field device, performs normalization processing on the data, repeatedly covers the data in a data cache area of a memory, and outputs the data to the controller through the DO output interface according to the set signal output period according to preset uniform coding after the completion of the reception of a group of data is confirmed. The method can realize multiple protocols through configuration and adapt to various types of intelligent equipment on site; meanwhile, the output period of the DO output interface can be flexibly configured and can be adapted to controllers of various types used on site, the controllers can receive complex information only by providing a simple DI channel, additional hardware/software configuration is not needed, and cost is effectively saved.
The embodiment also discloses an information transmission device, which comprises a memory, a processor 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 steps of the data transmission method for the field device described in the above embodiments.
The information transmitting device may include, but is not limited to, a processor, a memory. It will be understood by those skilled in the art that the schematic diagram is merely an example of the information transmission apparatus, and does not constitute a limitation of the information transmission apparatus, and may include more or less components than those shown, or combine some components, or different components, for example, the information transmission apparatus may further include an input-output device, a network access device, a bus, and the like.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, 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 information transfer device and that connects the various parts of the overall information transfer device equipment using 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 information delivery apparatus by running or executing the computer programs and/or modules stored in the memory, and by calling data stored in the memory. The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like, and the memory may include a high speed random access memory, and may further include a 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 data management method of the data processing device of the information transmission device can be stored in a computer readable storage medium if it is implemented in the form of a software functional unit and sold or used as an independent product. Based on such understanding, all or part of the flow in the method according to the above embodiments may be implemented by a computer program, which may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of the data processing method embodiments of the above information transmission apparatuses. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer-readable medium may contain suitable additions or subtractions depending on the requirements of legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer-readable media may not include electrical carrier signals or telecommunication signals in accordance with legislation and patent practice.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
In summary, the above-mentioned embodiments are only preferred embodiments of the present invention, and all equivalent changes and modifications made in the claims of the present invention should be covered by the claims of the present invention.

Claims (8)

1. An information transmission system for a field device, comprising:
a field device;
a controller;
the information transmission device is provided with a data input interface which can adapt to various industrial communication protocols and a DO output interface with an adjustable period, wherein the data input interface is connected with a field device data transmission interface, the DO output interface is connected with a controller DI module, the information transmission device is configured to convert data sent by field devices by adopting various industrial communication protocols into unified coded data and send the unified coded data to the controller DI module, the unified coded data comprises a data starting unit, a device type identifier and specific acquisition information, the data starting unit is used for representing the start of a data packet and consists of fixed level signals, and the device type identifier is used for representing the type of the field device and consists of one byte of digits;
the information transmitting device is further configured to set a signal output period of the DO output interface according to a controller DI module sampling period, the signal output period being greater than the controller DI module sampling period and less than twice the controller DI module sampling period;
the data input interface of the information transmission device is connected with the data transmission interfaces of the field devices, the information transmission device is provided with a plurality of data cache regions with mutually independent data and respectively updated data, the data cache regions are provided with corresponding field device identity marks used for storing the data of the field devices, the information transmission device is configured to temporarily store the data received from different field devices into the respective corresponding data cache regions, and circularly transmit the data of each data cache region in a signal output period; if the data transmission period of the second field device is less than one N times of the average data transmission period of all the field devices connected with the information transmission device, each data buffer area is divided into N groups, after a group of grouped data comprising the data buffer area corresponding to the second field device is completed, the data of the data buffer area corresponding to the second field device is transmitted before other residual groups of data are transmitted, and the data of the data buffer area corresponding to the second field device is transmitted for N times in one cycle transmission period.
2. The information transmission system for a field device according to claim 1, wherein:
the information transmission device is configured to perform normalization processing on information sent by the field device, cache the information, and perform coding output through a DO output interface according to a preset unified coding and a set signal output period after data reception is confirmed to be complete.
3. The information transmission system for a field device according to claim 2, wherein:
the information transmission device is configured to perform normalization processing on multiple groups of received data periodically transmitted by the field equipment, form a data buffer area, copy data in the data buffer area to the data transmission area after the data are completely received, and output the data through a DO output interface according to a preset unified code and a set signal output period.
4. The information transmission system for a field device according to claim 3, wherein: the information transmission device is configured to continuously receive data sent by the field device according to the output period of the field device and repeatedly cover the data to the data buffer area without interruption during the data output process of the DO output interface, wherein the signal output period is greater than the output period of the field device; and after the data output of the DO output interface is finished, copying the data in the latest and complete data buffer area to the data sending area again, and carrying out coding output by the DO output interface according to the set signal output period.
5. The information transmission system for a field device according to claim 4, wherein:
the controller is configured to compile a data receiving and processing functional block before receiving data and complete downloading of configuration, the data receiving and processing functional block is configured to judge the integrity of the received data, and after the complete data is received, the controller analyzes the data according to a preset code and stores the analyzed data into the controller; and when the input data stops refreshing, sending abnormal alarm information to the controller through the DO output interface, simultaneously stopping the real-time data sending of the DO output interface, and sending the abnormal alarm information when the data receiving and processing functional block of the controller fails to receive valid data within a preset time.
6. A data transmission method for a field device, which is used for an information transmission apparatus, the information transmission apparatus has a data input interface adaptable to a plurality of industrial communication protocols and a DO output interface with an adjustable period, the data input interface is connected with the field device data transmission interface, and the DO output interface is connected with a controller DI module, and the method comprises the following steps:
configuring a corresponding data input interface according to a data interface protocol provided by a connected field device, and setting a signal output period of a DO (data only) output interface according to a sampling period of a controller DI (digital interface) module, wherein the signal output period is greater than the sampling period of the controller DI module and less than twice of the sampling period of the controller DI module;
the method comprises the steps that received data sent by different industrial communication protocols adopted by field equipment are converted into unified encoding data through a data input interface and then sent to a controller DI module through a DO output interface, wherein the unified encoding data comprise a data starting unit, equipment type identification and specific acquisition information, the data starting unit is used for representing the start of a data packet and consists of fixed level signals, and the equipment type identification is used for representing the type of the field equipment and consists of one-byte numbers;
the method comprises the steps that data sent by field equipment are continuously received according to an output period of the field equipment, the data are subjected to normalization processing and then repeatedly covered to a data cache region of a memory, the signal output period is larger than the output period of the field equipment, the data cache region is provided with corresponding field equipment identity marks used for storing data of the field equipment, the information transmission device is configured to temporarily store the data received from different field equipment to the corresponding data cache region, and the data of each data cache region are circularly sent in the signal output period; (ii) a
And after a group of data is completely received, outputting the codes through a DO output interface according to a preset unified code according to a set signal output period, if the data transmission period of the second field equipment is less than one N of the average data transmission period of all the field equipment connected with the information transmission device, dividing each data buffer area into N groups, and after a group of grouped data comprising the data buffer area corresponding to the second field equipment is finished, sending the data of the data buffer area corresponding to the second field equipment before sending other residual groups of data so as to finish sending the data of the data buffer area corresponding to the second field equipment for N times in a cycle sending period.
7. An information transmission apparatus comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: the processor, when executing the computer program, realizes the steps of the method as claimed in claim 6.
8. A computer-readable storage medium storing a computer program, characterized in that: which computer program, when being executed by a processor, carries out the steps of the method as claimed in claim 6.
CN202110400737.2A 2021-04-14 2021-04-14 Information transmission system, method and device for field device Active CN113114684B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110400737.2A CN113114684B (en) 2021-04-14 2021-04-14 Information transmission system, method and device for field device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110400737.2A CN113114684B (en) 2021-04-14 2021-04-14 Information transmission system, method and device for field device

Publications (2)

Publication Number Publication Date
CN113114684A CN113114684A (en) 2021-07-13
CN113114684B true CN113114684B (en) 2022-08-16

Family

ID=76717545

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110400737.2A Active CN113114684B (en) 2021-04-14 2021-04-14 Information transmission system, method and device for field device

Country Status (1)

Country Link
CN (1) CN113114684B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103268293A (en) * 2013-06-14 2013-08-28 重庆重邮汇测通信技术有限公司 Management method of multichannel multi-speed data collection system memory
CN108769121A (en) * 2018-04-24 2018-11-06 浙江正泰电器股份有限公司 Intelligent industrial equips the method for uploading of internet of things data acquisition system and gathered data
CN109412939A (en) * 2018-12-11 2019-03-01 中冶京诚工程技术有限公司 Record the communication gate and working method of industrial network communication cycle process data

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63257853A (en) * 1987-04-03 1988-10-25 インターナシヨナル・ビジネス・マシーンズ・コーポレーシヨン Cash memory system
US20090118591A1 (en) * 2007-11-02 2009-05-07 H3 System Co., Ltd. Method and apparatus for collecting data from household medical devices
US20090271569A1 (en) * 2008-04-28 2009-10-29 Kannan Shivkumar Partitioned management data cache
CN108040005B (en) * 2017-12-05 2020-07-14 大连理工大学 Digit control machine tool intelligent monitoring gateway based on thing networking

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103268293A (en) * 2013-06-14 2013-08-28 重庆重邮汇测通信技术有限公司 Management method of multichannel multi-speed data collection system memory
CN108769121A (en) * 2018-04-24 2018-11-06 浙江正泰电器股份有限公司 Intelligent industrial equips the method for uploading of internet of things data acquisition system and gathered data
CN109412939A (en) * 2018-12-11 2019-03-01 中冶京诚工程技术有限公司 Record the communication gate and working method of industrial network communication cycle process data

Also Published As

Publication number Publication date
CN113114684A (en) 2021-07-13

Similar Documents

Publication Publication Date Title
CA1243730A (en) Wireless computer modem
CN106899498A (en) Embedded industry intelligent gateway and its real-time data acquisition method based on SoC
CN110392381B (en) Multi-channel wireless communication method and device for nuclear power station and terminal equipment
CN111427335B (en) Vehicle remote diagnosis method, equipment connector and vehicle connector
CN108566369B (en) Data acquisition system and method based on industrial big data
US10776306B2 (en) Serial port communication mode conversion method, system, and circuit
CN108833267A (en) Intelligent industrial gateway
US10223319B2 (en) Communication load determining apparatus
CN111736866A (en) One-to-one and one-to-many compatible online upgrading method and terminal equipment
CN113114684B (en) Information transmission system, method and device for field device
CN115484047A (en) Method, device, equipment and storage medium for identifying flooding attack in cloud platform
CN113282587B (en) Method and device for transmitting state data, storage medium and electronic device
CN105045224A (en) Data transmission method and device
CN111555984B (en) Method and device for data transmission, smart home equipment and storage medium
CN113938351A (en) Data acquisition method, system and computer readable storage medium
CN114979058B (en) CAN multi-mailbox multiplexing processing method and system
CN109951417B (en) Identity authentication method, system and terminal equipment
CN113659722B (en) Multifunctional network system of 5G power network and management method thereof
CN112637151B (en) Data message transmission method, terminal device, server and storage medium
CN110687854B (en) PA bus controller and PA bus control system
CN116781448B (en) CAN message loss prevention method, device, system, chip and medium
CN112260968B (en) Method and device for processing telemetering data message
CN112351080B (en) Internet of things terminal of power distribution system and communication method of Internet of things terminal and external device
CN114567673B (en) Method for quickly broadcasting blocks by block chain nodes
RU168557U1 (en) CONTROL INFORMATION DECODING DEVICE

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