Method, system and device for detecting multiple processes by using single timer and storage medium

By using redundant control units and a single timer to realize multiple process detection in a cross-seat single-track switch control system, the existing system is complex and has high failure rate solved, and the system reliability and operational safety are improved.

CN120215464APending Publication Date: 2025-06-27CHONGQING RAIL TRANSIT OPERATION CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510351860.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-24
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

The existing cross-seat single-track switch control system adopts relay logic control, resulting in complex systems, many fault points and high failure rates, which affect operational safety and traffic efficiency.

Method used

Through the cooperation of redundant power supply unit, dual redundant PLC control unit and signal switching unit, redundant control of the given, unlocking, switching, locking and representation process of cross-seat single track switch is realized, and multiple process detection is achieved using a single timer.

Benefits of technology

It effectively reduces fault points, reduces fault rates, improves the reliability and stability of the system, and ensures the operational safety and traffic efficiency of cross-seat monorail transportation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120215464A_ABST
    Figure CN120215464A_ABST
Patent Text Reader

Abstract

The invention discloses a method, system and device for detecting multiple processes through a single timer and a storage medium, and the method comprises the steps: initializing the process detection data of all sub-processes of a turnout preset control process when the starting condition of the turnout preset control process is met; when initialization of the process detection data is completed, a process detection timer is started to start timing; when the starting condition of the current sub-process is met, starting a sub-process detection program corresponding to the current sub-process, and storing the current value of the process detection timer into a time variable representing the starting time of the current sub-process; determining a time variable of the actual time of the current sub-process based on the current value of the process detection timer and the time variable of the start time; and outputting state information and / or a preset control instruction corresponding to the current sub-process based on the actual time variable of the current sub-process. According to the invention, the single timer can be utilized to realize detection of time consumption of a plurality of processes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of rail transit equipment control, and particularly relates to a method, system, device and storage medium for realizing multiple process detections by using a single timer. Background Art

[0002] The light rail is an important part of urban rail transit. For cities with relatively large height differences, many slopes, sharp turns, dense population and heavy traffic, the light rail can well solve the problem of traffic congestion. Especially the straddle-type monorail turnout traffic light rail can better adapt to the traffic conditions of modern cities. Therefore, the light rail traffic in the form of straddle-type monorail has become an important means of transportation for urban people to travel.

[0003] The straddle-type monorail turnout is one of the three key technologies of straddle-type monorail traffic and is a key device for monorail train formation, turning back and train operation organization. The straddle-type monorail turnout mainly includes a plurality of turnout beams connected in sequence through joint connectors, a switch mechanism for driving the turnout beam to switch, and a locking mechanism for locking / unlocking the turnout beam. The turnout beam is fixedly installed on the moving trolley, and the moving trolley is slidably arranged on the running rail of the installation base plate. The installation base plate is fixedly installed on the ground. When the turnout beam needs to be switched, the locking mechanism unlocks the turnout beam from the installation base plate. After the turnout beam is switched in place, the locking mechanism locks the turnout beam on the installation base plate. The straddle-type monorail turnout usually has multiple working positions. During the operation of the straddle-type monorail turnout, it is necessary to control the entire working process of "given-unlock-switch-lock-indicate" of the straddle-type monorail turnout.

[0004] The control systems of existing straddle-type monorail turnout equipment usually adopt relay logic control systems. The relay controls the turnout to complete the entire process of given (generation of control instructions), unlocking, switching, locking and indication (outputting and displaying the status signals of each device). The PLC only plays an auxiliary monitoring role for the equipment status and does not participate in the control. Since the main control mode of the existing straddle-type monorail turnout control system adopts relay logic control, there are many components, lines and nodes, the control system is complex, and each control component is set singly without redundancy function. Since each component, line or node has the potential possibility of failure, the existing turnout control system has many fault points and a high failure rate. Once a control component, line or node in the control system fails, the entire control system cannot work, resulting in poor reliability and stability of the system, thus directly affecting the operation safety and passing efficiency of the straddle-type monorail traffic.

[0005] For this reason, the utility model patent with the announcement number of CN221225350U of the present applicant discloses an intelligent redundant control system for a straddle-type monorail turnout, which can realize the control of the entire process of setting, unlocking, switching, locking and indication of the turnout beam of the straddle-type monorail turnout through the cooperation of a redundant power supply unit, a control unit, a dual-channel redundant PLC control unit, a signal switch unit and a turnout beam drive unit. The main control components of the system use a dual-channel redundant PLC control unit to achieve redundant control, and the power supply of the main control components of the system is powered by a redundant power supply method. Compared with the existing straddle-type monorail turnout control system using relay logic control, the components, circuits and nodes are greatly reduced, the hardware architecture of the control system is simpler, the fault points are effectively reduced, the failure rate is greatly reduced, the reliability and stability of the system are greatly improved, and the operation safety and passing efficiency of the straddle-type monorail traffic are effectively guaranteed.

[0006] Based on the intelligent redundant control system for a straddle-type monorail turnout disclosed in the above-mentioned utility model patent, the invention patent application with the publication number of CN117331300A of the present applicant discloses a fault monitoring system for a redundant control system of a straddle-type monorail turnout, as Figure 6 described, this system monitors the control process, equipment status, misoperation of contactors, slow release of contactors and other system working states of the intelligent redundant control system for a straddle-type monorail turnout. As Figure 5 shown, the process detection unit of the fault detection module of the fault monitoring system for the redundant control system of a straddle-type monorail turnout decomposes the entire process of "setting-unlocking-switching-locking-indication" of the turnout into several sub-processes in the order of the instructions or device actions, then detects the time from the start to the end of each sub-process, and finally judges the degree of process abnormality according to the time used and makes different treatments (for example, give a warning for slight overtime, do not disconnect the setting instruction, and the turnout continues to operate; report a fault for serious overtime, disconnect the setting instruction, and the turnout stops operating).

