Interlocking relay drive and acquisition simulation rule real-time revision method and system

By separating the BOOL operation simulation module and the relay simulation module in the rail transit interlocking system, and supporting online real-time revision of the drive and acquisition bit mapping terms, the high coupling and inefficiency problems when modifying the relay drive and acquisition simulation rules in the existing technology are solved, and the simulation continuity and development efficiency are improved.

CN119536711APending Publication Date: 2025-02-28CASCO SIGNAL LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411643056.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-18
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

The prior art has problems of high coupling, inefficiency and disruption of simulation continuity when modifying relay drive simulation rules.

Method used

By loading the BOOL operation rule definition file and the relay drive simulation rule configuration file in the operation display subsystem, determine the available relay drive code bit set and the acquisition code bit set, initialize the drive code bit mapping item, and separate the BOOL operation simulation module and the relay simulation module at the process level, supporting online real-time revision of the drive code bit mapping item.

Benefits of technology

Real-time revision of relay drive simulation rules is realized, which avoids the problems of high coupling and inefficiency, ensures the continuity of simulation, and improves the development efficiency and the operation efficiency of relay simulation modules.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

The invention relates to a real-time revision method and system for an interlocking relay drive and acquisition simulation rule, and the method comprises the following steps: S1, loading a BOOL operation rule definition file and a relay drive and acquisition simulation rule configuration file into an operation display subsystem, respectively determining an available relay driving code bit set and an available relay acquisition code bit set according to the BOOL operation rule definition file, and determining all initial driving code bit mapping items according to the relay driving simulation rule configuration file, the available relay driving code bit set and the available relay acquisition code bit set; s2, the operation display subsystem starts a BOOL operation simulation module and a relay simulation module, and the BOOL operation simulation module is operated based on a BOOL operation rule definition file; and the relay simulation module operates based on the drive and acquisition code bit mapping item, and provides a GUI interface for viewing and revising the current drive and acquisition code bit mapping item. According to the method, the defect of high coupling of an existing method is overcome, and the operation efficiency of the relay simulation module is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of rail transit, and in particular to a real-time revision method and system for interlocking relay drive simulation rules. Background Art

[0002] At present, the computer interlocking system is generally composed of the interlocking operation subsystem, the trackside equipment subsystem, the operation display subsystem and the maintenance diagnosis subsystem. Since the interlocking system is relatively complex, it is time-consuming and resource-intensive to build a complete interlocking system for self-testing during the development of the interlocking rules and the operation display subsystem. Therefore, the operation display subsystem usually includes a simulation module to simulate the actual interlocking operation process on site.

[0003] The simulation module mainly includes BOOL operation simulation module and relay simulation module, such as Figure 1 As shown, the BOOL operation simulation module is used to replace the function of the interlocking operation subsystem, namely: (1) the BOOL operation simulation module receives the user operation requirements from the outside of the operation display subsystem, performs certain interlocking logic checks and operations on this basis, and then transmits it to the relay simulation module by changing the specific drive code bit; (2) according to the specific acquisition code bit transmitted by the relay simulation module, the BOOL operation simulation module performs certain interlocking logic operations, and then displays the display status result of the specific device on the display module of the operation display subsystem. The relay simulation module is used to replace the function of the trackside equipment subsystem, namely: receiving the drive code bit state value obtained by the BOOL operation simulation module, obtaining a series of changing acquisition code bits according to the relay drive acquisition simulation rules, and transmitting them back to the BOOL operation simulation module for subsequent interlocking logic operations. Among them, the relay drive acquisition simulation rules can be predefined inside the operation display subsystem, or loaded into the operation display subsystem in the form of configuration files. The relay drive simulation rule is composed of several drive code mapping items, each of which generally includes the drive code suffix name, drive code status, acquisition code suffix name, acquisition code status, delay period and other parts. When the state value of a drive code changes, several drive code mapping items are matched according to its suffix name and status value, and the state value of the corresponding acquisition code is modified after the required delay period. In the case of a clear relay drive relationship, the above method can meet the simulation requirements well, but when the relay drive relationship changes, such as the code suffix name changes, the drive code mapping item is added, the delay period is modified, etc., the configuration file or even the operation display subsystem software will have to be modified due to its high coupling to adapt to the change of the relay drive relationship. In the scenario where the relay drive simulation rules may need to be frequently adjusted, such as the development of interlocking rules and the self-test of the operation display subsystem, the above method will be inefficient and destroy the simulation continuity. The defects will become more and more obvious. Summary of the invention

