A method for transmitting fault protection signals using an optical fiber channel, storage medium
By using the fiber channel to transmit fault protection signals in industrial control equipment and interrupting and supplementing data frames, the cost increase caused by individual cable transmission, magnetic interference and transmission disconnection cannot be monitored, and the effect of reducing cable usage, shielding magnetic interference and monitoring transmission disconnection is achieved.
Patent Information
- Application Number
- CN202211736881.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-29
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2042-12-29
AI Technical Summary
In industrial control equipment, separate cables or optical fibers are used to transmit fault protection signals, resulting in increased costs, risk of magnetic interference and unmonitorable transmission disconnection.
The fiber channel between the shared master and slave is used to transmit the fault protection signal. By interrupting and replenishing data frames on the fiber channel, the fault protection signal can be transmitted first, and the fiber communication status is monitored to detect transmission disconnection.
It reduces the use of cables and blocks magnetic interference, and can monitor whether the fault protection signal transmission is disconnected, ensures that the receiving end receives signals normally, reduces losses and protects personal safety, while not affecting normal communication between master and slave.
Smart Images

Figure CN115987384B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a method for transmitting fault protection signals using an optical fiber channel and a computer-readable storage medium, which is applicable to optical fiber communication in industrial control devices, especially high-power power electronic converters. Background Art
[0002] Currently, in industrial control devices, especially high-power power electronic converters, the fault protection signals between the master and slave machines within a system are generally transmitted using a single cable or optical fiber. This not only increases the usage of cables or optical fibers and the cost, but also has the risk of generating interference signals due to magnetic interference when using cables. Moreover, when the fault protection signal transmission line fails, such as when the transmission line is broken or cannot transmit data normally, it is very difficult for the system to detect this situation. Then, if a fault protection signal is generated but the fault protection signal transmission line is broken and the system cannot detect it, in this case, the fault protection signal cannot be transmitted and corresponding protection actions cannot be taken, which not only fails to achieve the expected control effect but also may cause unpredictable consequences. Summary of the Invention
[0003] In view of the problems of increased cost and inability to detect transmission line breaks when using a single cable to transmit fault protection signals, to solve the above problems, a method for transmitting fault protection signals using the shared optical fiber channel between the master and slave machines is proposed, including:
[0004] Configure the shared optical fiber channel between the master and slave machines to transmit fault protection signals;
[0005] When a fault protection signal is generated, if the optical fiber channel is in an idle state, the sending end directly transmits the fault protection signal;
[0006] When a fault protection signal is generated, if the optical fiber channel is transmitting data frame A, control the sending end to interrupt the originally transmitted data frame A from the middle of two adjacent data units, and after supplementing the upper half of the already transmitted data frame A into a complete data frame A1, insert a fault protection signal data frame B for transmission. After the transmission of the fault protection signal data frame B is completed, the remaining untransmitted part of the interrupted data frame A is formed into a complete data frame A2 for transmission. Among them, configure the frame headers of data frame A1 and data frame A2 to be the same and different from the fault protection signal data frame B. Each data frame is configured to include at least a frame header and a frame tail, and the size of each data unit in each data frame is configured to be N bytes;
[0007] Control the receiving end to merge data frame A1 and data frame A2 to restore the original complete data A.
[0008] A computer-readable storage medium is also provided, and the storage medium stores one or more programs which, when executed by a processor, implement the above method.
[0009] The method of the present invention can enable the project to reduce the amount of cables, shield magnetic interference, and monitor whether the fault protection signal transmission is interrupted by whether the optical fiber communicates normally, ensuring that the receiving end can receive the fault protection signal normally to actuate the protection device, reducing unnecessary losses and protecting personal safety, and not affecting the normal communication between the master and slave machines. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 Shows the data frame transmission process when the present invention generates a fault protection signal.
[0011] Figure 2 Shows the control flow of the sending end of the fault protection signal transmission method of the present invention.
[0012] Figure 3 Shows the control flow of the receiving end of the fault protection signal transmission method of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0013] The technical solution of the present invention will be further described below in conjunction with the drawings and specific embodiments.
[0014] The fault protection signal transmission method of the present invention can be applied to optical fiber communication of industrial control equipment, especially high-power power electronic converters. Its program flow is as Figures 1 to 3 shown, including:
[0015] Configure the optical fiber channel between the shared master and slave machines to transmit the fault protection signal. There may be a problem of transmission resource preemption in the shared optical fiber channel, which is divided into two cases: one is that when a fault protection signal is generated, if the optical fiber channel is idle, the sending end directly transmits the fault protection signal; the other is that when a fault protection signal needs to be sent while the optical fiber channel is sending data frame A, control the sending end to interrupt the original data frame A being sent from the middle of two adjacent data units, and supplement the upper half of the already sent data frame A into a complete data frame A1, then insert a fault protection signal data frame B for transmission, and give priority to sending the fault protection signal data frame B. After the fault protection signal data frame B is sent, then form the remaining unsent part of the interrupted data frame A into a complete data frame A2 for sending, that is, the interrupted data frame is forced to be divided into two frames for sending. Among them, configure the frame headers of data frame A1 and data frame A2 to be the same and different from the fault protection signal data frame B, so that the receiving end can merge data frame A1 and data frame A2 to restore the original complete data A.
[0016] Among the above, each data frame is configured to include at least a frame header and a frame tail, and the size of each data unit in each data frame is configured to be N bytes.
[0017] By adopting the above method, it is possible to reduce the amount of engineering cables used, shield magnetic interference, and monitor whether the fault protection signal transmission is interrupted by whether the optical fiber is communicating normally, ensuring that the receiving end can receive the fault protection signal normally and take action to protect the equipment, reducing unnecessary losses and protecting personal safety, and not affecting the normal communication between the master and slave machines.
[0018] As an improved scheme of this embodiment, the data frame length of the data frame A representing the non-fault signal can be configured to be variable, and the frame structure at least includes the data length set immediately after the frame header. For example, a frame of data A for optical fiber communication can be set to consist of a frame header, a data length, data, and a frame tail. In this improved scheme, setting the data frame length to be variable can improve the flexibility of system data transmission and boost the system data transmission efficiency. On this basis, by setting the data length set immediately after the frame header, the problem of identifying the data length of the data frame A2 that has not been transmitted after being interrupted can be solved. For example, Figure 1 the total length of A1 as shown is used to identify the remaining data length of A2. After the receiving end receives the data frames A1, A2 and combines them into the data frame A, the data length can be initially verified for packet loss during transmission. For example, by analyzing whether the length of the actual data unit in the combined data frame A matches the written length of the data frame A1.
[0019] In this improved scheme, further, to improve the transmission communication efficiency and avoid the generation of empty data frames / invalid data frames, three situations are set when interrupting the data frame. The first is that when the interrupted data frame A is sending the "frame header", the data frame cannot be interrupted. If the data frame is interrupted at this time, only the "frame header" in the upper half cannot form a frame of data, and it is necessary to wait until the "data length" is sent before interrupting. The second is that only the frame tail of the data frame A remains to be sent. At this time, the data frame cannot be interrupted either, otherwise only the frame tail in the lower half cannot form a frame of data. At this time, it is necessary to wait until the frame tail is sent and then directly send the fault protection signal data frame B. The third is to interrupt from a non-special position in the middle. At this time, the data frame A is directly interrupted.
[0020] As another improvement solution of this embodiment, the frame tail can be configured as a CRC check code. Since the upper half of the data frame A needs to be supplemented with the frame tail after being interrupted, and using CRC as the frame tail, the receiving end can check the correctness of the data transmitted in the data frame A1 formed by supplementing the frame tail to ensure that A1 is correct, providing an accuracy basis for synthesizing the data frame A. On this basis, further, the data frame format of the fault protection signal data frame B can be configured with a fixed length, which is convenient for the receiving end to estimate the arrival of the data frame A2 after a fixed number of bytes in the data frame A1 is received, and based on this, judge and check whether there is an error in the process.
[0021] As another improvement solution of this embodiment, in this embodiment, the "frame header" of the communication data frame between the master and slave machines can be defined as K28.1+AA. When the data frame is interrupted, the upper half is supplemented into a frame of data for the receiving end to receive normally. After sending the upper half, the fault protection signal is sent. The "frame header" of the fault protection signal data frame is defined as K28.5+AA. After the fault protection signal data frame is sent, if the receiving end analyzes the received data correctly, it will send a normal flag signal K28.5+BB to the sending end, and then continue to send the lower half of the interrupted data frame. If the receiving end receives incorrect data, it will send an error flag signal K28.5+CC to the sending end. After receiving the error flag, the sending end will send the fault protection signal again. In this improvement solution, an error repetition mechanism is established through the response feedback of the receiving end, which can improve the reliable performance of system data transmission.
[0022] As another improvement solution of this embodiment, the fault protection signal data frame B can be set to consist of a frame header, a fault code, and a CRC check. Among them, the frame header belongs to the identity identifier of the data frame B, the fault code is used to transmit fault information, and the CRC is used for receiving verification. In this frame structure, the optimal simplification of the data frame B can be achieved, thereby reducing the overall time from the interruption of the data frame A, transmission in two segments, to merging, and further improving the system transmission and communication efficiency.
[0023] On this basis, as a more preferred solution, when transmitting data through an optical fiber channel, an 8B / 10B coding method is used to encode and decode the data. The principle of 8B / 10B coding will not be elaborated here; the size of the data unit is specifically set to 4 bytes; the optical fiber is set to transmit data at a communication speed of 100 Mbps. After such a design, since the fault protection data frame B has 3 pieces of data (frame header, fault code, CRC check), the data originally defined as 4 bytes in size becomes 40 bits after 8B / 10B coding. 3×40b÷100Mbps = 1.2 us. Adding a possible conservative delay of 100 ns, that is to say, the fault protection signal can be transmitted in 1.3 us. Therefore, it can meet the fast triggering conditions for the fault protection of high-power power electronic converters. In other words, the method of this embodiment can be used as the implementation of the transmission of fault protection signals in high-power power electronic converters, and at the same time achieve a balance between cost and the identification of fault protection disconnection. It should be noted here that in high-power power electronic converters, in the event of a short circuit or other faults, to prevent the expansion of the accident, it is generally required that each controller can turn off power devices such as IGBTs in a certain order within 100 uS (determined by the short-circuit impedance of the main circuit of the device). Therefore, the faster the transmission speed of the fault signals between the controllers, the better. For ordinary electrical signal transmission, since it is necessary to eliminate interference through debouncing, the single-signal transmission time is generally also between 3 and 5 uS, and the entire communication cannot meet the time requirement within 100 uS. However, using the method of this embodiment, as described above, 3×40b÷100Mbps = 1.2 us. Even adding a conservative delay of 100 ns, the fault protection signal can be transmitted in 1.3 us, achieving a great improvement in speed compared with the conventional 3 to 5 uS. Therefore, it can meet the application of high-power power electronic converters.
[0024] The present invention also provides a computer-readable storage medium that stores one or more programs. When the one or more programs are executed by a processor, the above method is implemented. In other words, the above method can be transformed into program steps and devices that can be stored in a computer storage medium and implemented in a way that the processor calls and executes them.
[0025] The above specific embodiments are only several preferred embodiments of the present invention. Based on the technical solution of the present invention and the relevant inspirations of the above embodiments, those skilled in the art can make various alternative improvements and combinations to the above specific embodiments.
Claims
1. A method for transmitting fault protection signals using an optical fiber channel, characterized in that, Including: Configure the fiber optic channel between the shared master and slave machines to transmit fault protection signals; When a fault protection signal is generated, if the fiber optic channel is in an idle state, the sending end directly transmits the fault protection signal; When a fault protection signal is generated, if the fiber optic channel is transmitting data frame A, control the sending end to interrupt the originally transmitted data frame A from the middle of two adjacent data units, and supplement the upper half of the already transmitted data frame A into a complete data A1, then insert a frame of fault protection signal data frame B for transmission. After the transmission of the fault protection signal data frame B is completed, the remaining untransmitted part of the interrupted data frame A is formed into a complete data frame A2 for transmission. Among them, configure the frame headers of data frame A1 and data frame A2 to be the same and different from the fault protection signal data frame B. Each data frame is configured to include at least a frame header and a frame tail, and the size of each data unit in each data frame is configured to be N bytes; Control the receiving end to merge data frame A1 and data frame A2 to restore the original complete data A.
2. The fault protection signal transmission method according to claim 1, characterized in that: Configure the data frame length of data frame A representing a non-fault signal to be variable, and the frame structure at least includes the data length set immediately after the frame header.
3. The fault protection signal transmission method according to claim 2, characterized in that: When the interrupted data frame A is sending the frame header, wait until the data length is sent before interrupting; When only the frame tail of the interrupted data frame A remains to be sent, wait until the frame tail is sent and then directly send the fault protection signal data frame B; When the interrupted data frame A is sent to a non-special position in the middle, directly interrupt data frame A.
4. The fault protection signal transmission method according to claim 1, characterized in that: The frame tail is configured as a CRC check code.
5. The fault protection signal transmission method according to claim 4, wherein: The data frame format of the fault protection signal data frame B is configured to have a fixed length.
6. The fault protection signal transmission method according to claim 1, characterized in that: After the transmission of the fault protection signal data frame B is completed, if the receiving end analyzes the received data correctly, return a normal flag signal to trigger the sending end to continue sending the interrupted data frame A2; If the receiving end receives incorrect data, return an error flag signal to trigger the sending end to retransmit the fault protection signal data frame B.
7. The fault protection signal transmission method according to claim 1, characterized in that: The fault protection signal data frame B consists of a frame header, a fault code, and a CRC check.
8. The fault protection signal transmission method according to claim 7, characterized in that: The fault protection signal transmission method is applied to high-power power electronic conversion equipment; The optical fiber transmits data at a communication speed of 100 Mbps and is configured to use an 8B / 10B coding method to encode and decode data; The size of the data unit is configured to be 4 bytes.
9. Storage medium, characterized in that, The storage medium stores one or more programs, and when the one or more programs are executed by a processor, the fault protection signal transmission method described in any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Dual Ethernet optical fiber transceiver, transceiving method and system
CN101359963A
Optical fiber communication network monitoring protecting system and method thereof
CN104283607A