[0007] Since an abnormality occurs during the operation of the turnout, it must be caused by an abnormality in one or several sub-processes. Therefore, the finer and more these sub-processes are decomposed, the more accurately the specific fault points or circuits can be reflected. The fault monitoring system for the redundant control system of a straddle-type monorail turnout decomposes the entire operation process of the turnout into more than 130 sub-processes for detection.

[0008] In the conventional process detection method, each sub-process requires a high-resolution timer for detection. However, the timers in the PLC controller are limited, especially the high-resolution timers are very limited. For example, there are usually only a few timers with a resolution (time base) of 1 mS in a PLC controller. Therefore, it is impossible to use the very limited high-resolution timers in a PLC controller to implement the detection of hundreds or even thousands of sub-processes. Summary of the Invention

[0009] In view of the deficiencies in the prior art, the present application provides a method, system, device, and storage medium for implementing multiple process detections using a single timer, which can use a single timer to implement the detection of the time used in multiple processes.

[0010] The first object of the present application is to provide a method for implementing multiple process detections using a single timer.

[0011] The above object one of the present application is achieved through the following technical solutions:

[0012] A method for implementing multiple process detections using a single timer, which is applied to a straddle-type single turnout. When the straddle-type single turnout performs process detection, the preset control process of the turnout is decomposed into several sub-processes according to the order of instructions and / or device actions.

[0013] The method includes:

[0014] When the start condition of the preset control process of the turnout is satisfied, initialize the process detection data of all sub-processes of the preset control process of the turnout, where the process detection data at least includes the actual time used at the current moment of each sub-process.

[0015] When the initialization of the process detection data is completed, start a process detection timer to start timing.

[0016] When the start condition of the current sub-process is satisfied, start the sub-process detection program corresponding to the current sub-process, record the current value Tnow of the process detection timer, and store the current value of the process detection timer into the time variable Tstart_x representing the start time of the current sub-process, that is, Tstart_x = Tnow, where x represents the number of the current sub-process, x = 1, 2, 3... n, and n is the number of all sub-processes of the preset control process of the turnout.

[0017] Determine the time variable Tuse_x of the actual duration of the current subprocess at the current moment based on the current value Tnow of the process detection timer and the time variable Tstart_x of the start time of the current subprocess, where x represents the number of the current subprocess, x = 1, 2, 3... n, and n is the number of all subprocesses of the preset switch control process;

[0018] Output the status information and / or preset control instructions corresponding to the current subprocess based on the time variable Tuse_x of the actual duration of the current subprocess at the current moment.

[0019] Preferably, the method further includes:

[0020] When the end condition of the current subprocess is satisfied, or when the current value Tnow of the process detection timer reaches the preset total process duration threshold, end the subprocess detection program of the current subprocess,

[0021] When the end condition of the preset switch control process is satisfied, or when the current value Tnow of the process detection timer reaches the preset total process duration threshold, end the total process detection program of the preset switch control process,

[0022] Wherein, the preset total process duration threshold is greater than the actual required duration of the total process of the preset switch control process.

[0023] Preferably, the determining the time variable Tuse_x of the actual duration of the current subprocess at the current moment based on the current value Tnow of the process detection timer and the time variable Tstart_x of the start time of the current subprocess includes:

[0024] In each program scan cycle, execute once to store the time value obtained by subtracting the time variable Tstart_x of the start time of the current subprocess from the current value Tnow of the process detection timer into the variable Tuse_x representing the actual duration of the current subprocess at the current moment, that is, Tuse_x = Tnow - Tstart_x.

[0025] Preferably, the outputting the status information and / or preset control instructions corresponding to the current subprocess based on the time variable Tuse_x of the actual duration of the current subprocess at the current moment includes:

[0026] Judge whether the time variable Tuse_x of the actual duration of the current subprocess at the current moment exceeds the preset warning value of the current subprocess and does not exceed the preset failure value of the current subprocess. If so, output a warning code, where the preset warning value of the current subprocess is less than the preset failure value of the current subprocess;

[0027] Determine whether the time variable Tuse_x of the actual time used at the current moment of the current sub - process exceeds the preset fault value of the current sub - process. If so, output a fault code and output a preset control instruction to disconnect the switch given instruction to stop the switch from operating.

[0028] The second object of the present application is to provide a system for implementing the detection of multiple processes using a single timer.

[0029] The above - mentioned second application object of the present application is achieved through the following technical solutions:

[0030] A system for implementing the detection of multiple processes using a single timer, which is applied to a straddle - type single - track switch. Among them, when the straddle - type single - track switch performs process detection, the preset control process of the switch is decomposed into several sub - processes according to the sequence of instructions and / or device actions.

[0031] The system includes:

[0032] A data initialization module, which is used to initialize the process detection data of all sub - processes of the preset control process of the switch when the start condition of the preset control process of the switch is satisfied. Among them, the process detection data at least includes the actual time used at the current moment of each sub - process.

[0033] A timer start control module, which is used to start a process detection timer to start timing when the initialization of the process detection data is completed.