[0004] The purpose of the present invention is to provide a real-time revision method for interlocking relay driving simulation rules in order to overcome the defects of the above-mentioned existing methods such as high coupling, low efficiency, and destruction of simulation continuity when modifying relay driving simulation rules.

[0005] The purpose of the present invention can be achieved by the following technical solutions:

[0006] A real-time revision method for interlocking relay drive simulation rules comprises the following steps:

[0007] S1. Loading a BOOL operation rule definition file and a relay drive acquisition simulation rule configuration file through an operation display subsystem, determining an available relay drive code bit set and an available relay acquisition code bit set according to the BOOL operation rule definition file, and determining all initial drive acquisition code bit mapping items according to the relay drive acquisition simulation rule configuration file, the available relay drive code bit set and the available relay acquisition code bit set;

[0008] S2. Start the BOOL operation simulation module and the relay simulation module through the operation display subsystem. The BOOL operation simulation module runs based on the BOOL operation rule definition file; the relay simulation module runs based on the drive code bit mapping item. At the same time, the operation display subsystem provides a GUI interface for viewing and revising the current drive code bit mapping item.

[0009] Furthermore, the BOOL operation rule definition file is composed of a plurality of BOOL expressions.

[0010] Furthermore, the step S1 traverses the BOOL operation rule definition file and divides the BOOL code bits into different types according to the positions where the BOOL code bits appear in the BOOL expression, and puts them into the available relay drive code bit set and the available relay acquisition code bit set respectively.

[0011] Furthermore, if a BOOL code bit appears on the left side of the equal sign of a BOOL expression, indicating that the state value of the BOOL code bit can be calculated from the state values ​​of other BOOL code bits, then the BOOL code bit is put into the available relay drive code bit set;

[0012] If a BOOL code bit only appears on the right side of the equal sign of a BOOL expression and has never appeared on the left side of any BOOL expression, it means that the state value of the BOOL code bit is obtained from outside the BOOL operation simulation module. In this case, the BOOL code bit is placed in the available relay acquisition code bit set.

[0013] Furthermore, the relay drive simulation rule configuration file is composed of a number of drive code bit mapping items, wherein the drive code bit mapping items include: drive code bit name or drive code bit suffix name, acquisition code bit name or acquisition code bit suffix name, drive code bit state, acquisition code bit state and delay period value.

[0014] Furthermore, the operation display subsystem starts the BOOL operation simulation module including the following contents: based on the status value of each code position in a single cycle, the BOOL expression is executed in sequence, the current status values ​​of all code positions are obtained, and all code position status values ​​are diverted and passed to the corresponding modules.

[0015] Furthermore, the operation display subsystem starts the relay simulation module including the following contents: the relay simulation module is started in a subprocess mode, and the subprocess provides a GUI interface for viewing and revising the current drive code bit mapping item.

[0016] Furthermore, when the relay simulation module is just started, all initial drive code bit mapping items are displayed, and after receiving the relay drive code bit state value from the BOOL operation simulation module in a single cycle, the drive code bit name or drive code bit suffix name of the drive code bit mapping item is matched one by one according to the relay drive code bit name;

[0017] If the match is successful, the relay acquisition code position state value corresponding to the acquisition code position name or the acquisition code position suffix name is changed after the delay period value delay period, and after single-cycle processing, all relay acquisition code position state values ​​are returned to the BOOL operation simulation module.

[0018] Furthermore, the complete single cycle of the BOOL operation simulation module is:

[0019] a. Receive the status values ​​of each external code position, including the relay acquisition code position and the interlocking external interface input code position;

[0020] b. Completely execute all BOOL expressions;

[0021] c. Pass the calculation results to the corresponding module.

[0022] Furthermore, a complete single cycle of the relay simulation module is:

[0023] 1). Receive the relay drive code status value transmitted by the BOOL operation simulation module;

[0024] 2). Calculate the relay acquisition code status value and change cycle time;

[0025] 3). After a specific delay period, the relay acquisition code status value is returned to the BOOL operation simulation module.

[0026] Furthermore, the method also includes: real-time online modification, deletion or addition of existing drive and acquisition code bit mapping items; including field modification of the drive code bit name or drive code bit suffix, acquisition code bit name or acquisition code bit suffix, drive code bit status, acquisition code bit status and delay period value.

