Generator set communication method based on Profidrive message form communication and generator set
By adopting the communication method in the form of Profidrive messages in the generator set, the problems of insufficient real-time performance and high cost of data transmission in the existing technology are solved, efficient and stable data interaction of the generator set is achieved, and operational stability is improved.
Patent Information
- Application Number
- CN202410756534.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-10-15
AI Technical Summary
The existing communication methods between generator equipment have problems such as insufficient real-time data transmission and high installation and maintenance costs, especially when using the Profibus communication protocol.
Using a communication method based on Profidrive messages, command information and status information are obtained and sent through polling between the PB communication module, the converter control module and the main controller, and Profidrive messages are generated to ensure the real-time and Stability without adding additional communication board circuits.
It improves the real-time and stability of data transmission of generator sets, reduces installation and maintenance costs, and meets the control needs of complex industrial electrification systems.
Smart Images

Figure CN118784393A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of generator set communication, and in particular to a generator set communication method and a generator set based on Profidrive message communication. Background Art
[0002] The safe and stable operation of the generator set equipment is closely related to the communication method between the converter and the main controller. The main function of various communication methods is to ensure that the correct instructions of the main controller can be sent to the converter correctly and timely, and the converter can send the status parameters to the main controller correctly and timely, so as to ensure the stable operation of the converter. The wind power converter and the main controller establish an effective information exchange link through the communication protocol, and can complete the transmission of control commands and control status information in a timely manner, and complete the stable and effective control of the wind turbine.
[0003] At present, the main communication methods between generator set equipment are:
[0004] (1) CANopen communication protocol, a communication protocol based on the Controller Area Network (CAN) bus, has the advantages of fast transmission speed, reliable data and high stability, and is widely used in various industries.
[0005] (2) Profibus communication protocol, a widely used fieldbus communication protocol, can run on various physical layers, including RS-485 and Ethernet. It has fast transmission speed, reliable data, high stability, and can transmit various types of data (including real-time data, diagnostic data, etc.). It is common in manufacturing and process control.
[0006] As a fieldbus communication protocol, the above method (1) has the disadvantage of insufficient real-time data transmission. As another fieldbus communication protocol, the above method (2) has the disadvantage of high installation and maintenance costs due to the need to add additional communication board circuits. Summary of the invention
[0007] The present invention provides a generator set communication method and a generator set based on variable frequency drive line specification Profidrive message form communication, which ensures the real-time and stability of generator set data transmission without adding additional communication board circuits.
[0008] According to a first aspect of an embodiment of the present invention, a generator set communication method based on Profidrive message communication is provided, the method is applied to a process field bus PB communication module in the generator set, the generator set includes a generator, a main controller, a converter, a converter control module and a PB communication module, the PB communication module is communicatively connected to the converter control module, the main controller is communicatively connected to the PB communication module, and the method includes:
[0009] Obtain command information sent by the main controller through polling;
[0010] Writing command information into the Profidrive message to generate a first message;
[0011] Sending a first message to a converter control module;
[0012] Acquire status information sent by the converter control module based on the command information by polling;
[0013] Writing the status information into the Profidrive message, generating a second message;
[0014] Send a second message to the main controller.
[0015] In a possible implementation, the Profidrive message format divides the user data PPO into a parameter PKW area and a process data PZD area; when the command information includes control command information, the command information is written into the Profidrive message to generate a first message, including:
[0016] Write the control command information into the PZD area to generate the first message;
[0017] When the command information includes control command information and read command information, the command information is written into the Profidrive message to generate a first message, including:
[0018] Write the control command information into the PZD area, write the read command information into the PKW area, and generate a first message;
[0019] The control command information is used to control the converter, and the read command information is used to read the status data of the converter.
[0020] In a possible implementation, when the command information includes control command information, the state information includes first state information;
[0021] The first status information is:
[0022] When the converter control module reads normal control command information, the converter control module controls the converter based on the normal control command information, and the converter returns information to the converter control module;
[0023] or,
[0024] When the converter control module reads abnormal control command information, the converter is controlled based on the abnormal control command information and a preset control amount, and the converter returns information to the converter control module.
[0025] In a possible implementation manner, when the command information further includes read command information, the state information further includes second state information;
[0026] The second status information is:
[0027] When the converter control module reads normal read command information, information read from the converter based on the normal read command information;
[0028] or,
[0029] When the converter control module reads abnormal read command information, it returns an illegal character identification code to the PB communication module.
[0030] In a possible implementation, the state information is written into a Profidrive message to generate a second message, including:
[0031] The first status information is written into the PZD area to generate a second message.
[0032] In a possible implementation, the state information is written into a Profidrive message to generate a second message, including:
[0033] The first status information is written into the PZD area, and the second status information is written into the PKW area to generate a second message.
[0034] According to a second aspect of an embodiment of the present invention, there is provided a generator set based on Profidrive message communication, the generator set comprising a generator, a main controller, a converter, a converter control module and a PB communication module, the PB communication module is communicatively connected to the control module, and the main controller is communicatively connected to the PB communication module;
[0035] The main controller is used to send command information to the PB communication module;
[0036] The PB communication module is used to obtain command information by polling; is also used to write the command information into the Profidrive message to generate a first message; is also used to send the first message to the converter control module;
[0037] The converter control module is used to receive the first message and read the command information; and is also used to send status information to the PB communication module based on the command information;
[0038] The PB communication module is also used to obtain status information through polling; it is also used to write the status information into the Profidrive message to generate a second message; it is also used to send the second message to the main controller.
[0039] In a possible implementation, the Profidrive message format divides the user data PPO into a PKW area and a PZD area; the PB communication module is specifically used for:
[0040] When the command information includes control command information, the control command information is written into the PZD area to generate a first message;
[0041] When the command information includes control command information and read command information, the control command information is written into the PZD area, and the read command information is written into the PKW area to generate a first message;
[0042] The control command information is used to control the converter, and the read command information is used to read the status data of the converter.
[0043] In a possible implementation manner, when the command information includes control command information, the converter control module is specifically configured to:
[0044] When normal control command information is read, the converter is controlled based on the control command information;
[0045] receiving first status information returned by the converter;
[0046] or,
[0047] When abnormal control command information is read, the converter is controlled based on the abnormal control command information and a preset control amount;
[0048] The first status information returned by the converter is received.
[0049] In a possible implementation, the control command information includes a control amount and a control word command. When abnormal control command information is read, the converter control module is specifically configured to:
[0050] If the control quantity sent by the main controller exceeds the preset control quantity limit and the control word command is normal, the control quantity is limited to control the normal operation of the converter;
[0051] Otherwise, the control converter triggers the corresponding fault and automatically shuts down.
[0052] In a possible implementation manner, when the command information further includes read command information, the converter control module is further specifically configured to:
[0053] When normal read command information is read, reading second state information of the converter based on the read command information;
[0054] Sending second status information to the PB communication module;
[0055] or,
[0056] When abnormal read command information is read, an illegal character identification code is sent to the PB communication module.
[0057] In a possible implementation, when normal read command information is read, the converter control module is specifically configured to:
[0058] Analyze the normal read command information to obtain the parameter number of the converter state quantity that the main controller needs to obtain;
[0059] According to the parameter number, second state information of the corresponding converter is identified.
[0060] In a possible implementation, when abnormal read command information is read, the converter control module is specifically configured to:
[0061] Analyze abnormal read command information and generate illegal character identification codes;
[0062] Send illegal character identification code to PB communication module.
[0063] In a possible implementation, the PB communication module is specifically used to:
[0064] The first status information is written into the PZD area to generate a second message.
[0065] In a possible implementation, the PB communication module is specifically used to:
[0066] The first status information is written into the PZD area, and the second status information is written into the PKW area to generate a second message.
[0067] The embodiment of the present invention provides a generator set communication method and a generator set based on Profidrive message communication. The method is designed based on the traditional Profibus communication protocol circuit to ensure the diversity of generator set data transmission. At the same time, based on the Profidrive message format, the data transmission rate is further improved, the timeliness of generator set data interaction is improved, and the operating stability of the generator set is improved. In addition, there is no need to add additional communication board circuits, and the installation and maintenance costs are low. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0069] Figure 1A schematic diagram of a topology of a generator set based on Profidrive message communication provided by an embodiment of the present invention;
[0070] Figure 2 A schematic diagram of a Profidrive message format provided in an embodiment of the present invention;
[0071] Figure 3 A schematic diagram of a device communication connection structure based on Profidrive message communication provided by an embodiment of the present invention;
[0072] Figure 4 A flow chart of a generator set communication method based on Profidrive message communication provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0073] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0074] Embodiment 1
[0075] An embodiment of the present invention provides a generator set based on Profidrive message communication, the generator set includes a generator, a main controller, a converter, a converter control module and a PB communication module, and the generator can be a wind turbine, a photovoltaic panel or other power generation equipment.
[0076] In one embodiment, the topology of the generator set is as follows Figure 1 As shown, the PB communication module is connected to the converter control module through optical fiber, and the main controller is connected to the PB communication module through a D-type data interface connector DB9 adapter cable.
[0077] Profidrive is based on Profibus technology and is suitable for various types of drives, including servo drives, frequency converters, motor controllers, etc. It defines the device behavior and internal drive data access procedures for electrical drives on Profibus and ProfiNet, ranging from simple frequency converters to high-performance servo controllers.
[0078] An embodiment of the present invention provides a device communication connection structure based on Profidrive message communication. Figure 2As shown, device 1, device 2, device 3, etc. are based on the Profibus / ProfiNet bus and communicate through Profidrive messages. Each device is distinguished by an address. These devices may include a main controller, a converter control module, etc., to meet the control requirements of a complex industrial electrification system.
[0079] The Profidrive message format includes a message header and user data PPO, such as Figure 3 As shown. The Profidrive message format divides the user data PPO into the parameter PKW area and the process data PZD area. Among them, the data that are usually exchanged in the PZD area mainly include control words, control quantities, and their corresponding status information, such as: start and stop signals, speed set values, actual current values, speed, etc., which are transmitted in each cycle; the data that are usually exchanged in the PKW area mainly include status data, fault status words, etc., such as reading the set value of a certain parameter; the main controller achieves the purpose of reading the corresponding status information of the converter by sending specific parameter numbers and other data codes.
[0080] The converter includes a machine-side converter and a grid-side converter. The converter includes a machine-side converter and a grid-side converter. The converter control module includes a machine-side control submodule, a grid-side control submodule and an interface-side control submodule. The machine-side control submodule, the grid-side control submodule and the interface-side control submodule are connected together through optical fiber lines. The PB communication module can be connected to any submodule in the converter control module through optical fiber. The main controller is connected to the PB communication module through a DB9 adapter line to form a complete data communication hardware link.
[0081] The embodiment of the present invention provides a generator set communication method based on Profidrive message communication, which is applied to the above-mentioned generator set, such as Figure 4 As shown, the method may include the following steps:
[0082] S410, the main controller sends command information to the PB communication module.
[0083] In some embodiments, the command information includes control command information.
[0084] The control command information is used to control the converter. If the main controller needs to control the converter but does not need to read the status data of the converter, it only sends the control command information to the PB communication module.
[0085] In another embodiment, the command information includes control command information and read command information.
[0086] The read command information is used to read the status data of the converter. If the main controller needs to control the converter and read the status data of the converter, it sends the control command information and the read command information to the PB communication module.
[0087] S420, the PB communication module obtains command information through polling.
[0088] If the main controller sends control command information, the PB communication module obtains the control command information through polling; if the main controller sends control command information and read command information, the PB communication module obtains the control command information and read command information through polling.
[0089] S430, the PB communication module writes the command information into the Profidrive message to generate a first message.
[0090] The first message represents the message that the PB communication module is to send to the converter control module.
[0091] When the command information includes control command information, the control command information is written into the PZD area to generate a first message.
[0092] When the command information includes control command information and read command information, the control command information is written into the PZD area, and the read command information is written into the PKW area to generate a first message.
[0093] S440, the PB communication module sends a first message to the converter control module.
[0094] S450, the converter control module receives the first message and reads the command information.
[0095] The converter control module receives the first message. When the command information includes control command information, the converter control module controls the corresponding converter to connect to the grid and generate electricity by reading the control command information in the PZD area. When the command information includes control command information and read command information, the converter control module controls the corresponding converter to connect to the grid and generate electricity by reading the control command information in the PZD area, and also uploads the corresponding converter status information to the main controller through the PB communication module by parsing the read command information in the PKW area.
[0096] S460, the converter control module sends status information to the PB communication module based on the command information.
[0097] When the command information includes control command information, the state information includes first state information; the first state information is information returned by the converter to the converter control module after the converter control module controls the converter based on the control command information. The converter control module controls the converter operation through the control command information, controls the generator to generate electric energy, and the converter transmits the generated electric energy to the power grid. The converter returns the first state information corresponding to the control command information to the PB communication module through the converter control module;
[0098] When the command information further includes read command information, the state information further includes second state information; the second state information is information read from the converter by the converter control module based on the read command information.
[0099] The converter control module also sends the second status information to the PB communication module based on the read command information. The converter control module reads the second operation status information of the converter by reading the command information, and returns the second status information corresponding to the read command information to the PB communication module.
[0100] S470, the PB communication module obtains the status information sent by the converter control module based on the command information through polling.
[0101] S480, the PB communication module writes the status information into the Profidrive message to generate a second message.
[0102] The second message indicates the message that the PB communication module wants to return to the main controller.
[0103] When the command information includes control command information, the state information includes first state information, the first state information is written into the PZD area, and a second message is generated.
[0104] When the command information also includes read command information, the status information also includes second status information; the first status information is written into the PZD area, and the second status information is written into the PKW area to generate a second message.
[0105] S490, the PB communication module sends a second message to the main controller.
[0106] The generator set periodically executes the above steps S410-S490 to complete the periodic information exchange between the converter control module and the main controller.
[0107] The embodiment of the present invention provides a method and a generator set for communication based on the Profidrive message format, which is designed based on the traditional Profibus communication protocol circuit, can simultaneously meet the information interaction of 127 devices, meet the control requirements of complex industrial electrification systems, ensure the diversity of data transmission of the generator set, and further improve the data transmission rate based on the Profidrive message format, improve the timeliness of data interaction of the generator set, and thus improve the operating stability of the generator set, and do not need to add additional communication board circuits, so the installation and maintenance costs are low.
[0108] Embodiment 2
[0109] In some embodiments, when the command information includes control command information, the state information includes first state information; S460: the converter control module sends the state information to the PB communication module based on the command information, which may include the following steps:
[0110] S461, when the converter control module reads normal control command information, it controls the converter based on the control command information; and receives first status information returned by the converter.
[0111] First, determine whether the control command information is correct information. The control command information includes a control quantity and a control word command. First, determine whether the control command information is correct information. If the control word command is normal and the control quantity does not exceed the preset control quantity limit, then control the operation of the converter according to the control word command and the control quantity, and complete the distribution and issuance of the control word command and the conversion and issuance of the control quantity. After the converter executes the control of the converter control module, it returns the first state information. At this time, the first state information includes the state information after the converter executes the control word command and the control quantity.
[0112] S462, when the converter control module reads abnormal control command information, it controls the converter based on the abnormal control command information and a preset control amount; and receives first status information returned by the converter.
[0113] The control command information includes the control quantity and the control word command. First, determine whether the control command information is correct. If the control quantity sent by the main controller exceeds the limit of the preset control quantity and the control word command is normal, the control quantity is limited to control the normal operation of the converter. Otherwise, if the control word command is abnormal, or the control word command is abnormal and the control quantity sent by the main controller exceeds the limit of the preset control quantity, the converter is controlled to trigger a corresponding fault and automatically shut down.
[0114] After the converter executes the control of the converter control module, it returns the first status information to the converter control module. At this time, the first status information includes: the status information after the converter executes the control word command and the control amount processed by the limiting process, or the status information when a fault is triggered and the automatic shutdown is performed.
[0115] When the command information further includes read command information, the status information further includes second status information; S460: the converter control module sends the status information to the PB communication module based on the command information, and the following steps may also be included:
[0116] S463, when the converter control module reads the normal read command information, reads the second state information of the converter based on the read command information; and sends the second state information to the PB communication module;
[0117] First determine whether the read command information is correct information. When the converter control module reads normal read command information, analyze the normal read command information to obtain the parameter number of the converter state quantity that the main controller needs to obtain; according to the parameter number, identify the corresponding converter state information and send it to the PB communication module as the second state information.
[0118] S464, when the converter control module reads normal read command information, it sends an illegal character identification code to the PB communication module.
[0119] When the converter control module reads the normal read command information, it analyzes the abnormal read command information, generates a corresponding illegal character identification code, and sends the illegal character identification code to the PB communication module. The illegal character identification code indicates the abnormal type of the read command information.
[0120] In one embodiment, the converter control module reads normal control command information and normal read command information, then S480: the PB communication module writes the status information into the Profidrive message, generating a second message, including:
[0121] The PB communication module writes the status information of the converter after executing the control word command and the control amount into the PZD area, writes the status information of the converter corresponding to the parameter number into the PKW area, and generates a second message.
[0122] In one embodiment, the converter control module reads normal control command information and abnormal read command information, then S480: the PB communication module writes the status information into the Profidrive message, generating a second message, including:
[0123] The PB communication module writes the status information of the converter after executing the control word command and the control amount into the PZD area, writes the illegal character identification code into the PKW area, and generates a second message.
[0124] The PB communication module can also feed back control command error information to the main controller.
[0125] In one embodiment, the converter control module reads abnormal control command information and normal read command information, then the S480PB communication module writes the status information into the Profidrive message, and generates a second message, including:
[0126] The PB communication module writes the status information of the converter after executing the control word command and the control quantity after the limiting processing, and / or the status information when triggering a fault and automatic shutdown into the PZD area, and writes the status information of the corresponding converter identified by the converter control module according to the parameter number into the PKW area to generate a second message.
[0127] In one embodiment, when the converter control module reads abnormal control command information and abnormal read command information, the PB communication module writes the status information into the Profidrive message to generate a second message, including:
[0128] The PB communication module writes the status information of the converter after executing the control word command and the control quantity processed by the limiting process, or the status information when a fault is triggered and the automatic shutdown is started into the PZD area, and writes the illegal character identification code into the PKW area to generate the second message.
[0129] The PB communication module can also feedback control command error information to the main controller when receiving an illegal character recognition code.
[0130] The method provided in the embodiment of the present invention makes response plans for different situations when the control command information and read command information issued by the main controller are all normal, or when at least one is abnormal, to ensure the diversity and stability of the data transmission of the generator set, thereby improving the operating stability of the generator set.
[0131] Embodiment 3
[0132] In some embodiments, the generator set communication method based on Profidrive message communication provided by the embodiment of the present invention may further include the following steps:
[0133] When the PB communication module fails to communicate with the main controller and / or the converter control module, the reason for the communication failure is indicated.
[0134] The PB communication module may be configured with an indicator light. When the PB communication module fails to communicate with the main controller and / or the converter control module, the corresponding indicator light of the DP module lights up according to the error information to indicate the cause of the communication failure.
[0135] The method provided in the embodiment of the present invention indicates the cause of communication failure when communication fails, which is convenient for maintenance by technical personnel.
[0136] Embodiment 4
[0137] In addition, an embodiment of the present invention may also be a storage medium on which computer program instructions are stored, and the computer program instructions are executed by a processor to execute the steps executed by a PB communication module, a main controller or a converter control module in the generator set communication method based on Profidrive message communication in various embodiments of the present invention described above in this specification.
[0138] Embodiment 5
[0139] An embodiment of the present invention provides a computer program product, which includes computer program instructions. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the steps executed by a PB communication module, a main controller or a converter control module in the generator set communication method in the form of Profidrive messages of various embodiments of the present invention described above in this specification.
[0140] The computer program product may be written in any combination of one or more programming languages to write program code for performing the operations of the embodiments of the present invention, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0141] For the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the order of the actions described, because according to the present invention, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0142] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0143] The steps in the methods of the embodiments of the present invention may be adjusted in order, combined, or deleted according to actual needs, and the technical features recorded in the embodiments may be replaced or combined.
[0144] The modules and sub-modules in the devices and terminals in the embodiments of the present invention may be combined, divided, or deleted according to actual needs.
[0145] In the several embodiments provided by the present invention, it should be understood that the disclosed terminal and method can be implemented in other ways. For example, the terminal embodiments described above are only schematic, for example, the division of modules or submodules is only a logical function division, and there may be other division methods in actual implementation, for example, multiple submodules or modules can be combined or integrated into another module, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0146] The modules or submodules described as separate components may or may not be physically separated, and the components of the modules or submodules may or may not be physical modules or submodules, that is, they may be located in one place, or they may be distributed on multiple network modules or submodules. Some or all of the modules or submodules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0147] In addition, each functional module or submodule in each embodiment of the present invention may be integrated into one processing module, or each module or submodule may exist physically separately, or two or more modules or submodules may be integrated into one module. The above-mentioned integrated modules or submodules may be implemented in the form of hardware or in the form of software functional modules or submodules.
[0148] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0149] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly by hardware, software units executed by a processor, or a combination of the two. The software units may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0150] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0151] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A generator communication method based on Profidrive message communication, characterized in that: The method is applied to a process field bus (PB) communication module in a generator set, wherein the generator set includes a generator, a main controller, a converter, a converter control module and a PB communication module, wherein the PB communication module is communicatively connected to the converter control module, and the main controller is communicatively connected to the PB communication module, and the method includes: Acquire command information sent by the main controller through polling; Writing the command information into a Profidrive message to generate a first message; Sending the first message to the converter control module; Acquire, by polling, status information sent by the converter control module based on the command information; Writing the status information into a Profidrive message to generate a second message; Send the second message to the main controller.
2. The method according to claim 1, characterized in that: The Profidrive message format divides the user data PPO into a parameter PKW area and a process data PZD area; when the command information includes control command information, the command information is written into the Profidrive message to generate a first message, including: Writing the control command information into the PZD area to generate the first message; When the command information includes control command information and read command information, the command information is written into a Profidrive message to generate a first message, including: Writing the control command information into the PZD area and writing the read command information into the PKW area to generate the first message; The control command information is used to control the converter, and the read command information is used to read status data of the converter.
3. The method according to claim 2, characterized in that When the command information includes control command information, the state information includes first state information; The first status information is: When the converter control module reads normal control command information, the converter control module controls the converter based on the normal control command information, and then the converter returns information of the converter control module; or, When the converter control module reads abnormal control command information, the converter is controlled based on the abnormal control command information and a preset control amount, and the converter returns information of the converter control module.
4. The method according to claim 3, characterized in that When the command information further includes read command information, the state information further includes second state information; The second status information is: When the converter control module reads normal read command information, information read from the converter based on the normal read command information; or, When the converter control module reads abnormal read command information, it returns an illegal character identification code to the PB communication module.
5. The method according to claim 3, characterized in that: The step of writing the status information into a Profidrive message to generate a second message comprises: The first status information is written into the PZD area to generate the second message.
6. The method according to claim 4, characterized in that The step of writing the status information into a Profidrive message to generate a second message includes: The first status information is written into the PZD area, and the second status information is written into the PKW area to generate the second message.
7. A generator set based on Profidrive message communication, characterized in that: The generator set includes a generator, a main controller, a converter, a converter control module and a PB communication module, the PB communication module is communicatively connected with the control module, and the main controller is communicatively connected with the PB communication module; The main controller is used to send command information to the PB communication module; The PB communication module is used to obtain the command information by polling; is also used to write the command information into a Profidrive message to generate a first message; and is also used to send the first message to the converter control module; The converter control module is used to receive the first message and read the command information; and is also used to send status information to the PB communication module based on the command information; The PB communication module is further used to obtain the status information through polling; is further used to write the status information into a Profidrive message to generate a second message; and is further used to send the second message to the main controller.
8. The generator set according to claim 7, characterized in that: The Profidrive message format divides the user data PPO into a PKW area and a PZD area; the PB communication module is specifically used for: When the command information includes control command information, writing the control command information into the PZD area to generate the first message; When the command information includes control command information and read command information, the control command information is written into the PZD area, and the read command information is written into the PKW area to generate the first message; The control command information is used to control the converter, and the read command information is used to read status data of the converter.
9. The generator set according to claim 8, characterized in that: When the command information includes control command information, the converter control module is specifically configured to: When normal control command information is read, the converter is controlled based on the control command information; receiving first status information returned by the converter; or, When abnormal control command information is read, the converter is controlled based on the abnormal control command information and a preset control amount; Receive first status information returned by the converter.
10. The generator set according to claim 9, characterized in that: The control command information includes a control amount and a control word command. When abnormal control command information is read, the converter control module is specifically used to: If the control amount sent by the main controller exceeds the limit of the preset control amount and the control word command is normal, the control amount is limited to control the normal operation of the converter; Otherwise, the converter is controlled to trigger a corresponding fault and automatically shut down.
11. The generator set according to claim 9, characterized in that: When the command information further includes read command information, the converter control module is further specifically configured to: When normal read command information is read, reading second state information of the converter based on the read command information; Sending the second status information to the PB communication module; or, When abnormal read command information is read, an illegal character identification code is sent to the PB communication module.
12. The generator set according to claim 11, characterized in that: When normal read command information is read, the converter control module is specifically used to: Analyze the normal read command information to obtain the parameter number of the converter state quantity that the main controller needs to obtain; According to the parameter number, second state information of the corresponding converter is identified.
13. The generator set according to claim 11, characterized in that: When abnormal read command information is read, the converter control module is specifically configured to: Analyzing the abnormal read command information to generate the illegal character identification code; The illegal character identification code is sent to the PB communication module.
14. The generator set according to claim 9, characterized in that: The PB communication module is specifically used for: The first status information is written into the PZD area to generate the second message.
15. The generator set according to claim 11, characterized in that: The PB communication module is specifically used for: The first status information is written into the PZD area, and the second status information is written into the PKW area to generate the second message.