[0034] A time variable assignment module, which is used to start the sub - process detection program corresponding to the current sub - process when the start condition of the current sub - process is satisfied, record the current value Tnow of the process detection timer, and store the current value of the process detection timer into the time variable Tstart_x representing the start time of the current sub - process, that is, Tstart_x = Tnow, where x represents the number of the current sub - process, x = 1, 2, 3...n, and n is the number of all sub - processes of the preset control process of the switch.

[0035] A sub - process actual time determination module, which is used to determine the time variable Tuse_x of the actual time used at the current moment of the current sub - process based on the current value Tnow of the process detection timer and the time variable Tstart_x of the start time of the current sub - process, where x represents the number of the current sub - process, x = 1, 2, 3...n, and n is the number of all sub - processes of the preset control process of the switch.

[0036] An information output control module, which is used to output the status information and / or preset control instruction corresponding to the current sub - process based on the time variable Tuse_x of the actual time used at the current moment of the current sub - process.

[0037] Preferably, the system further includes:

[0038] A process detection program end control module, configured to end the sub-process detection program of the current sub-process when the end condition of the current sub-process is satisfied, or when the current value Tnow of the process detection timer reaches a preset total process duration threshold.

[0039] When the end condition of the preset switch control process is satisfied, or when the current value Tnow of the process detection timer reaches a preset total process duration threshold, end the total process detection program of the preset switch control process.

[0040] Wherein, the preset total process duration threshold is greater than the actual required duration of the total process of the preset switch control process.

[0041] Preferably, when the sub-process actual usage time determination module executes to determine the time variable Tuse_x of the actual usage time of the current sub-process at the current moment based on the current value Tnow of the process detection timer and the time variable Tstart_x of the start time of the current sub-process, it is specifically used for:

[0042] In each program scan cycle, execute once to store the time value obtained by subtracting the time variable Tstart_x of the start time of the current sub-process from the current value Tnow of the process detection timer into the variable Tuse_x representing the actual usage time of the current sub-process at the current moment, that is, Tuse_x = Tnow - Tstart_x.

[0043] Preferably, when the information output control module executes to output the status information and / or preset control instruction corresponding to the current sub-process based on the time variable Tuse_x of the actual usage time of the current sub-process at the current moment, it is specifically used for:

[0044] Judge whether the time variable Tuse_x of the actual usage time of the current sub-process at the current moment exceeds the preset warning value of the current sub-process and does not exceed the preset failure value of the current sub-process. If so, output a warning code, wherein the preset warning value of the current sub-process is less than the preset failure value of the current sub-process;

[0045] Judge whether the time variable Tuse_x of the actual usage time of the current sub-process at the current moment exceeds the preset failure value of the current sub-process. If so, output a failure code and output a preset control instruction to disconnect the switch given instruction to stop the switch from operating.

[0046] The third object of the present application is to provide a device for implementing multiple process detections using a single timer.

[0047] The above-mentioned third application object of the present application is achieved by the following technical solutions:

[0048] An apparatus for implementing multiple process detections using a single timer, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method for implementing multiple process detections using a single timer according to any one of the first objects of the present application are implemented.

[0049] The fourth object of the present application is to provide a computer-readable storage medium.

[0050] The above-mentioned fourth application object of the present application is achieved by the following technical solutions:

[0051] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for implementing multiple process detections using a single timer according to any one of the first objects of the present application are implemented.

[0052] In summary, the present application provides a method, system, apparatus, and storage medium for implementing multiple process detections using a single timer. During the process detection of a straddle-type single turnout, when the start condition of the preset control process of the turnout is satisfied, the process detection data of all sub-processes of the preset control process of the turnout are initialized, where the process detection data at least includes the actual time used at the current moment of each sub-process; when the initialization of the process detection data is completed, a process detection timer is started to start timing; when the start condition of the current sub-process is satisfied, the sub-process detection program corresponding to the current sub-process is started, the current value Tnow of the process detection timer is recorded, and the current value of the process detection timer is stored in the time variable Tstart_x representing the start time of the current sub-process; based on the current value Tnow of the process detection timer and the time variable Tstart_x of the start time of the current sub-process, the time variable Tuse_x of the actual time used by the current sub-process at the current moment is determined; based on the time variable Tuse_x of the actual time used by the current sub-process at the current moment, the status information and / or preset control instruction corresponding to the current sub-process are output. The present application can implement the function of using 1 timer to implement multiple process detections, and the number of process detections is theoretically infinite.

[0053] The additional aspects and advantages of the present application will be partially given in the following description, partially become apparent from the following description, or be understood through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] To more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the following will briefly introduce the drawings required for the description of the specific embodiments or the prior art. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, the elements or parts are not necessarily drawn to scale.

[0055] Figure 1 is a flowchart of a method for implementing multiple process detections using a single timer in an embodiment of the present application;

[0056] Figure 2 is a flowchart of the implementation principle of a PLC program for implementing multiple process detections using a single timer in a specific example of the present application;

[0057] Figure 3 is a schematic structural diagram of a system for implementing multiple process detections using a single timer in an embodiment of the present application;

[0058] Figure 4 is a schematic structural diagram of a device for implementing multiple process detections using a single timer in an embodiment of the present application;

[0059] Figure 5 is a program flowchart of a fault monitoring system of a straddle single-track turnout redundancy control system in the prior art for process detection during the entire operation process of a single-track turnout;

[0060] Figure 6 is a fault detection program flowchart of a fault monitoring system of a straddle single-track turnout redundancy control system in the prior art. Specific Embodiments