[0027] Furthermore, the SboName field is used to represent the drive code position name or the drive code position suffix name, and the SboName field starting with "-" is regarded as the drive code position suffix name, otherwise it is regarded as the drive code position name. The SboName field of the drive code position name or the drive code position suffix name only supports modification within the available relay drive code position set.

[0028] Furthermore, if the current operation cycle is in the relay simulation module, it is necessary to wait until the end of the cycle before updating the drive code mapping items in sequence; if the current operation cycle is not in the relay simulation module, the drive code mapping items can be directly updated in sequence; after the update is completed, the new relay drive simulation rules will take effect in the next operation cycle, and will not affect the normal operation of the current BOOL operation simulation module and the relay simulation module.

[0029] The present invention also provides a real-time revision system for interlocking relay drive simulation rules, comprising:

[0030] Operation display subsystem;

[0031] BOOL operation simulation module, used to load BOOL operation rule definition file and communicate with the operation display subsystem;

[0032] The relay simulation module is used to load the driving simulation rule configuration file and communicate with the operation display subsystem by running the subprocess;

[0033] The BOOL operation simulation module and the relay simulation module are started through the operation display subsystem, and a GUI interface is provided for viewing and revising the current drive code bit mapping item.

[0034] Compared with the existing methods, the present invention has the following beneficial effects:

[0035] 1. The present invention separates the BOOL operation simulation module and the relay simulation module at the process level. The shutdown and restart of the relay simulation module do not affect the operation of the BOOL operation simulation module and the operation display subsystem (although it will have a certain impact on the BOOL simulation results), thus overcoming the defect of high coupling of the existing methods.

[0036] 2. The present invention supports online real-time revision of relay drive simulation rules, realizes the continuous operation of BOOL operation simulation module and relay simulation module, overcomes the existing method that the relay drive simulation rules must be revised after the operation display subsystem is closed, especially in the process of rule development (involving frequent fine-tuning of relay drive simulation rules) and operation display subsystem software development (involving complex simulation scenarios), greatly improves the development efficiency and ensures the continuity of simulation;

[0037] 3. The present invention constrains the filling range of the SboName and DiName fields by parsing the BOOL operation rule definition file, and performs a legality check on the drive code bit mapping items, which ensures the correctness of the relay drive simulation rules to a certain extent, reduces the scale of the relay drive simulation rules, speeds up the matching speed between the drive code bit name and the drive code bit mapping items, and then improves the operating efficiency of the relay simulation module. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 A system structure diagram of the revision method for the prior art;

[0039] Figure 2 A system structure diagram of the revision method of the present invention;

[0040] Figure 3 This is the working flow chart of the relay simulation module. DETAILED DESCRIPTION

[0041] The following is a further detailed description of a method and system for real-time revision of simulation rules for interlocking relay drive proposed by the present invention in combination with the accompanying drawings and specific embodiments. According to the following description, the advantages and features of the present invention will be clearer. It should be noted that the accompanying drawings are in a very simplified form and use non-precise proportions, which are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention. In order to make the purposes, features and advantages of the present invention more obvious and easy to understand, please refer to the accompanying drawings. It should be noted that the structures, proportions, sizes, etc. illustrated in the accompanying drawings of this specification are only used to match the contents disclosed in the specification for people familiar with this technology to understand and read, and are not used to limit the limiting conditions for the implementation of the present invention, so they have no technical substantive significance. Any modification of the structure, change of the proportional relationship or adjustment of the size, without affecting the effects that the present invention can produce and the purposes that can be achieved, should still fall within the scope of the technical content disclosed by the present invention.

[0042] See also Figure 2 , is a system structure diagram of the revision method of the present invention. On this basis, please refer to Figure 3 , introduces the working process of the relay simulation module.

[0043] Take the total positioning 1-3 turnout operation as an example. Figure 2 As shown, the real-time revision system of interlocking relay drive simulation rules proposed by the present invention includes: an operation display subsystem, a BOOL operation simulation module, which is used to load a BOOL operation rule definition file and communicate with the operation display subsystem; a relay simulation module, which is used to load a drive simulation rule configuration file and communicate with the operation display subsystem by running a subprocess.

[0044] The revision method provided by the present invention comprises the following steps:

