DP master station and bus communication equipment
By designing a DP master station with a multi-MCU architecture, combining protocol processing modules and dual-port storage submodules, the problems of lack of independent research and development and poor use of existing Profibus-DP bus communication equipment are solved, and efficient and reliable Profibus- DP bus communication.
Patent Information
- Application Number
- CN202411348627.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2024-12-27
AI Technical Summary
The existing Profibus-DP bus communication equipment lacks independent research and development products, relies on imported ASIC chips, is of poor convenience to use, and has high maintenance costs.
Design a DP master station, adopting the main processing module and protocol processing module, including protocol MCU and FPGA units, realize data mutually exclusive access through dual-port storage submodules, and combine with multi-MCU architecture to realize the processing of the Profibus protocol and the underlying high-speed serialization. Communication.
It improves the processing efficiency and data security of the Profibus protocol, reduces maintenance costs, and realizes stable and reliable communication of the Profibus-DP bus.
Smart Images

Figure CN119210926A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of industrial control technology, and in particular to a DP master station and bus communication equipment. Background Art
[0002] With the rapid development of information and Internet technology, the field of automation control is also evolving, and fieldbuses have emerged and flourished. Profibus (process fieldbus) is one of the best, and is widely used in automobile manufacturing, chemical industry, power generation, power transmission and distribution, buildings and other fields. In the nuclear power DCS (Distributed Control System) control system, Profibus-DP (a communication protocol) bus is also widely used. At present, most DCS systems have their own Profibus-DP master stations, which are mainly implemented by imported protocol processing ASIC (Application Specific Integrated Circuit) chips. There is a lack of related products independently developed in China, and imported Profibus bus equipment must be used with its corresponding engineering configuration software, which makes the product less convenient to use and has high maintenance costs in the later stage. Summary of the invention
[0003] The technical problem to be solved by the present invention is to overcome the defect of lack of Profibus-DP bus communication equipment in the prior art, and to provide a DP master station and bus communication equipment.
[0004] The present invention solves the above technical problems through the following technical solutions:
[0005] In a first aspect, a DP master station is provided, comprising a main processing module and a protocol processing module;
[0006] The main processing module is connected to the protocol processing module and is used to process data interaction of the DP slave station connected to the DP master station;
[0007] The protocol processing module includes a protocol MCU (Microcontroller Unit) unit and a protocol FPGA (Field-Programmable Gate Array) unit, and the protocol FPGA unit includes a dual-port storage submodule (Dual-Port RAM, a random access memory with two independent data ports);
[0008] Among them, one side interface of the dual-port storage submodule is connected to the main processing module, and the other side interface is used to read and write the internal data of the protocol processing module, and the data of the two side interfaces in the dual-port storage submodule are mutually exclusive access;
[0009] The protocol FPGA unit is used to receive the protocol data, and after preliminarily parsing the protocol data, send the preliminarily parsed protocol data to the protocol MCU unit;
[0010] The protocol MCU unit is used to process the initially parsed protocol data to obtain target protocol data, and store the target protocol data in the dual-port storage submodule.
[0011] Preferably, it also includes a communication module;
[0012] The communication module is connected to the main processing module, and is used for exchanging data with an external DCS controller.
[0013] Preferably, the main processing module includes a first MCU unit, and the communication module includes a second MCU unit.
[0014] Preferably, the protocol MCU unit, the first MCU unit and the second MCU unit all adopt GigaDevice GD32F450 series MCU.
[0015] Preferably, the dual-port storage submodule includes a register area, a pipeline area, a user data area, a system log area and a mailbox area.
[0016] Preferably, the register area includes a device register partition, a master station register partition and a slave station register partition;
[0017] The device register partition is used to record the inherent properties of the DP master station;
[0018] The master station register partition is used to store the master station configuration information stored by the main processing module;
[0019] The slave station register partition is used to store the slave station configuration information stored by the main processing module.
[0020] Preferably, the pipeline partitioning includes a general pipeline partitioning and a bus asynchronous pipeline partitioning;
[0021] The universal pipeline partition is used for bidirectional batch data communication;
[0022] The bus asynchronous pipe partition is used to receive the real-time asynchronous message inside the protocol processing module and send the real-time asynchronous message to the main processing module.
[0023] Preferably, the user data partition includes a user output data partition and a user input data partition;
[0024] The user input data partition and the user input data partition are respectively in independent storage areas.
[0025] In a second aspect, a bus communication device is provided, comprising the DP master station described in the first aspect.
[0026] Preferably, it also includes an electronic equipment database file;
[0027] The electronic device database file is used to record the configuration information of the bus device.
[0028] On the basis of being in accordance with the common sense in the art, the above-mentioned preferred conditions can be arbitrarily combined to obtain the preferred embodiments of the present disclosure.
[0029] The positive progressive effect of the present disclosure is that: a multi-MCU architecture is used to implement the processing of the Profibus protocol, and the protocol processing module is used to process the Profibus-DP underlying high-speed serial communication protocol, and the SEM semaphore mechanism of mutually exclusive access to data on both sides of the dual-port storage submodule is implemented through the dual-port storage submodule in the protocol processing module, thereby protecting the security and consistency of the data. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 A schematic diagram of a first module of a DP master station provided for an exemplary embodiment of the present disclosure;
[0031] Figure 2 A schematic diagram of a second module of a DP master station provided for an exemplary embodiment of the present disclosure;
[0032] Figure 3 A module diagram of a bus communication device provided by an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0033] The present disclosure is further described below by way of examples, but the present disclosure is not limited to the scope of the examples.
[0034] Prefixes such as "first" and "second" are used in the embodiments of the present disclosure only to distinguish different description objects, and have no limiting effect on the position, order, priority, quantity or content of the described objects. The use of prefixes such as ordinal numbers to distinguish description objects in the embodiments of the present disclosure does not constitute a limitation on the described objects. For the statement of the described objects, please refer to the description in the context of the claims or embodiments, and no unnecessary limitation should be constituted due to the use of such prefixes. In addition, in the description of the present embodiment, unless otherwise specified, the meaning of "plurality" is two or more.
[0035] Example 1
[0036] This embodiment provides a DP master station 100, such as Figure 1 As shown, it includes a main processing module 101 and a protocol processing module 102;
[0037] The main processing module 101 is connected to the protocol processing module 102 and is used to process data interaction of the DP slave station connected to the DP master station 100;
[0038] The protocol processing module 102 includes a protocol MCU unit 1022 and a protocol FPGA unit 1021, and the protocol FPGA unit 1021 includes a dual-port storage submodule 10211;
[0039] Among them, one side interface of the dual-port storage submodule 10211 is connected to the main processing module 101, and the other side interface is used to read and write the internal data of the protocol processing module 102, and the data of the two side interfaces in the dual-port storage submodule 10211 are mutually exclusive access;
[0040] The protocol FPGA unit 1021 is used to receive protocol data, and after preliminarily parsing the protocol data, send the preliminarily parsed protocol data to the protocol MCU unit 1022;
[0041] The protocol MCU unit 1022 is used to process the initially parsed protocol data to obtain target protocol data, and store the target protocol data in the dual-port storage submodule 10211 .
[0042] In this solution, the FPGA of the protocol processing module is used to complete RS485 (a high-speed serial communication protocol) high-speed serial communication, and the protocol FPGA unit implements a module with a dual-port storage function, namely a dual-port storage submodule. The dual-port storage submodule is used for data communication between the protocol processing module and the main processing module; in the protocol processing module, the protocol MCU unit and the protocol FPGA unit communicate through the Localbus (local bus) bus, and the protocol FPGA unit implements the underlying serial port receiving and sending function and frame data parsing and processing function of the Profibus-DP protocol data. The initially parsed protocol data is transmitted to the protocol MCU unit through the Localbus bus for further processing and parsing. The protocol MCU unit transmits the processed target protocol data to the dual-port storage submodule of the protocol FPGA unit through the Localbus bus, and stores the processed target protocol data in the register area of the dual-port storage submodule. The dual-port storage submodule in the protocol processing module implements the SEM semaphore mechanism for mutually exclusive access to data on both sides of the dual-port storage submodule to protect the security and consistency of the data.
[0043] As a feasible approach, Figure 2 As shown, it also includes a communication module 103;
[0044] The communication module 103 is connected to the main processing module 101 and is used to exchange data with an external DCS controller.
[0045] In this solution, the communication module is used to implement the functions of the network protocol stack and is responsible for network data communication with the DCS controller. The DP master station and the DCS controller communicate using two mutually redundant 100M Ethernets to achieve security and stability of data communication.
[0046] As an implementable manner, the main processing module includes a first MCU unit, and the communication module includes a second MCU unit.
[0047] In this solution, the first MCU unit, the second MCU unit and the protocol MCU unit form a three-MCU architecture for the DP master station. Each MCU implements the corresponding function based on the module in which it is located to ensure the complete independence of the functions of each module, while reducing the performance requirements for the MCU chip. Taking the second MCU unit of the communication module as an example, in the normal operation mode, in addition to the data of the slave station, the DP master station and the DCS controller communicate with each other, as well as the general configuration information of the DP master station, the DP configuration information of the master and slave station equipment, the synchronization data of the DCS controller, etc., especially when 127 slave stations are configured under extreme conditions, the network load will be relatively large. In order to ensure the stability and reliability of the network, the use of an independent MCU can effectively reduce the load of the main MCU.
[0048] As an implementable manner, the protocol MCU unit, the first MCU unit and the second MCU unit all adopt GigaDevice GD32F450 series MCU.
[0049] In this solution, the domestic GigaDevice GD32F450 series MCU is designed based on the ARM CoretexM4 core, with a main frequency of up to 200MHz, high computing performance and high stability. It can meet the functional requirements of each module in the module architecture of the DP master station.
[0050] As an implementable manner, the dual-port storage submodule includes a register area, a pipeline area, a user data area, a system log area and a mailbox area.
[0051] In this solution, through the collaborative work of the register area and the pipeline area, efficient data transmission can be achieved and the overall system operation efficiency can be improved; the user data area provides a flexible data storage and management mechanism, allowing users to perform data operations according to needs; the system log area records the system operation log, which is convenient for monitoring and diagnosing the system status and improving the system reliability; the mailbox area provides a convenient communication mechanism, making the information transmission between different modules more efficient and reliable.
[0052] As an implementable manner, the register area includes a device register partition, a master station register partition and a slave station register partition;
[0053] The device register partition is used to record the inherent properties of the DP master station;
[0054] The master station register partition is used to store the master station configuration information stored by the main processing module;
[0055] The slave station register partition is used to store the slave station configuration information stored by the main processing module.
[0056] In this solution, the inherent attributes recorded in the device register partition include device ID (Identification), firmware version, device status, device temperature and other information; the master station register area and the slave station register respectively store the master and slave station configuration information parsed by the main MCU, such as the device's baud rate and master and slave station addresses.
[0057] As an implementable manner, the pipeline partitioning includes general pipeline partitioning and bus asynchronous pipeline partitioning;
[0058] The universal pipeline partition is used for bidirectional batch data communication;
[0059] The bus asynchronous pipe partition is used to receive the real-time asynchronous message inside the protocol processing module and send the real-time asynchronous message to the main processing module.
[0060] In this solution, the general pipe area is used to implement bidirectional batch data communication, such as the configuration information of each slave station. The sender of the pipe message needs to receive the mailbox event sent by the other party through the mailbox area after sending the pipe message, and inform the receiver that a new pipe message has arrived. After the receiver detects the mailbox event, it reads the mailbox message to determine the arrival of the pipe message and then reads the pipe message to complete the pipe data communication. The bus asynchronous pipe area sends real-time asynchronous messages from the protocol module to the main MCU, mainly slave diagnostic data and DPV1 slave response data.
[0061] As an implementable manner, the user data partition includes a user output data partition and a user input data partition;
[0062] The user input data partition and the user input data partition are respectively in independent storage areas.
[0063] In this solution, the specific address range of the user data area is specified by the user when configuring the slave. The user input data area and the user output data area are not reused, and each has an independent storage area. By storing the input and output data in different areas, data confusion and overwriting can be avoided, and the security and reliability of data management can be improved. Independent storage areas can be specially optimized for input and output data, such as cache strategy, read and write speed, etc., thereby improving the overall performance of the system.
[0064] The DP master station provided in this embodiment adopts a new multi-MCU architecture to implement the processing of the Profibus protocol. It is divided into a protocol processing module for processing the Profibus-DP underlying high-speed serial communication protocol, a main MCU module for processing the Profibus application main program, and a communication MCU module for communicating with the DCS controller. The multi-MCU architecture can achieve a reasonable allocation of functions and effectively utilize the performance of the MCU. The module can be used in various industrial control fields to realize data communication of the Profibus bus.
[0065] Example 2
[0066] This embodiment provides a bus communication device, such as Figure 3 As shown, it includes the DP master station described in Example 1.
[0067] In this solution, the Profibus bus communication device includes the DP master station 100 in Example 1, as well as the Profibus bus 300 and the DP slave station 400. The Profibus bus communication device receives the network data of the DCS controller 200, realizes the data communication of the DCS system and the local complete set of equipment using the Profibus protocol, and the control and communication of the local Profibus slave station can be realized through the host computer software.
[0068] In one embodiment, the bus communication device of this embodiment is applied to the field of equipment control in nuclear power plants and thermal power plants.
[0069] As an implementable manner, it also includes an electronic device database file;
[0070] The electronic device database file is used to record the configuration information of the bus device.
[0071] In this solution, Profibus devices are equipped with an electronic equipment database file (GSD, Generic Station Description). The characteristics and configuration information of the device, such as manufacturer information, I / O points (Input / Output, diagnostic information, baud rate, etc., are all described in the GSD file. The standardized GSD data format allows Profibus master and slave stations from different manufacturers to be easily configured on the same Profibus-DP bus, achieving plug-and-play and meeting the user's quick use needs.
[0072] In the project configuration stage, it is necessary to build the corresponding Profibus bus project according to the actual situation of the project, and use PBConfi (Peripheral Bus Configuration Interface) software to build the project. In the project configuration stage, it is necessary to set relevant parameters, such as the baud rate of the master station, the address of the slave station, the data module type and length, etc. After compilation and parsing, a binary bin format configuration file is generated.
[0073] The detailed data format of the configuration file stores the configuration information of the master station from byte 0 to byte 40, including the baud rate of the master station, the address of the master station, the number of slave stations and other information. The configuration information of the slave station is placed after 40 bytes, and the length of the configuration information of each slave station is placed in the first two digits of its configuration information data. The slave station configuration information mainly includes the slave station address, diagnostic information, the length of the output data, the length of the input data and other information of the slave station. After the slave station configuration information is the DPV1 configuration information of the slave station, with a fixed length of 13 bytes. In order to ensure the security and integrity of the configuration file data, a 16-bit CRC check is added after each segment of configuration information, and a total CRC check of all data.
[0074] The bus communication device provided in this embodiment adopts a DP master station with a new multi-MCU architecture to realize functional division into a protocol processing module for processing the Profibus-DP underlying high-speed serial communication protocol, a main MCU module for processing the Profibus application main program, and a communication MCU module for communicating with the DCS controller. The multi-MCU architecture can realize reasonable distribution of functions and effectively utilize the performance of the MCU. The module can be used in various industrial control fields to realize data communication of the Profibus bus.
[0075] Although the specific embodiments of the present disclosure are described above, those skilled in the art should understand that this is only an example, and the protection scope of the present disclosure is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present disclosure, but these changes and modifications all fall within the protection scope of the present disclosure.
Claims
1. A DP master station, characterized in that: It includes a main processing module and a protocol processing module; The main processing module is connected to the protocol processing module and is used to process data interaction of the DP slave station connected to the DP master station; The protocol processing module includes a protocol MCU unit and a protocol FPGA unit, and the protocol FPGA unit includes a dual-port storage submodule; Among them, one side interface of the dual-port storage submodule is connected to the main processing module, and the other side interface is used to read and write the internal data of the protocol processing module, and the data of the two side interfaces in the dual-port storage submodule are mutually exclusive access; The protocol FPGA unit is used to receive the protocol data, and after preliminarily parsing the protocol data, send the preliminarily parsed protocol data to the protocol MCU unit; The protocol MCU unit is used to process the initially parsed protocol data to obtain target protocol data, and store the target protocol data in the dual-port storage submodule.
2. The DP master station according to claim 1, characterized in that: Also includes a communication module; The communication module is connected to the main processing module, and is used for exchanging data with an external DCS controller.
3. The DP master station according to claim 2, characterized in that: The main processing module includes a first MCU unit, and the communication module includes a second MCU unit.
4. The DP master station according to claim 3, characterized in that: The protocol MCU unit, the first MCU unit and the second MCU unit all adopt GigaDevice GD32F450 series MCU.
5. The DP master station according to claim 1, characterized in that: The dual-port storage submodule includes a register area, a pipeline area, a user data area, a system log area and a mailbox area.
6. The DP master station according to claim 5, characterized in that: The register area includes a device register partition, a master station register partition and a slave station register partition; The device register partition is used to record the inherent properties of the DP master station; The master station register partition is used to store the master station configuration information stored by the main processing module; The slave station register partition is used to store the slave station configuration information stored by the main processing module.
7. The DP master station according to claim 5, characterized in that: The pipeline partition includes a general pipeline partition and a bus asynchronous pipeline partition; The universal pipeline partition is used for bidirectional batch data communication; The bus asynchronous pipe partition is used to receive the real-time asynchronous message inside the protocol processing module and send the real-time asynchronous message to the main processing module.
8. The DP master station according to claim 5, characterized in that: The user data partition includes a user output data partition and a user input data partition; The user input data partition and the user input data partition are respectively in independent storage areas.
9. A bus communication device, characterized in that: The invention comprises the DP master station according to any one of claims 1 to 8.
10. The bus communication device according to claim 9, characterized in that: Also included are electronic equipment database files; The electronic device database file is used to record the configuration information of the bus device.