[0061] The following will describe in detail the embodiments of the technical solutions of the present application with reference to the drawings. The following embodiments are only used to more clearly illustrate the technical solutions of the present application, and thus are only examples and cannot be used to limit the protection scope of the present application.

[0062] It should be noted that unless otherwise specified, the technical terms or scientific terms used in the present application should have the ordinary meanings understood by those skilled in the art to which the present application belongs.

[0063] In the description of the present application, it should be understood that the orientation or positional relationships indicated by the terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. are based on the orientation or positional relationships shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as a limitation to the present application.

[0064] In addition, the terms "first", "second", etc. are only used for descriptive purposes and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. In the description of the present application, the meaning of "a plurality" is two or more, unless otherwise specifically defined.

[0065] In the present application, unless otherwise clearly defined and limited, the terms "mounted", "connected", "coupled", "fixed", etc. should be understood in a broad sense. For example, it may be a fixed connection, a detachable connection, or integrated; it may be a mechanical connection or an electrical connection; it may be directly connected or indirectly connected through an intermediate medium, and it may be the internal communication of two elements or the interaction relationship between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to specific circumstances.

[0066] In the present application, unless otherwise clearly defined and limited, the first feature being "on" or "under" the second feature may be that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, the first feature being "above", "over" and "on top of" the second feature may be that the first feature is directly above or obliquely above the second feature, or merely indicates that the first feature has a higher horizontal height than the second feature. The first feature being "under", "beneath" and "underneath" the second feature may be that the first feature is directly below or obliquely below the second feature, or merely indicates that the first feature has a lower horizontal height than the second feature.

[0067] Such as Figure 5As shown in the figure, it is the program flowchart of the fault monitoring system of the straddle-type monorail turnout redundancy control system in the prior art for process detection during the entire operation process of the monorail turnout. In order to detect whether each sub-process during the entire operation process of the turnout is abnormal, the fault monitoring system of the straddle-type monorail turnout redundancy control system decomposes the entire process of "given-unlock-switch-lock-indicate" of the turnout into several sub-processes according to the sequence of instruction or device actions, detects the time from the start to the end of each sub-process, and then judges the degree of process abnormality according to the time used and makes different treatments. For minor abnormalities, warning codes are reported, the given instruction is not disconnected, and the turnout continues to operate. For serious abnormalities, fault codes are reported, the given instruction is disconnected, and the turnout stops operating. Since an abnormality occurs during the operation process of the turnout, it must be caused by one or several sub-processes being abnormal. Therefore, the finer, more, and smaller these sub-processes are decomposed, the more accurately the specific fault points or circuits can be reflected. This system decomposes the entire operation process of the turnout into more than 130 sub-processes for detection. In actual applications, this process detection method is very effective, fast, and accurate for fault analysis and disposal of the operation process of the turnout equipment.

[0068] The process detection program logic is as follows:

[0069] At the beginning of each switch of the turnout, that is, when the N position or R position is given, first reset the process detection data, then turn on the N position or R position given hold flag, and only cut off the N position or R position given hold flag until there is an N position or R indication, total detection timeout, or a fault. Then use the N position or R position given hold flag to start the process detection timer (time base 1mS, timing 20S, the actual switch time of the turnout is within 15S). When the N position or R position hold flag is disconnected, reset the process detection timer, then detect the time used from the start to the end of each sub-process, and finally judge the degree of process abnormality according to the time used and make different treatments. For minor abnormalities, warnings are reported and the turnout continues to operate. For serious abnormalities, faults are reported and the turnout stops operating. Since the normal time used for each sub-process is different, the warning and fault criteria for its process detection are also different.

[0070] Specifically, the process detection program includes:

[0071] Detection of the unlocking contactor action during unlocking when turning to the N position, that is, detecting the time from the formation of the unlocking instruction to the action of each unlocking contactor. If the time used is 0.6 - 1.0S, a warning is reported. If it exceeds 1.0S, a fault is reported;

[0072] Detection of the disconnection of the locking travel switch during unlocking, that is, detecting the time from the action of the unlocking contactor to the disconnection of its corresponding locking travel switch. If the time used is 0.6 - 1.0S, a warning is reported. If it exceeds 1.0S, a fault is reported;

[0073] When unlocking, detect the connection of the unlocking travel switch, that is, detect the time from the action of the unlocking contactor to the connection of its corresponding unlocking travel switch. Alarm when the time is 1.8 - 2.3S, and report a fault when it exceeds 2.3S;

[0074] When turning to position N, detect the action of the position N switch contactor, that is, detect the time from the formation of the position N switch command to the action of the position N contactor. Alarm when the time is 0.6 - 1.0S, and report a fault when it exceeds 1.0S;

[0075] When turning to position N, detect the disconnection of the crank arm position R travel switch, that is, detect the time from the action of the position N contactor to the disconnection of the crank arm position R travel switch. Alarm when the time is 1.0 - 1.5S, and report a fault when it exceeds 1.5S;

[0076] When turning to position N, detect the disconnection of the switch beam position R travel switch, that is, detect the time from the action of the position N contactor to the disconnection of the switch beam position R travel switch. Alarm when the time is 1.0 - 1.5S, and report a fault when it exceeds 1.5S;

[0077] When turning to position N, detect the connection of the crank arm position N travel switch, that is, detect the time from the action of the position N contactor to the connection of the crank arm position N travel switch. Alarm when the time is 8.0 - 9.0S, and report a fault when it exceeds 9.0S;