[0045] S1, load the BOOL operation rule definition file and the relay drive acquisition simulation rule configuration file through the operation display subsystem, determine the available relay drive code bit set and the available relay acquisition code bit set according to the BOOL operation rule definition file, and determine all initial drive acquisition code bit mapping items according to the relay drive acquisition simulation rule configuration file, the available relay drive code bit set and the available relay acquisition code bit set: Step S1 includes the following contents:

[0046] S11. Load the BOOL operation rule definition file through the operation display subsystem. The BOOL operation rule definition file consists of several BOOL expressions, including the following BOOL expressions:

[0047] (1) BOOL 1-3-DCJSC = (1-3-DCJ);

[0048] (2) BOOL 1-3-DCJ-SBO = (1-3-DCJSC * SYSAHF * QZFST);

[0049] (3)BOOL 1-3-ZBSDW=(1-3-DBJ-DI*.N.1-3-FBJ-DI*.N.1-3-DFBH-DI);

[0050] (4) BOOL 1-3-DBJ = (1-3-ZBSDW);

[0051] Among them, * represents logical AND, .N. represents logical NOT, and () in the BOOL expression represents priority operation.

[0052] According to the code position judgment rules on the left and right sides of the equal sign, the 1-3-DBJ-DI, 1-3-FBJ-DI and -3-DFBH-DI code positions are placed in the available relay acquisition code position set validDiBits, and the remaining code positions are placed in the available relay drive code position set validSboBits.

[0053] The specific code position judgment process is:

[0054] If a BOOL code bit appears on the left side of the equal sign of a BOOL expression, it means that the status value of the BOOL code bit can be calculated from the status values ​​of other BOOL code bits. The BOOL code bit is definitely not a relay acquisition code bit, but may be a relay drive code bit. The BOOL code bit is placed in the available relay drive code bit set validSboBits; if the BOOL code bit only appears on the right side of the equal sign of the BOOL expression and has never appeared on the left side of the equal sign of any BOOL expression, it means that the status value of the BOOL code bit is obtained from outside the BOOL operation simulation module. It may be a relay acquisition code bit, an interlocking external interface code bit, etc., but it is definitely not a relay drive code bit. The BOOL code bit is placed in the available relay acquisition code bit set validDiBits.

[0055] S12. The operation display subsystem loads a relay drive simulation rule configuration file. The relay drive simulation rule configuration file consists of drive code bit mapping items, including the following drive code bit mapping items:

[0056] (1) SboName="10-14-DCJ-SBO" DiName="12-FDBJ-DI" SboStatus=1DiStatus=1Delay=8;

[0057] (2) SboName="10-14-DCJ-SBO" DiName="12-FFBJ-DI" SboStatus=1DiStatus=0Delay=4;

[0058] (3) SboName="10-14-FCJ-SBO" DiName="12-FFBJ-DI" SboStatus=1DiStatus=1Delay=8;

[0059] (4) SboName="10-14-FCJ-SBO" DiName="12-FDBJ-DI" SboStatus=1DiStatus=0Delay=4;

[0060] (5) SboName="-DCJ-SBO" DiName="-DBJ-DI" SboStatus=1 DiStatus=1Delay=8;

[0061] (6) SboName="-DCJ-SBO" DiName="-FBJ-DI" SboStatus=1 DiStatus=0Delay=4;

[0062] (7) SboName="-DCJ-SBO" DiName="-DFBH-DI" SboStatus=1DiStatus=1Delay=4;

[0063] (8) SboName="-DCJ-SBO" DiName="-DFBH-DI" SboStatus=1DiStatus=0Delay=6;

[0064] (9) SboName="-FCJ-SBO" DiName="-FBJ-DI" SboStatus=1 DiStatus=1Delay=8;

[0065] (10)SboName="-FCJ-SBO"DiName="-DBJ-DI"SboStatus=1DiStatus=0Delay=4;

[0066] (11) SboName="-FCJ-SBO" DiName="-DFBH-DI" SboStatus=1DiStatus=1Delay=4;

[0067] (12) SboName="-FCJ-SBO" DiName="-DFBH-DI" SboStatus=1DiStatus=0Delay=6;

[0068] (13)SboName="-DCJ-QPDM46"DiName="-DBJ-CPDM46"SboStatus=1DiStatus=1Delay=8;

[0069] (14)SboName="-DCJ-QPDM46"DiName="-FBJ-CPDM46"SboStatus=1DiStatus=0Delay=8;

[0070] (15) SboName="-FCJ-QPDM46" DiName="-FBJ-CPDM46" SboStatus=1DiStatus=1Delay=8;

