Method and system for automatically detecting interlocking logic of measurement and control device
Through the analog signal and input quantity of the joint locking logic detector, combined with the joint locking rule file, the joint locking status of the measurement and control device is automatically detected, which solves the problems of low efficiency and insufficient safety in the prior art, and realizes efficient and safe joint locking logic detection.
Patent Information
- Application Number
- CN202510003062.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-02
- Publication Date
- 2025-04-04
AI Technical Summary
The prior art is inefficient in the verification of the joint locking logic of the measurement and control device, and cannot effectively consider the analog and digital quantities used on site, resulting in the inability to improve efficiency and safety.
Through the joint locking logic detector, the GOOSE signal and internal analog and digital inputs are simulated, combined with the joint locking rule file, the joint locking status of the measurement and control device is automatically detected, and the logic is correct, and corresponding measures are taken.
Automatic detection is realized, and the detection efficiency and security of the joint locking logic are improved. The joint locking logic can be automatically traversed when other intervals have been put into operation or when there is no joint locking logic acceptance on the site.
Smart Images

Figure CN119757929A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of power system automation, and more specifically, relates to a method and system for automatic detection of interlocking logic of a measurement and control device. Background Art
[0002] With the rapid development of power grids and the increasing intelligence of devices, the workload of operation and maintenance has increased dramatically. The increase in operation and maintenance needs and the implementation of safety supervision have put forward higher requirements for the efficiency, scope and safety of operation and maintenance work. The verification of the on-site interlocking logic of the measurement and control device is often unable to further improve the efficiency because other intervals have been put into operation or it takes a long time to traverse all logical conditions.
[0003] Some of the proposed automatic test methods for interlocking logic are aimed at the measurement and control devices of smart substations, that is, the sampling of analog and digital quantities is achieved through merging units and smart terminals, without considering the situation that a large number of analog and digital quantities used on site are collected by the measurement and control devices themselves. Some proposed methods of simulating logic by setting numbers, etc., are actually impossible to implement on some manufacturers' devices and are not universal.
[0004] In order to solve the above problems, a method for automatic detection of interlocking logic of measurement and control devices is proposed. The internal and external logic conditions of the controlled object are input to the device to be tested in the form of network, external analog or digital quantity through the interlocking logic detector, and its interlocking state is obtained, thereby realizing automatic detection and improving the detection efficiency and safety of interlocking logic.
[0005] Prior art document CN115808587A discloses a method for testing the interlocking logic of a virtual measurement and control device, wherein virtual machine A generates a five-defense logic rule base; virtual machine B identifies the measurement and control interlocking logic; virtual machine A generates a five-defense logic test template and a plurality of corresponding five-defense logic test templates that do not meet the permissible operation conditions, and sends them to virtual machine B; virtual machine B determines whether the five-defense logic test template is a permissible operation according to the measurement and control interlocking logic, and feeds back to virtual machine A; virtual machine A compares the feedback of virtual machine B with the expected permissible operation signal state of the corresponding five-defense logic test template. Its shortcomings include: (1) virtual machine B is a virtual device, which cannot replace the actual measurement and control device, and its implementation principle and logic may be insufficient; (2) virtual machine B does not consider the situation that the AC sampling and switch quantity of the actual measurement and control are not adopted through goose / sv. Summary of the invention
[0006] The purpose of this application is to provide a method for automatic detection of the interlocking logic of a measurement and control device, so as to solve the problem of low efficiency of the interlocking logic acceptance of the existing measurement and control device integrating analog and digital quantity acquisition, and further improve the safety of the interlocking logic acceptance of the substation.
[0007] In order to achieve the above objectives, this application adopts the following technical solutions:
[0008] A first aspect of the present invention provides a method for automatically detecting interlocking logic of a measurement and control device, comprising the following steps:
[0009] Import the SCD file of the whole station and the interlocking rule file of the test control device into the interlocking logic tester;
[0010] The interlocking logic detector simulates the GOOSE signal according to the interlocking rule file and periodically sends it to the measurement and control device to be tested as the external analog and digital input of the measurement and control device to be tested;
[0011] The analog quantity generated by the voltage and current generator is transmitted to the measurement and control device to be tested through the relay as the internal analog quantity input of the measurement and control device to be tested, and the opening and closing of the relay contact is used as the internal digital quantity input of the measurement and control device to be tested;
[0012] Under the internal and external logic conditions composed of internal and external analog and digital inputs, the test control device calculates the actual result of the interlocking state based on the interlocking rule and sends the actual result to the interlocking logic detector. The interlocking logic detector calculates the expected result of the interlocking state based on the interlocking rule file and the internal and external analog and digital inputs.
[0013] The interlocking logic detector compares and analyzes the actual results and expected results of the interlocking state, determines whether the interlocking logic of the measurement and control device is correct, and takes corresponding response measures.
[0014] Optionally, the interlocking rule file of the measurement and control device to be tested includes function constraint data attributes of the measurement and control device to be tested and interlocking logic expressed by operators, wherein the operators include arithmetic operators and logical operators.
[0015] Optionally, the interlocking logic detector simulates the GOOSE signal according to the external interval logic condition of the measurement and control device to be tested in the interlocking rule file, and the signal is sent periodically, and the period can be set.
[0016] Optionally, the input of the internal analog quantity of the measurement and control device to be tested is realized by connecting the voltage and current generator and the measurement and control device through a relay; the input of the internal digital quantity of the measurement and control device to be tested is realized by connecting the contacts of the relay to the open input of the measurement and control device, and the opening and closing of the relay contacts correspond to 0 and 1 of the open input quantity respectively.
[0017] Optionally, the actual result of the interlocking state is the state of whether the current remote control logic is locked after the test control device calculates through the interlocking rules. The interlocking logic detector obtains the actual result of the interlocking state calculated by the test control device through the network protocol. The network protocol includes the IEC61850 protocol and the CMS protocol.
[0018] Optionally, judging whether the interlocking logic of the measurement and control device is correct and taking corresponding response measures include:
[0019] If the actual result is consistent with the expected result, continue testing the next logic rule;
[0020] If they are inconsistent, the test of the current control object will be stopped, the results will be recorded, and an alarm will be issued.
[0021] Optionally, the interlocking logic detector traverses all conditions to perform automatic interlocking logic detection on the test control device, wherein the conditions of the digital quantity include three states: open, closed and invalid, and the conditions of the analog quantity include greater than a threshold and less than a threshold.
[0022] Optionally, the digital quantity condition further includes:
[0023] For a two-position switch, 01 is open, 10 is closed, and 00 and 11 are invalid states;
[0024] For a single-position switch, 0 is open, 1 is closed, and there is no invalid state.
[0025] The second aspect of the present invention provides a system for automatic detection of interlocking logic of a measurement and control device, based on the method for automatic detection of interlocking logic of a measurement and control device described in the first aspect of the present invention, characterized in that the system comprises:
[0026] Interlocking logic detector, voltage and current generator and file import module; the file import module is used to import the SCD file of the whole station and the interlocking rule file of the measurement and control device to be tested into the interlocking logic detector; the interlocking logic detector is used to simulate the GOOSE signal according to the interlocking rule file and periodically send it to the measurement and control device to be tested as the external analog quantity and digital quantity input of the measurement and control device to be tested, and compare and analyze the actual result and expected result of the interlocking state to determine whether the interlocking logic of the measurement and control device is correct; the interlocking logic detector also includes a relay, which is used to connect the voltage and current generator and the measurement and control device to be tested, and transmit the analog quantity generated by the voltage and current generator to the measurement and control device to be tested as the internal analog quantity input of the measurement and control device to be tested, and the opening and closing of the relay contacts are used as the internal digital quantity input of the measurement and control device to be tested.
[0027] Optionally, the interlocking logic detector further includes a network interface for communicating with the measurement and control device to be tested.
[0028] The beneficial effect of the present invention is that the present invention can traverse the interlocking logic of the measurement and control device to be tested in an automated manner when other intervals on site have been put into operation, or when other sites do not have interlocking logic acceptance, thereby improving the acceptance efficiency and safety of the on-site interlocking logic. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 It is a logic block diagram of a method for automatic detection of interlocking logic of a measurement and control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical scheme and advantages of the present invention clearer, the technical scheme of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. The described embodiments are only embodiments of a part of the present invention, not all embodiments. Based on the spirit of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the protection scope of the present invention.
[0031] The present invention provides a method for automatic detection of interlocking logic of a measurement and control device in embodiment 1, comprising the following steps:
[0032] Step 1: Import the SCD file of the entire station and the interlocking rule file of the measurement and control device to be tested into the interlocking logic tester.
[0033] In a further preferred but non-limiting embodiment, the interlocking rule file of the measurement and control device to be tested refers to the interlocking logic expressed by the FCDA (Functionall Constrained Data Attribute) and operators of the measurement and control device, and the operators include arithmetic operators and logical operators.
[0034] Step 2: The interlocking logic detector simulates the GOOSE signal according to the external interval logic condition of the test control device in the interlocking rule file and periodically sends it to the test control device as the external analog and digital input of the test control device.
[0035] Step 3, transmitting the analog quantity generated by the voltage and current generator to the measurement and control device to be tested through a relay as the internal analog quantity input of the measurement and control device to be tested, and using the opening and closing of the relay contact as the internal digital quantity input of the measurement and control device to be tested;
[0036] In a further preferred but non-limiting embodiment, the input of the analog quantity relies on a relay to connect the voltage and current generator and the measurement and control device; the input of the digital quantity is essentially to connect the contacts of a relay to the input of the measurement and control device, and the opening and closing of the relay contacts correspond to the 0 and 1 of the input quantity.
[0037] Step 4: Under the internal and external logic conditions composed of internal and external analog and digital inputs, the measurement and control device to be tested calculates the actual result of the interlocking state based on the interlocking rules and sends the actual result to the interlocking logic tester. The interlocking logic tester calculates the expected result of the interlocking state based on the interlocking rule file and the internal and external analog and digital inputs.
[0038] In a further preferred but non-limiting embodiment, the actual result of the interlocking state is the state of whether the current remote control logic is locked after the test control device calculates through the interlocking rules, which is obtained through the network protocol, and the network protocol includes at least the IEC61850 protocol and the CMS protocol.
[0039] Step 5: The interlocking logic detector compares and analyzes the actual result and expected result of the interlocking state, determines whether the interlocking logic of the measurement and control device is correct, and takes corresponding response measures.
[0040] In a further preferred but non-limiting embodiment, in step 5, judging whether the interlocking logic of the measurement and control device is correct and taking corresponding response measures specifically include:
[0041] If the actual result is consistent with the expected result, continue testing the next logic rule;
[0042] If they are inconsistent, the test of the current control object will be stopped, the results will be recorded, and an alarm will be issued.
[0043] The present invention provides a system for automatic detection of interlocking logic of a measurement and control device in embodiment 2. Based on the method for automatic detection of interlocking logic of a measurement and control device described in embodiment 1, the system includes:
[0044] Interlocking logic detector, voltage and current generator and file import module; the file import module is used to import the SCD file of the whole station and the interlocking rule file of the measurement and control device to be tested into the interlocking logic detector; the interlocking logic detector is used to simulate the GOOSE signal according to the interlocking rule file and periodically send it to the measurement and control device to be tested as the external analog quantity and digital quantity input of the measurement and control device to be tested, and compare and analyze the actual result and expected result of the interlocking state to determine whether the interlocking logic of the measurement and control device is correct; the interlocking logic detector also includes a relay, which is used to connect the voltage and current generator and the measurement and control device to be tested, and transmit the analog quantity generated by the voltage and current generator to the measurement and control device to be tested as the internal analog quantity input of the measurement and control device to be tested, and the opening and closing of the relay contacts are used as the internal digital quantity input of the measurement and control device to be tested.
[0045] In a further preferred but non-limiting embodiment, the interlocking logic detector further includes a network interface for communicating with the measurement and control device to be tested.
[0046] In order to more clearly introduce the outstanding essential features of the present invention and the significant progress it brings to the prior art, an application example of implementing the present invention is introduced below.
[0047] This example is a specific embodiment of a method for automatic detection of interlocking logic of a measurement and control device, based on the method for automatic detection of interlocking logic of a measurement and control device described in Example 1, such as Figure 1 As shown, the application example specifically includes:
[0048] Step 1: Import the SCD file of the whole station and the interlocking rule file of the measurement and control device to be tested into the interlocking logic detector;
[0049] Specifically, the following is a partial interlocking rule file for the measurement and control device corresponding to a switch with a dispatch number of 5022:
[0050] [Logic Rules]
[0051] [token dictionary]
[0052] 50221_CTRL=CB5022CTRL / CSWI2.Pos[CO]
[0053] 5022_MEAS=CB5022MEAS / CBMMXU1.A.phsA.cVal.mag.f[MX]
[0054] 5022=CB5022CTRL / CBCSWI1.Pos.stVal[ST]
[0055] 502217=CB5022CTRL / CSWI6.Pos.stVal[ST]
[0056] 502227=CB5022CTRL / CSWI7.Pos.stVal[ST]
[0057] 5117=CM5001CTRL / CSWI1.Pos.stVal[ST]
[0058] [operation rules]
[0059] 50221_CTRL{Combined operation}:((5022=0)&(502217=0)&(502227=0)&(5117=0)&(5022_MEAS<100))
[0060] 50221_CTRL{Sub-operation}:((5022=0)&(502217=0)&(502227=0)&(5117=0)&(5022_MEAS<100))
[0061] Step 2, connecting the measurement and control device to the interlocking logic detector, including the network interface, analog input and digital input, and connecting the voltage and current generator to the interlocking logic detector;
[0062] The interlocking logic detector is an embedded device including a network interface, analog and digital switching relays. The network interface is mainly used to communicate with the measurement and control device to be tested. The interlocking logic detector connects the analog quantity generated by the voltage and current generator to the measurement and control device as needed through the relay switch. The interlocking logic detector simulates the actual position of the switch knife through the relay switch and connects to the measurement and control device to be tested. The actual position of the switch knife is the switch state.
[0063] Step 3: The interlocking logic detector sends a GOOSE signal through the network to send analog and digital quantities of other intervals, inputs analog and digital quantities of the measurement and control device itself through the relay switch, and obtains the interlocking state through the network;
[0064] The interlocking logic detector simulates the GOOSE signal according to the external interval logic conditions of the test control device in the interlocking rule file. The signal is sent periodically, and the period can be set.
[0065] The interlocking state is the state of whether the current remote control logic is locked after the measurement and control device to be tested calculates through the interlocking rule, and is obtained through the network protocol. The network protocol includes at least the IEC61850 protocol and the CMS protocol.
[0066] According to the example, when detecting the operation logic of 50221, the position status of 5022, 502217, 502227, 5117 and the line voltage status of 5022 need to be given.
[0067] The interlocking logic detector needs to traverse all conditions, where the digital quantity conditions are open, closed, and invalid, and the analog quantity conditions are greater than or less than a threshold. The digital quantity conditions also include:
[0068] For a two-position switch, 01 is open, 10 is closed, and 00 and 11 are invalid states;
[0069] For a single-position switch, 0 is open, 1 is closed, and there is no invalid state.
[0070] Step 4, the interlocking logic detector compares the interlocking state with the expected result to determine whether the interlocking logic of the measurement and control device is correct;
[0071] The expected result is the result calculated by the interlocking logic detector based on the interlocking rule file and the currently given internal and external analog and digital values.
[0072] According to the example, the expected result of the 50221 operation is calculated according to the following formula:
[0073] ((5022=0)&(502217=0)&(502227=0)&(5117=0)&(5022_MEAS<100))
[0074] If the interlocking status is consistent with the expected result, continue testing the next logic rule. If not, stop testing the current control object and record the result.
[0075] If the result of the logical calculation based on the 50221 operation is 1, and the interlocking status obtained through the communication protocol is also 1 (indicating that remote control is allowed), then the logic test passes and the next logic test continues. Otherwise, the test fails, an alarm is given, and the test is stopped.
[0076] Step 5: The interlocking logic detector tests each condition of each controlled object by simulating the interlocking conditions and gives a test report.
[0077] According to the example, when testing the 50221 close operation logic, it is necessary to perform all permutations and combinations of the position states of 5022, 502217, 502227, 5117 and the line voltage state of 5022, and compare the expected results with the actual results to complete the 50221 close operation logic. After the test passes, continue to test the next logic, that is, the 20221 separate operation logic test.
[0078] In summary, the present invention takes into account that the AC and DC sampling of the device under test is not adopted through goose / sv, and the test is carried out on the real object; based on this technical feature, the technical effect actually achieved by the present invention at least includes: it can directly collect AC and analog quantities for the measurement and control device, it can test the actual device, and it can test when the device is already in operation. Specifically, the present invention can traverse the interlocking logic of the measurement and control device to be tested in an automated manner when other intervals on site have been put into operation, or when other sites do not have interlocking logic acceptance, thereby improving the acceptance efficiency and safety of the on-site interlocking logic.
[0079] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A method for automatic detection of interlocking logic of a measurement and control device, characterized in that: The steps include: Import the SCD file of the whole station and the interlocking rule file of the test control device into the interlocking logic tester; The interlocking logic detector simulates the GOOSE signal according to the interlocking rule file and periodically sends it to the measurement and control device to be tested as the external analog and digital input of the measurement and control device to be tested; The analog quantity generated by the voltage and current generator is transmitted to the measurement and control device to be tested through the relay as the internal analog quantity input of the measurement and control device to be tested, and the opening and closing of the relay contact is used as the internal digital quantity input of the measurement and control device to be tested; Under the internal and external logic conditions composed of internal and external analog and digital inputs, the test control device calculates the actual result of the interlocking state based on the interlocking rule and sends the actual result to the interlocking logic detector. The interlocking logic detector calculates the expected result of the interlocking state based on the interlocking rule file and the internal and external analog and digital inputs. The interlocking logic detector compares and analyzes the actual results and expected results of the interlocking state, determines whether the interlocking logic of the measurement and control device is correct, and takes corresponding response measures.
2. A method for automatic detection of interlocking logic of a measurement and control device according to claim 1, characterized in that: The interlocking rule file of the measurement and control device to be tested includes the function constraint data attributes of the measurement and control device to be tested and the interlocking logic expressed by operators, wherein the operators include arithmetic operators and logical operators.
3. The method for automatic detection of interlocking logic of a measurement and control device according to claim 1 is characterized in that: The interlocking logic detector simulates the GOOSE signal according to the external interval logic conditions of the test control device in the interlocking rule file. The signal is sent periodically, and the period can be set.
4. A method for automatic detection of interlocking logic of a measurement and control device according to claim 1, characterized in that: The input of the internal analog quantity of the measurement and control device to be tested is achieved by connecting the voltage and current generator and the measurement and control device through a relay; the input of the internal digital quantity of the measurement and control device to be tested is achieved by connecting the contacts of the relay to the input of the measurement and control device, and the opening and closing of the relay contacts correspond to 0 and 1 of the input quantity respectively.
5. The method for automatic detection of interlocking logic of a measurement and control device according to claim 1 is characterized in that: The actual result of the interlocking state is the state of whether the current remote control logic is locked after the test control device calculates through the interlocking rules. The interlocking logic detector obtains the actual result of the interlocking state calculated by the test control device through the network protocol. The network protocol includes IEC61850 protocol and CMS protocol.
6. A method for automatic detection of interlocking logic of a measurement and control device according to claim 1, characterized in that: Determine whether the interlocking logic of the measurement and control device is correct and take corresponding response measures including: If the actual result is consistent with the expected result, continue testing the next logic rule; If they are inconsistent, the test of the current control object will be stopped, the results will be recorded, and an alarm will be issued.
7. The method for automatic detection of interlocking logic of a measurement and control device according to claim 1, characterized in that: The interlocking logic detector traverses all conditions to automatically detect the interlocking logic of the test control device. The conditions of digital quantity include open, closed and invalid states, and the conditions of analog quantity include greater than the threshold and less than the threshold.
8. A method for automatic detection of interlocking logic of a measurement and control device according to claim 7, characterized in that: The digital quantity conditions also include: For a two-position switch, 01 is open, 10 is closed, and 00 and 11 are invalid states; For a single-position switch, 0 is open, 1 is closed, and there is no invalid state.
9. A system for automatic detection of interlocking logic of a measurement and control device, based on a method for automatic detection of interlocking logic of a measurement and control device according to any one of claims 1 to 8, characterized in that: The system includes: Interlocking logic detector, voltage and current generator and file import module; the file import module is used to import the SCD file of the whole station and the interlocking rule file of the measurement and control device to be tested into the interlocking logic detector; the interlocking logic detector is used to simulate the GOOSE signal according to the interlocking rule file and periodically send it to the measurement and control device to be tested as the external analog quantity and digital quantity input of the measurement and control device to be tested, and compare and analyze the actual result and expected result of the interlocking state to determine whether the interlocking logic of the measurement and control device is correct; the interlocking logic detector also includes a relay, which is used to connect the voltage and current generator and the measurement and control device to be tested, and transmit the analog quantity generated by the voltage and current generator to the measurement and control device to be tested as the internal analog quantity input of the measurement and control device to be tested, and the opening and closing of the relay contacts are used as the internal digital quantity input of the measurement and control device to be tested.
10. A system for automatic detection of interlocking logic of a measurement and control device according to claim 9, characterized in that: The interlocking logic detector also includes a network interface for communicating with the measurement and control device to be tested.
Citation Information
Patent Citations
Interlocking and locking logic test method for virtual measurement and control device
CN115808587A