[0078] When turning to position N, detect the connection of the switch beam position N travel switch, that is, detect the time from the action of the position N contactor to the connection of the switch beam position N travel switch. Alarm when the time is 8.0 - 9.0S, and report a fault when it exceeds 9.0S;

[0079] When locking, detect the action of the locking contactor, that is, detect the time from the formation of the locking command to the action of each locking contactor. Alarm when the time is 0.6 - 1.0S, and report a fault when it exceeds 1.0S;

[0080] When locking, detect the disconnection of the unlocking travel switch, that is, detect the time from the action of the locking contactor to the disconnection of its corresponding unlocking travel switch. Alarm when the time is 0.6 - 1.0S, and report a fault when it exceeds 1.0S;

[0081] When locking, detect the connection of the locking travel switch, that is, detect the time from the action of the locking contactor to the connection of its corresponding locking travel switch. Alarm when the time is 1.8 - 2.3S, and report a fault when it exceeds 2.3S.

[0082] It should be noted that the detection process of switching to position R is similar to that of switching to position N, and will not be elaborated here.

[0083] The above-mentioned fault monitoring system decomposes the entire operation process of the switch into more than 130 sub-processes for detection. Since each sub-process in the conventional process detection method requires a high-resolution timer for detection, but the timers in the PLC controller are limited. In particular, the high-resolution timers with a resolution (time base) of 1 mS are very limited. Usually, there are only a few high-resolution timers with a resolution of 1 mS in a PLC controller. Therefore, the conventional process detection method cannot use the very limited high-resolution timers in a PLC controller to achieve the detection of hundreds or even thousands of sub-processes.

[0084] To solve the above problems, this application improves the implementation method of using the timer in the PLC controller for process detection, and proposes a method for implementing multiple process detections using a single timer.

[0085] As Figure 1 shown, the embodiment of this application provides a method for implementing multiple process detections using a single timer, which is applied to the straddle-type single-track switch. Among them, when the straddle-type single-track switch performs process detection, the preset control process of the switch is decomposed into several sub-processes according to the order of commands and / or device actions.

[0086] This method may include the following steps:

[0087] S1, when the start condition of the preset control process of the switch is satisfied, initialize the process detection data of all sub-processes of the preset control process of the switch, where the process detection data at least includes the actual time used by each sub-process at the current moment;

[0088] When it is necessary to use a single timer to implement the process detection of the straddle-type single-track switch, it is first necessary to initialize the process detection data of all sub-processes of the preset control process of the switch, that is, to reset the process detection data of all sub-processes of the preset control process of the switch at the beginning of the preset control process of the switch.

[0089] Specifically, the initialized process detection data at least includes the actual time used by each sub-process at the current moment.

[0090] Specifically, the preset control process of the switch refers to the entire working process of the switch of "given - unlocking - switching - locking - indication", that is, the total process of the switch switching.

[0091] It should be noted that whether the start condition of the preset control process of the switch is satisfied can be judged by the PLC controller according to the state data of each mechanism and device in the system collected by the corresponding state detection module in the fault monitoring system and the preset parameter thresholds. The judgment method and principle belong to the prior art and will not be elaborated here.

[0092] S2. When the initialization of the process detection data is completed, start a process detection timer to start timing.

[0093] After initializing the process detection data of all sub-processes of the turnout preset control process, start a process detection timer to start timing, that is, at the moment when the entire working process of "given - unlocking - switching - locking - indication" of the turnout starts, start a process detection timer to time the entire working process.

[0094] Specifically, the process detection timer in this embodiment uses a high-resolution timer with a time base of 1 mS.

[0095] S3. When the start condition of the current sub-process is satisfied, start the sub-process detection program corresponding to the current sub-process, record the current value Tnow of the process detection timer, and store the current value of the process detection timer into the time variable Tstart_x representing the start time of the current sub-process, that is, Tstart_x = Tnow, where x represents the number of the current sub-process, x = 1, 2, 3... n, and n is the number of all sub-processes of the turnout preset control process.

[0096] Since the turnout preset control process is decomposed into several sub-processes, in order to detect each sub-process and determine whether there is a fault in the sub-process, it is necessary to time the time used by each sub-process, so as to judge whether there is a fault according to the timing of each sub-process and the time it actually needs.

[0097] Also, because the turnout preset control process is decomposed into several sub-processes according to the sequence of instructions and / or device actions, that is, in all sub-processes included in the turnout preset control process, they are sorted in sequence, so only one or a small number of sub-processes will meet the start condition at each moment.

[0098] Therefore, when the start condition of the current sub-process is satisfied, the sub-process detection program corresponding to the current sub-process can be started, the current value Tnow of the process detection timer can be recorded, and the current value of the process detection timer can be stored into the time variable Tstart_x representing the start time of the current sub-process, that is, assign the current value of the process detection timer to the time variable Tstart_x representing the start time of the current sub-process.

[0099] It should be noted that whether the start condition of the current sub-process is satisfied can be judged by the PLC controller according to the state data of each mechanism and device in the system collected by the corresponding state detection module in the fault monitoring system and the preset parameter thresholds. The judgment method and principle belong to the prior art and will not be elaborated here.

[0100] S4. Determine the time variable Tuse_x of the actual elapsed time of the current subprocess at the current moment based on the current value Tnow of the process detection timer and the time variable Tstart_x of the start time of the current subprocess, where x represents the number of the current subprocess, x = 1, 2, 3... n, and n is the total number of subprocesses in the preset control process of the turnout;