[0071] (16)SboName="-FCJ-QPDM46"DiName="-DBJ-CPDM46"SboStatus=1DiStatus=0Delay=8;

[0072] Among them, items (1) to (4) are complete matches of the drive code bit names, and items (5) to (16) are matches of the drive code bit suffix names. The available relay drive code bit set validSboBits and the available relay acquisition code bit set validDiBits determined by step S11 are respectively compared with items (1) to (16) for the SboName and DiName of the relay drive acquisition simulation rules. Since the drive code bit with the suffix -DCJ-QPDM46 or the suffix -FCJ-QPDM46 cannot be found in the available relay drive code bit set validSboBits, items (13) to (16) are filtered out, and items (1) to (12) are retained.

[0073] Among them, SboName represents the driver code position name or the driver code position suffix name; DiName represents the acquisition code position name or the acquisition code position suffix name; DiStatus represents how the corresponding acquisition code position should change when the driver code position status SboStatus changes; Delay represents the delay period of the acquisition code position change.

[0074] The available relay drive code bit set validSboBits and the available relay acquisition code bit set validDiBits determined in step S11 are respectively compared with the SboName and DiName of the relay drive acquisition simulation rules one by one: for example, for the drive acquisition code bit mapping item of the form SboName = "-DCJ-SBO" DiName = "-DFBH-DI" SboStatus = 1 DiStatus = 1 Delay = 8, SboName = "-DCJ-SBO" successfully matches the 1-3-DCJ-SBO suffix in validSboBits, but cannot be found in validDiBits If the corresponding 1-3-DFBH-DI acquisition code bit is not found, it means that the drive acquisition code bit mapping item has failed to match and needs to be ignored; for the drive acquisition code bit mapping item of the form SboName = "-DCJ-SBO" DiName = "-DBJ-DI" SboStatus = 1 DiStatus = 1 Delay = 8, SboName = "-DCJ-SBO" successfully matches the 1-3-DCJ-SBO suffix in validSboBits, and DiName = "-DBJ-DI" successfully matches the 1-3-DBJ-DI suffix in validDiBits, which means that the drive acquisition code bit mapping item has been successfully matched. All initial drive acquisition code bit mapping items are finally screened and determined through the above process.

[0075] S2. The operation display subsystem starts the BOOL operation simulation module and the relay simulation module. The BOOL operation simulation module runs based on the BOOL operation rule definition file; the relay simulation module runs based on the drive code bit mapping item, and provides a GUI interface for viewing and revising the current drive code bit mapping item. It includes the following contents:

[0076] S21, the operation display subsystem starts the BOOL operation simulation module;

[0077] The BOOL operation simulation module runs based on the BOOL operation rule definition file, that is, based on the status values ​​of each code position (including relay acquisition code positions, interlocking external interface input code positions, etc.) in a single cycle, the BOOL expression is executed in sequence to obtain the current status values ​​of all code positions (including relay drive code positions, interlocking external interface output code positions, etc.). On this basis, all code position status values ​​are shunted and passed to the corresponding modules, such as passing the display code position status value to the operation display subsystem display module for station display, and passing the relay drive code position status value to the relay simulation module, etc.;

[0078] S22. The operation display subsystem starts the relay simulation module.

[0079] In order to solve the high coupling defect between the relay simulation module and the operation display subsystem, the relay simulation module is started in a subprocess mode. The subprocess provides a GUI interface for viewing and revising the current drive code bit mapping items. When the relay simulation module is just started, all initial drive code bit mapping items are displayed. After receiving the relay drive code bit status value from the BOOL operation simulation module in a single cycle, the SboName of the drive code bit mapping item is matched one by one according to the relay drive code bit name. It should be specially noted that the front part of the drive code bit mapping item is completely matched with the drive code bit name, and the rear part is matched with the drive code bit suffix name; and the drive code bit mapping items are arranged in order according to SboName. If the match is successful, the relay acquisition code bit status value of the corresponding DiName will be changed after Delay delay cycles. After a single cycle of processing, all relay acquisition code bit status values ​​are returned to the BOOL operation simulation module.

[0080] The complete single cycle of the BOOL operation simulation module is:

[0081] a. Receive the status values ​​of each external code position, including the relay acquisition code position and the interlocking external interface input code position;

[0082] b. Completely execute all BOOL expressions;

[0083] c. Pass the calculation results to the corresponding module.

