Railway locomotive resistance measuring circuit, method and system
By controlling the relay in the resistance value measurement circuit of the railway locomotive, the controller controls the relay to close the auxiliary contacts multiple times and combines the effective resistance judgment strategy, the problem of time-consuming and large errors in the existing technology is solved, and the automation and high efficiency of the resistance measurement of the railway locomotive is realized.
Patent Information
- Application Number
- CN202510681544.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-26
- Publication Date
- 2025-08-15
AI Technical Summary
The resistance value measurement method of the railway locomotive temperature sensor in the prior art is time-consuming and prone to errors, requiring manual operation, and it is impossible to measure the resistance value of multiple sensors efficiently and accurately.
A railway locomotive resistance measurement circuit is designed, using a power-on switch, controller and multiple relays to control the relay to close the auxiliary contacts multiple times through the controller, combining the effective resistance judgment strategy and short-circuit resistance correction, to automatically measure and filter out the effective resistance value.
It realizes automation and high efficiency of resistance measurement of railway locomotives, reduces measurement errors, and improves measurement accuracy and speed.
Smart Images

Figure CN120490604A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of transportation, and in particular to a railway locomotive resistance measurement circuit, method, and system. Background Art
[0002] EMUs are high-speed rail vehicles for passenger transport. High-level maintenance is a crucial component of rail transportation, and the quality of these maintenance tasks is directly related to passenger safety. To ensure the quality of EMU bogies, advanced bogie maintenance requires disassembly and overhaul. According to relevant maintenance requirements, the axlebox, gearbox, and motor temperature sensors on the bogies must undergo performance testing, including resistance indicators, during overhaul to ensure real-time temperature monitoring of the axlebox, gearbox, and traction motor bearings, thereby ensuring safe and reliable EMU operation.
[0003] However, existing methods for measuring the resistance of various temperature sensors rely on manually measuring the resistance of all the temperature sensor pins one by one using a resistance measuring device. Furthermore, this method requires one person to hold the sensor connector and another to hold the resistance measuring device. This method is time-consuming and prone to resistance measurement errors. Summary of the Invention
[0004] The embodiments of the present application provide a railway locomotive resistance measurement circuit, method, and system for improving the railway locomotive resistance measurement efficiency and reducing resistance measurement errors.
[0005] In a first aspect, an embodiment of the present application provides a railway locomotive resistance measurement circuit, comprising: a power switch, a controller, a plurality of relays, auxiliary contacts corresponding to each of the relays, and connectors correspondingly connected to the auxiliary contacts, wherein the power switch is connected to the controller; the controller is respectively connected to each of the relays and the auxiliary contacts corresponding to each of the relays; each of the connectors is connected to a corresponding resistor to be measured, and each of the resistors to be measured is located in a railway locomotive temperature sensor;
[0006] The controller is configured to control each of the relays to be powered on according to a preset resistance measurement strategy in response to the closure of the power switch, so that each of the relays controls the corresponding auxiliary contacts to be closed multiple times and obtains the resistance value of the corresponding resistor to be measured after the corresponding auxiliary contacts are closed;
[0007] The controller is further configured to screen the resistance value of each resistor to be measured using a preset effective resistance determination strategy to obtain the effective resistance corresponding to each resistor to be measured;
[0008] The controller is further used to obtain the short-circuit resistance value when the auxiliary contacts corresponding to each relay are closed corresponding to the current ambient temperature, and determine the actual resistance value corresponding to each resistor to be measured based on each short-circuit resistance and the effective resistance corresponding to each resistor to be measured.
[0009] In a possible implementation, the railway locomotive resistance measurement circuit further includes a power supply, the power supply including: a low-level end, the power supply being connected to the controller;
[0010] The controller includes a plurality of output ports, the number of the output ports being the same as the number of the relays;
[0011] One end of each relay is connected to the controller via a corresponding output port; the other end of each relay is connected to the low level end;
[0012] The power supply is used to supply power to the railway locomotive resistance measurement circuit.
[0013] In a possible implementation manner, the controller includes a first input port and a second input port; the auxiliary contacts corresponding to each of the relays include a first auxiliary contact and a second auxiliary contact;
[0014] The first input port is connected to a first auxiliary contact corresponding to each relay, and the second input port is connected to a second auxiliary contact corresponding to each relay.
[0015] In one possible embodiment, the controller, in response to the closure of the power switch, controls each relay to power on according to a preset resistance measurement strategy, so that each relay controls the corresponding auxiliary contact to close multiple times and obtains the resistance value of the corresponding resistor to be measured after the corresponding auxiliary contact is closed, specifically for:
[0016] In response to the closure of the power switch, the current relay is controlled to be powered on multiple times so that the corresponding auxiliary contact is controlled to be closed after each power-on, and the resistance value of the resistance to be measured corresponding to the current relay measured multiple times by the resistance measurement module is obtained. After determining that the measurement is successful based on the resistance value of the resistance to be measured corresponding to the current relay measured multiple times, the next relay is controlled to be powered on multiple times so that the corresponding auxiliary contact is controlled to be closed after each power-on, until the resistance value of the resistance to be measured corresponding to the last relay is obtained.
[0017] In a possible implementation, the railway locomotive resistance measurement circuit further includes: a temperature sensor connected to the controller;
[0018] The temperature sensor is used to collect the current ambient temperature and send the current ambient temperature to the controller.
[0019] In a possible implementation manner, when determining that the measurement is successful based on the resistance value of the resistor to be measured corresponding to the current relay measured multiple times, the controller is specifically configured to:
[0020] Obtaining a standard resistance corresponding to the current ambient temperature collected by the temperature sensor;
[0021] Calculate the average value of the resistance to be measured corresponding to the current relay measured multiple times;
[0022] If the absolute value of the difference between the average value of the resistance of the corresponding resistor to be measured and the standard resistance exceeds a preset standard threshold, it is determined that the resistance measurement of the resistor to be measured corresponding to the current relay has failed; then the current relay is powered on multiple times to control the corresponding auxiliary contact to be closed after each power-on, and the resistance measurement module is continued to obtain the resistance value of the resistor to be measured corresponding to the current relay for multiple times; if the absolute value of the difference between the average value of the resistance value of the resistor to be measured corresponding to the current relay measured multiple times by the multiple resistance measurement modules does not exceed the preset standard threshold, it is determined that the resistance measurement of the resistor to be measured corresponding to the current relay is successful;
[0023] If the absolute value of the difference between the average resistance value of the corresponding resistor to be measured and the standard resistance does not exceed the preset standard threshold, it is determined that the resistance value measurement of the resistor to be measured corresponding to the current relay is successful.
[0024] In a possible implementation, the controller, when using a preset effective resistance determination strategy to screen the resistance values of the corresponding resistors to be measured to obtain the effective resistance corresponding to each resistor to be measured, is specifically configured to:
[0025] For the resistance to be measured corresponding to each relay, a preset dynamic sliding window algorithm is used to screen all resistance values of the resistance to be measured corresponding to each relay to obtain multiple screened resistance values of the resistance to be measured corresponding to each relay;
[0026] An average value of the resistance values of the plurality of screened resistors to be measured corresponding to each relay is calculated and used as the effective resistance of the resistor to be measured corresponding to each relay.
[0027] In one possible implementation, when determining the actual resistance value corresponding to each resistor to be measured based on each short-circuit resistor and the effective resistance corresponding to each resistor to be measured, the controller is specifically configured to:
[0028] The effective resistance of the resistor to be measured corresponding to each relay is subtracted from the short-circuit resistance value when the auxiliary contact corresponding to each relay is closed corresponding to the current ambient temperature, and the subtraction result is determined as the actual resistance value corresponding to each resistor to be measured.
[0029] In a possible implementation, the power supply further includes a high-level terminal, the controller further includes a third input terminal, one end of the power switch is connected to the high-level terminal of the power supply, and the other end of the power switch is connected to the third input terminal;
[0030] The power switch is used to close the power switch when the railway locomotive resistance measurement circuit measures the railway locomotive temperature sensor, so that the power supply can supply power to the railway locomotive resistance measurement circuit.
[0031] In one possible implementation, the railway locomotive resistance measurement circuit further includes: an abnormality indication switch, the controller further includes a fourth input port, one end of the abnormality indication switch is connected to the high level end of the power supply, and the other end of the abnormality indication switch is connected to the fourth input port;
[0032] The abnormality indication switch is used to disconnect the abnormality indication switch after the controller determines that the resistance value of the resistor to be measured corresponding to any relay has failed to be measured.
[0033] In a second aspect, an embodiment of the present application provides a method for measuring resistance of a railway locomotive, comprising:
[0034] In response to the closure of the power switch, controlling each of the relays to be powered on according to a preset resistance measurement strategy, so that each of the relays controls the corresponding auxiliary contacts to be closed multiple times and obtains the resistance value of the corresponding resistor to be measured after the corresponding auxiliary contacts are closed;
[0035] For each resistor to be measured, a preset effective resistance judgment strategy is used to screen the resistance value of the corresponding resistor to be measured to obtain the effective resistance corresponding to each resistor to be measured;
[0036] Obtain the short-circuit resistance value when the auxiliary contact corresponding to each relay is closed at the current ambient temperature, and determine the actual resistance value corresponding to each resistor to be measured based on the short-circuit resistance and the effective resistance corresponding to each resistor to be measured.
[0037] In a third aspect, an embodiment of the present application provides a railway locomotive resistance measurement system, comprising: a railway locomotive resistance measurement circuit and an output device as described in any one of the preceding items; the railway locomotive resistance measurement circuit is connected to the output device;
[0038] The railway locomotive resistance measurement circuit is used to measure the actual resistance corresponding to each resistor to be measured according to the railway locomotive resistance measurement method;
[0039] The output device is used to output the actual resistance value corresponding to each resistor to be measured.
[0040] The railway locomotive resistance measurement circuit, method, and system provided by the embodiments of the present application include: a power switch, a controller, multiple relays, auxiliary contacts corresponding to each relay, and connectors connected to the auxiliary contacts, wherein the power switch is connected to the controller; the controller is respectively connected to each relay and the auxiliary contacts corresponding to each relay; each connector is connected to a corresponding resistor to be measured, and each resistor to be measured is located in a railway locomotive temperature sensor; the controller is configured to control each relay to be powered on in accordance with a preset resistance measurement strategy in response to the closing of the power switch, so that each relay controls the corresponding auxiliary contact to be closed multiple times and obtains the resistance value of the corresponding resistor to be measured after the corresponding auxiliary contact is closed; the controller is further configured to screen the resistance value of each resistor to be measured using a preset effective resistance determination strategy to obtain the effective resistance corresponding to each resistor to be measured; the controller is further configured to obtain the short-circuit resistance value when the auxiliary contacts corresponding to each relay are closed corresponding to the current ambient temperature, and determine the actual resistance value corresponding to each resistor to be measured based on each short-circuit resistance and the effective resistance corresponding to each resistor to be measured. Among them, connecting the relay with the auxiliary contact can flexibly control the closing of the auxiliary contact to realize the measurement of the external resistance, simplifying the circuit structure; and multiple resistors to be measured can be connected through each connector, so that multiple external resistors can be quickly and automatically measured through the railway locomotive resistance measurement circuit; in the railway locomotive resistance measurement circuit, when the power switch is closed, each relay can be controlled to power on according to a preset resistance measurement strategy in the controller, quickly realizing the relay controlling the closing of the corresponding auxiliary contact multiple times and obtaining the resistance value of the corresponding resistor to be measured after the corresponding auxiliary contact is closed, and then using a preset effective resistance judgment strategy to screen the resistance value of the corresponding resistor to be measured to obtain the effective resistance corresponding to each resistor to be measured. By screening the resistance value of the resistor to be measured according to the preset effective resistance judgment strategy, abnormal resistance values can be filtered, thereby reducing the error of subsequent calculated resistance measurement; finally, the actual resistance value corresponding to each resistor to be measured is determined based on each short-circuit resistance at the current ambient temperature and the effective resistance corresponding to each resistor to be measured, which can improve the railway locomotive resistance measurement efficiency and reduce the measurement error. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0042] Figure 1 This is a diagram of an application scenario of a railway locomotive resistance measurement circuit provided in an embodiment of the present application;
[0043] Figure 2 A railway locomotive resistance measurement circuit provided in one embodiment of the present application;
[0044] Figure 3A schematic diagram of a resistance to be measured in a gearbox temperature sensor provided in one embodiment of the present application;
[0045] Figure 4 A flowchart of the implementation of the preset resistance measurement strategy provided in the embodiment of the present application;
[0046] Figure 5 A circuit diagram of the indicator light connection provided in one embodiment of the present application;
[0047] Figure 6 A main control circuit diagram of a railway locomotive resistance measurement circuit provided by another embodiment of the present application;
[0048] Figure 7 This is an auxiliary circuit diagram of a railway locomotive resistance measurement circuit provided in another embodiment of the present application;
[0049] Figure 8 A circuit diagram of an indicator light connection provided in another embodiment of the present application;
[0050] Figure 9 This is a flow chart of a method for measuring resistance of a railway locomotive provided in one embodiment of the present application;
[0051] Figure 10 A railway locomotive resistance measurement system is provided in an embodiment of the present application.
[0052] The above drawings illustrate specific embodiments of the present application, which will be described in more detail below. These drawings and the textual description are not intended to limit the scope of the present application in any way, but rather to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments. DETAILED DESCRIPTION
[0053] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0054] In order to clearly understand the technical solution of the present application, the solution of the prior art is first introduced in detail.
[0055] Currently, existing methods for measuring the resistance of various types of temperature sensors involve manually and individually measuring the resistance of all pins of the temperature sensor using a resistance measuring device. This involves one person holding one end of a connector and connecting it to the resistance of the temperature sensor to be measured, while another person holds the resistance measuring device and connects it to the other end of the connector. After the connection is completed, the resistance measuring device displays the resistance of the temperature sensor to be measured, thereby enabling the resistance of the temperature sensor to be measured to be measured using the resistance measuring device. However, this method is time-consuming and prone to resistance measurement errors.
[0056] Therefore, in the face of the existing technology, in order to achieve efficient measurement of the resistance to be measured located in the railway locomotive temperature sensor, a railway locomotive resistance measurement circuit is designed, which includes a power switch, a controller, multiple relays, auxiliary contacts corresponding to each relay and connectors corresponding to the auxiliary contacts, the power switch is connected to the controller; the controller is respectively connected to each relay and the auxiliary contacts corresponding to each relay; each connector is connected to the corresponding resistor to be measured, and each resistor to be measured is located in the railway locomotive temperature sensor; and in order to further improve the measurement accuracy of the resistance value of the resistor to be measured, multiple measurements can be used and the multiple measurement results can be screened to obtain a more accurate resistance measurement result of the resistor to be measured. Therefore, in the controller, when the power switch is closed, each resistor can be controlled according to the preset resistance measurement strategy. The relay is powered on so that each relay controls the corresponding auxiliary contact to close multiple times and obtains the resistance value of the corresponding resistor to be measured after the corresponding auxiliary contact is closed. For each resistor to be measured, the resistance value of the corresponding resistor to be measured is screened using a preset effective resistance judgment strategy to obtain the effective resistance corresponding to each resistor to be measured. In order to further improve the resistance measurement accuracy of each resistor to be measured, the influence of the railway locomotive resistance measurement circuit itself on the resistance measurement accuracy of each resistor to be measured can also be considered from different ambient temperatures. Therefore, the short-circuit resistance value when the auxiliary contact corresponding to each relay is closed at the current ambient temperature can be obtained, and the actual resistance value corresponding to each resistor to be measured is determined based on each short-circuit resistance and the effective resistance corresponding to each resistor to be measured, thereby improving the railway locomotive resistance measurement efficiency and reducing the railway locomotive resistance measurement error.
[0057] The following specific embodiments describe in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0058] Figure 1 This is an application scenario diagram of the railway locomotive resistance measurement circuit provided in the embodiment of the present application, such as Figure 1As shown, the application scenario includes: a railway locomotive resistance measurement circuit 101, a display 102, and at least one resistor to be measured; wherein the railway locomotive resistance measurement circuit 101 includes: the railway locomotive resistance measurement circuit includes: a power switch, a controller, multiple relays, auxiliary contacts corresponding to each relay, and connectors corresponding to the auxiliary contacts, the power switch is connected to the controller; the controller is respectively connected to each relay and the auxiliary contacts corresponding to each relay. The at least one resistor to be measured can be the four resistors in the gearbox temperature sensor in the railway locomotive, Figure 1 In the figure, 103 and 104 are pins of the same resistor in the gearbox temperature sensor; 105 and 106 are pins of the same resistor in the gearbox temperature sensor; 107 and 108 are pins of the same resistor in the gearbox temperature sensor; 109 and 110 are pins of the same resistor in the gearbox temperature sensor.
[0059] Optionally, the resistance to be measured may also be an internal resistance of a railway locomotive axle box temperature sensor, a traction motor temperature sensor, or the like.
[0060] Specifically, the relevant staff connected the pins 103, 104, 105, 106, 107, 108, 109 and 110 of each resistor to be measured to the corresponding connector in the railway locomotive resistance measurement circuit 101. After completing the connection of the resistor to be measured, the relevant staff closed the power switch. The controller in the railway locomotive resistance measurement circuit 101 is used to control each relay to power on in response to the closure of the power switch according to the preset resistance measurement strategy, so that each relay controls the corresponding auxiliary contact to close multiple times and obtains the resistance value of the corresponding resistor to be measured after the corresponding auxiliary contact is closed; it is also used to use a preset effective resistance judgment strategy for each resistor to be measured. The resistance values of the corresponding resistors to be measured are screened to obtain the effective resistance corresponding to each resistor to be measured; it is also used to obtain the short-circuit resistance value when the auxiliary contacts corresponding to each relay are closed corresponding to the current ambient temperature, and the actual resistance value corresponding to each resistor to be measured is determined based on each short-circuit resistance and the effective resistance corresponding to each resistor to be measured. After completing the measurement of the actual resistance value corresponding to each resistor to be measured, the controller can send the actual resistance value corresponding to each resistor to be measured to the display 102, and the display 102 can display the actual resistance value corresponding to each resistor to be measured. Relevant staff can view the resistance value of each resistor to be measured in the display 102 for analyzing the performance of the temperature sensor.
[0061] Optionally, the railway locomotive resistance measurement circuit can be integrated into a railway locomotive resistance measurement device or a railway locomotive resistance measurement system, and the actual resistance corresponding to each resistor to be measured is measured by the railway locomotive resistance measurement circuit in the railway locomotive resistance measurement device or the railway locomotive resistance measurement system; the railway locomotive resistance measurement circuit can also be integrated into other equipment or systems that support connection to the railway locomotive resistance measurement circuit, which is not limited in this embodiment.
[0062] Figure 2 A railway locomotive resistance measurement circuit is provided in one embodiment of the present application, such as Figure 2 As shown, the railway locomotive resistance measurement circuit includes: a power switch SB1, a power supply VCC, a first relay K2, a second relay K2, a third relay K3, a fourth relay K4, a controller 201, auxiliary contacts K11 and K12 corresponding to the first relay K2, auxiliary contacts K21 and K22 corresponding to the second relay K2, auxiliary contacts K31 and K32 corresponding to the third relay K3, and auxiliary contacts K41 and K42 corresponding to the fourth relay K4, a connector 202 connected to the auxiliary contact K11 corresponding to the first relay K1, a connector 206 connected to the auxiliary contact K12 corresponding to the first relay K1, and a controller 201 connected to the auxiliary contact K11 corresponding to the second relay K1. The auxiliary contact K21 corresponding to K2 is connected to the connector 203, the auxiliary contact K22 corresponding to the second relay K2 is connected to the connector 207, the auxiliary contact K31 corresponding to the third relay K3 is connected to the connector 204, the auxiliary contact K32 corresponding to the third relay K3 is connected to the connector 208, the auxiliary contact K41 corresponding to the fourth relay K4 is connected to the connector 205, the auxiliary contact K42 corresponding to the fourth relay K4 is connected to the connector 209, the ground wire 210, GND represents grounding; the wire 211, the wire 212, multiple input ports 213-216, and the output ports 217-222.
[0063] Among them, the auxiliary contacts corresponding to each relay are connected to the connectors corresponding to the auxiliary contacts, and the power switch SB1 is connected to the controller 201; the controller 201 is respectively connected to each relay and the auxiliary contacts corresponding to each relay; each connector is connected to the corresponding resistor to be measured, and each resistor to be measured is located in the railway locomotive temperature sensor.
[0064] Among them, the controller 201 is used to control the power on of each relay in response to the closure of the power switch according to a preset resistance measurement strategy, so that each relay controls the corresponding auxiliary contact to close multiple times and obtains the resistance value of the corresponding resistor to be measured after the corresponding auxiliary contact is closed; the controller 201 is also used to use a preset effective resistance judgment strategy to screen the resistance value of the corresponding resistor to be measured for each resistor to be measured, so as to obtain the effective resistance corresponding to each resistor to be measured; the controller 201 is also used to obtain the short-circuit resistance value when the auxiliary contact corresponding to each relay is closed corresponding to the current ambient temperature, and determine the actual resistance corresponding to each resistor to be measured based on each short-circuit resistance and the effective resistance corresponding to each resistor to be measured.
[0065] The controller 201 may be a programmable logic controller (PLC) or other controller, which is not limited in this embodiment. The PLC may include a built-in resistance measurement module that collects the current and voltage values across the resistor to be measured, and then divides the voltage value by the current value to obtain the resistance value of the resistor to be measured.
[0066] The input port of the controller 201 is used to receive signals such as on-off changes of the power switch, data acquisition signals such as temperature sensors, etc.; the output port of the controller 201 is used to control the software logic to issue instructions according to the preset resistance measurement strategy to control the power on and off of multiple relays.
[0067] Optionally, multiple relays can be configured based on the test requirements of the resistance to be measured. For example, if six resistances need to be tested, six relays can be configured in the railway locomotive resistance measurement circuit. This is not specifically limited in this embodiment. When multiple relays are configured, the railway locomotive resistance measurement circuit needs to simultaneously add multiple auxiliary contacts and multiple connectors; the number of additional auxiliary contacts is equal to the number of connectors, and the number of additional auxiliary contacts is twice the number of additional relays.
[0068] Auxiliary contacts are a crucial auxiliary switching device, designed to operate in conjunction with a relay. Optionally, the relay includes an insulating bracket, through which the armature connects directly to the auxiliary contacts. Specifically, when the relay is energized, the energized coil within the relay generates an attractive force, which in turn attracts the armature, pushing the bracket to close the auxiliary contacts, thereby controlling the auxiliary contacts through the relay. When the relay is de-energized, the attractive force generated by the coil disappears, and the armature, under the reaction of this attractive force, pulls the bracket apart, causing the auxiliary contacts to open.
[0069] The two connectors corresponding to each relay are used to connect to the two ends of the resistor to be measured.
[0070] The ground wire 210 is used to connect to the earth. When the ground wire is connected to the earth, abnormal current can be introduced into the earth when the relay, controller 201 and the like in the resistance measurement circuit of the railway locomotive are damaged.
[0071] Specifically, one end of the power switch SB1 is connected to the high-level end corresponding to the power supply VCC of the railway locomotive resistance measurement circuit, and the other end of the power switch SB1 is connected to the input port 214 of the controller 201; the first relay K1 is connected to the output port 217 of the relay, the second relay K2 is connected to the output port 218 of the relay, the third relay K3 is connected to the output port 219 of the relay, and the fourth relay K4 is connected to the output port 220 of the relay; the auxiliary contact K11 corresponding to the first relay, the auxiliary contact K21 corresponding to the second relay, the auxiliary contact K31 corresponding to the third relay, and the auxiliary contact K41 corresponding to the fourth relay K4 are connected to the same input interface 214 of the controller 201. 15; the auxiliary contact K12 corresponding to the first relay K1, the auxiliary contact K22 corresponding to the second relay K2, the auxiliary contact K32 corresponding to the third relay K3, and the auxiliary contact K42 corresponding to the fourth relay K3 are connected to the input interface 216 corresponding to the same controller 201; the high level end of the power supply is connected to the input port 213 of the controller 201 through the wire 211, and the low level end of the power supply is connected to the output port 122 of the controller 201 through the wire 212, so that the power supply VCC supplies power to the controller 201; one end of the ground wire 210 is connected to the output interface 222 of the controller 201, and the other end of the ground wire 210 is connected to the ground, thereby realizing conduction between the controller and the ground;
[0072] Optionally, the controller 201 in the railway locomotive resistance measurement circuit may also be connected to a temperature sensor 224 for measuring the current ambient temperature, and other devices may be connected as required, which is not specifically limited in this embodiment.
[0073] The short-circuit resistance value of each relay's corresponding auxiliary contact when closed refers to the total resistance of the wires and auxiliary contacts when the auxiliary contacts are closed, measured using a multimeter after connecting the connectors of each relay in sequence via wires and powering on each relay in sequence. This is used to eliminate the small resistance introduced by relays, wires, etc., to further improve measurement errors. The short-circuit resistance value of each relay's corresponding auxiliary contact when closed can be tested in the above manner at different ambient temperatures, and the different ambient temperatures and their corresponding short-circuit resistance values of each relay can be stored in a resistance storage table. The resistance storage table can also include relay identifiers to distinguish the short-circuit resistance values of each relay at different ambient temperatures.
[0074] For example, Figure 3 Schematic diagram of the resistance to be measured in the gearbox temperature sensor provided in one embodiment of the present application; the resistance value measurement circuit of the railway locomotive can be used to measure Figure 3After the bogie in the railway locomotive is disassembled, the four resistors in the gearbox temperature sensor of model PT100 and their corresponding connected pins are the resistors to be measured 31, 32, 33 and 34, among which the pins corresponding to serial numbers 6 and 7 correspond to Figure 1 Pins 103 and 104 are the pins at both ends of the resistor 31 to be measured; the pin numbers 1 and 4 correspond to Figure 1 Pins 105 and 106 are the pins at both ends of the resistor 32 to be measured; pin numbers 5 and 8 correspond to Figure 1 Pins 107 and 108 are the pins at both ends of the resistor 33 to be measured; pin numbers 2 and 3 correspond to Figure 1 Pins 109 and 110 are pins at both ends of the resistor 34 to be measured.
[0075] Specifically, the relevant staff can connect one end of the resistor to be measured 31 to the connector 202, and the other end of the resistor to be measured 31 to the connector 206; one end of the resistor to be measured 32 can be connected to the connector 203, and the other end of the resistor to be measured 32 can be connected to the connector 207; one end of the resistor to be measured 33 can be connected to the connector 204, and the other end of the resistor to be measured 33 can be connected to the connector 208; one end of the resistor to be measured 34 can be connected to the connector 205, and the other end of the resistor to be measured 34 can be connected to the connector 209; when all the resistors to be measured are connected Afterwards, the relevant staff closes the power switch; when the power switch is closed, the power supply VCC of the railway locomotive resistance measurement circuit can supply power to the railway locomotive resistance measurement circuit, and when the controller 201 detects that there is a voltage change from zero to something, its internal digital processing circuit sets the digital signal from 0 to 1; when the controller 201 recognizes that the digital signal is 1, it first controls the power on of each relay according to the preset resistance measurement strategy control software logic, so that each relay controls the corresponding auxiliary contact to close multiple times and obtains the resistance value of the corresponding resistor to be measured after the corresponding auxiliary contact is closed. Among them, the preset resistance measurement strategy is a strategy set according to the resistance test requirements of the resistor to be measured. For example, when the first relay K1 is powered on, the preset resistance measurement strategy includes that after a set delay of 3 seconds, the first relay K1 closes the auxiliary contacts K11 and K12 corresponding to the controller 201, and the controller 201 obtains the data collected by the resistance measurement module, and then obtains the resistance value of the resistor to be measured connected to the connector corresponding to the first relay K11. After obtaining the resistance value of the resistor to be measured, the first relay K11 is de-energized. In this way, by repeatedly powering on and controlling the first relay K11 and its corresponding auxiliary contacts according to the above-mentioned delay waiting time, the resistance values of the resistors to be measured connected to the connectors corresponding to multiple first relays K11 can be obtained. Furthermore, when the resistance to be measured corresponding to the first relay is successfully measured, each relay can continue to be controlled multiple times in sequence to obtain the resistance values of the resistors to be measured connected to the connectors corresponding to other relays K2, K3 and K4.
[0076] Then, the controller 201 can continue to use a preset effective resistance judgment strategy to screen the resistance of the resistor to be measured corresponding to each relay for each resistor to be measured, and the resistance of multiple resistors to be measured after screening corresponding to the same relay. Among them, the preset effective resistance judgment strategy is to screen the resistance that has a significant deviation from the normal measured resistance. For example, if the range of multiple measured resistance values is 20-30, then the individual resistance values greater than 30 or less than 20 are determined as resistance values with significant deviations. The range of screening multiple measured resistance values can be set according to demand and is not specifically limited in this embodiment. Among them, the preset effective resistance judgment strategy can be to use a preset dynamic sliding window algorithm to screen the resistance of each resistor to be measured. Among them, it can also be other algorithms, which are not specifically limited in this embodiment. Then calculate the average value of the resistance of each resistor to be measured after screening as the effective resistance corresponding to each resistor to be measured; the controller 201 can also obtain the current ambient temperature measured by the temperature sensor 224, and query the short-circuit resistance value when the auxiliary contact corresponding to each relay is closed at the current ambient temperature in the pre-stored resistance storage table. Finally, perform a difference operation on the short-circuit resistance value when the auxiliary contact corresponding to the same relay is closed and the resistance to be measured to obtain the actual resistance value corresponding to each resistor to be measured.
[0077] In this embodiment, the railway locomotive resistance measurement circuit includes: a power switch SB1, a power supply VCC, a first relay K2, a second relay K2, a third relay K3, a fourth relay K4, a controller 201, auxiliary contacts K11 and K12 corresponding to the first relay K2, auxiliary contacts K21 and K22 corresponding to the second relay K2, auxiliary contacts K31 and K32 corresponding to the third relay K3, and auxiliary contacts K41 and K42 corresponding to the fourth relay K4, a connector 202 connected to the auxiliary contact K11 corresponding to the first relay K1, a connector 206 connected to the auxiliary contact K12 corresponding to the first relay K1, a connector 203 connected to the auxiliary contact K21 corresponding to the second relay K2, and a connector 204 connected to the auxiliary contact K22 corresponding to the second relay K2. 7. Connector 204 connected to the auxiliary contact K31 corresponding to the third relay K3, connector 208 connected to the auxiliary contact K32 corresponding to the third relay K3, connector 205 connected to the auxiliary contact K41 corresponding to the fourth relay K4, connector 209 connected to the auxiliary contact K42 corresponding to the fourth relay K4, ground wire 210, GND represents grounding; wire 211, wire 212, multiple input ports 213-216, output ports 217-222; wherein, the auxiliary contacts corresponding to each relay are connected to the connectors corresponding to the auxiliary contacts, the power switch 201 is connected to the controller 201; the controller 201 is respectively connected to each relay and the auxiliary contacts corresponding to each relay; each connector is connected to the corresponding resistor to be measured, and each resistor to be measured is located in the railway locomotive temperature sensor. Among them, the controller 201 is used to control the power on of each relay in response to the closure of the power switch according to a preset resistance measurement strategy, so that each relay controls the corresponding auxiliary contact to close multiple times and obtains the resistance value of the corresponding resistor to be measured after the corresponding auxiliary contact is closed; the controller 201 is also used to use a preset effective resistance judgment strategy to screen the resistance value of the corresponding resistor to be measured for each resistor to be measured, so as to obtain the effective resistance corresponding to each resistor to be measured; the controller 201 is also used to obtain the short-circuit resistance value when the auxiliary contact corresponding to each relay is closed corresponding to the current ambient temperature, and determine the actual resistance corresponding to each resistor to be measured based on each short-circuit resistance and the effective resistance corresponding to each resistor to be measured.Among them, the closure of auxiliary contacts is flexibly controlled by multiple relays to realize the measurement of external resistance, without the need for complex circuit connections, simplifying the circuit structure; and multiple resistors to be measured can be connected through each connector, so that multiple external resistors can be quickly and automatically measured through the railway locomotive resistance measurement circuit; in the railway locomotive resistance measurement circuit, when the power switch is closed, each relay can be controlled to power on according to a preset resistance measurement strategy in the controller, quickly realizing the relay controlling the closure of the corresponding auxiliary contacts multiple times and obtaining the resistance value of the corresponding resistor to be measured after the corresponding auxiliary contacts are closed, and then using a preset effective resistance judgment strategy to screen the resistance value of the corresponding resistor to be measured to obtain the effective resistance corresponding to each resistor to be measured, and by screening the resistance value of the resistor to be measured according to the preset effective resistance judgment strategy, abnormal resistance values can be filtered out, thereby reducing the error of subsequent calculated resistance measurement; finally, the actual resistance value corresponding to each resistor to be measured is determined based on each short-circuit resistance at the current temperature and the effective resistance corresponding to each resistor to be measured, which can improve the railway locomotive resistance measurement efficiency and reduce the measurement error.
[0078] As an optional embodiment, the railway locomotive resistance measurement circuit also includes a power supply, which includes: a low-level end, the power supply is connected to the controller; the controller includes multiple output ports, the number of output ports is the same as the number of relays; one end of each relay is connected to the controller through the corresponding output port; the other end of each relay is connected to the low-level end; the power supply is used to power the railway locomotive resistance measurement circuit.
[0079] It can be understood that in order to control the relays through the controller, all the relays need to be connected to the corresponding output ports in the controller so that the controller can control the relays.
[0080] For example, Figure 2In the embodiment, four relays are configured in the railway locomotive resistance measurement circuit. Therefore, the controller 201 may include four output ports, such as a first output port 217, a second output port 218, a third output port 219, and a fourth output port 220. The first output port refers to the first output port of the controller 201; the second output port refers to the second output port of the controller 201; the third output port refers to the third output port of the controller 201; and the fourth output port refers to the fourth output port of the controller 201. Specifically, one end of the first relay K1 is connected to the first output port 217; the other end of the first relay is connected to the low voltage end of the power supply VCC; one end K2 of the second relay is connected to the second output port 218; the other end of the second relay K2 is connected to the low voltage end of the power supply VCC; one end of the third relay K3 is connected to the third output port 219; the other end of the third relay K3 is connected to the low voltage end of the power supply VCC; one end of the fourth relay K4 is connected to the fourth output port 220; the other end of the fourth relay K4 is connected to the low voltage end of the power supply VCC via a wire; thereby, the controller 201 can realize powering on each relay through its internally integrated preset resistance measurement strategy control software logic control.
[0081] In this embodiment, the railway locomotive resistance measurement circuit also includes a power supply, which includes: a low-level end, the power supply is connected to a controller; the controller includes multiple output ports, the number of output ports is the same as the number of relays; one end of each relay is connected to the controller through a corresponding output port; the other end of each relay is connected to the low-level end; the power supply is used to power the railway locomotive resistance measurement circuit; wherein, the controller is used to connect multiple relays to control the relays, thereby reducing the circuit complexity of the circuit layout by using wires, and the controller can quickly and accurately control the relays, thereby improving the efficiency of railway locomotive resistance measurement.
[0082] As an optional embodiment, the controller includes a first input port and a second input port; the auxiliary contacts corresponding to each relay include a first auxiliary contact and a second auxiliary contact; the first input port is connected to the first auxiliary contact corresponding to each relay, and the second input port is connected to the second auxiliary contact corresponding to each relay.
[0083] The first auxiliary contact refers to the first auxiliary contact controlled by each relay.
[0084] The second auxiliary contact refers to the second auxiliary contact controlled by each relay.
[0085] The first input port refers to the input port in the controller to which each first auxiliary contact is connected.
[0086] The second input port refers to the input port in the controller to which each second auxiliary contact is connected.
[0087] Alternatively, as Figure 2 The first auxiliary contact K11 corresponding to the first relay K1 , the first auxiliary contact K21 corresponding to the second relay K2 , the first auxiliary contact K31 corresponding to the third relay K3 , and the first auxiliary contact K41 corresponding to the fourth relay K4 are all connected to the first input port 215 .
[0088] Alternatively, as Figure 2 The second auxiliary contact K12 corresponding to the first relay K1 , the second auxiliary contact K22 corresponding to the second relay K2 , the second auxiliary contact K32 corresponding to the third relay K3 , and the second auxiliary contact K42 corresponding to the fourth relay K4 are connected to the second input port 216 .
[0089] In this embodiment, the controller includes a first input port and a second input port; the auxiliary contacts corresponding to each relay include a first auxiliary contact and a second auxiliary contact. The first input port is connected to the first auxiliary contact corresponding to each relay, and the second input port is connected to the second auxiliary contact corresponding to each relay. Connecting multiple auxiliary contacts to the same port reduces the number of controller ports occupied and the number of wires required for connection, thereby simplifying the circuit structure.
[0090] As an optional embodiment, the controller, in response to the closing of the power switch, controls each relay to power on according to a preset resistance measurement strategy, so that each relay controls the corresponding auxiliary contact to close multiple times and obtains the resistance value of the corresponding resistor to be measured after the corresponding auxiliary contact is closed. It is specifically used to: in response to the closing of the power switch, control the current relay to power on multiple times, so that the corresponding auxiliary contact is controlled to close after each power-on, and obtain the resistance value of the resistor to be measured corresponding to the current relay measured multiple times by the resistance measurement module; after determining that the measurement is successful based on the resistance value of the resistor to be measured corresponding to the current relay measured multiple times, continue to control the next relay to power on multiple times, so that the corresponding auxiliary contact is controlled to close after each power-on, until the resistance value of the resistor to be measured corresponding to the last relay is obtained.
[0091] Among them, the current relay refers to the relay currently controlled by the controller.
[0092] Optionally, in the controller, after controlling the current relay to be powered on multiple times, different delay waiting times can also be set. The purpose is to eliminate the attraction generated by the energized coil inside the relay after it is powered on. When the auxiliary contacts are closed, the auxiliary contacts cannot be immediately stationary after closing. Therefore, each auxiliary contact is waited for to be stationary by delaying the waiting time. Therefore, in order to obtain a more accurate value of the resistance to be measured, the delay time can be preset starting from 0 seconds and the delay time can be accumulated according to the time steps of equal intervals until the delay time is set to 10 seconds. The relay can be powered on under different delays to obtain the resistance value of the resistance to be measured corresponding to each delay time. Among them, the time step can be set to 0.1 seconds. Therefore, 100 delay times can be set at time intervals of 0.1 seconds, such as 0, 0.1, 0.2...5...9.9, 10. Other time steps and delay end times can also be set according to the actual jitter of the auxiliary contacts, which are not limited in this embodiment.
[0093] Exemplarily, if the current relay is the first relay, when the closing switch is closed, the controller controls the software logic through its internal preset resistance measurement strategy, first powers on the first relay, and then waits according to the first delay time; after the delay wait ends, the first relay pushes the driving bracket connected to the coil and the auxiliary contact through the attraction of its internal energized coil, driving the bracket to push out the auxiliary contact to close, and the resistance measurement module inside the controller measures the resistance value of the resistor to be measured corresponding to the first relay. The controller obtains the resistance value of the resistor to be measured corresponding to the first relay from the resistance measurement module and powers off the first relay; after a preset delay of 3 seconds, the first relay is powered on again, and according to a delay time, the auxiliary contact corresponding to the first relay is controlled to close to obtain the resistance value of the resistor to be measured corresponding to the first relay measured by the next resistance measurement module, until the resistance value of the resistor to be measured corresponding to the set end point delay waiting time is measured, thereby obtaining multiple resistance values of the resistor to be measured corresponding to the first relay. When the test of the resistor to be measured corresponding to the first relay is successful, the method for obtaining multiple resistance values of the resistor to be measured corresponding to the first relay is continued, and the next relay is powered on multiple times to obtain multiple resistance values of the resistor to be measured corresponding to the next relay, until the resistance value of the resistor to be measured corresponding to the last relay is obtained. After each resistance measurement of the resistor to be measured corresponding to the current relay is completed, it is necessary to determine whether the resistance measurement of the resistor to be measured corresponding to the current relay is successful. If the measurement is successful, the resistance value of the next relay is measured; if the measurement fails, the measurement is stopped.
[0094] Figure 4 The flowchart for executing the preset resistance measurement strategy provided in the embodiment of the present application is consistent with the above-mentioned measurement process of the resistance to be measured, and will not be repeated in this embodiment.
[0095] In this embodiment, the controller, in response to the closing of the power switch, controls each relay to power on according to a preset resistance measurement strategy, so that each relay controls the corresponding auxiliary contact to close multiple times and obtains the resistance value of the corresponding resistor to be measured after the corresponding auxiliary contact is closed. Specifically, it is used to: in response to the closing of the power switch, control the current relay to power on multiple times, so that the corresponding auxiliary contact is controlled to close after each power-on, and obtain the resistance value of the resistor to be measured corresponding to the current relay measured multiple times by the resistance measurement module; after determining that the measurement is successful based on the resistance value of the resistor to be measured corresponding to the current relay measured multiple times, continue to control the next relay to power on multiple times, so that the corresponding auxiliary contact is controlled to close after each power-on, until the resistance value of the resistor to be measured corresponding to the last relay is obtained. When the relay is closed, it will cause jitter in its own hardware. Therefore, by powering on the current relay multiple times, the corresponding auxiliary contact is controlled to close after each power-on, and the resistance value of the resistor to be measured corresponding to the current relay measured multiple times by the resistance measurement module is obtained. In this way, more resistance values of the resistor to be measured can be collected to provide more valid data for the subsequent calculation of the resistance value of the resistor to be measured; only after the measurement is determined to be successful based on the resistance value of the resistor to be measured corresponding to the current relay measured multiple times, the next resistor to be measured is measured. Therefore, when the resistance value measurement of the resistor to be measured fails, no further measurement is required. The time for subsequent measurements is saved by judging the measurement situation of the resistor to be measured.
[0096] As an optional implementation, the railway locomotive resistance measurement circuit further includes: a temperature sensor connected to the controller; the temperature sensor is used to collect the current ambient temperature and send the current ambient temperature to the controller.
[0097] Among them, such as Figure 2 The controller 201 may include an input port 223 , which may be used to connect to a temperature sensor 224 so that the controller 201 can read temperature data from the temperature sensor 224 .
[0098] In this embodiment, the railway locomotive resistance measurement circuit further includes a temperature sensor connected to a controller, configured to collect and transmit the current ambient temperature to the controller. The temperature sensor accurately measures the current ambient temperature in real time, and the controller quickly obtains the current ambient temperature from the temperature sensor, thereby providing accurate and rapid data for subsequent calculations of the resistance to be measured.
[0099] As an optional implementation manner, when the controller determines that the measurement is successful based on the resistance value of the resistor to be measured corresponding to the current relay measured multiple times, it is specifically configured to:
[0100] Obtain a standard resistor corresponding to the current ambient temperature collected by a temperature sensor; calculate an average value of the resistance value of the resistance to be measured corresponding to the current relay measured multiple times; if the absolute value of the difference between the average value of the resistance value of the corresponding resistance to be measured and the standard resistance exceeds a preset standard threshold, determine that the resistance measurement of the resistance to be measured corresponding to the current relay has failed; then continue to power on the current relay multiple times to control the corresponding auxiliary contact to be closed after each power-on, and continue to obtain the resistance value of the resistance to be measured corresponding to the current relay measured multiple times by the resistance measurement module; if the absolute values of the difference between the average value of the resistance value of the resistance to be measured corresponding to the current relay measured multiple times by the multiple resistance measurement modules calculated again and the standard resistance do not exceed the preset standard threshold, determine that the resistance measurement of the resistance to be measured corresponding to the current relay is successful; if the absolute value of the difference between the average value of the resistance value of the corresponding resistance to be measured and the standard resistance does not exceed the preset standard threshold, determine that the resistance measurement of the resistance to be measured corresponding to the current relay is successful.
[0101] Among them, the preset standard threshold is to judge whether the average value of the resistance of the resistor to be measured obviously exceeds the threshold value of the standard resistance corresponding to the current ambient temperature. It can be set according to needs. For example, it can be preset that when the average value of the resistance of the resistor to be measured is higher than the resistance value of the standard resistance corresponding to the current ambient temperature is 30, or when the average value of the resistance of the resistor to be measured is lower than the resistance value of the standard resistance corresponding to the current ambient temperature is 30, it can be considered that the threshold value that obviously exceeds the standard resistance corresponding to the current ambient temperature has been reached. This is only for illustrative purposes, and the preset standard threshold value is not specifically limited in this embodiment.
[0102] Among them, the standard resistance refers to the theoretical value of the resistance to be measured. Different ambient temperatures correspond to different standard resistance values. This value can be a value pre-calculated according to the resistance derivation formula of the resistance to be measured and stored in the standard resistance storage table in association with different ambient temperatures.
[0103] Specifically, the controller can obtain the current ambient temperature measured by the temperature sensor, and query the standard resistor corresponding to the current ambient temperature in the standard resistance storage table according to the current ambient temperature; then sum all the resistance values of the resistor to be measured corresponding to the current relay, and divide the sum by the number of resistance values to obtain the average resistance value of the resistor to be measured corresponding to the current relay; further, subtract the average resistance value of the resistor to be measured from the standard resistor corresponding to the current ambient temperature, and take the absolute value of the result of the subtraction; then compare the absolute value result with a preset standard threshold value; if it does not exceed the preset standard threshold value, it indicates that the resistance measurement of the resistor to be measured corresponding to the current relay is successful; if it exceeds the preset standard threshold value, it indicates that the resistance measurement of the resistor to be measured corresponding to the current relay has failed; When the resistance measurement of the resistor to be measured corresponding to the current relay fails for the first time, the controller will retest the resistance of the resistor to be measured corresponding to the current relay three times according to the preset resistance measurement strategy. Each retest is to power on the current relay multiple times, so that the corresponding auxiliary contact is closed after each power-on, and the resistance measurement module continues to obtain the resistance of the resistor to be measured corresponding to the current relay measured multiple times. After completing the three retests, the average value of the resistance of the resistor to be measured corresponding to the current relay measured multiple times by the multiple resistance measurement modules in each retest is calculated, and each average value is subtracted from the standard resistance again to obtain the difference between each average value and the standard resistance. If the absolute value of the above difference result does not exceed the preset standard threshold, it means that the resistance measurement of the resistor to be measured corresponding to the current relay is successful. If the absolute value of the difference result exceeds the preset standard threshold, the measurement of the resistor to be measured is stopped, and the railway locomotive resistance measurement circuit needs to be analyzed for abnormalities. Among them, the number of retests can be set according to demand. Setting the number of retests to three is only an exemplary explanation and can also be other times. It is not specifically limited in this embodiment.
[0104] In this embodiment, when determining that the measurement is successful based on the resistance value of the resistor to be measured corresponding to the current relay measured multiple times, it is specifically used to: obtain the standard resistance corresponding to the current ambient temperature collected by the temperature sensor; calculate the average value of the resistance value of the resistor to be measured corresponding to the current relay measured multiple times; if the absolute value of the difference between the average value of the corresponding resistance value of the resistor to be measured and the standard resistance exceeds a preset standard threshold, it is determined that the resistance measurement of the resistor to be measured corresponding to the current relay has failed; then continue to power on the current relay multiple times to control the corresponding auxiliary contact to be closed after each power-on, and continue to obtain the resistance value of the resistor to be measured corresponding to the current relay measured multiple times by the resistance measurement module; if the absolute value of the difference between the average value of the resistance value of the resistor to be measured corresponding to the current relay measured multiple times by the multiple resistance measurement modules calculated again and the standard resistance does not exceed the preset standard threshold, it is determined that the resistance measurement of the resistor to be measured corresponding to the current relay is successful; if the absolute value of the difference between the average value of the corresponding resistance value of the resistor to be measured and the standard resistance exceeds the preset standard threshold, it is determined that the resistance measurement of the resistor to be measured corresponding to the current relay has failed. By measuring the average value of the resistance to be measured corresponding to the current relay multiple times and comparing it with the standard resistance, it is possible to preliminarily determine whether the multiple resistances to be measured measured by the railway locomotive resistance measurement circuit have obvious abnormal values; when it is determined that the resistance measurement of the resistance to be measured corresponding to the current relay fails, the current relay is powered on multiple times to further determine whether the resistance measurement of the current railway locomotive resistance measurement circuit is a real measurement failure.
[0105] As an optional implementation, the controller, when using a preset effective resistance judgment strategy to screen the resistance values of the corresponding resistors to be measured to obtain the effective resistance corresponding to each resistor to be measured, is specifically used to: for the resistor to be measured corresponding to each relay, use a preset dynamic sliding window algorithm to screen all resistance values of the resistor to be measured corresponding to each relay to obtain the resistance values of multiple screened resistors to be measured corresponding to each relay; calculate the average value of the resistance values of the multiple screened resistors to be measured corresponding to each relay, and use it as the effective resistance of the resistor to be measured corresponding to each relay.
[0106] Among them, the preset dynamic sliding window algorithm slides a dynamic window on the resistance values of multiple resistors to be measured arranged in a row, filtering out resistance values that are obviously inconsistent with the resistance values of multiple resistors to be measured, so as to obtain the resistance values of multiple filtered resistors to be measured corresponding to each relay.
[0107] For example: the initial sliding window can be preset to 5, the sliding window step size can be 1, and the mean and standard deviation of the resistance value of the resistor to be measured intercepted by the sliding window can be calculated during the sliding window process; then according to the value range of [mean value - k*standard deviation, mean value + k*standard deviation], where k can be 2 or 3, or other values, set according to needs; then determine whether the resistance value of the resistor to be measured intercepted by each sliding window is within the above value range. If it is not within the above value range, it is judged that the resistance value of the resistor to be measured intercepted by the current sliding window is obviously inconsistent with the resistance value of the resistor to be measured intercepted by other sliding windows; if it is within the above value range, the resistance value is recorded and saved in the filtered resistance storage table; if the absolute value of the difference between the resistance value of the resistor to be measured intercepted by the sliding window that is not within the above value range and the result of the above mean value - k*standard deviation is less than 30 or is not within the above value range, When the absolute value of the difference between the resistance value of the resistor to be measured captured by the sliding window and the result of the above average value + k*standard deviation is greater than 30, it means that the resistance value changes greatly. It is possible that there is noise interference when measuring the resistance value of the resistor to be measured during this period. The length of the sliding window can be expanded according to an integer multiple of the starting step length to reduce the fluctuation of the resistance value to be measured caused by noise interference, etc.; and continue to slide according to the sliding window step length according to the adjusted length of the sliding window until the resistance value of the last resistor to be measured is covered; repeat the above process to obtain the resistance values of multiple screened resistors to be measured corresponding to each relay; finally, the resistance values of the multiple screened resistors to be measured corresponding to each relay are summed, and then the sum of the resistance values of the multiple screened resistors to be measured corresponding to each relay is divided by the number of resistance values of the multiple screened resistors to be measured corresponding to each relay, as the effective resistance of the resistor to be measured corresponding to each relay.
[0108] In this embodiment, when the controller uses a preset effective resistance determination strategy to screen the resistance values of the corresponding resistors to be measured to obtain the effective resistance corresponding to each resistor to be measured, the controller is specifically configured to: use a preset dynamic sliding window algorithm to screen all resistance values of the resistors to be measured corresponding to each relay to obtain the resistance values of multiple filtered resistors to be measured corresponding to each relay; and calculate the average value of the multiple filtered resistance values of the resistors to be measured corresponding to each relay as the effective resistance of the resistor to be measured corresponding to each relay. The preset dynamic sliding window algorithm screens all resistance values of the resistors to be measured corresponding to each relay, enabling the controller to quickly and accurately screen out abnormal values and thereby determine the effective resistance value of the resistor to be measured, thereby improving the accuracy of further calculations of the measured resistors to be measured.
[0109] As an optional implementation, the controller, when determining the actual resistance value corresponding to each resistor to be measured based on each short-circuit resistor and the effective resistance corresponding to each resistor to be measured, is specifically used to: subtract the effective resistance of the resistor to be measured corresponding to each relay from the short-circuit resistance value when the auxiliary contact corresponding to each relay is closed corresponding to the current ambient temperature, and determine the subtraction result as the actual resistance value corresponding to each resistor to be measured.
[0110] Specifically, the controller 201 can obtain the current ambient temperature from the temperature sensor 224, and based on the current ambient temperature and the identifiers of each relay, obtain the short-circuit resistance value corresponding to each relay at the current temperature in the resistance storage table, and then subtract the effective resistance of the resistor to be measured corresponding to the same relay from the short-circuit resistance value at the current ambient temperature, and determine the subtraction result as the actual resistance value corresponding to each resistor to be measured.
[0111] In this embodiment, when determining the actual resistance value corresponding to each resistor to be measured based on each short-circuit resistor and the effective resistance corresponding to each resistor to be measured, the controller is specifically used to: subtract the effective resistance of the resistor to be measured corresponding to each relay from the short-circuit resistance value when the auxiliary contacts corresponding to each relay corresponding to the current ambient temperature are closed, so as to reduce the measurement error of the resistor to be measured caused by the wires and the auxiliary contacts; thereby, the subtraction result is determined as the actual resistance value corresponding to each resistor to be measured, so that a more accurate actual resistance value corresponding to each resistor to be measured can be obtained.
[0112] As an optional embodiment, the power supply VCC further includes a high-level end, the controller 201 further includes a third input end 214, one end of the power switch is connected to the high-level end of the power supply VCC, and the other end of the power switch SB1 is connected to the third input end 214; the power switch SB1 is used to close the power switch SB1 when the railway locomotive resistance measurement circuit measures the railway locomotive temperature sensor, so that the power supply VCC supplies power to the railway locomotive resistance measurement circuit.
[0113] In this embodiment, the power supply VCC also includes a high-level terminal, and the controller 201 also includes a third input terminal 214. One end of a power switch SB1 is connected to the high-level terminal of the power supply VCC, and the other end of the power switch SB1 is connected to the third input terminal 214. The power switch SB1 is configured to close the power switch SB1 when the locomotive resistance measurement circuit is measuring the locomotive temperature sensor, so that the power supply VCC supplies power to the locomotive resistance measurement circuit. Therefore, when the power switch is open, the locomotive resistance measurement circuit can be completely isolated from the power supply, avoiding the risk of short circuiting the locomotive resistance measurement circuit due to misoperation or failure. When the locomotive temperature sensor is performing a measurement, the power switch is directly closed, thereby immediately supplying power to the locomotive resistance measurement circuit for measuring the resistance of the resistor to be measured.
[0114] As an optional embodiment, the railway locomotive resistance measurement circuit further includes: an abnormality indication switch SB2, the controller 201 also includes a fourth input port 227, one end of the abnormality indication switch SB2 is connected to the high level end of the power supply VCC, and the other end of the abnormality indication switch is connected to the fourth input port 227; the abnormality indication switch SB2 is used for the controller 201 to disconnect the abnormality indication switch SB2 after determining that the resistance value of the resistor to be measured corresponding to any relay has failed to be measured.
[0115] The abnormality indicating switch SB2 may be a normally closed switch, which is a switch that is usually in a closed state.
[0116] Optionally, the railway locomotive resistance measurement circuit further includes a wire 225, and the controller 201 further includes a wire 226. The controller 201 is connected to the low-level terminal of the power supply VCC via the wire 226, thereby achieving circuit continuity among the abnormality indication switch SB2, the controller 201, and the power supply VCC.
[0117] Specifically, if Figure 2 If the resistance test of the resistor to be measured corresponding to any one of the first relay, the second relay, the third relay and the fourth relay fails, the relevant personnel can turn on the abnormality indication switch and analyze the abnormality in the resistance measurement circuit of the railway locomotive.
[0118] In this embodiment, the railway locomotive resistance measurement circuit further includes an abnormality indication switch SB2. The controller 201 also includes a fourth input port 227. One end of the abnormality indication switch SB2 is connected to the high-level terminal of the power supply VCC, and the other end of the abnormality indication switch is connected to the fourth input port 227. The abnormality indication switch SB2 is configured to be disconnected after the controller 201 determines that the resistance of the resistor to be measured corresponding to any relay has failed. Therefore, when a measurement failure or abnormality occurs, the abnormality indication switch can be immediately disconnected to stop measuring the resistance of the resistor to be measured.
[0119] Optionally, the railway locomotive resistance measurement circuit may further include auxiliary contacts corresponding to each relay and indicator lights connected to each auxiliary contact. Figure 5 As shown, Figure 5 A circuit diagram of indicator light connections provided in one embodiment of the present application; wherein the circuit for the indicator light connections includes: a third auxiliary contact K13 corresponding to the first relay K1, a third auxiliary contact K23 corresponding to the second relay K2, a third auxiliary contact K33 corresponding to the third relay K3, a fourth auxiliary contact K43 corresponding to the fourth relay K4, an indicator light L1 connected to the third auxiliary contact K13 corresponding to the first relay K1, an indicator light L2 connected to the third auxiliary contact K23 corresponding to the second relay K2, an indicator light L3 connected to the third auxiliary contact K33 corresponding to the third relay K3, and an indicator light L4 connected to the third auxiliary contact K43 corresponding to the fourth relay K4.
[0120] Among them, one end of the indicator light L1 is connected to the low voltage end of the power supply VCC, the other end of the indicator light L1 is connected to one end of the auxiliary contact K13, and the other end of the auxiliary contact K13 is connected to the high voltage end of the power supply VCC; one end of the indicator light L2 is connected to the low voltage end of the power supply VCC, the other end of the indicator light L2 is connected to one end of the auxiliary contact K23, and the other end of the auxiliary contact K23 is connected to the high voltage end of the power supply VCC; one end of the indicator light L3 is connected to the low voltage end of the power supply VCC, the other end of the indicator light L3 is connected to one end of the auxiliary contact K33, and the other end of the auxiliary contact K33 is connected to the high voltage end of the power supply VCC; one end of the indicator light L4 is connected to the low voltage end of the power supply VCC, the other end of the indicator light L4 is connected to one end of the auxiliary contact K43, and the other end of the auxiliary contact K43 is connected to the high voltage end of the power supply VCC. After the closing switch in the railway locomotive resistance measurement circuit is closed, the controller 201 controls the first relay K1 to power on multiple times, and the first relay K1 synchronously controls the auxiliary contact K13 to close multiple times. If the indicator light L1 lights up after the auxiliary contact is closed, it indicates that the first relay K1 is powered on successfully. If the indicator light L1 is not lit, it indicates that the first relay K1 fails to power on. When the controller 201 completes powering on the first relay K1, the controller 201 starts to control the second relay K2 to power on multiple times, and the second relay K2 synchronously controls the auxiliary contact K23 to close multiple times. If the indicator light L2 lights up after the auxiliary contact is closed, it indicates that the second relay K2 is powered on successfully. If the indicator light L2 is not lit, it indicates that the second relay K2 fails to power on. When the controller 201 completes powering on the second relay K2, the controller 201 starts to control the second relay K2 to power on multiple times. After the controller 201 controls the third relay K3 to power on for the first time, the third relay K3 synchronously controls the auxiliary contact K33 to close multiple times. If the indicator light L3 lights up after the auxiliary contact is closed, it indicates that the third relay K3 is powered on successfully. If the indicator light L3 does not light up, it indicates that the third relay K3 fails to power on. When the controller 201 completes powering on the third relay K3, the controller 201 starts to control the fourth relay K4 to power on multiple times. The fourth relay K4 synchronously controls the auxiliary contact K43 to close multiple times. If the indicator light L4 lights up after the auxiliary contact is closed, it indicates that the fourth relay K4 is powered on successfully. If the indicator light L4 does not light up, it indicates that the fourth relay K4 fails to power on. Therefore, whether the relay is powered on successfully can be judged according to the lighting of the indicator light. When the power-on fails, the resistance measurement of the resistor to be measured can be stopped in time and the cause can be analyzed in time.
[0121] As an optional implementation, the railway locomotive resistance measurement circuit may further include a main control circuit and an auxiliary control circuit; wherein the main control circuit is as follows: Figure 6 As shown, Figure 6 A main control circuit diagram of a railway locomotive resistance measurement circuit provided by another embodiment of the present application; Figure 6The middle main control circuit 60 includes: a power supply VCC; a first fuse FU1 and a second fuse FU2; a self-reset switch SB1 and a normally closed switch SB2; a first relay K1, a second relay K2, a third relay K3 and a fourth relay K4; a first auxiliary contact K11 corresponding to the first relay K1; a first auxiliary contact K21 and a second auxiliary contact K22 corresponding to the second relay K2; a first auxiliary contact K31 and a second auxiliary contact K32 corresponding to the third relay K3; a first auxiliary contact K41 and a second auxiliary contact K42 corresponding to the fourth relay K4; a first time delay relay KT1, a second time delay relay KT2, a third time delay relay KT3 and a fourth time delay relay KT4; an auxiliary contact KT11 corresponding to the first time delay relay, an auxiliary contact KT21 corresponding to the second time delay relay, an auxiliary contact KT31 corresponding to the third time delay relay and an auxiliary contact KT41 corresponding to the fourth time delay relay.
[0122] Among them, the first relay K1 is connected in parallel with the first time delay relay KT11; the self-resetting switch SB1 is connected in parallel with the first auxiliary contact K11 corresponding to the first relay; one end of the first auxiliary contact K21 corresponding to the second relay is connected to one end of the parallel connection circuit of the first relay K1 and the first time delay relay KT1, and the other end of the first auxiliary contact K21 corresponding to the second relay is connected to one end of the parallel circuit of the reset switch SB1 and the first auxiliary contact K11 corresponding to the first relay; the other end of the parallel circuit of the reset switch SB1 and the first auxiliary contact K11 corresponding to the first relay is connected to one end of the normally closed switch SB2; the other end of the normally closed switch SB2 is connected to one end of the first fuse; the other end of the first fuse is connected to the high level end of the power supply VCC; the other end of the parallel connection circuit of the first relay K1 and the first time delay relay KT1 is connected to one end of the second fuse FU2; the other end of the second fuse FU2 is connected to the low level end of the power supply VCC.
[0123] Among them, the second delay relay KT2 is connected in parallel with the second relay K2; one end of the parallel circuit of the second delay relay KT2 and the second relay K2 is connected to the second fuse FU2; the other end of the parallel circuit of the second delay relay KT2 and the second relay K2 is connected to one end of the first auxiliary contact K31 corresponding to the third relay; the auxiliary contact KT11 corresponding to the first delay relay and the second auxiliary contact K22 corresponding to the second relay are connected in parallel; one end of the parallel connection circuit of the auxiliary contact KT11 corresponding to the first delay relay and the second auxiliary contact K22 corresponding to the second relay is connected to the normally closed switch SB2; the other end of the parallel connection circuit of the auxiliary contact KT11 corresponding to the first delay relay and the second auxiliary contact K22 corresponding to the second relay is connected to the other end of the first auxiliary contact K31 corresponding to the third relay.
[0124] Among them, the third delay relay KT3 is connected in parallel with the third relay K3; one end of the parallel circuit of the third delay relay KT3 and the third relay K3 is connected to the second fuse FU2; the other end of the parallel circuit of the third delay relay KT3 and the third relay K3 is connected to the first auxiliary contact K41 corresponding to the fourth relay; the auxiliary contact KT21 corresponding to the second delay relay is connected in parallel with the second auxiliary contact K32 of the third relay; one end of the parallel connection circuit of the auxiliary contact KT21 corresponding to the second delay relay and the second auxiliary contact K32 of the third relay is connected to the normally closed switch SB2; the other end of the parallel connection circuit of the auxiliary contact KT21 corresponding to the second delay relay and the second auxiliary contact K32 of the third relay is connected to the first auxiliary contact K41 corresponding to the fourth relay.
[0125] Among them, the fourth delay relay KT4 is connected in parallel with the fourth relay K4; one end of the parallel circuit of the fourth delay relay KT4 and the fourth relay K4 is connected to the second fuse FU2; the other end of the parallel circuit of the fourth delay relay KT4 and the fourth relay K4 is connected to the auxiliary contact KT41 corresponding to the fourth delay relay; the auxiliary contact KT31 corresponding to the third delay relay is connected in parallel with the second auxiliary contact K42 of the fourth relay; one end of the parallel connection circuit of the auxiliary contact KT31 corresponding to the third delay relay and the second auxiliary contact K42 of the fourth relay is connected to the normally closed switch SB2; the other end of the parallel connection circuit of the auxiliary contact KT31 corresponding to the third delay relay and the second auxiliary contact K42 of the fourth relay is connected to the auxiliary contact KT41 corresponding to the fourth delay relay.
[0126] Among them, the first fuse FU1 and the second fuse FU2 are used to automatically blow when the current in the railway locomotive resistance measurement circuit exceeds the rated value of the fuse, cutting off the circuit and preventing damage to the relay, etc.
[0127] Among them, the first time delay relay KT1, the second time delay relay KT2, the third time delay relay KT3 and the fourth time delay relay KT4 are used to delay control of each relay to power on after each relay is closed.
[0128] The self-resetting switch SB1 is used to instantaneously close and energize the first relay instantaneously when measuring the resistance value of the railway locomotive.
[0129] The normally closed switch SB2 is used to promptly disconnect the normally closed switch SB2 when the resistance measurement of the railway locomotive fails, so as to troubleshoot the resistance measurement circuit of the railway locomotive.
[0130] Among them, the first auxiliary contact K21 corresponding to the second relay K2, the first auxiliary contact K31 corresponding to the third relay K3, the first auxiliary contact K41 corresponding to the fourth relay K4 and the auxiliary contact KT41 corresponding to the fourth delay relay KT4 are all normally closed auxiliary contacts. When the corresponding relays are powered on, the normally closed auxiliary contacts will be disconnected to disconnect the circuit.
[0131] Among them, auxiliary circuits such as Figure 7 As shown, Figure 7 This is an auxiliary circuit diagram of a railway locomotive resistance measurement circuit provided in another embodiment of the present application; Figure 7 The auxiliary circuit 70 includes: a multimeter 71, a second auxiliary contact K12 and a corresponding third auxiliary contact K13 corresponding to the first relay K1; a third auxiliary contact K23 and a corresponding fourth auxiliary contact K24 corresponding to the second relay K2; a third auxiliary contact K33 and a corresponding fourth auxiliary contact K34 corresponding to the third relay K3; a third auxiliary contact K43 and a corresponding fourth auxiliary contact K44 corresponding to the fourth relay K4; a connector 72 connected to the second auxiliary contact corresponding to the first relay K1, a connector 76 connected to the third auxiliary contact K13 corresponding to the first relay K1; a connector 73 connected to the third auxiliary contact K23 corresponding to the second relay K2, a connector 77 connected to the fourth auxiliary contact K24 corresponding to the second relay K2; a connector 74 connected to the third auxiliary contact K33 corresponding to the third relay K3; a connector 78 connected to the fourth auxiliary contact K34 corresponding to the third relay K3; a connector 75 connected to the third auxiliary contact K43 corresponding to the fourth relay K4; and a connector 79 connected to the fourth auxiliary contact K44 corresponding to the fourth relay K4.
[0132] Among them, the other end of the second auxiliary contact K12 corresponding to the first relay K1, the other end of the third auxiliary contact K23 corresponding to the second relay K2, the other end of the third auxiliary contact K33 corresponding to the third relay K3, and the other end of the third auxiliary contact K43 corresponding to the fourth relay K4 are commonly connected to one of the test ports in the multimeter 71; the other end of the third auxiliary contact K13 corresponding to the first relay K1, the other end of the fourth auxiliary contact K24 corresponding to the second relay K2, the other end of the fourth auxiliary contact K34 corresponding to the third relay K3, and the other end of the fourth auxiliary contact K44 corresponding to the fourth relay K4 are commonly connected to another port of the test port in the multimeter 71.
[0133] Specifically, the main control circuit 60 controls each relay to energize and control each corresponding auxiliary contact in the auxiliary circuit 70 to achieve measurement of each resistance to be measured. For example, Figure 3The four resistors to be measured of the gearbox temperature sensor are connected to the resistance measurement circuit of the railway locomotive; wherein, the resistor to be measured 31 is connected to connector 72 and connector 76; the resistor to be measured 32 is connected to connector 73 and connector 77; the resistor to be measured 33 is connected to connector 74 and connector 78; the resistor to be measured 34 is connected to connector 75 and connector 79. The relevant staff closes the reset switch SB1, and the power supply instantly powers on the first relay K1 and the first delay relay KT1. The reset switch is reset and disconnected at the instant SB1. After the first relay K1 is powered on, the first auxiliary contact K11 in the main control circuit 60 is controlled to be closed, and the second auxiliary contact K12 corresponding to the first relay in the auxiliary circuit 70 is controlled to be closed and the third auxiliary contact K13 corresponding to the first relay is controlled to be closed; when the second auxiliary contact K12 corresponding to the first relay is closed and the third auxiliary contact K13 corresponding to the first relay is closed, the multimeter 71 displays the reading of the resistor to be measured 31 and the relevant staff records the reading; the first delay relay KT1 is closed. After the time relay KT1 is powered on, it first delays for 3 seconds and then controls the auxiliary contact KT11 corresponding to the first delay relay to close. At this time, the power supply VCC powers on the second relay K2 and the second delay relay KT2. After the second relay K2 is powered on, the second relay K2 controls the first auxiliary contact K21 corresponding to the second relay to open and controls the second auxiliary contact K22 corresponding to the second relay to close. At this time, the power supply VCC and the first relay KT1 are disconnected, and the first relay K1 and the first delay relay KT1 are both powered off. After the first delay relay KT1 is powered off, the auxiliary contact KT11 corresponding to the first delay relay is disconnected. Since the second auxiliary contact K22 corresponding to the second relay is closed, the power supply VCC can continue to supply power to the second relay K2 and the second delay relay KT2; at the same time, the second relay K2 controls the third auxiliary contact K23 corresponding to the second relay and the fourth auxiliary contact K24 corresponding to the second relay in the auxiliary circuit to be closed; the multimeter 71 displays the reading of the resistor 32 to be measured and the relevant personnel record the reading; after the second delay relay KT2 is powered on, it delays for 3 seconds and then controls the auxiliary contact KT21 corresponding to the second delay relay KT2 to be closed. At this time, the power supply VCC powers on the third relay K3 and the third delay relay KT3, and the third relay K After power is applied, the third relay K3 controls its corresponding first auxiliary contact K31 to open and controls its corresponding second auxiliary contact K32 to close. At this time, the power supply VCC and the second relay K3 are disconnected, and the second relay K2 and the second delay relay KT2 are powered off. After the second delay relay KT2 is powered off, the auxiliary contact KT21 corresponding to the second delay relay is disconnected. Since K32 is closed, the power supply VCC can continue to supply power to the third relay K3 and the third delay relay KT3. At the same time, the third relay K3 controls the third auxiliary contact K33 and the fourth auxiliary contact K34 corresponding to the third relay in the auxiliary circuit to close.The multimeter 71 displays the reading of the resistor 33 to be measured and the reading is recorded by the relevant personnel; after the third delay relay KT3 is powered on, it first delays for 3 seconds, and then controls the auxiliary contact KT31 corresponding to the third delay relay to close. At this time, the power supply is powered on for the fourth relay K4 and the fourth delay relay KT4. After the fourth relay K4 is powered on, the fourth relay K4 controls the first auxiliary contact K41 corresponding to the fourth relay to be disconnected and controls the second auxiliary contact K42 corresponding to it to be closed. At this time, the power supply and the third relay K3 are disconnected, and the third relay K3 is powered off; after the third delay relay KT3 is powered off, the auxiliary contact K T31 is disconnected; since the second auxiliary contact K42 corresponding to the fourth relay is closed, the power supply VCC can continue to supply power to the fourth relay K4 and the fourth delay relay KT4. At the same time, the third auxiliary contact K42 and the corresponding fourth auxiliary contact K43 in the auxiliary circuit controlled by the fourth relay K4 are closed; the multimeter 71 displays the reading of the resistor 34 to be measured, and the relevant personnel record the reading; after the fourth delay relay is powered on, after a delay of 3 seconds, the auxiliary contact KT41 corresponding to the fourth relay controller is disconnected, the fourth relay K4 is disconnected from the power supply VCC, and the fourth relay K4 and the fourth delay relay KT4 are powered off.
[0134] Optionally, the main control circuit 60 may further include auxiliary contacts corresponding to each relay and indicator lights connected to each auxiliary contact. Figure 8 As shown, Figure 8This is a circuit diagram of the indicator light connection provided in another embodiment of the present application; wherein, it includes: a fourth auxiliary contact K14 corresponding to the first relay, a fifth auxiliary contact K25 corresponding to the second relay, a fifth auxiliary contact K35 corresponding to the third relay, and a fifth auxiliary contact K45 corresponding to the fourth relay. Among them, one end of the indicator light L1 is connected to the low voltage end of the power supply VCC, the other end of the indicator light L1 is connected to one end of the auxiliary contact K14, and the other end of the auxiliary contact K14 is connected to the high voltage end of the power supply VCC; one end of the indicator light L2 is connected to the low voltage end of the power supply VCC, the other end of the indicator light L2 is connected to one end of the auxiliary contact K25, and the other end of the auxiliary contact K25 is connected to the high voltage end of the power supply VCC; one end of the indicator light L3 is connected to the low voltage end of the power supply VCC, the other end of the indicator light L3 is connected to one end of the auxiliary contact K35, and the other end of the auxiliary contact K35 is connected to the high voltage end of the power supply VCC; one end of the indicator light L4 is connected to the low voltage end of the power supply VCC, the other end of the indicator light L4 is connected to one end of the auxiliary contact K45, and the other end of the auxiliary contact K45 is connected to the high voltage end of the power supply VCC. When the reset switch SB1 in the railway locomotive resistance measurement circuit is closed, the first relay K1 is powered on, and the first relay synchronously controls the auxiliary contact K14 to close. If the auxiliary contact K14 is closed, the indicator light L1 is on, indicating that the first relay is powered on successfully. If the indicator light L1 is not on, it indicates that the first relay fails to power on. When the second relay K2 is powered on, the second relay K2 synchronously controls the auxiliary contact K25 to close. If the auxiliary contact K25 is closed, the indicator light L2 is on, indicating that the second relay is powered on successfully. If the indicator light L2 is not on, it indicates that the second relay K2 fails to power on. When the third relay K3 is powered on, the third relay K3 synchronously controls the auxiliary contact K25 to close. If the auxiliary contact K25 is closed, the indicator light L2 is on, indicating that the second relay is powered on successfully. If the indicator light L2 is not on, it indicates that the second relay K2 fails to power on. The auxiliary contact K35 is controlled to be closed. If the indicator light L3 lights up after the auxiliary contact K35 is closed, it indicates that the third relay K3 is powered on successfully. If the indicator light L3 does not light up, it indicates that the third relay K3 fails to be powered on. When the fourth relay K4 is powered on, the fourth relay K4 synchronously controls the auxiliary contact K45 to be closed. If the indicator light L4 lights up after the auxiliary contact K45 is closed, it indicates that the fourth relay is powered on successfully. If the indicator light L4 does not light up, it indicates that the fourth relay fails to be powered on. Therefore, whether the relay is powered on successfully can be judged according to the lighting status of the indicator light. When the relay fails to be powered on, the resistance measurement of the resistor to be measured can be stopped in time and the cause can be analyzed in time.
[0135] Figure 9 This is a flow chart of a method for measuring resistance of a railway locomotive provided in one embodiment of the present application. Figure 9 As shown, the embodiment of the present invention is performed by a railway locomotive resistance measurement circuit. The railway locomotive resistance measurement method provided by the present embodiment includes the following steps:
[0136] S901: In response to the power switch being closed, each relay is controlled to be powered on according to a preset resistance measurement strategy, so that each relay controls the corresponding auxiliary contact to be closed multiple times and obtains the resistance value of the corresponding resistor to be measured after the corresponding auxiliary contact is closed.
[0137] S902: For each resistor to be measured, a preset effective resistance determination strategy is used to screen the resistance value of the corresponding resistor to be measured to obtain the effective resistance corresponding to each resistor to be measured.
[0138] S903: Obtain the short-circuit resistance value when the auxiliary contacts corresponding to the relays are closed at the current ambient temperature, and determine the actual resistance value corresponding to each resistor to be measured based on each short-circuit resistance and the effective resistance corresponding to each resistor to be measured.
[0139] Optionally, S901 includes: in response to the power switch being closed, controlling the current relay to be powered on multiple times so that the corresponding auxiliary contact is controlled to be closed after each power-on, and obtaining the resistance value of the resistance to be measured corresponding to the current relay measured multiple times by the resistance measurement module, and after determining that the measurement is successful based on the resistance value of the resistance to be measured corresponding to the current relay measured multiple times, continuing to control the next relay to be powered on multiple times so that the corresponding auxiliary contact is controlled to be closed after each power-on, until the resistance value of the resistance to be measured corresponding to the last relay is obtained.
[0140] Optionally, determining that the measurement is successful based on the resistance value of the resistor to be measured corresponding to the current relay measured multiple times includes:
[0141] Obtain a standard resistor corresponding to the current ambient temperature collected by a temperature sensor; calculate an average value of the resistance value of the resistance to be measured corresponding to the current relay measured multiple times; if the absolute value of the difference between the average value of the resistance value of the corresponding resistance to be measured and the standard resistance exceeds a preset standard threshold, determine that the resistance measurement of the resistance to be measured corresponding to the current relay has failed; then continue to power on the current relay multiple times to control the corresponding auxiliary contact to be closed after each power-on, and continue to obtain the resistance value of the resistance to be measured corresponding to the current relay measured multiple times by the resistance measurement module; if the absolute values of the difference between the average value of the resistance value of the resistance to be measured corresponding to the current relay measured multiple times by the multiple resistance measurement modules calculated again and the standard resistance do not exceed the preset standard threshold, determine that the resistance measurement of the resistance to be measured corresponding to the current relay is successful; if the absolute value of the difference between the average value of the resistance value of the corresponding resistance to be measured and the standard resistance does not exceed the preset standard threshold, determine that the resistance measurement of the resistance to be measured corresponding to the current relay is successful.
[0142] Optionally, step 902 includes: for the resistance to be measured corresponding to each relay, using a preset dynamic sliding window algorithm to screen all resistance values of the resistance to be measured corresponding to each relay to obtain the resistance values of multiple screened resistances to be measured corresponding to each relay; calculating the average value of the resistance values of the multiple screened resistances to be measured corresponding to each relay, and using the average value as the effective resistance of the resistance to be measured corresponding to each relay.
[0143] Optionally, step 903 includes: subtracting the effective resistance of the resistor to be measured corresponding to each relay from the short-circuit resistance value when the auxiliary contact corresponding to each relay is closed corresponding to the current ambient temperature, and determining the subtraction result as the actual resistance value corresponding to each resistor to be measured.
[0144] The implementation method and technical effects in this embodiment are similar to the implementation methods of the corresponding solutions in the above embodiments, and will not be repeated here.
[0145] Figure 10 A railway locomotive resistance measurement system is provided in an embodiment of the present application, such as Figure 10 As shown, the railway locomotive resistance measurement system 1000 provided in this embodiment includes: a railway locomotive resistance measurement circuit 1001 and an output device 1002; the railway locomotive resistance measurement circuit 1001 is connected to the output device 1002;
[0146] The railway locomotive resistance measurement circuit 1001 is used to measure the actual resistance corresponding to each resistor to be measured according to the railway locomotive resistance measurement method.
[0147] The output device 1002 is used to output the actual resistance value corresponding to each resistor to be measured.
[0148] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0149] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program code.
[0150] Those skilled in the art will appreciate that all or part of the steps in the above-described method embodiments can be implemented using hardware associated with program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0151] Finally, it should be noted that those skilled in the art will readily identify other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art not disclosed herein. The present invention is not limited to the precise structure described above and illustrated in the accompanying drawings, and various modifications and variations may be made without departing from the scope thereof. The scope of the present invention is limited solely by the appended claims.
Claims
1. A railway locomotive resistance measurement circuit, characterized in that: The railway locomotive resistance measurement circuit includes: a power switch, a controller, multiple relays, auxiliary contacts corresponding to each relay, and connectors corresponding to the auxiliary contacts. The power switch is connected to the controller; the controller is respectively connected to each relay and the auxiliary contacts corresponding to each relay; each connector is connected to a corresponding resistor to be measured, and each resistor to be measured is located in a railway locomotive temperature sensor. The controller is configured to control each of the relays to be powered on according to a preset resistance measurement strategy in response to the closure of the power switch, so that each of the relays controls the corresponding auxiliary contacts to be closed multiple times and obtains the resistance value of the corresponding resistor to be measured after the corresponding auxiliary contacts are closed; The controller is further configured to screen the resistance value of each resistor to be measured using a preset effective resistance determination strategy to obtain the effective resistance corresponding to each resistor to be measured; The controller is further used to obtain the short-circuit resistance value when the auxiliary contacts corresponding to each relay are closed corresponding to the current ambient temperature, and determine the actual resistance value corresponding to each resistor to be measured based on each short-circuit resistance and the effective resistance corresponding to each resistor to be measured.
2. The railway locomotive resistance measurement circuit according to claim 1, characterized in that: The railway locomotive resistance measurement circuit further includes a power supply, the power supply including: a low level end, the power supply being connected to the controller; The controller includes a plurality of output ports, the number of the output ports being the same as the number of the relays; One end of each relay is connected to the controller via a corresponding output port; the other end of each relay is connected to the low level end; The power supply is used to supply power to the railway locomotive resistance measurement circuit.
3. The railway locomotive resistance measurement circuit according to claim 1, characterized in that: The controller includes a first input port and a second input port; the auxiliary contacts corresponding to each of the relays include a first auxiliary contact and a second auxiliary contact; The first input port is connected to a first auxiliary contact corresponding to each relay, and the second input port is connected to a second auxiliary contact corresponding to each relay.
4. The railway locomotive resistance measurement circuit according to claim 2, characterized in that: The controller, in response to the closure of the power switch, controls each relay to be powered on according to a preset resistance measurement strategy, so that each relay controls the corresponding auxiliary contact to be closed multiple times and obtains the resistance value of the corresponding resistor to be measured after the corresponding auxiliary contact is closed, specifically for: In response to the closure of the power switch, the current relay is controlled to be powered on multiple times so that the corresponding auxiliary contact is controlled to be closed after each power-on, and the resistance value of the resistance to be measured corresponding to the current relay measured multiple times by the resistance measurement module is obtained. After determining that the measurement is successful based on the resistance value of the resistance to be measured corresponding to the current relay measured multiple times, the next relay is controlled to be powered on multiple times so that the corresponding auxiliary contact is controlled to be closed after each power-on, until the resistance value of the resistance to be measured corresponding to the last relay is obtained.
5. The railway locomotive resistance measurement circuit according to claim 4, characterized in that: The railway locomotive resistance measurement circuit further includes: a temperature sensor connected to the controller; The temperature sensor is used to collect the current ambient temperature and send the current ambient temperature to the controller.
6. The railway locomotive resistance measurement circuit according to claim 5, characterized in that: The controller is specifically configured to, when determining that the measurement is successful based on the resistance value of the resistor to be measured corresponding to the current relay measured multiple times,: Obtaining a standard resistance corresponding to the current ambient temperature collected by the temperature sensor; Calculate the average value of the resistance to be measured corresponding to the current relay measured multiple times; If the absolute value of the difference between the average value of the resistance of the corresponding resistor to be measured and the standard resistance exceeds a preset standard threshold, it is determined that the resistance measurement of the resistor to be measured corresponding to the current relay has failed; then the current relay is powered on multiple times so that the corresponding auxiliary contact is controlled to be closed after each power-on, and the resistance measurement module is continued to obtain the resistance value of the resistor to be measured corresponding to the current relay multiple times; If the absolute value of the difference between the average value of the resistance value of the resistance to be measured corresponding to the current relay and the standard resistance measured by the multiple resistance measurement modules calculated again does not exceed the preset standard threshold, it is determined that the resistance value measurement of the resistance to be measured corresponding to the current relay is successful; If the absolute value of the difference between the average resistance value of the corresponding resistor to be measured and the standard resistance does not exceed the preset standard threshold, it is determined that the resistance value measurement of the resistor to be measured corresponding to the current relay is successful.
7. The railway locomotive resistance measurement circuit according to claim 1, characterized in that: The controller, when using a preset effective resistance determination strategy to screen the resistance values of the corresponding resistors to be measured to obtain the effective resistance corresponding to each resistor to be measured, is specifically used to: For the resistance to be measured corresponding to each relay, a preset dynamic sliding window algorithm is used to screen all resistance values of the resistance to be measured corresponding to each relay to obtain multiple screened resistance values of the resistance to be measured corresponding to each relay; An average value of the resistance values of the plurality of screened resistors to be measured corresponding to each relay is calculated and used as the effective resistance of the resistor to be measured corresponding to each relay.
8. The railway locomotive resistance measurement circuit according to claim 1, characterized in that: The controller is specifically configured to, when determining the actual resistance value corresponding to each resistor to be measured based on each short-circuit resistor and the effective resistance corresponding to each resistor to be measured: The effective resistance of the resistor to be measured corresponding to each relay is subtracted from the short-circuit resistance value when the auxiliary contact corresponding to each relay is closed corresponding to the current ambient temperature, and the subtraction result is determined as the actual resistance value corresponding to each resistor to be measured.
9. The railway locomotive resistance measurement circuit according to claim 2, characterized in that: The power supply further includes a high level terminal, the controller further includes a third input terminal, one end of the power switch is connected to the high level terminal of the power supply, and the other end of the power switch is connected to the third input terminal; The power switch is used to close the power switch when the railway locomotive resistance measurement circuit measures the railway locomotive temperature sensor, so that the power supply can supply power to the railway locomotive resistance measurement circuit.
10. The railway locomotive resistance measurement circuit according to claim 4, characterized in that: The railway locomotive resistance measurement circuit further includes: an abnormality indication switch, the controller further includes a fourth input port, one end of the abnormality indication switch is connected to the high level end of the power supply, and the other end of the abnormality indication switch is connected to the fourth input port; The abnormality indication switch is used to disconnect the abnormality indication switch after the controller determines that the resistance value of the resistor to be measured corresponding to any relay has failed to be measured.
11. A method for measuring resistance of a railway locomotive, characterized in that: The method is performed by the railway locomotive resistance measurement circuit according to any one of claims 1 to 10, and the method comprises: In response to the closure of the power switch, controlling each of the relays to be powered on according to a preset resistance measurement strategy, so that each of the relays controls the corresponding auxiliary contacts to be closed multiple times and obtains the resistance value of the corresponding resistor to be measured after the corresponding auxiliary contacts are closed; For each resistor to be measured, a preset effective resistance judgment strategy is used to screen the resistance value of the corresponding resistor to be measured to obtain the effective resistance corresponding to each resistor to be measured; The short-circuit resistance value when the auxiliary contact corresponding to each relay is closed corresponding to the current ambient temperature, and the actual resistance value corresponding to each resistor to be measured is determined based on the short-circuit resistance and the effective resistance corresponding to each resistor to be measured.
12. A railway locomotive resistance measurement system, comprising the railway locomotive resistance measurement circuit and an output device according to any one of claims 1 to 10; the railway locomotive resistance measurement circuit is connected to the output device; The railway locomotive resistance measurement circuit is used to measure the actual resistance corresponding to each resistor to be measured according to the railway locomotive resistance measurement method according to claim 11; The output device is used to output the actual resistance value corresponding to each resistor to be measured.