Absolute displacement measurement method, device and equipment of switch machine indicating rod and storage medium
Patent Information
- Application Number
- CN202410341918.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-25
- Publication Date
- 2026-10-27
- Estimated Expiration
- 2044-03-25
AI Technical Summary
表示杆的实际使用过程中,相对位移的测量常常会产生累积误差,无法实现准确测量
[0011]本公开实施例的技术方案,通过在所述转辙机表示杆单向移动过程中,通过位移传感器上的读头读取所述转辙机表示杆的位移量,直至所述转辙机表示杆结束所述单向移动;其中,所述位移传感器放置于所述转辙机表示杆的正上方;若所述位移量为正值时,则基于所述位移量的增长状态以及所述增长状态对应的缝隙距离确定目标绝对位移距离;其中,所述缝隙距离包括第一缝隙距离和第二缝隙距离;所述第一缝隙距离为所述第一缝隙与所述位置参考标记的距离;所述第二缝隙距离为所述第二缝隙与所述位置参考标记的距离;若所述位移量为负值时,则基于所述位移量的减少状态以及所述减少状态对应的缝隙距离确定目标绝对位移距离。本公开实施例,通过位移量的增长状态以及增长状态对应的缝隙距离确定目标绝对位移距离或通过位移量的减少状态以及减少状态对应的缝隙距离确定目标绝对位移距离的方式,可以实现转辙机表示杆绝对位移的准确测量。
Smart Images