[0084] Specifically, the BOOL operation simulation module executes BOOL expressions (1) to (4) in sequence within a single cycle:

[0085] ①According to the total positioning operation of the turnout, the 1-3-DCJ state value is obtained as T, and then according to formula (1), the 1-3-DCJSC state value is obtained as T;

[0086] ② The system runs normally and the whole station is unblocked, and the SYSAHF and QZFST status values ​​are T. Combined with the 1-3-DCJSC status value, the 1-3-DCJ-SBO status value is T.

[0087] After all BOOL expressions are executed, the BOOL operation simulation module passes the 1-3-DCJ-SBO relay drive code status value to the relay simulation module.

[0088] The complete single cycle of the relay simulation module is:

[0089] 1). Receive the relay drive code status value transmitted by the BOOL operation simulation module;

[0090] 2). Calculate the relay acquisition code status value and change cycle time;

[0091] 3). After a specific delay period, the relay acquisition code status value is returned to the BOOL operation simulation module.

[0092] Specifically, the relay simulation module detects and receives the 1-3-DCJ-SBO state value from the BOOL operation simulation module, which is recorded as cycle 0 at this moment. On this basis, the SboName of the drive code bit mapping items (1) to (12) are matched one by one. When items (5) to (8) are matched, the match is successful, that is: in cycle 4, the 1-3-FBJ-DI acquisition code bit state value is set to F, and the 1-3-DFBH-DI acquisition code bit state value is set to T; in cycle 6, the 1-3-DFBH-DI acquisition code bit state value is set to F; in cycle 8, the 1-3-DBJ-DI acquisition code bit state value is set to T. In each cycle where the acquisition code bit state value changes, the corresponding acquisition code bit state value is returned to the BOOL operation simulation module. At this time, the BOOL operation simulation module only records it, and no actual operation occurs. In the next BOOL operation cycle, the BOOL operation simulation module executes the BOOL expressions in sequence:

[0093] ① When calculating formula (3), it is found that 1-3-DBJ-DI is T, 1-3-FBJ-DI is F, and 1-3-DFBH-DI is F, so the state value of 1-3-ZBSDW is T;

[0094] ② Calculate formula (4), based on the 1-3-ZBSDW state value is T, and get the 1-3-DBJ state value is T.

[0095] After all BOOL expressions are executed, the BOOL operation simulation module passes the 1-3-DBJ code position status value to the display module. At this time, the station yard 1-3 turnout is displayed in position.

[0096] refer to Figure 3 In order to speed up the overall positioning simulation speed of the turnout, it is necessary to modify the drive and acquisition code mapping items (5) to (8). The present invention also includes step S3, real-time online modification, deletion or addition of the existing drive and acquisition code mapping items; including field modification of the drive code name or drive code suffix, acquisition code name or acquisition code suffix, drive code status, acquisition code status and delay period value. It includes the following steps:

[0097] S31. At any time, modify the Delay field of the drive code bit mapping items (5) to (8) in the GUI interface of the relay simulation module: change the Delay of the drive code bit mapping item (5) to 4; change the Delay of the drive code bit mapping item (6) to 2; change the Delay of the drive code bit mapping item (7) to 2; change the Delay of the drive code bit mapping item (8) to 3. Since the modification of the SboName and DiName fields is not involved, the modified drive code bit mapping items pass the legality check, and there is no need to change the relative order between the existing drive code bit mapping items.

[0098] Step S31 can be summarized as: according to actual needs, at any time, the existing drive code bit mapping items can be modified in real time, including the modification of SboName, DiName, SboStatus, DiStatus, and Delay fields, wherein the SboName field only supports modification within the validSboBits range, that is, if the drive code bit name is modified, a complete match must be found in validSboBits, and if the drive code bit suffix name is modified, at least one suffix match must be found in validSboBits. To prevent ambiguity, if the SboName field starts with "-", it is regarded as a suffix name, otherwise it is regarded as a complete drive code bit name; the DiName field is similar to the SboName field only, and only supports modification within the validDiBits range; the SboStatus and DiStatus fields are BOOL type quantities; the Delay field is an integer quantity. Similarly, the principle of deleting the drive code bit mapping item or adding a new drive code bit mapping item is the same. After the input is completed, the legitimacy of the drive code bit mapping item will be checked, such as whether it is repeated or contradictory with the existing drive code bit mapping item. The above-mentioned SboName and DiName field input restrictions, legality checks and other operations, including the arrangement order requirements of the drive code bit mapping items, are intended to reduce the scale of relay drive simulation rules, speed up the matching speed between the drive code bit name and the drive code bit mapping items, and then improve the single-cycle operation efficiency of the relay simulation module.