[0101] After storing the current value of the process detection timer into the time variable Tstart_x representing the start time of the current subprocess, calculate the time variable Tuse_x of the actual elapsed time of the current subprocess at the current moment according to the current value Tnow of the process detection timer and the time variable Tstart_x of the start time of the current subprocess.

[0102] S5. Output the status information and / or preset control instruction corresponding to the current subprocess based on the time variable Tuse_x of the actual elapsed time of the current subprocess at the current moment.

[0103] Finally, according to the specific value of the time variable Tuse_x of the actual elapsed time of the current subprocess at the current moment, output the status information and / or preset control instruction corresponding to the current subprocess, so as to realize the fault monitoring and alarm handling of the turnout control system.

[0104] In summary, the embodiment of the present application provides a method for implementing multiple process detections using a single timer. During the process detection of a straddle-type single-track turnout, when the start condition of the preset control process of the turnout is satisfied, initialize the process detection data of all subprocesses in the preset control process of the turnout, where the process detection data at least includes the actual elapsed time of each subprocess at the current moment; when the initialization of the process detection data is completed, start a process detection timer to start timing; when the start condition of the current subprocess is satisfied, start the subprocess detection program corresponding to the current subprocess, record the current value Tnow of the process detection timer, and store the current value of the process detection timer into the time variable Tstart_x representing the start time of the current subprocess; determine the time variable Tuse_x of the actual elapsed time of the current subprocess at the current moment based on the current value Tnow of the process detection timer and the time variable Tstart_x of the start time of the current subprocess; output the status information and / or preset control instruction corresponding to the current subprocess based on the time variable Tuse_x of the actual elapsed time of the current subprocess at the current moment. The present application can realize the function of implementing multiple process detections using 1 timer, and the number of its process detections is theoretically infinite.

[0105] In one embodiment, the method may further include the following steps:

[0106] When the end condition of the current sub - process is met, or when the current value Tnow of the process detection timer reaches the preset total process duration threshold, the sub - process detection program of the current sub - process ends.

[0107] When the end condition of the preset switch control process is met, or when the current value Tnow of the process detection timer reaches the preset total process duration threshold, the total process detection program of the preset switch control process ends.

[0108] Among them, the preset total process duration threshold is greater than the actual total process duration required for the preset switch control process.

[0109] Specifically, the preset total process duration threshold is determined according to the actual total process duration required and the allowable delay time range. In this embodiment, the actual time required for the entire process of the switch to complete the switch (i.e., given - unlocking - switching - locking - indication) is within 15S. Since the preset total process duration threshold must be greater than the actual total process duration required for the preset switch control process, the preset total process duration threshold is set to 20S.

[0110] It should be noted that whether the end condition of the current sub - process is met, and whether the end condition of the preset switch control process is met, can be judged by the PLC controller according to the status data of each mechanism and device in the system collected by the corresponding status detection module in the fault monitoring system and the preset parameter threshold. The judgment method and principle belong to the prior art and will not be elaborated here.

[0111] In one embodiment, in step S4, the time variable Tuse_x for determining the actual time used by the current sub - process at the current moment based on the current value Tnow of the process detection timer and the time variable Tstart_x of the start time of the current sub - process includes:

[0112] In each program scan cycle, the time value obtained by subtracting the time variable Tstart_x of the start time of the current sub - process from the current value Tnow of the process detection timer is stored in the variable Tuse_x representing the actual time used by the current sub - process at the current moment, that is, Tuse_x = Tnow - Tstart_x.

[0113] In one embodiment, in step S5, the output of the status information and / or preset control instruction corresponding to the current sub - process based on the time variable Tuse_x of the actual time used by the current sub - process at the current moment includes:

[0114] Judge whether the time variable Tuse_x of the actual time used by the current sub - process at the current moment exceeds the preset warning value of the current sub - process and does not exceed the preset fault value of the current sub - process. If so, output a warning code, where the preset warning value of the current sub - process is less than the preset fault value of the current sub - process.

[0115] Determine whether the time variable Tuse_x of the actual time used at the current moment of the current sub-process exceeds the preset fault value of the current sub-process. If so, output a fault code and output a preset control instruction to disconnect the switch given instruction to stop the switch from operating.

[0116] In a specific example of this application, the implementation principle flowchart of the PLC program for realizing the detection of multiple processes by using a single timer is as Figure 2 shown. It can be seen from the figure that the timing processes of each sub-process are realized based on a single timer. There may be various situations such as sequential execution, parallel execution, and cross-execution in terms of time for each sub-process. However, each sub-process can realize the individual timing and fault judgment of each sub-process based on the same timer.

[0117] As Figure 3 shown, the embodiment of this application also provides a system for realizing the detection of multiple processes by using a single timer, which is applied to a straddle single-track switch. Among them, when the straddle single-track switch conducts process detection, the preset control process of the switch is decomposed into several sub-processes according to the sequence of instructions and / or device actions.

[0118] The system includes:

[0119] A data initialization module 201, configured to initialize the process detection data of all sub-processes of the preset control process of the switch when the start condition of the preset control process of the switch is satisfied, where the process detection data at least includes the actual time used at the current moment of each sub-process;

[0120] A timer start control module 202, configured to start a process detection timer to start timing when the initialization of the process detection data is completed;