Figure CN118111311B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of absolute displacement measurement, and more particularly to a method, apparatus, device, and storage medium for measuring the absolute displacement of a switch machine indicator rod. Background Technology
[0002] Currently, the main method for measuring the displacement of the indicator rod of a switch machine is relative displacement measurement, which primarily records the change in displacement of the reading head relative to the indicator rod. However, in actual use, relative displacement measurement often results in cumulative errors, making accurate measurement impossible. Summary of the Invention
[0003] This disclosure provides a method, apparatus, device, and storage medium for measuring the absolute displacement of a switch machine indicator rod, which can achieve accurate measurement of the absolute displacement of the switch machine indicator rod and greatly improve the reliability of the switch machine indicator rod displacement data.
[0004] In a first aspect, embodiments of this disclosure provide a method for measuring the absolute displacement of a switch machine indicator rod, comprising: wherein the upper surface of the switch machine indicator rod includes three grooves and a magnetic strip, the magnetic strip being attached to the three grooves; two gaps between the three grooves divide the magnetic strip into three segments; wherein the first end of the magnetic strip includes a position reference mark; the two gaps are respectively designated as the first gap and the second gap from left to right; during the unidirectional movement of the switch machine indicator rod, the displacement of the switch machine indicator rod is read by a reading head on a displacement sensor until the switch machine indicator rod ends the unidirectional movement. The displacement sensor is positioned directly above the switch machine indicator rod. If the displacement is positive, the target absolute displacement distance is determined based on the increase in displacement and the gap distance corresponding to the increase. The gap distance includes a first gap distance and a second gap distance. The first gap distance is the distance between the first gap and the position reference mark. The second gap distance is the distance between the second gap and the position reference mark. If the displacement is negative, the target absolute displacement distance is determined based on the decrease in displacement and the gap distance corresponding to the decrease.
[0005] Secondly, this disclosure also provides an absolute displacement measuring device for a switch machine indicator pole, comprising: wherein the upper surface of the switch machine indicator pole includes three grooves and a magnetic strip, the magnetic strip being attached to the three grooves; two gaps between the three grooves divide the magnetic strip into three segments; wherein the first end of the magnetic strip includes a position reference mark; the two gaps are respectively designated as the first gap and the second gap from left to right; a displacement reading module, used to read the displacement of the switch machine indicator pole through a reading head on a displacement sensor during unidirectional movement of the switch machine indicator pole, until the switch machine indicator pole ends the unidirectional movement; wherein the displacement sensor... The device is placed directly above the switch machine indicator pole; the first target absolute displacement distance determination module is used to determine the target absolute displacement distance based on the growth state of the displacement and the gap distance corresponding to the growth state when the displacement is positive; wherein, the gap distance includes a first gap distance and a second gap distance; the first gap distance is the distance between the first gap and the position reference mark; the second gap distance is the distance between the second gap and the position reference mark; the second target absolute displacement distance determination module is used to determine the target absolute displacement distance based on the decrease state of the displacement and the gap distance corresponding to the decrease state when the displacement is negative.
[0006] Thirdly, embodiments of this disclosure also provide an electronic device, the electronic device comprising:
[0007] One or more processors;
[0008] Storage device for storing one or more programs.
[0009] When the one or more programs are executed by the one or more processors, the one or more processors implement the absolute displacement measurement method for the switch machine indicator rod as described in the embodiments of this disclosure.
[0010] Fourthly, embodiments of this disclosure also provide a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform the absolute displacement measurement method for a switch machine indicator rod as described in embodiments of this disclosure.
[0011] The technical solution of this disclosure involves reading the displacement of the switch indicator pole via a reading head on a displacement sensor during its unidirectional movement until the unidirectional movement ends. The displacement sensor is positioned directly above the switch indicator pole. If the displacement is positive, a target absolute displacement distance is determined based on the increase in displacement and the corresponding gap distance. The gap distance includes a first gap distance and a second gap distance. The first gap distance is the distance between the first gap and the position reference mark; the second gap distance is the distance between the second gap and the position reference mark. If the displacement is negative, the target absolute displacement distance is determined based on the decrease in displacement and the corresponding gap distance. This disclosure enables accurate measurement of the absolute displacement of the switch indicator pole by determining the target absolute displacement distance through either the increase in displacement and the corresponding gap distance or the decrease in displacement and the corresponding gap distance. Attached Figure Description
[0012] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.
[0013] Figure 1 This is a schematic diagram of a switch machine indicator rod provided in an embodiment of the present invention;
[0014] Figure 2 A schematic flowchart illustrating an absolute displacement measurement method for a switch machine indicator rod provided in an embodiment of this disclosure;
[0015] Figure 3 This is a structural diagram of the absolute displacement measurement system for the switch machine indicator rod provided in an embodiment of the present invention;
[0016] Figure 4 A schematic diagram of the absolute displacement measuring device for a switch machine indicator rod provided in an embodiment of this disclosure;
[0017] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0018] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0019] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0020] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0021] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0022] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0023] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.
[0024] In this embodiment of the invention, the displacement sensor is a magnetic grating displacement sensor with relative displacement measurement function. It converts the changing magnetic field into a displacement quantity by electromagnetically inducing the magnetic field around the reading head. The displacement sensor has two reading heads, one for positioning and one for reversing, used to measure the movement of the two switch machine indicator rods respectively.
[0025] In practical applications, two switch indicator rods operate simultaneously and are parallel. The method for measuring the absolute displacement of both rods is identical. During installation, the displacement sensor reading head is mounted inside the switch machine using a fixture. The original installation environment of the switch machine can be maintained during installation, and the fixture is secured using fasteners within the switch machine. The magnetic strip of the displacement sensor is installed in the grooves of the two indicator rods, ensuring that the strip is installed flat without protrusions or warping. This embodiment of the invention illustrates the method for measuring the absolute displacement of one switch indicator rod.
[0026] The top surface of the switch machine indicator rod includes three grooves and a magnetic strip, with the magnetic strip affixed to the three grooves. Two gaps between the three grooves divide the magnetic strip into three segments. The first end of each magnetic strip includes a position reference mark. The two gaps, from left to right, are designated as the first gap and the second gap, respectively. The three magnetic segments, from left to right, are designated as the first segment, the second segment, and the third segment, respectively. The absolute positions of the position reference mark, the first gap, and the second gap are predetermined. The lengths of the first and third segments can be equal, while the length of the second segment can be greater than either the first or the third segment.
[0027] The magnetic strip is formed by continuously alternating N and S poles. A continuously changing magnetic field is formed around the magnetic strip, and the displacement sensor reflects the change in magnetic field as a change in displacement.
[0028] The displacement sensor is positioned directly above the switch machine indicator rod (e.g., at a distance of 2 mm), with the portion of the reading head parallel to the direction of movement of the switch machine. A magnetic strip is attached to the surface directly above the switch machine indicator rod. The displacement sensor primarily measures the change in the magnetic field of the magnetic strip. This change in the magnetic field is correlated with the magnitude of the displacement of the switch machine indicator rod, and the displacement of the indicator rod relative to the displacement sensor is obtained from the change in the magnetic field.
[0029] The gap between each magnetic strip can be 10mm. When the switch machine is working and the indicator rod is displaced, the magnetic strip will pass through the sensing area at the bottom of the reading head without contact.
[0030] Since the inside of the magnetic strip is considered as a continuous and tightly connected N and S poles, the displacement sensor senses changes in the magnetic field, and the displacement is expressed as the number of magnetic field changes. Therefore, when the displacement sensor detects a gap on the indicator rod, it cannot detect any change in the magnetic field, and the displacement will not change.
[0031] In practical applications, the displacement sensor moves relative to the magnetic strip, and the displacement sensor records the displacement data, which is the absolute displacement distance of the target.
[0032] The position of the slit is a definite value, representing the precise position of the indicator rod. The magnetic strip has two slits, and the distances from the reference mark (notch position) to the indicator rod's position can be 88mm and 198mm respectively; for example... Figure 1 Show, Figure 1 This is a schematic diagram of a switch machine indicator rod provided in an embodiment of the present invention.
[0033] Figure 2 This is a schematic flowchart illustrating a method for measuring the absolute displacement of a switch machine indicator rod according to an embodiment of this disclosure. This embodiment is applicable to situations where the displacement of a switch machine indicator rod is measured using a displacement sensor. The method can be executed by an absolute displacement measuring device for the switch machine indicator rod. This device can be implemented in software and / or hardware, optionally through an electronic device, such as a mobile terminal, PC, or server. Figure 2 As shown, the method includes:
[0034] S210. During the unidirectional movement of the switch indicator rod, the displacement of the switch indicator rod is read by the reading head on the displacement sensor until the switch indicator rod ends the unidirectional movement.
[0035] In this embodiment, the switch indicator rod is moving, while the displacement sensor is stationary. The unidirectional movement of the switch indicator rod can be from left to right or from right to left.
[0036] Specifically, when the switch machine is working and the switch machine indicator rod moves, the displacement of the switch machine indicator rod is detected by the reading head on the displacement sensor. When the detected displacement does not change for a short period of time, it indicates that the current detection position of the reading head is in the gap. By measuring the displacement after the gap, the specific gap can be determined. The accurate position of the current indicator rod, that is, the absolute displacement distance of the target, can be obtained by comparing the detection position of the reading head with the displacement of the previous gap and the absolute position of the gap.
[0037] S220. If the displacement is positive, the target absolute displacement distance is determined based on the growth state of the displacement and the gap distance corresponding to the growth state.
[0038] The gap distance includes a first gap distance and a second gap distance; the first gap distance is the distance between the first gap and the position reference mark; the second gap distance is the distance between the second gap and the position reference mark.
[0039] In this embodiment, if the direction of unidirectional movement of the switch indicator rod can be from left to right, that is, the positive direction of the relative displacement between the reading head and the magnetic strip will generate a positive displacement amount, the target absolute displacement distance is determined based on the growth state of the displacement amount and the gap distance corresponding to the growth state.
[0040] In this embodiment, the displacement can be understood as the real-time accumulated displacement, which is reset each time the gap is reached. The target absolute displacement distance can be understood as the displacement after correcting the real-time accumulated displacement, or as the data after correcting the absolute position data of the detection position at the current moment.
[0041] The growth states include a first growth state, a second growth state, and a third growth state.
[0042] Optionally, determining the target absolute displacement distance based on the growth state of the displacement and the gap distance corresponding to the growth state includes: if the displacement continues to increase within a first predetermined time period before the current moment, then the displacement at the current moment is in a first growth state; if the displacement stops increasing within a second predetermined time period before the current moment, then the displacement at the current moment is in a second growth state; if the displacement includes both stopping and continuous growth within a third predetermined time period before the current moment, then the displacement at the current moment is in a third growth state; wherein the third predetermined time period is less than the second predetermined time period; and determining the target absolute displacement distance at the current moment based on the third growth state of the displacement at the current moment and the gap distance corresponding to the third growth state.
[0043] In this embodiment, when the detected displacement is positive, it indicates that the displacement sensor is moving away from the position reference mark relative to the indicator rod. This means that the displacement has been increasing within the first set time period before the current moment, indicating that the displacement sensor and the indicator rod are generating relative displacement and the indicator rod is working. At this time, it is necessary to continuously query the growth status of the displacement.
[0044] If the displacement stops increasing within the second preset time period prior to the current moment, the displacement at the current moment is in a second growth state. Based on this, if the reader does not reach the target position, it indicates that the displacement sensor has not encountered a gap but is experiencing a jam, and a warning can be issued. If the displacement stops increasing within the second preset time period prior to the current moment, and the reader reaches the target position, the absolute target displacement distance at the current moment can be determined and compared with the length of the magnetic strip.
[0045] If the displacement within the third predetermined time period prior to the current moment successively includes both a halt in growth and continuous growth (i.e., the displacement briefly stops growing), then the displacement at the current moment is in the third growth state. This also indicates that the displacement sensor has detected a gap in the magnetic strip. The next step is to determine whether the detected gap belongs to the first or second gap based on the continuous growth scenario. The target absolute displacement distance at the current moment is determined based on the third growth state of the displacement at the current moment and the gap distance corresponding to the third growth state.
[0046] The third set duration is shorter than the second set duration. In this embodiment, the specific first, second, and third set durations are not limited and can be determined according to the actual situation.
[0047] For example, when the switch indicator rod moves, the displacement of the switch indicator rod is detected by the reader on the displacement sensor. The detection and reading of the displacement begins from the first end of the first magnetic strip. Before detecting the first gap, the displacement continuously increases in real time; this can be considered the first growth state. Growth stops at the first gap, but continues after passing the first gap; this can be considered the third growth state. After passing the first gap, the displacement resets and begins to increase again. Similarly, growth stops at the second gap, but continues after passing the second gap; this can be considered the third growth state. After passing the second gap, the displacement resets and begins to increase again. If growth stops, whether the reader reaches the target position or not, it can be considered to be in the second growth state.
[0048] In this embodiment, the displacement is reset each time the magnetic strip gap is reached, in order to eliminate errors.
[0049] Optionally, determining the target absolute displacement distance at the current moment based on the third growth state of the displacement at the current moment and the gap distance corresponding to the third growth state includes: if the continuously increasing displacement corresponding to the third growth state is greater than the length of the first magnetic strip, then the first detection position corresponding to the reading head at the current moment falls between the first gap and the second gap; obtaining the first absolute displacement distance between the first detection position and the first gap; and determining the target absolute displacement distance at the current moment based on the first absolute displacement distance and the first gap distance.
[0050] It should be noted that if the continuously increasing displacement corresponding to the third growth state is greater than the length of the first magnetic strip, it indicates that the read head has passed the first gap, meaning that the first detection position of the read head at the current moment falls between the first gap and the second gap. The displacement at the current moment is obtained; this displacement is the continuously increasing displacement of the read head after passing the first gap, which is also the first absolute displacement distance between the first detection position and the first gap. The sum of the first absolute displacement distance and the distance of the first gap is taken as the target absolute displacement distance at the current moment.
[0051] Optionally, determining the target absolute displacement distance at the current moment based on the third growth state of the displacement at the current moment and the gap distance corresponding to the third growth state includes: if the continuously increasing displacement corresponding to the third growth state is less than or equal to the length of the third magnetic strip and the displacement at the current moment stops increasing, then the second detection position corresponding to the read head at the current moment falls between the second gap and the end of the third magnetic strip; obtaining the second absolute displacement distance between the second detection position and the second gap; and determining the target absolute displacement distance at the current moment based on the second absolute displacement distance and the second gap distance.
[0052] It should be noted that if the continuously increasing displacement corresponding to the third growth state is less than or equal to the length of the third magnetic strip and the displacement at the current moment stops increasing, it indicates that the read head has passed the second gap, that is, the second detection position corresponding to the read head at the current moment falls between the second gap and the end of the third magnetic strip; obtain the displacement corresponding to the current moment, which is the displacement between the second detection position corresponding to the read head at the current moment and the second gap, that is, the second absolute displacement distance; add the second absolute displacement distance and the second gap distance together as the target absolute displacement distance at the current moment.
[0053] Optionally, if the displacement amount stops increasing continuously within the second predetermined time period before the current moment, and the displacement amount at the current moment is in the second growth state, the method further includes: if the third detection position corresponding to the reading head of the displacement amount at the current moment is after the second gap, then determining whether there is a power failure warning message; if there is a power failure warning message, generating corresponding fault information; if there is no power failure warning message, obtaining the third absolute displacement distance between the third detection position and the second gap; and determining the target absolute displacement distance at the current moment based on the third absolute displacement distance and the distance of the second gap.
[0054] It should be noted that in the growth state, a power outage will cause the displacement to be lost for a period of time. When the power outage occurs before the second gap in the displacement sensor in a single direction relative to the magnetic strip, it will not affect the judgment of the target's absolute displacement distance.
[0055] If the third detection position corresponding to the displacement reading head at the current moment is after the second gap, it is determined whether there is a power failure warning message. If there is a power failure warning message, corresponding fault information is generated; the fault information may indicate that the device result is incorrect. If there is no power failure warning message, the displacement between the third detection position and the second gap is obtained, that is, the third absolute displacement distance. The sum of the third absolute displacement distance and the distance of the second gap is taken as the target absolute displacement distance at the current moment.
[0056] During displacement measurement, the displacement sensor itself has a small error. However, over a long period, this error accumulates and eventually leads to a larger error. Therefore, in this invention, the displacement is set as the sum of the gap distance and the displacement after passing through the gap when the sensor and magnetic strip move relative to each other. The displacement is reset after each gap position acquisition, thus greatly eliminating the impact of accumulated errors. In this embodiment, calculating the specific displacement using the gap distance eliminates absolute errors.
[0057] During the operation of the displacement sensor, the displacement is stored in the acquisition unit. The gap detection record and the displacement data after the gap will be lost if the equipment (such as the acquisition unit) loses power. This will cause the displacement sensor to be unable to output the effective target absolute displacement distance.
[0058] In this embodiment, after power is restored, the displacement will be consistent with the displacement last collected before the power failure. During the operation of the displacement sensor, the displacement is continuously detected. If the acquisition unit does not receive the displacement of the sensor within a set time period, it indicates that the acquisition unit may have lost power.
[0059] In this embodiment, after the reading head passes through the first gap, the target absolute displacement distance is set as the first gap distance and the first absolute displacement distance. This ensures that the displacement sensor maintains an accurate displacement before passing through the last gap in the same direction, and will not cause measurement errors due to displacement generated during the power failure of the acquisition unit.
[0060] In this embodiment, if a power failure occurs after the reader passes through the last gap, the error cannot be avoided by setting the target absolute displacement distance, and an alarm must be triggered through a corresponding procedure. Each time the reader passes through a gap, the displacement is continuously detected. If the displacement stops increasing, and the data acquisition unit did not record the displacement in the previous moment, a power failure warning message is generated. If the reader stops increasing after passing through the last gap in the same displacement direction, and a power failure alarm is triggered simultaneously, it indicates that a data anomaly may have occurred due to a power outage.
[0061] In this embodiment, after passing through the first gap, the power outage will not significantly affect the final target absolute displacement distance. The anomaly only occurs after passing through the second gap. Therefore, after passing through the first gap and receiving a power outage warning, if the continuously increasing displacement is significant, and the displacement at a certain moment is set absolutely (i.e., by setting the gap distance), the power outage warning information can be eliminated to avoid misjudgment when judging after the second gap.
[0062] Optionally, after determining the target absolute displacement distance at the current moment based on the third absolute displacement distance and the second gap distance, the method further includes: if the target absolute displacement distance is inconsistent with the length of the magnetic strip, then generating corresponding alarm information.
[0063] In this embodiment, when the railway is switching points, the system determines whether the target absolute displacement distance of the switch machine indicator rod is consistent with the length of the magnetic strip in order to detect whether the switch rail and the stock rail are fully in contact.
[0064] In this embodiment, when the continuously increasing displacement corresponding to the third growth state is less than or equal to the length of the third magnetic strip and the displacement at the current moment stops increasing, the target absolute displacement distance is determined by the second gap distance, and compared with the length of the magnetic strip. If the target absolute displacement distance is inconsistent with the length of the magnetic strip, a corresponding alarm message is generated, and fault handling is performed. The alarm message may indicate that the switch rail and the base rail are not fully aligned. If the target absolute displacement distance is consistent with the length of the magnetic strip, it indicates that the switch rail and the base rail are aligned. The length of the magnetic strip is the total length of the magnetic strip, i.e., the sum of the lengths of the first, second, and third magnetic strips.
[0065] S230. If the displacement is negative, the target absolute displacement distance is determined based on the decreasing state of the displacement and the gap distance corresponding to the decreasing state.
[0066] In this embodiment, if the direction of the unidirectional movement of the switch indicator rod can be from right to left, that is, the opposite direction of the relative displacement between the reading head and the magnetic strip will produce a negative displacement amount, the target absolute displacement distance is determined based on the reduction state of the displacement amount and the gap distance corresponding to the reduction state.
[0067] The reduction states include a first reduction state, a second reduction state, and a third reduction state. Optionally, determining the target absolute displacement distance based on the reduction states of the displacement and the gap distance corresponding to the reduction states includes: if the displacement continuously decreases within a first predetermined time period before the current moment, the displacement at the current moment is in a first reduction state; if the displacement stops decreasing within a second predetermined time period before the current moment, the displacement at the current moment is in a second reduction state; if the displacement sequentially includes both stopping decreasing and continuously decreasing within a third predetermined time period before the current moment, the displacement at the current moment is in a third reduction state; wherein the third predetermined time period is less than the second predetermined time period; and determining the target absolute displacement distance at the current moment based on the third reduction state of the displacement at the current moment and the gap distance corresponding to the third reduction state.
[0068] In this embodiment, when the displacement is detected to be negative, it indicates that the displacement sensor is moving closer to the reference mark relative to the indicator rod, which means that the displacement has been decreasing in the first set time period before the current moment, and the displacement at the current moment is in the first decreasing state.
[0069] If the displacement stops decreasing within the second preset time period prior to the current moment, the displacement at the current moment is in a second decreasing state. Based on this, if the reading head does not reach the target position, it indicates that the displacement sensor has not encountered a gap but is experiencing a jam, and a warning can be issued. If the displacement stops decreasing within the second preset time period prior to the current moment, and the reading head reaches the target position, the absolute target displacement distance at the current moment can be determined and compared with the length of the magnetic strip.
[0070] If the displacement within the third predetermined time period prior to the current moment successively includes both a halt in decreasing and a continuous decrease (i.e., the displacement briefly stops decreasing), then the displacement at the current moment is in the third decreasing state. This also indicates that the displacement sensor has detected a gap in the magnetic strip. The next step is to determine whether the detected gap belongs to the first gap or the second gap based on the continuous decreasing situation. The target absolute displacement distance at the current moment is determined based on the third decreasing state of the displacement at the current moment and the gap distance corresponding to the third decreasing state.
[0071] The third set duration is shorter than the second set duration. In this embodiment, the specific first, second, and third set durations are not limited and can be determined according to the actual situation.
[0072] For example, when the switch indicator rod moves, the displacement of the switch indicator rod is detected by the reader on the displacement sensor. The detection and reading of the displacement begins from the tail end of the third magnetic strip. Before detecting the second gap, the displacement continuously decreases in real time; this decrease can be considered the first decreasing state. The displacement stops decreasing upon reaching the second gap, and continues decreasing after passing the second gap; this decrease can be considered the third decreasing state. After passing the second gap, the displacement resets and begins decreasing again. Similarly, the displacement stops decreasing upon reaching the first gap, and continues decreasing after passing the first gap; this decrease can be considered the third decreasing state. After passing the first gap, the displacement resets and begins decreasing again. If the displacement stops decreasing, whether the reader reaches the target position or not, it can be considered to be in the second decreasing state.
[0073] Optionally, determining the target absolute displacement distance at the current moment based on the third decreasing state of the displacement at the current moment and the gap distance corresponding to the third decreasing state includes: if the absolute value of the continuously decreasing displacement corresponding to the third decreasing state is greater than the length of the third magnetic strip, then the fifth detection position of the read head at the current moment is located between the first gap and the second gap; obtaining the fourth absolute displacement distance between the fifth detection position and the second gap; and determining the target absolute displacement distance based on the fourth absolute displacement distance and the gap distance.
[0074] It should be noted that if the absolute value of the continuously decreasing displacement corresponding to the third decreasing state is greater than the length of the third magnetic strip, it indicates that the read head has passed the second gap, meaning that the fifth detection position of the read head at the current moment is located between the first and second gaps. The displacement at the current moment is obtained; this displacement is the absolute value of the continuously decreasing displacement after the read head passes the second gap, which is also the fourth absolute displacement distance between the fifth detection position and the second gap. The difference between the second gap distance and the fourth absolute displacement distance is taken as the target absolute displacement distance at the current moment.
[0075] Optionally, determining the target absolute displacement distance at the current moment based on the third decreasing state of the displacement at the current moment and the gap distance corresponding to the third decreasing state includes: if the absolute value of the continuously decreasing displacement corresponding to the third decreasing state is less than or equal to the length of the first magnetic strip and the displacement at the current moment stops decreasing, then the sixth detection position of the read head at the current moment is located between the first gap and the beginning of the first magnetic strip; obtaining the fifth absolute displacement distance between the sixth detection position and the first gap; and determining the target absolute displacement distance based on the fifth absolute displacement distance and the first gap distance.
[0076] In this embodiment, if the absolute value of the continuously decreasing displacement corresponding to the third decreasing state is less than or equal to the length of the first magnetic strip and the displacement at the current moment stops decreasing, it indicates that the read head has passed the first gap, that is, the sixth detection position of the read head at the current moment is located between the first gap and the beginning of the first magnetic strip; the displacement corresponding to the current moment is obtained, which is the absolute value of the displacement of the sixth detection position of the read head at the current moment and the displacement of the first gap, that is, the fifth absolute displacement distance; the difference between the first gap distance and the fifth absolute displacement distance is taken as the target absolute displacement distance.
[0077] Optionally, after the displacement amount stops decreasing within the second predetermined time period prior to the current moment, and the displacement amount at the current moment is in a second decreasing state, the method further includes: if the seventh detection position corresponding to the reading head of the displacement amount at the current moment is before the first gap, then determining whether there is a power failure warning message; if there is a power failure warning message, generating corresponding fault information; if there is no power failure warning message, obtaining the sixth absolute displacement distance between the seventh detection position and the first gap; and determining the target absolute displacement distance at the current moment based on the sixth absolute displacement distance and the distance to the first gap.
[0078] In this embodiment, in the reduced state, a power outage will cause the displacement to be lost for a period of time. When the power outage occurs after the first gap in a single direction relative to the magnetic strip, it will not affect the determination of the target absolute displacement distance. If the seventh detection position corresponding to the current displacement reading head is before the first gap, it is determined whether there is a power outage warning message; if there is a power outage warning message, the corresponding fault information is generated; if there is no power outage warning message, the absolute value of the displacement between the seventh detection position and the first gap is obtained, which is the sixth absolute displacement distance; the difference between the first gap distance and the sixth absolute displacement distance is taken as the target absolute displacement distance at the current moment.
[0079] Optionally, after determining the target absolute displacement distance at the current moment based on the sixth absolute displacement distance and the first gap distance, the method further includes: if the target absolute displacement distance is not equal to a set value, then generating corresponding alarm information.
[0080] In this embodiment, when the absolute value of the continuously decreasing displacement corresponding to the third decreasing state is less than or equal to the length of the first magnetic strip and the displacement at the current moment stops decreasing, the target absolute displacement distance is determined by the first gap distance, and compared with a set value. If the target absolute displacement distance is not equal to the set value, a corresponding alarm message is generated, and fault handling is performed. The alarm message may indicate that the switch rail and the base rail are not in contact. If the target absolute displacement distance is equal to the set value, it indicates that the switch rail and the base rail are in contact. The set value can be 0.
[0081] The absolute displacement measurement method for the switch machine indicator rod provided in this embodiment can effectively measure the displacement of the switch machine indicator rod, eliminate the cumulative error generated during the measurement process and the error caused by power failure of the equipment, realize the accurate measurement of displacement data, and effectively monitor whether the displacement data of the switch machine indicator rod is in normal contact with the switch rail.
[0082] It should be noted that the displacement value is random when the equipment is first powered on, which causes the position data of the displacement sensor to mismatch with the actual position before the first position is set. A self-test is performed before the equipment starts operating. During the self-test, accurate displacement data is acquired, and the last reading of the displacement sensor is recorded. This reading is then set as the initial position data for the equipment during operation. In other words, the initial position of the reading head, i.e., the beginning or end of the magnetic strip, is determined through one or more movements of the switch machine's indicator rod.
[0083] It should be noted that the displacement sensor is powered by the data acquisition unit. During operation, the displacement sensor can use an STM32F407 microcontroller as the main controller. After acquiring the target's absolute displacement distance, the displacement sensor communicates with the data acquisition unit via RS485 communication to transmit data or for the data acquisition unit to send commands. Specifically, the target's absolute displacement distance can be converted into an electrical signal. The data acquisition unit receives and processes the output signal from the displacement sensor. The power line carrier communication module is connected to the host computer via an Ethernet port and to the data acquisition unit via a power line, enabling power line carrier communication between the data acquisition unit and the host computer. That is, the data acquisition unit sends the target's absolute displacement distance to the host computer via power line carrier communication. The host computer processes the target's absolute displacement distance, such as drawing the corresponding target absolute displacement distance image (displacement image) in the host computer software. Both the data acquisition unit and the power line carrier communication module are connected to the power supply module. Figure 3 As shown, Figure 3 This is a structural diagram of the absolute displacement measurement system for the switch machine indicator rod provided in an embodiment of the present invention.
[0084] The technical solution of this disclosure involves reading the displacement of the switch indicator pole via a reading head on a displacement sensor during its unidirectional movement until the unidirectional movement ends. The displacement sensor is positioned directly above the switch indicator pole. If the displacement is positive, a target absolute displacement distance is determined based on the increase in displacement and the corresponding gap distance. The gap distance includes a first gap distance and a second gap distance. The first gap distance is the distance between the first gap and the position reference mark; the second gap distance is the distance between the second gap and the position reference mark. If the displacement is negative, the target absolute displacement distance is determined based on the decrease in displacement and the corresponding gap distance. This disclosure enables accurate measurement of the absolute displacement of the switch indicator pole by determining the target absolute displacement distance through either the increase in displacement and the corresponding gap distance or the decrease in displacement and the corresponding gap distance.
[0085] Figure 4 This is a schematic diagram of the absolute displacement measuring device for a switch machine indicator rod provided in an embodiment of this disclosure, as shown below. Figure 4 As shown, the device includes: a displacement reading module 410, a first target absolute displacement distance determination module 420, and a second target absolute displacement distance determination module 430.
[0086] The top surface of the switch machine indicator rod includes three grooves and a magnetic strip, the magnetic strip being attached to the three grooves; two gaps between the three grooves divide the magnetic strip into three segments; the first end of the magnetic strip includes a position reference mark; the two gaps from left to right are respectively designated as the first gap and the second gap;
[0087] The displacement reading module 410 is used to read the displacement of the switch indicator rod through the reading head on the displacement sensor during the unidirectional movement of the switch indicator rod until the switch indicator rod ends the unidirectional movement; wherein the displacement sensor is placed directly above the switch indicator rod.
[0088] The first target absolute displacement distance determination module 420 is used to determine the target absolute displacement distance based on the growth state of the displacement and the gap distance corresponding to the growth state when the displacement is positive; wherein, the gap distance includes a first gap distance and a second gap distance; the first gap distance is the distance between the first gap and the position reference mark; the second gap distance is the distance between the second gap and the position reference mark;
[0089] The second target absolute displacement distance determination module 430 is used to determine the target absolute displacement distance based on the decreasing state of the displacement and the gap distance corresponding to the decreasing state when the displacement is negative.
[0090] The technical solution of this disclosure embodiment uses a displacement reading module to read the displacement of the switch indicator pole during its unidirectional movement via a reading head on a displacement sensor until the switch indicator pole ends its unidirectional movement. The displacement sensor is positioned directly above the switch indicator pole. If the displacement is positive, a first target absolute displacement distance determination module determines the target absolute displacement distance based on the increase in displacement and the corresponding gap distance. The gap distance includes a first gap distance and a second gap distance. The first gap distance is the distance between the first gap and the position reference mark; the second gap distance is the distance between the second gap and the position reference mark. If the displacement is negative, the second target absolute displacement distance determination module determines the target absolute displacement distance based on the decrease in displacement and the corresponding gap distance. In this embodiment of the disclosure, the target absolute displacement distance can be accurately measured by determining the target absolute displacement distance through the displacement increase state and the gap distance corresponding to the increase state, or by determining the target absolute displacement distance through the displacement decrease state and the gap distance corresponding to the decrease state.
[0091] The growth states include a first growth state, a second growth state, and a third growth state. Optionally, the first target absolute displacement distance determination module is specifically used for: if the displacement amount continuously increases within the first predetermined time period before the current moment, then the displacement amount at the current moment is in the first growth state; if the displacement amount continuously stops increasing within the second predetermined time period before the current moment, then the displacement amount at the current moment is in the second growth state; if the displacement amount sequentially includes both stopping growth and continuous growth within the third predetermined time period before the current moment, then the displacement amount at the current moment is in the third growth state; wherein the third predetermined time period is less than the second predetermined time period; and determining the target absolute displacement distance at the current moment based on the third growth state of the displacement amount at the current moment and the gap distance corresponding to the third growth state.
[0092] The three magnetic strips are referred to as the first magnetic strip, the second magnetic strip, and the third magnetic strip from left to right, respectively. Optionally, the first target absolute displacement distance determination module is further configured to: if the continuously increasing displacement corresponding to the third growth state is greater than the length of the first magnetic strip, then the first detection position corresponding to the reading head at the current moment falls between the first gap and the second gap; obtain the first absolute displacement distance between the first detection position and the first gap; and determine the target absolute displacement distance at the current moment based on the first absolute displacement distance and the first gap distance.
[0093] Optionally, the first target absolute displacement distance determination module is further configured to: if the continuously increasing displacement corresponding to the third growth state is less than or equal to the length of the third magnetic strip and the displacement at the current moment stops increasing, then the second detection position corresponding to the reading head at the current moment falls between the second gap and the end of the third magnetic strip; obtain the second absolute displacement distance between the second detection position and the second gap; and determine the target absolute displacement distance at the current moment based on the second absolute displacement distance and the second gap distance.
[0094] Optionally, the above device further includes a third target absolute displacement distance determination module. If the displacement amount stops increasing within the second predetermined time period prior to the current moment, and the displacement amount at the current moment is in a second increasing state, the third target absolute displacement distance determination module is specifically used for: if the third detection position corresponding to the reading head of the displacement amount at the current moment is after the second gap, then determining whether there is a power failure warning message; if there is a power failure warning message, generating corresponding fault information; if there is no power failure warning message, obtaining the third absolute displacement distance between the third detection position and the second gap; and determining the target absolute displacement distance at the current moment based on the third absolute displacement distance and the distance to the second gap.
[0095] The reduction states include a first reduction state, a second reduction state, and a third reduction state. Optionally, the second target absolute displacement distance determination module is specifically used for: if the displacement amount continuously decreases within the first predetermined time period before the current moment, then the displacement amount at the current moment is in the first reduction state; if the displacement amount continuously stops decreasing within the second predetermined time period before the current moment, then the displacement amount at the current moment is in the second reduction state; if the displacement amount sequentially includes both stopping decreasing and continuously decreasing within the third predetermined time period before the current moment, then the displacement amount at the current moment is in the third reduction state; and determining the target absolute displacement distance at the current moment based on the third reduction state of the displacement amount at the current moment and the gap distance corresponding to the third reduction state.
[0096] Optionally, the second target absolute displacement distance determination module is further configured to: if the absolute value of the continuously decreasing displacement corresponding to the third decreasing state is greater than the length of the third magnetic strip, then the fifth detection position of the reading head at the current moment is located between the first gap and the second gap; obtain the fourth absolute displacement distance between the fifth detection position and the second gap; and determine the target absolute displacement distance based on the fourth absolute displacement distance and the second gap distance.
[0097] Optionally, the second target absolute displacement distance determination module is further configured to: if the absolute value of the continuously decreasing displacement corresponding to the third decreasing state is less than or equal to the length of the first magnetic strip and the displacement at the current moment stops decreasing, then the sixth detection position of the reading head at the current moment is located between the first gap and the first end of the first magnetic strip; obtain the fifth absolute displacement distance between the sixth detection position and the first gap; and determine the target absolute displacement distance based on the fifth absolute displacement distance and the distance of the first gap.
[0098] Optionally, the above device further includes a fourth target absolute displacement distance determination module. If the displacement amount stops decreasing within the second predetermined time period prior to the current moment, and the displacement amount at the current moment is in a second decreasing state, the fourth target absolute displacement distance determination module is specifically used for: if the seventh detection position corresponding to the reading head of the displacement amount at the current moment is before the first gap, then determining whether there is a power failure warning message; if there is a power failure warning message, generating corresponding fault information; if there is no power failure warning message, obtaining the sixth absolute displacement distance between the seventh detection position and the first gap; and determining the target absolute displacement distance at the current moment based on the sixth absolute displacement distance and the distance to the first gap.
[0099] Optionally, the above device further includes a first alarm module. After determining the target absolute displacement distance at the current moment based on the third absolute displacement distance and the second gap distance, the first alarm module is specifically used to generate corresponding alarm information if the target absolute displacement distance is inconsistent with the length of the magnetic strip.
[0100] Optionally, the above device further includes a second alarm module. After determining the target absolute displacement distance at the current moment based on the sixth absolute displacement distance and the first gap distance, the second alarm module is specifically used to generate corresponding alarm information if the target absolute displacement distance is not equal to a set value.
[0101] The absolute displacement measuring device for the switch indicator rod provided in this disclosure can execute the absolute displacement measuring method for the switch indicator rod provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects for executing the method.
[0102] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of this disclosure.
[0103] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Reference is made below. Figure 5 It illustrates an electronic device suitable for implementing embodiments of the present disclosure (e.g., Figure 5 The diagram below shows the structure of the terminal device or server 500. The terminal device in this embodiment may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and vehicle terminals (e.g., vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 5 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0104] like Figure 5 As shown, electronic device 500 may include a processing unit (e.g., central processing unit, graphics processor, etc.) 501, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 502 or a program loaded from storage device 508 into random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of electronic device 500. The processing unit 501, ROM 502, and RAM 503 are interconnected via bus 504. An edit / output (I / O) interface 505 is also connected to bus 504.
[0105] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 508 including, for example, magnetic tapes, hard disks, etc.; and communication devices 509. Communication device 509 allows electronic device 500 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 5 An electronic device 500 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0106] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, it performs the functions defined in the methods of embodiments of this disclosure.
[0107] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0108] The electronic device provided in this embodiment and the absolute displacement measurement method of the switch machine indicator rod provided in the above embodiment belong to the same inventive concept. Technical details not described in detail in this embodiment can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.
[0109] This disclosure provides a computer storage medium storing a computer program that, when executed by a processor, implements the absolute displacement measurement method for the switch machine indicator rod provided in the above embodiments.
[0110] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0111] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.
[0112] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0113] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to: wherein the upper surface of the switch indicator rod includes three grooves and a magnetic strip, the magnetic strip being affixed to the three grooves; two gaps between the three grooves divide the magnetic strip into three segments; wherein the first end of the magnetic strip includes a position reference mark; the two gaps, from left to right, are respectively designated as the first gap and the second gap; during the unidirectional movement of the switch indicator rod, the displacement of the switch indicator rod is read by a reading head on a displacement sensor until the switch indicator... The lever terminates the unidirectional movement; wherein, the displacement sensor is placed directly above the switch machine indicator lever; if the displacement is positive, the target absolute displacement distance is determined based on the growth state of the displacement and the gap distance corresponding to the growth state; wherein, the gap distance includes a first gap distance and a second gap distance; the first gap distance is the distance between the first gap and the position reference mark; the second gap distance is the distance between the second gap and the position reference mark; if the displacement is negative, the target absolute displacement distance is determined based on the decrease state of the displacement and the gap distance corresponding to the decrease state.
[0114] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including but not limited to object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0115] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0116] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".
[0117] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0118] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0119] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0120] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0121] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. A method for measuring the absolute displacement of a switch machine indicator rod, characterized in that, include: The top surface of the switch machine indicator rod includes three grooves and a magnetic strip, the magnetic strip being attached to the three grooves; two gaps between the three grooves divide the magnetic strip into three segments; the first end of each magnetic strip includes a position reference mark; the two gaps, from left to right, are respectively designated as the first gap and the second gap; the length of the first segment of the magnetic strip is equal to the length of the third segment, and the length of the second segment is greater than the length of either the first or the third segment. During the unidirectional movement of the switch indicator rod, the displacement of the switch indicator rod is read by a reading head on a displacement sensor until the switch indicator rod stops moving in one direction; wherein, the displacement sensor is placed directly above the switch indicator rod; wherein, the magnetic strip is formed by continuously alternating N and S poles; a continuously changing magnetic field is formed around the magnetic strip, and the displacement sensor reflects the change in magnetic field as a change in displacement; If the displacement is positive, the target absolute displacement distance is determined based on the growth state of the displacement and the gap distance corresponding to the growth state; wherein, the gap distance includes a first gap distance and a second gap distance; the first gap distance is the distance between the first gap and the position reference mark; the second gap distance is the distance between the second gap and the position reference mark; If the displacement is negative, the target absolute displacement distance is determined based on the decreasing state of the displacement and the gap distance corresponding to the decreasing state.
2. The method according to claim 1, characterized in that, in, The growth states include a first growth state, a second growth state, and a third growth state; determining the target absolute displacement distance based on the growth states of the displacement and the gap distances corresponding to the growth states includes: If the displacement continues to increase within the first predetermined time period before the current moment, then the displacement at the current moment is in the first increasing state. If the displacement stops increasing within the second predetermined time period before the current moment, then the displacement at the current moment is in the second growth state. If the displacement within the third predetermined time period prior to the current moment successively includes both a halt in growth and a continuous increase, then the displacement at the current moment is in the third growth state; wherein, the third predetermined time period is less than the second predetermined time period; The target absolute displacement distance at the current moment is determined based on the third growth state of the displacement at the current moment and the gap distance corresponding to the third growth state.
3. The method according to claim 2, characterized in that, in, The three magnetic strips, from left to right, are respectively referred to as the first magnetic stripe, the second magnetic stripe, and the third magnetic stripe; Determining the target absolute displacement distance at the current moment based on the third growth state of the displacement at the current moment and the gap distance corresponding to the third growth state includes: If the displacement corresponding to the third growth state is greater than the length of the first magnetic strip, then the first detection position corresponding to the reading head at the current moment falls between the first gap and the second gap. Obtain the first absolute displacement distance between the first detection position and the first gap; The target absolute displacement distance at the current moment is determined based on the first absolute displacement distance and the first gap distance.
4. The method according to claim 3, characterized in that, Determining the target absolute displacement distance at the current moment based on the third growth state of the displacement at the current moment and the gap distance corresponding to the third growth state includes: If the continuously increasing displacement corresponding to the third growth state is less than or equal to the length of the third magnetic strip and the displacement at the current moment stops increasing, then the second detection position corresponding to the reading head at the current moment falls between the second gap and the end of the third magnetic strip. Obtain the second absolute displacement distance between the second detection position and the second gap; The target absolute displacement distance at the current moment is determined based on the second absolute displacement distance and the second gap distance.
5. The method according to claim 4, characterized in that, If the displacement stops increasing within the second predetermined time period prior to the current moment, then after the displacement at the current moment is in the second increasing state, the process further includes: If the third detection position corresponding to the current displacement reading head is after the second gap, then it is determined whether there is a power failure warning message; If a power outage warning message exists, corresponding fault information will be generated; If there is no power failure warning message, then obtain the third absolute displacement distance between the third detection position and the second gap; The target absolute displacement distance at the current moment is determined based on the third absolute displacement distance and the second gap distance.
6. The method according to claim 4, characterized in that, in, The reduction states include a first reduction state, a second reduction state, and a third reduction state; determining the target absolute displacement distance based on the reduction states of displacement and the gap distance corresponding to the reduction states includes: If the displacement continues to decrease within the first predetermined time period before the current moment, then the displacement at the current moment is in the first decreasing state; If the displacement continues to decrease within the second predetermined time period prior to the current moment, then the displacement at the current moment is in the second decreasing state. If the displacement amount within the third predetermined time period prior to the current moment includes both a stop decreasing and a continuous decreasing, then the displacement amount at the current moment is in the third decreasing state. The target absolute displacement distance at the current moment is determined based on the third reduction state of the displacement at the current moment and the gap distance corresponding to the third reduction state.
7. The method according to claim 6, characterized in that, Determining the target absolute displacement distance at the current moment based on the third reduction state of the displacement at the current moment and the gap distance corresponding to the third reduction state includes: If the absolute value of the continuously decreasing displacement corresponding to the third decreasing state is greater than the length of the third magnetic strip, then the fifth detection position of the reading head at the current moment is located between the first gap and the second gap. Obtain the fourth absolute displacement distance between the fifth detection position and the second gap; The target absolute displacement distance is determined based on the fourth absolute displacement distance and the second gap distance.
8. The method according to claim 6, characterized in that, Determining the target absolute displacement distance at the current moment based on the third reduction state of the displacement at the current moment and the gap distance corresponding to the third reduction state includes: If the absolute value of the continuously decreasing displacement corresponding to the third decreasing state is less than or equal to the length of the first magnetic strip and the displacement at the current moment stops decreasing, then the sixth detection position of the reading head at the current moment is located between the first gap and the first end of the first magnetic strip. Obtain the fifth absolute displacement distance between the sixth detection position and the first gap; The target absolute displacement distance is determined based on the fifth absolute displacement distance and the first gap distance.
9. The method according to claim 6, characterized in that, If the displacement continues to decrease within the second predetermined time period prior to the current moment, then after the displacement at the current moment is in the second decreasing state, the process further includes: If the seventh detection position corresponding to the current displacement reading head is before the first gap, then it is determined whether there is a power failure warning message; If a power outage warning message exists, corresponding fault information will be generated; If there is no power failure warning information, then obtain the sixth absolute displacement distance between the seventh detection position and the first gap; The target absolute displacement distance at the current moment is determined based on the sixth absolute displacement distance and the first gap distance.
10. The method according to claim 5, characterized in that, After determining the target absolute displacement distance at the current moment based on the third absolute displacement distance and the second gap distance, the method further includes: If the absolute displacement distance of the target is inconsistent with the length of the magnetic strip, a corresponding alarm message is generated.
11. The method according to claim 9, characterized in that, After determining the target absolute displacement distance at the current moment based on the sixth absolute displacement distance and the first gap distance, the method further includes: If the absolute displacement distance of the target is not equal to the set value, a corresponding alarm message will be generated.
12. An absolute displacement measuring device for a switch machine indicator rod, characterized in that, include: The top surface of the switch machine indicator rod includes three grooves and a magnetic strip, the magnetic strip being attached to the three grooves; two gaps between the three grooves divide the magnetic strip into three segments; the first end of each magnetic strip includes a position reference mark; the two gaps, from left to right, are respectively designated as the first gap and the second gap; the length of the first segment of the magnetic strip is equal to the length of the third segment, and the length of the second segment is greater than the length of either the first or the third segment. A displacement reading module is used to read the displacement of the switch indicator rod through a reading head on a displacement sensor during the unidirectional movement of the switch indicator rod until the switch indicator rod ends the unidirectional movement; wherein, the displacement sensor is placed directly above the switch indicator rod; wherein, the magnetic strip is formed by continuously alternating N and S poles; a continuously changing magnetic field is formed around the magnetic strip, and the displacement sensor reflects the change in magnetic field as a change in displacement; The first target absolute displacement distance determination module is used to determine the target absolute displacement distance based on the growth state of the displacement and the gap distance corresponding to the growth state when the displacement is positive; wherein, the gap distance includes a first gap distance and a second gap distance; the first gap distance is the distance between the first gap and the position reference mark; the second gap distance is the distance between the second gap and the position reference mark; The second target absolute displacement distance determination module is used to determine the target absolute displacement distance based on the decreasing state of the displacement and the gap distance corresponding to the decreasing state when the displacement is negative.
13. An electronic device, characterized in that, The electronic device includes: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the absolute displacement measurement method for the switch machine indicator rod as described in any one of claims 1-11.
14. A storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform the absolute displacement measurement method for a switch machine indicator rod as described in any one of claims 1-11.
Citation Information
Patent Citations
Device and method for monitoring displacement of indication rods of switch machine
CN104071184A
Monitoring device and monitoring method for absolute displacement of railway turnout rod piece
CN117246377A