[0099] S32. After the modification is completed, the relay simulation module receives the 1-3-DCJ-SBO status value as T in cycle 0; sets the 1-3-FBJ-DI acquisition code status value to F and the 1-3-DFBH-DI acquisition code status value to T in cycle 2; sets the 1-3-DFBH-DI acquisition code status value to F in cycle 3; sets the 1-3-DBJ-DI acquisition code status value to T in cycle 4, and transmits the 1-3-DBJ-DI status value back to the BOOL operation simulation module in the same cycle. The BOOL operation simulation module will complete the total positioning operation of the 1-3 turnout in the next BOOL operation cycle.

[0100] In step S32, modification is performed according to the following rules.

[0101] (1) If the relay simulation module is currently in operation cycle, it is necessary to wait until the cycle ends before updating the drive code bit mapping items in sequence;

[0102] (2) If the relay simulation module is not in operation cycle, the drive code bit mapping items can be directly updated in sequence.

[0103] Once the update is completed, the new relay drive simulation rules will take effect in the next operation cycle and will not affect the normal operation of the current BOOL operation simulation module and relay simulation module.

[0104] By executing S31 to S32, theoretically the total positioning operation of turnouts 1-3 will reduce the simulation time by half compared with before.

[0105] Compared with the existing methods, the present invention has the following beneficial effects:

[0106] 1. The above method separates the BOOL operation simulation module and the relay simulation module at the process level. The shutdown and restart of the relay simulation module do not affect the operation of the BOOL operation simulation module and the operation display subsystem (although it will have a certain impact on the BOOL simulation results), thus overcoming the defect of high coupling of the existing method.

[0107] 2. The above method supports online real-time revision of relay drive simulation rules, realizes the continuous operation of BOOL operation simulation module and relay simulation module, overcomes the existing method that the relay drive simulation rules must be revised after the operation display subsystem is closed, especially in the process of rule development (involving frequent fine-tuning of relay drive simulation rules) and operation display subsystem software development (involving complex simulation scenarios), greatly improves development efficiency and ensures the continuity of simulation;

[0108] 3. The above method constrains the filling range of SboName and DiName fields by parsing the BOOL operation rule definition file, and performs a legality check on the drive code bit mapping items, which ensures the correctness of the relay drive simulation rules to a certain extent, reduces the scale of the relay drive simulation rules, speeds up the matching speed between the drive code bit name and the drive code bit mapping items, and then improves the operating efficiency of the relay simulation module.

[0109] Although the content of the present invention has been described in detail through the above preferred embodiments, it should be appreciated that the above description should not be considered as a limitation of the present invention. After reading the above content, it will be apparent to those skilled in the art that various modifications and substitutions of the present invention will occur. Therefore, the protection scope of the present invention should be limited by the appended claims.

Claims

1. A real-time revision method for interlocking relay drive simulation rules, characterized in that: The following steps are involved: S1. Loading a BOOL operation rule definition file and a relay drive acquisition simulation rule configuration file through an operation display subsystem, determining an available relay drive code bit set and an available relay acquisition code bit set according to the BOOL operation rule definition file, and determining all initial drive acquisition code bit mapping items according to the relay drive acquisition simulation rule configuration file, the available relay drive code bit set and the available relay acquisition code bit set; S2. Start the BOOL operation simulation module and the relay simulation module through the operation display subsystem. The BOOL operation simulation module runs based on the BOOL operation rule definition file, and the relay simulation module runs based on the drive code bit mapping item. At the same time, a GUI interface is provided in the operation display subsystem for viewing and revising the current drive code bit mapping item.

2. The real-time revision method of interlocking relay drive simulation rules according to claim 1, characterized in that: The BOOL operation rule definition file consists of several BOOL expressions.

3. The real-time revision method of interlocking relay drive simulation rules according to claim 2, characterized in that: The step S1 traverses the BOOL operation rule definition file and divides the BOOL code bits into different types according to the positions where the BOOL code bits appear in the BOOL expression, and puts them into the available relay drive code bit set and the available relay acquisition code bit set respectively.