[0121] A time variable assignment module 203, configured to start the sub-process detection program corresponding to the current sub-process when the start condition of the current sub-process is satisfied, record the current value Tnow of the process detection timer, and store the current value of the process detection timer into the time variable Tstart_x representing the start time of the current sub-process, that is, Tstart_x = Tnow, where x represents the number of the current sub-process, x = 1, 2, 3... n, and n is the number of all sub-processes of the preset control process of the switch;

[0122] A sub-process actual time determination module 204, configured to determine the time variable Tuse_x of the actual time used at the current moment of the current sub-process based on the current value Tnow of the process detection timer and the time variable Tstart_x of the start time of the current sub-process, where x represents the number of the current sub-process, x = 1, 2, 3... n, and n is the number of all sub-processes of the preset control process of the switch;

[0123] An information output control module 205, configured to output status information and / or preset control instructions corresponding to the current subprocess based on a time variable Tuse_x of the actual time used at the current moment of the current subprocess.

[0124] In one embodiment, the system further includes:

[0125] A process detection program end control module, configured to end the subprocess detection program of the current subprocess when the end condition of the current subprocess is satisfied, or when the current value Tnow of the process detection timer reaches a preset total process duration threshold.

[0126] When the end condition of the turnout preset control process is satisfied, or when the current value Tnow of the process detection timer reaches a preset total process duration threshold, end the total process detection program of the turnout preset control process.

[0127] Wherein, the preset total process duration threshold is greater than the actual total process duration required for the turnout preset control process.

[0128] In one embodiment, when the subprocess actual time used determination module 204 determines the time variable Tuse_x of the actual time used at the current moment of the current subprocess based on the current value Tnow of the process detection timer and the time variable Tstart_x of the start time of the current subprocess, it is specifically configured to:

[0129] In each program scan cycle, execute once to store the time value obtained by subtracting the time variable Tstart_x of the start time of the current subprocess from the current value Tnow of the process detection timer into the variable Tuse_x representing the actual time used at the current moment of the current subprocess, that is, Tuse_x = Tnow - Tstart_x.

[0130] In one embodiment, when the information output control module 205 outputs the status information and / or preset control instructions corresponding to the current subprocess based on the time variable Tuse_x of the actual time used at the current moment of the current subprocess, it is specifically configured to:

[0131] Judge whether the time variable Tuse_x of the actual time used at the current moment of the current subprocess exceeds the preset warning value of the current subprocess and does not exceed the preset failure value of the current subprocess. If so, output a warning code, wherein the preset warning value of the current subprocess is less than the preset failure value of the current subprocess;

[0132] Judge whether the time variable Tuse_x of the actual time used at the current moment of the current subprocess exceeds the preset failure value of the current subprocess. If so, output a failure code and output a preset control instruction to disconnect the turnout given instruction to stop the turnout from operating.

[0133] It should be noted that the system for implementing multiple process detections using a single timer in the above embodiments has the same working principle and technical effects as the method for implementing multiple process detections using a single timer in the above embodiments, and will not be elaborated here.

[0134] As Figure 4 shown, an embodiment of the present application further provides a device for implementing multiple process detections using a single timer. The device 3 for implementing multiple process detections using a single timer may include a memory 301, a processor 302, and a computer program 303 stored in the memory 301 and executable on the processor 302. Among them, the memory 301 and the processor 302 communicate with each other through a bus 304. When the processor 302 executes the computer program 303, it implements the steps of the method for implementing multiple process detections using a single timer as described in any one of the above method embodiments of the present application.

[0135] Specifically, the device 3 for implementing multiple process detections using a single timer may be an intelligent device such as an industrial control computer, a PC, or a smart mobile terminal that has a memory and a processor, or may be a computer component such as a CPU or a GPU that has a memory and a processor.

[0136] An embodiment of the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements the steps of the method for implementing multiple process detections using a single timer as described in any one of the above method embodiments of the present application.

[0137] In the description of the present application, a large number of specific details are set forth. However, it can be understood that the embodiments of the present application may be practiced without these specific details. In some instances, well-known methods, structures, and technologies are not shown in detail so as not to obscure the understanding of this specification.

[0138] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application, and they should all be covered by the scope of the claims and the description of the present application.

Claims

1. A method for realizing multiple process detection using a single timer, applied to a straddle-type single-track turnout, wherein: When the straddle-type monorail turnout is performing process detection, the turnout preset control process is decomposed into several sub-processes according to the sequence of instructions and / or device actions, and is characterized in that: The method comprises: When the start condition of the switch preset control process is met, the process detection data of all sub-processes of the switch preset control process are initialized, wherein the process detection data at least includes the actual time of each sub-process at the current moment; When the process detection data is initialized, a process detection timer is started to start timing; When the start condition of the current sub-process is met, the sub-process detection program corresponding to the current sub-process is started, the current value Tnow of the process detection timer is recorded, and the current value of the process detection timer is stored in the time variable Tstart_x representing the start time of the current sub-process, that is, Tstart_x=Tnow, wherein x represents the number of the current sub-process, x=1, 2, 3...n, and n is the number of all sub-processes of the switch preset control process; Determine the time variable Tuse_x of the actual time of the current sub-process at the current moment based on the current value Tnow of the process detection timer and the time variable Tstart_x of the start time of the current sub-process, wherein x represents the number of the current sub-process, x=1, 2, 3...n, and n is the number of all sub-processes of the switch preset control process; The time variable Tuse_x based on the actual time taken at the current moment of the current sub-process outputs the state information and / or preset control instructions corresponding to the current sub-process.

2. The method for realizing multiple process detection by using a single timer according to claim 1, characterized in that: The method further comprises: When the end condition of the current sub-process is met, or when the current value Tnow of the process detection timer reaches the preset total process duration threshold, the sub-process detection program of the current sub-process is terminated. When the end condition of the preset turnout control process is met, or the current value Tnow of the process detection timer reaches the preset total process duration threshold, the total process detection procedure of the preset turnout control process is terminated. Among them, the preset total process duration threshold is greater than the actual total process duration required for the preset control process of the turnout.

3. The method for realizing multiple process detection by using a single timer according to claim 1 or 2, characterized in that: The method of determining the actual time variable Tuse_x of the current sub-process at the current moment based on the current value Tnow of the process detection timer and the time variable Tstart_x of the start time of the current sub-process comprises: The process is executed once in each program scanning cycle, and the time value obtained by subtracting the time variable Tstart_x of the start time of the current sub-process from the current value Tnow of the process detection timer is stored in the variable Tuse_x representing the actual time used by the current sub-process at the current moment, that is, Tuse_x=Tnow-Tstart_x.

4. The method for realizing multiple process detection by using a single timer according to claim 1 or 2, characterized in that: The output of the state information and / or preset control instructions corresponding to the current sub-process based on the time variable Tuse_x of the actual time used at the current moment of the current sub-process includes: Determine whether the time variable Tuse_x of the actual time of the current subprocess at the current moment exceeds the preset warning value of the current subprocess and does not exceed the preset fault value of the current subprocess, and if so, output a warning code, wherein the preset warning value of the current subprocess is less than the preset fault value of the current subprocess; Determine whether the time variable Tuse_x of the actual time used at the current moment of the current sub-process exceeds the preset fault value of the current sub-process. If so, output a fault code and output a preset control instruction to disconnect the switch given instruction to stop the switch from running.

5. A system for realizing multiple process detection using a single timer, applied to a straddle-type single-track turnout, wherein: When the straddle-type monorail turnout is performing process detection, the turnout preset control process is decomposed into several sub-processes according to the sequence of instructions and / or device actions, and is characterized in that: The system comprises: A data initialization module, used for initializing the process detection data of all sub-processes of the turnout preset control process when the start condition of the turnout preset control process is met, wherein the process detection data at least includes the actual time of each sub-process at the current moment; A timer start control module, used to start a process detection timer to start timing when the process detection data is initialized; A time variable assignment module is used to start the sub-process detection program corresponding to the current sub-process when the start condition of the current sub-process is met, record the current value Tnow of the process detection timer, and store the current value of the process detection timer in the time variable Tstart_x representing the start time of the current sub-process, that is, Tstart_x=Tnow, wherein x represents the number of the current sub-process, x=1, 2, 3...n, and n is the number of all sub-processes of the switch preset control process; A sub-process actual time determination module is used to determine a time variable Tuse_x of the actual time of the current sub-process at the current moment based on the current value Tnow of the process detection timer and the time variable Tstart_x of the start time of the current sub-process, wherein x represents the number of the current sub-process, x=1, 2, 3...n, and n is the number of all sub-processes of the turnout preset control process; The information output control module is used to output the state information and / or preset control instructions corresponding to the current sub-process based on the time variable Tuse_x of the actual time used at the current moment of the current sub-process.

6. The system for realizing multiple process detection by using a single timer according to claim 5, characterized in that: The system further comprises: The process detection program end control module is used to end the sub-process detection program of the current sub-process when the end condition of the current sub-process is met or the current value Tnow of the process detection timer reaches the preset total process duration threshold, When the end condition of the preset turnout control process is met, or the current value Tnow of the process detection timer reaches the preset total process duration threshold, the total process detection procedure of the preset turnout control process is terminated. Among them, the preset total process duration threshold is greater than the actual total process duration required for the preset control process of the turnout.

7. The system for realizing multiple process detection by using a single timer according to claim 5 or 6, characterized in that: The sub-process actual time determination module is specifically used to determine the time variable Tuse_x of the actual time of the current sub-process at the current moment based on the current value Tnow of the process detection timer and the time variable Tstart_x of the current sub-process start time: The process is executed once in each program scanning cycle, and the time value obtained by subtracting the time variable Tstart_x of the start time of the current sub-process from the current value Tnow of the process detection timer is stored in the variable Tuse_x representing the actual time used by the current sub-process at the current moment, that is, Tuse_x=Tnow-Tstart_x.

8. The system for realizing multiple process detection by using a single timer according to claim 5 or 6, characterized in that: The information output control module is specifically used to: Determine whether the time variable Tuse_x of the actual time of the current subprocess at the current moment exceeds the preset warning value of the current subprocess and does not exceed the preset fault value of the current subprocess, and if so, output a warning code, wherein the preset warning value of the current subprocess is less than the preset fault value of the current subprocess; Determine whether the time variable Tuse_x of the actual time used at the current moment of the current sub-process exceeds the preset fault value of the current sub-process. If so, output a fault code and output a preset control instruction to disconnect the switch given instruction to stop the switch from running.

9. A device for realizing multiple process detection using a single timer, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method for realizing multiple process detection by using a single timer as described in any one of claims 1 to 4 are realized.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for realizing multiple process detection by using a single timer according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Fault monitoring system of straddle type monorail turnout redundancy control system

    CN117331300A

  • Intelligent redundancy control system for straddle type monorail turnout

    CN221225350U