4. The real-time revision method of interlocking relay drive simulation rules according to claim 3 is characterized in that: If a BOOL code bit appears on the left side of the equal sign of a BOOL expression, it means that the state value of the BOOL code bit can be calculated from the state values ​​of other BOOL code bits, then the BOOL code bit is put into the available relay drive code bit set; If a BOOL code bit only appears on the right side of the equal sign of a BOOL expression and has never appeared on the left side of any BOOL expression, it means that the state value of the BOOL code bit is obtained from outside the BOOL operation simulation module. In this case, the BOOL code bit is placed in the available relay acquisition code bit set.

5. The real-time revision method of interlocking relay drive simulation rules according to claim 2, characterized in that: The relay drive simulation rule configuration file consists of several drive code bit mapping items, wherein the drive code bit mapping items include: drive code bit name or drive code bit suffix name, acquisition code bit name or acquisition code bit suffix name, drive code bit state, acquisition code bit state and delay period value.

6. The real-time revision method of interlocking relay drive simulation rules according to claim 2, characterized in that: The operation display subsystem starts the BOOL operation simulation module, including the following: In a single cycle, based on the status value of each code position, the BOOL expressions are executed in sequence to obtain the current status values ​​of all code positions, and all code position status values ​​are diverted and passed to the corresponding modules.

7. The real-time revision method of interlocking relay drive simulation rules according to claim 6, characterized in that: The operation display subsystem startup relay simulation module includes the following: The relay simulation module is started in subprocess mode, and the subprocess provides a GUI interface for viewing and revising the current drive code bit mapping items.

8. The real-time revision method of interlocking relay drive simulation rules according to claim 8, characterized in that: When the relay simulation module is just started, it displays all the initial drive code bit mapping items. After receiving the relay drive code bit state value from the BOOL operation simulation module in a single cycle, it matches the drive code bit name or drive code bit suffix name of the drive code bit mapping item one by one according to the relay drive code bit name; If the match is successful, the relay acquisition code position state value corresponding to the acquisition code position name or the acquisition code position suffix name is changed after the delay period value delay period, and after single-cycle processing, all relay acquisition code position state values ​​are returned to the BOOL operation simulation module.

9. The real-time revision method of interlocking relay drive simulation rules according to claim 8, characterized in that: The complete single cycle of the BOOL operation simulation module is: a. Receive the status values ​​of each external code position, including the relay acquisition code position and the interlocking external interface input code position; b. Completely execute all BOOL expressions; c. Pass the calculation results to the corresponding module.

10. The real-time revision method of interlocking relay drive simulation rules according to claim 8, characterized in that: The complete single cycle of the relay simulation module is: 1). Receive the relay drive code status value transmitted by the BOOL operation simulation module; 2). Calculate the relay acquisition code status value and change cycle time; 3). After a specific delay period, the relay acquisition code status value is returned to the BOOL operation simulation module.

11. The real-time revision method of interlocking relay drive simulation rules according to claim 1, characterized in that: It also includes: real-time online modification, deletion or addition of existing drive and acquisition code bit mapping items; including field modification of drive code bit name or drive code bit suffix name, acquisition code bit name or acquisition code bit suffix name, drive code bit status, acquisition code bit status and delay period value.

12. The real-time revision method of interlocking relay drive simulation rules according to claim 12, characterized in that: The SboName field is used to represent the drive code position name or the drive code position suffix name, and the SboName field starting with "-" is regarded as the drive code position suffix name, otherwise it is regarded as the drive code position name. The SboName field of the drive code position name or the drive code position suffix name only supports modification within the available relay drive code position set.

13. The real-time revision method of interlocking relay drive simulation rules according to claim 12, characterized in that: If the current operation cycle is in the relay simulation module operation cycle, it is necessary to wait until the cycle ends before updating the drive code bit mapping items in sequence; if the current operation cycle is not in the relay simulation module operation cycle, the drive code bit mapping items can be directly updated in sequence; After the update is completed, the new relay drive simulation rules will take effect in the next operation cycle and will not affect the normal operation of the current BOOL operation simulation module and relay simulation module.

14. A real-time revision system for interlocking relay drive simulation rules, characterized in that: include: Operation display subsystem; BOOL operation simulation module, used to load BOOL operation rule definition file and communicate with the operation display subsystem; The relay simulation module is used to load the driving simulation rule configuration file and communicate with the operation display subsystem by running the subprocess; The BOOL operation simulation module and the relay simulation module are started through the operation display subsystem, and a GUI interface is provided for viewing and revising the current drive code bit mapping item.