PDU device and control method thereof

By using the technical means of automatic calibration and adaptive calibration in PDU equipment, the connection problems caused by manual calibration hole position and mechanical error are solved, and automated and safe and reliable power switching is achieved.

CN113659402BActive Publication Date: 2024-11-05GUOCHUANG INNOVATION CENTER OF MOBILE ENERGY (JIANGSU) CO.,LTD.
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110847401.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-27
Publication Date
2024-11-05
Estimated Expiration
2041-07-27

AI Technical Summary

Technical Problem

The existing PDU equipment needs to manually calibrate the position information of the hole position before use, resulting in waste of manpower and material resources. Due to mechanical assembly errors and structural aging, it is difficult for the equipment to automatically and safely and accurately reach the designated hole position, which easily leads to connection failure.

Method used

Using PDU equipment including input copper bars, output copper bars and single-channel PDU track system, the trolley automatically calibrates the hole position position using the first drive motor, synchronization belt, encoder, stroke switch and reflective photoelectric switch, and through sub-control The device performs automatic adaptive calibration to ensure motion accuracy.

Benefits of technology

It realizes that the PDU device can automatically calibrate the hole position information without manual configuration when starting, avoiding the waste of manpower and material resources, and through automatic calibration, the movement distance changes caused by aging and vibration of the system are ensured to ensure the safety of the connection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113659402B_ABST
    Figure CN113659402B_ABST
Patent Text Reader

Abstract

The present invention provides a PDU device and a control method thereof, wherein the PDU device comprises an input and output copper bar and a plurality of single-channel PDU track systems, wherein the plurality of single-channel PDU track systems are connected to the input and output copper bar to realize power switching, and the single-channel PDU track system comprises: a first driving motor, a synchronous belt, an encoder, a travel switch, a positioning hole, a trolley provided with a reflective photoelectric switch, a contact arranged on the trolley, and a second driving motor for driving the contact to move, wherein the first driving motor is used to drive the synchronous belt to move so as to drive the trolley to move, the encoder is used to measure the distance of the trolley movement, the positioning hole is located in the middle of each hole position, and is used as a calibration standard for the hole position, and the first driving motor, the travel switch, the reflective photoelectric switch, the second driving motor and the encoder in the single-channel PDU track system are all connected to corresponding sub-controllers for control and information collection. The position information of each hole position can be automatically calibrated without manual configuration, and waste of manpower and material resources can be effectively avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of PDU equipment, and in particular to a PDU equipment and a control method for the PDU equipment. Background Art

[0002] Most charging equipment uses relay arrays for energy distribution. Relay arrays use a large number of relays for power distribution operations, and the wiring is complex and the subsequent maintenance cost is also high. In order to solve these problems, array PDU (Power Distribution Unit) equipment came into being. The array PDU equipment is divided into input copper bars and output copper bars. The copper bars are moved by the PDU trolley and the contacts are extended to complete the switching connection of the input and output copper bars. This type of equipment has a simple structure, less wiring, convenient troubleshooting, low cost, and is easy to maintain in the future.

[0003] In the related art, since different types of charging devices require different PDU specifications, it is necessary to manually calibrate the hole position information before use, which consumes a lot of manpower and material resources. Summary of the invention

[0004] In order to solve the above technical problems, the present invention provides a PDU device, which can automatically calibrate the position information of each hole when the PDU device is started and used, without manual configuration, thereby effectively avoiding the waste of manpower and material resources.

[0005] The technical solution adopted by the present invention is as follows:

[0006] A PDU device includes an input copper bar, an output copper bar and a plurality of single-channel PDU track systems, wherein the input copper bar and the output copper bar are used to connect input cables and output cables, and the plurality of single-channel PDU track systems are used to connect the input copper bar and the output copper bar to realize power switching, wherein the single-channel PDU track system includes: a first drive motor, a synchronous belt, an encoder, a travel switch, a positioning hole, a trolley provided with a reflective photoelectric switch, a contact provided on the trolley, and a second drive motor driving the contact to move, wherein the first drive motor is used to drive the synchronous belt to move so as to drive the trolley to move, the encoder is used to measure the distance of movement of the trolley, the travel switch is used to limit the movement range of the trolley, and the positioning hole is located in the middle of each hole position and is used as a calibration standard for the hole position, wherein the first drive motor, the travel switch, the reflective photoelectric switch, the second drive motor and the encoder in the single-channel PDU track system are all connected to corresponding sub-controllers for control and information collection.

[0007] A control method for a PDU device comprises the following steps: step S1, controlling the trolley to move from a zero point to a tail end at a first preset speed; step S2, judging whether the travel switch arranged at the tail end is triggered, if yes, executing step S7, if not, executing step S3; step S3, judging whether the reflective photoelectric switch is triggered, if yes, executing step S4, if not, returning to execute step S2; step S4, judging whether the reflective photoelectric switch has been triggered at the previous moment, if yes, executing step S5, if not, executing step S6; step S5, recording the number of pulses from the current hole position to the previous hole position through the encoder, and returning to execute step S2; step S6, recording the number of pulses from the zero point to the first hole position through the encoder, and returning to execute step S2; step S7, controlling the trolley to stop moving, and moving the trolley to the head end.

[0008] The control method of the PDU device also includes the following steps: step S101, judging whether the first hole spacing information reported by the PDU rail system of other roads is received, if yes, executing step S102, if not, executing step S103; step S102, saving the first hole spacing information reported by the PDU rail system of other roads, and executing step S103; step S103, judging whether the motion control instruction is received, if yes, executing step S104, if not, returning to execute step S101; step S104, calculating the first number of pulses required to move to the target hole position, refreshing the position information of the current hole position, and setting the hole spacing pulse count to zero; step S105, controlling the trolley to move at a second preset speed, and continuously updating the hole spacing pulse count through the encoder during the movement; step S106, judging Check whether the reflective photoelectric switch is triggered, if yes, execute step S107, if not, continue to execute step S106; step S107, add one or subtract one to the position information of the current hole position according to the movement direction of the trolley, and after updating the hole position spacing pulse count to the second hole position spacing information of the current single-channel PDU track system, reset the hole position spacing pulse count to zero and restart counting; step S108, determine whether the trolley moves the first pulse number in total, if yes, execute step S109, if not, return to execute step S105; step S109, control the trolley to stop moving, and determine whether there is a deviation between the second hole position spacing information and the first hole position spacing information, if yes, execute step S110; step S110, disable the current single-channel PDU track system, and issue an abnormal warning.

[0009] The calculation of the first number of pulses required to move to the target hole position includes the following steps: obtaining the current hole position, the target hole position, and the hole position between the current hole position and the target hole position; respectively calculating the number of hole position spacing pulses between two adjacent hole positions, and summing the number of hole position spacing pulses between two adjacent hole positions to calculate the first number of pulses.

[0010] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the control method of the PDU device is implemented.

[0011] A non-temporary computer-readable storage medium stores a computer program, which implements the control method of the PDU device when executed by a processor.

[0012] One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages:

[0013] (1) When the PDU device is started and used, the present invention can automatically calibrate the position information of each hole without manual configuration, thereby effectively avoiding the waste of manpower and material resources.

[0014] (2) When the PDU device is running, the present invention can continuously and automatically adaptively calibrate the number of motion pulses between each hole position, effectively compensate for changes in movement distance caused by various reasons such as system aging or vibration, prevent connection failure caused by inadequate movement or overshoot, and automatically determine whether there is an abnormality in each track based on all track data in the entire system to ensure system safety. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 A flowchart of a PDU device control method according to an embodiment of the present invention;

[0016] Figure 2 A schematic diagram of the structure of a single-channel PDU track system according to an embodiment of the present invention;

[0017] Figure 3 The present invention is a flowchart of a PDU device control method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0018] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0019] Most charging equipment uses relay arrays for energy distribution. Relay arrays use a large number of relays for power distribution operations, and the wiring is complex and the subsequent maintenance cost is also high. In order to solve these problems, array PDU (Power Distribution Unit) equipment came into being. The array PDU equipment is divided into input copper bars and output copper bars. The copper bars are moved by the PDU trolley and the contacts are extended to complete the switching connection of the input and output copper bars. This type of equipment has a simple structure, less wiring, convenient troubleshooting, low cost, and is easy to maintain in the future.

[0020] In the related art, since different types of charging devices require different PDU specifications, it is necessary to manually calibrate the hole position information before use, which consumes a lot of manpower and material resources.

[0021] To this end, the present invention proposes a PDU device, which can automatically calibrate the position information of each hole when the PDU device is started and used, without manual configuration, thereby effectively avoiding the waste of manpower and material resources.

[0022] Specifically, the PDU device may include an input copper bus, an output copper bus, and a plurality of single-channel PDU track systems, wherein the input copper bus and the output copper bus are used to connect input cables and output cables, and the plurality of single-channel PDU track systems are used to connect the input copper bus and the output copper bus to achieve power switching, wherein, Figure 1 As shown, the single-channel PDU track system of the embodiment of the present invention may include: a first drive motor 100, a synchronous belt 200, an encoder 300, a travel switch 400, a positioning hole 500, a trolley 600 provided with a reflective photoelectric switch, and a contact ( Figure 1 ) and a second drive motor (not specifically shown) that drives the contact to move Figure 1 ), wherein the first drive motor 100 is used to drive the synchronous belt 200 to move, so as to drive the trolley 600 to move, the encoder 300 is used to measure the distance of the trolley 600 movement, the travel switch 400 is used to limit the movement range of the trolley, and the positioning hole 500 is located in the middle of each hole position, which is used as a calibration standard for the hole position, wherein the first drive motor 100, the travel switch 400, the reflective photoelectric switch, the second drive motor and the encoder 300 in the single-channel PDU track system are all connected to the corresponding sub-controller ( Figure 1 (not specifically shown) and performs control and information collection.

[0023] Among them, the corresponding control signal can be sent through the sub-controller to control the PDU device to execute the corresponding control strategy, so that when the PDU device is started and used, the position information of each hole can be automatically calibrated without manual configuration, thereby effectively avoiding the waste of manpower and material resources.

[0024] Specifically, based on the specific structure of the PDU device in the above embodiment, Figure 2 As shown, a control method of a PDU device according to an embodiment of the present invention may include the following steps:

[0025] S1, controls the car to move from the zero point to the tail end at the first preset speed.

[0026] Among them, the first preset speed is the minimum speed of the car.

[0027] S2, determine whether the travel switch set at the tail end is triggered. If yes, execute step S7; if not, execute step S3.

[0028] Specifically, if the trolley triggers the travel switch set at the tail end, it means that the trolley has run to the tail end; if the trolley does not trigger the travel switch set at the tail end, it means that the trolley has not run to the tail end, and the movement of the trolley needs to continue to be controlled.

[0029] S3, determine whether the reflective photoelectric switch is triggered. If yes, execute step S4; if no, return to execute step S2.

[0030] Specifically, the positioning hole on each hole position is located in the middle of the hole position. When the reflective photoelectric switch on the trolley is not in the middle of the corresponding hole position, the reflected photoelectric information will be detected. At this time, the reflective photoelectric switch will not be triggered; when the reflective photoelectric switch on the trolley is in the middle of the corresponding hole position, the photoelectric signal will pass through the round hole in the middle of the hole position and will not be reflected back to the trolley. The photoelectric signal will not be detected. At this time, the reflective photoelectric switch is triggered.

[0031] S4, determine whether the reflective photoelectric switch has been triggered at the previous moment. If yes, execute step S5; if not, execute step S6.

[0032] S5, record the pulse number from the current hole position to the previous hole position through the encoder. After executing step S5, return to execute step S2.

[0033] S6, record the pulse number from zero point to the first hole position through the encoder. After executing step S5, return to execute step S2.

[0034] Specifically, it is determined whether the reflective photoelectric switch has been triggered at the previous moment to determine whether the current hole position is hole position 1 (the hole positions are sorted from the beginning to the end, and are divided into hole position 0, hole position 1, etc.). If the reflective photoelectric switch has been triggered at the previous moment, it means that the current hole position is not hole position 1. At this time, the encoder can be used to record the number of pulses from the current hole position to the previous hole position, and determine whether the trolley has run to the end; if the reflective photoelectric switch has not been triggered at the previous moment, it means that the current hole position is hole position 1. At this time, the encoder can be used to record the number of pulses from the zero point to the first hole position, and determine whether the trolley has run to the end.

[0035] S7, controlling the trolley to stop moving and moving the trolley to the head end.

[0036] Specifically, after determining that the trolley has run to the rear end, the trolley is controlled to stop moving and moved to the front end. Thus, no manual configuration is required, and the hole position calibration can be automatically performed at startup, thereby effectively avoiding the waste of manpower and material resources.

[0037] It is understandable that in the relevant technology, since the specifications of the PDU equipment required by different models of charging equipment are different, the number of holes in the PDU equipment is also different. At the same time, due to the existence of mechanical assembly errors, the distance between each hole on the PDU equipment is also inconsistent. Finally, long-term use of the equipment will also lead to aging of the drive component structure. These will cause the PDU equipment to be unable to automatically, safely and accurately reach the designated hole.

[0038] To this end, the sub-controller in the present invention can also control the PDU device to automatically and adaptively calibrate the number of motion pulses between each hole position, effectively compensating for changes in movement distance caused by various reasons such as system aging or vibration, and preventing connection failure due to inadequate movement or overshoot.

[0039] Specifically, based on the PDU device of the above embodiment, Figure 3 As shown, the control method of the PDU device in another embodiment of the present invention further includes the following steps:

[0040] S101, determining whether first hole spacing information reported by other PDU track systems is received. If yes, executing step S102; if not, executing step S103.

[0041] S102, save the first hole spacing information reported by the PDU track system of other roads. Then, execute step S103.

[0042] S103, determine whether a motion control instruction is received. If yes, execute step S104, if not, return to execute step S101.

[0043] S104, calculating the first pulse number required to move to the target hole position, refreshing the position information of the current hole position, and setting the hole position spacing pulse count to zero.

[0044] According to one embodiment of the present invention, calculating the first number of pulses required for moving to a target hole position includes the following steps: acquiring a current hole position, a target hole position, and a hole position between the current hole position and the target hole position; respectively calculating the number of hole position spacing pulses between two adjacent hole positions, and summing the number of hole position spacing pulses between two adjacent hole positions to calculate the first number of pulses.

[0045] Specifically, the position information of the current hole position is obtained and recorded as P, and the position information of the target hole position is obtained and recorded as Q. Then, the next hole position of position P is recorded as P+1, and the next hole position is recorded as P+2, and so on.

[0046] Further, the number of hole spacing pulses between position P and position P+1, the number of hole spacing pulses between position P+1 and position P+2, ..., the number of hole spacing pulses between position P+n and position Q are calculated respectively, and the number of hole spacing pulses between two adjacent hole positions are summed to calculate the first pulse number.

[0047] S105, controlling the trolley to move at a second preset speed, and continuously updating the hole spacing pulse count through the encoder during the movement.

[0048] Specifically, after receiving the motion control command, the trolley can move at full speed, and count through the encoder during the movement, that is, record the hole position spacing pulse count when the trolley moves from the current hole position to the next hole position.

[0049] S106, determine whether the reflective photoelectric switch is triggered. If yes, execute step S107, if not, continue to execute step S106.

[0050] S107, adding or subtracting the position information of the current hole position according to the movement direction of the trolley, and after updating the hole position spacing pulse count to the second hole position spacing information of the current single-channel PDU track system, the hole position spacing pulse count is reset to zero and the counting is restarted.

[0051] Specifically, by judging whether the reflective photoelectric switch is triggered, it is judged whether the trolley runs from the current hole position P to the next hole position. If the reflective photoelectric switch is triggered, it means that the trolley runs to the next hole position. At this time, the hole position sequence can be increased or decreased by one according to the movement direction of the trolley, that is, hole position P+1 / P-1, and the hole position spacing pulse count is updated to the second hole position spacing information of the current single-channel PDU track system, that is, the hole position spacing pulse count from hole position P to hole position P+1 / P-1 is updated to the second hole position spacing information of the current single-channel PDU track system, and then the hole position spacing pulse count is reset to zero and restarted, that is, the hole position spacing pulse count of the next adjacent hole position is recounted.

[0052] S108, judging whether the vehicle moves a first pulse number in total. If yes, executing step S109, if not, returning to executing step S105.

[0053] S109, control the trolley to stop moving, and determine whether there is a deviation between the second hole spacing information and the first hole spacing information. If yes, execute step S110.

[0054] Step S110, disabling the current single-channel PDU track system and issuing an abnormal warning.

[0055] Specifically, it is determined whether the trolley has run to the tail end by determining whether the trolley has run a first pulse number in total. If the trolley has run a first pulse number in total, it is determined that the trolley has run to the tail end. At this time, the trolley can be controlled to stop moving, and the second hole spacing information is compared with the first hole spacing information to determine whether there is a deviation between the second hole spacing information and the first hole spacing information.

[0056] Specifically, the number of holes of each PDU track system in other PDU track systems is t, and the total number of tracks is r. The hole spacing pulse count between hole position 0 and hole position 1 in the first PDU track system is denoted as S11, the hole spacing pulse count between hole position 1 and hole position 2 is denoted as S12, ..., the hole spacing pulse count between hole position t-1 and hole position t is denoted as S1t; the hole spacing pulse count between hole position 0 and hole position 1 in the second PDU track system is denoted as S21, the hole spacing pulse count between hole position 1 and hole position 2 is denoted as S22, ..., the hole spacing pulse count between hole position t-1 and hole position t is denoted as S2t; ..., and so on, the hole spacing pulse count between hole position 0 and hole position 1 in the rth PDU track system is denoted as Sr1, the hole spacing pulse count between hole position 1 and hole position 2 is denoted as Sr2, ..., the hole spacing pulse count between hole position t-1 and hole position t is denoted as Srt.

[0057] First, calculate the average pulse count of the hole spacing between the same hole sequence of all tracks in the PDU track system of other roads, that is, A1 = (S11 + S21 + S31 + ... + Sr1) / r; A2 = (S12 + S22 + S32 + ... + Sr2) / r; ...; At = (S1t + S2t + S3t + ... + Srt) / r.

[0058] Secondly, the difference between the pulse count of each hole spacing in the current single-channel PDU track system and the corresponding hole spacing pulse count average (A1~At) is calculated in turn. When the difference is greater than the first preset value (for example, 50), the abnormal factor of the current single-channel PDU track system is automatically increased by one.

[0059] Finally, after all tracks are calculated, if the ratio of the abnormal factor to the number of holes t is greater than a second preset value (for example, 0.3), it is judged that there is a deviation between the second hole spacing information and the first hole spacing information, that is, it is judged that the installation error of the current single-channel PDU track system is too large, or it ages too quickly, or the driving component is abnormal. Therefore, the current single-channel PDU track system is disabled and an abnormal warning is issued.

[0060] Therefore, when the PDU device is running, the present invention can continuously and automatically adaptively calibrate the number of motion pulses between each hole position, effectively compensate for changes in movement distance caused by various reasons such as system aging or vibration, prevent connection failure due to inadequate movement or overshoot, and automatically determine whether there is an abnormality in each track based on all track data in the entire system to ensure system safety.

[0061] In summary, according to the PDU device of the embodiment of the present invention, the PDU device includes an input copper bar, an output copper bar and a plurality of single-channel PDU track systems, the input copper bar and the output copper bar are used to connect the input cable and the output cable, and the plurality of single-channel PDU track systems are used to connect the input copper bar and the output copper bar to realize power switching, wherein the single-channel PDU track system includes: a first drive motor, a synchronous belt, an encoder, a travel switch, a positioning hole, a trolley provided with a reflective photoelectric switch, a contact arranged on the trolley, and a second drive motor for driving the contact to move, wherein the first drive motor is used to drive the synchronous belt to move to drive the trolley to move, the encoder is used to measure the distance of the trolley movement, the travel switch is used to limit the movement range of the trolley, the positioning hole is located in the middle of each hole position, and is used as a calibration standard for the hole position, wherein the first drive motor, the travel switch, the reflective photoelectric switch, the second drive motor and the encoder in the single-channel PDU track system are all connected to the corresponding sub-controller and control and collect information. Thus, when the PDU device is started and used, the position information of each hole position can be automatically calibrated without manual configuration, thereby effectively avoiding the waste of manpower and material resources.

[0062] Corresponding to the above embodiment, the present invention also proposes a control method for a PDU device.

[0063] like Figure 2 As shown, the control method of the PDU device in the embodiment of the present invention may include the following steps:

[0064] S1, controls the car to move from the zero point to the tail end at the first preset speed.

[0065] Among them, the first preset speed is the minimum speed of the car.

[0066] S2, determine whether the travel switch set at the tail end is triggered. If yes, execute step S7; if not, execute step S3.

[0067] Specifically, if the trolley triggers the travel switch set at the tail end, it means that the trolley has run to the tail end; if the trolley does not trigger the travel switch set at the tail end, it means that the trolley has not run to the tail end, and the movement of the trolley needs to continue to be controlled.

[0068] S3, determine whether the reflective photoelectric switch is triggered. If yes, execute step S4; if no, return to execute step S2.

[0069] Specifically, the positioning hole on each hole position is located in the middle of the hole position. When the reflective photoelectric switch on the trolley is not in the middle of the corresponding hole position, the reflected photoelectric information will be detected. At this time, the reflective photoelectric switch will not be triggered; when the reflective photoelectric switch on the trolley is in the middle of the corresponding hole position, the photoelectric signal will pass through the round hole in the middle of the hole position and will not be reflected back to the trolley. The photoelectric signal will not be detected. At this time, the reflective photoelectric switch is triggered.

[0070] S4, determine whether the reflective photoelectric switch has been triggered at the previous moment. If yes, execute step S5; if not, execute step S6.

[0071] S5, record the pulse number from the current hole position to the previous hole position through the encoder. After executing step S5, return to execute step S2.

[0072] S6, record the pulse number from zero point to the first hole position through the encoder. After executing step S5, return to execute step S2.

[0073] Specifically, it is determined whether the reflective photoelectric switch has been triggered at the previous moment to determine whether the current hole position is hole position 1 (the hole positions are sorted from the beginning to the end, and are divided into hole position 0, hole position 1, etc.). If the reflective photoelectric switch has been triggered at the previous moment, it means that the current hole position is not hole position 1. At this time, the encoder can be used to record the number of pulses from the current hole position to the previous hole position, and determine whether the trolley has run to the end; if the reflective photoelectric switch has not been triggered at the previous moment, it means that the current hole position is hole position 1. At this time, the encoder can be used to record the number of pulses from the zero point to the first hole position, and determine whether the trolley has run to the end.

[0074] S7, controlling the trolley to stop moving and moving the trolley to the head end.

[0075] Specifically, after determining that the trolley has run to the rear end, the trolley is controlled to stop moving and moved to the front end. Thus, no manual configuration is required, and the hole position calibration can be automatically performed at startup, thereby effectively avoiding the waste of manpower and material resources.

[0076] It is understandable that in the relevant technology, since the specifications of the PDU equipment required by different models of charging equipment are different, the number of holes in the PDU equipment is also different. At the same time, due to the existence of mechanical assembly errors, the distance between each hole on the PDU equipment is also inconsistent. Finally, long-term use of the equipment will also lead to aging of the drive component structure. These will cause the PDU equipment to be unable to automatically, safely and accurately reach the designated hole.

[0077] To this end, the present invention also proposes a control method for a PDU device, which can automatically and adaptively calibrate the number of motion pulses between each hole position, effectively compensate for changes in movement distance caused by various reasons such as system aging or vibration, and prevent connection failure due to inadequate movement or overshoot.

[0078] Specifically, based on the PDU device of the above embodiment, Figure 3 As shown, the control method of the PDU device in another embodiment of the present invention further includes the following steps:

[0079] S101, determining whether first hole spacing information reported by other PDU track systems is received. If yes, executing step S102; if not, executing step S103.

[0080] S102, save the first hole spacing information reported by the PDU track system of other roads. Then, execute step S103.

[0081] S103, determine whether a motion control instruction is received. If yes, execute step S104, if not, return to execute step S101.

[0082] S104, calculating the first pulse number required to move to the target hole position, refreshing the position information of the current hole position, and setting the hole position spacing pulse count to zero.

[0083] According to one embodiment of the present invention, calculating the first number of pulses required for moving to a target hole position includes the following steps: acquiring a current hole position, a target hole position, and a hole position between the current hole position and the target hole position; respectively calculating the number of hole position spacing pulses between two adjacent hole positions, and summing the number of hole position spacing pulses between two adjacent hole positions to calculate the first number of pulses.

[0084] Specifically, the position information of the current hole position is obtained and recorded as P, and the position information of the target hole position is obtained and recorded as Q. Then, the next hole position of position P is recorded as P+1, and the next hole position is recorded as P+2, and so on.

[0085] Further, the number of hole spacing pulses between position P and position P+1, the number of hole spacing pulses between position P+1 and position P+2, ..., the number of hole spacing pulses between position P+n and position Q are calculated respectively, and the number of hole spacing pulses between two adjacent hole positions are summed to calculate the first pulse number.

[0086] S105, controlling the trolley to move at a second preset speed, and continuously updating the hole spacing pulse count through the encoder during the movement.

[0087] Specifically, after receiving the motion control command, the trolley can move at full speed, and count through the encoder during the movement, that is, record the hole position spacing pulse count when the trolley moves from the current hole position to the next hole position.

[0088] S106, determine whether the reflective photoelectric switch is triggered. If yes, execute step S107, if not, continue to execute step S106.

[0089] S107, adding or subtracting the position information of the current hole position according to the movement direction of the trolley, and after updating the hole position spacing pulse count to the second hole position spacing information of the current single-channel PDU track system, the hole position spacing pulse count is reset to zero and the counting is restarted.

[0090] Specifically, by judging whether the reflective photoelectric switch is triggered, it is judged whether the trolley runs from the current hole position P to the next hole position. If the reflective photoelectric switch is triggered, it means that the trolley runs to the next hole position. At this time, the hole position sequence can be increased or decreased by one according to the movement direction of the trolley, that is, hole position P+1 / P-1, and the hole position spacing pulse count is updated to the second hole position spacing information of the current single-channel PDU track system, that is, the hole position spacing pulse count from hole position P to hole position P+1 / P-1 is updated to the second hole position spacing information of the current single-channel PDU track system, and then the hole position spacing pulse count is reset to zero and restarted, that is, the hole position spacing pulse count of the next adjacent hole position is recounted.

[0091] S108, judging whether the vehicle moves a first pulse number in total. If yes, executing step S109, if not, returning to executing step S105.

[0092] S109, control the trolley to stop moving, and determine whether there is a deviation between the second hole spacing information and the first hole spacing information. If yes, execute step S110.

[0093] Step S110, disabling the current single-channel PDU track system and issuing an abnormal warning.

[0094] Specifically, it is determined whether the trolley has run to the tail end by determining whether the trolley has run a first pulse number in total. If the trolley has run a first pulse number in total, it is determined that the trolley has run to the tail end. At this time, the trolley can be controlled to stop moving, and the second hole spacing information is compared with the first hole spacing information to determine whether there is a deviation between the second hole spacing information and the first hole spacing information.

[0095] Specifically, the number of holes of each PDU track system in other PDU track systems is t, and the total number of tracks is r. The hole spacing pulse count between hole position 0 and hole position 1 in the first PDU track system is denoted as S11, the hole spacing pulse count between hole position 1 and hole position 2 is denoted as S12, ..., the hole spacing pulse count between hole position t-1 and hole position t is denoted as S1t; the hole spacing pulse count between hole position 0 and hole position 1 in the second PDU track system is denoted as S21, the hole spacing pulse count between hole position 1 and hole position 2 is denoted as S22, ..., the hole spacing pulse count between hole position t-1 and hole position t is denoted as S2t; ..., and so on, the hole spacing pulse count between hole position 0 and hole position 1 in the rth PDU track system is denoted as Sr1, the hole spacing pulse count between hole position 1 and hole position 2 is denoted as Sr2, ..., the hole spacing pulse count between hole position t-1 and hole position t is denoted as Srt.

[0096] First, calculate the average pulse count of the hole spacing between the same hole sequence of all tracks in the PDU track system of other roads, that is, A1 = (S11 + S21 + S31 + ... + Sr1) / r; A2 = (S12 + S22 + S32 + ... + Sr2) / r; ...; At = (S1t + S2t + S3t + ... + Srt) / r.

[0097] Secondly, the difference between the pulse count of each hole spacing in the current single-channel PDU track system and the corresponding hole spacing pulse count average (A1~At) is calculated in turn. When the difference is greater than the first preset value (for example, 50), the abnormal factor of the current single-channel PDU track system is automatically increased by one.

[0098] Finally, after all tracks are calculated, if the ratio of the abnormal factor to the number of holes t is greater than a second preset value (for example, 0.3), it is judged that there is a deviation between the second hole spacing information and the first hole spacing information, that is, it is judged that the installation error of the current single-channel PDU track system is too large, or it ages too quickly, or the driving component is abnormal. Therefore, the current single-channel PDU track system is disabled and an abnormal warning is issued.

[0099] Therefore, when the PDU device is running, the present invention can continuously and automatically adaptively calibrate the number of motion pulses between each hole position, effectively compensate for changes in movement distance caused by various reasons such as system aging or vibration, prevent connection failure due to inadequate movement or overshoot, and automatically determine whether there is an abnormality in each track based on all track data in the entire system to ensure system safety.

[0100] The control method of the PDU device according to the embodiment of the present invention includes the following steps: step S1, controlling the trolley to move from the zero point to the tail end at a first preset speed; step S2, judging whether the travel switch set at the tail end is triggered, if yes, executing step S7, if not, executing step S3; step S3, judging whether the reflective photoelectric switch is triggered, if yes, executing step S4, if not, returning to execute step S2; step S4, judging whether the reflective photoelectric switch has been triggered at the previous moment, if yes, executing step S5, if not, executing step S6; step S5, recording the number of pulses from the current hole position to the previous hole position through the encoder, and returning to execute step S2; step S6, recording the number of pulses from the zero point to the first hole position through the encoder, and returning to execute step S2; step S7, controlling the trolley to stop moving, and moving the trolley to the head end. Therefore, when the PDU device is started and used, the position information of each hole position can be automatically calibrated without manual configuration, thereby effectively avoiding the waste of manpower and material resources.

[0101] Corresponding to the above embodiment, the present invention also proposes a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the above PDU device control method is implemented.

[0102] According to the computer device of the embodiment of the present invention, when the PDU device is started and used, the position information of each hole can be automatically calibrated without manual configuration, thereby effectively avoiding the waste of manpower and material resources.

[0103] Corresponding to the above embodiment, the present invention further proposes a non-temporary computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the above PDU device control method is implemented.

[0104] According to the non-transitory computer-readable storage medium of the embodiment of the present invention, when the PDU device is started and used, the position information of each hole can be automatically calibrated without manual configuration, thereby effectively avoiding the waste of manpower and material resources.

[0105] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. "Multiple" means two or more, unless otherwise clearly and specifically defined.

[0106] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0107] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.

[0108] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0109] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.

[0110] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0111] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0112] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0113] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0114] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.

Claims

1. A PDU device, characterized in that: The PDU device includes an input copper bar, an output copper bar and a plurality of single-channel PDU track systems, wherein the input copper bar and the output copper bar are used to connect input cables and output cables, and the plurality of single-channel PDU track systems are used to be connected to the input copper bar and the output copper bar to realize power switching, wherein the single-channel PDU track system includes: a first drive motor, a synchronous belt, an encoder, a travel switch, a positioning hole, a trolley provided with a reflective photoelectric switch, a contact provided on the trolley, and a second drive motor for driving the contact to move, wherein the first drive motor is used to drive the synchronous belt to move so as to drive the trolley to move, the encoder is used to measure the distance moved by the trolley, the travel switch is used to limit the movement range of the trolley, and the positioning hole is located in the middle of each hole position and is used as a calibration standard for the hole position, wherein the first drive motor, the travel switch, the reflective photoelectric switch, the second drive motor and the encoder in the single-channel PDU track system are all connected to corresponding sub-controllers for control and information collection; wherein, when the PDU device is started and used, the position information of each hole position is automatically calibrated.

2. A control method for the PDU device according to claim 1, characterized in that: The following steps are involved: Step S1, controlling the vehicle to move from the zero point to the tail end at a first preset speed; Step S2, determining whether the travel switch provided at the tail end is triggered, if yes, executing step S7, if no, executing step S3; Step S3, determining whether the reflective photoelectric switch is triggered, if yes, executing step S4, if no, returning to executing step S2; Step S4, determining whether the reflective photoelectric switch has been triggered at the previous moment, if yes, executing step S5, if no, executing step S6; Step S5, recording the pulse number from the current hole position to the previous hole position through the encoder, and returning to execute step S2; Step S6, recording the number of pulses from the zero point to the first hole position through the encoder, and returning to execute step S2; Step S7, controlling the trolley to stop moving and moving the trolley to the zero point.

3. The control method of the PDU device according to claim 2, characterized in that: The following steps are also included: Step S101, determining whether the first hole spacing information reported by the PDU track system of another road is received, if yes, executing step S102, if not, executing step S103; Step S102, saving the first hole spacing information reported by the other PDU track system, and executing step S103; Step S103, determining whether a motion control instruction is received, if yes, executing step S104, if no, returning to executing step S101; Step S104, calculating the first pulse number required to move to the target hole position, refreshing the position information of the current hole position, and setting the hole position spacing pulse count to zero; Step S105, controlling the trolley to move at a second preset speed, and continuously updating the hole spacing pulse count through the encoder during the movement; Step S106, determining whether the reflective photoelectric switch is triggered, if yes, executing step S107, if no, continuing to execute step S106; Step S107, adding or subtracting the position information of the current hole position according to the moving direction of the trolley, and after updating the hole position spacing pulse count to the second hole position spacing information of the current single-channel PDU track system, setting the hole position spacing pulse count to zero and restarting the counting; Step S108, determining whether the vehicle moves the first pulse number in total, if yes, executing step S109, if no, returning to executing step S105; Step S109, controlling the trolley to stop moving, and determining whether the second hole spacing information deviates from the first hole spacing information, and if so, executing step S110; Step S110, disabling the current single-channel PDU track system and issuing an abnormal warning.

4. The control method of the PDU device according to claim 3, characterized in that: The method of calculating the first pulse number required to move to the target hole position comprises the following steps: Acquire the current hole position, the target hole position, and the hole position between the current hole position and the target hole position; The number of pulses of the hole position spacing between two adjacent hole positions is calculated respectively, and the number of pulses of the hole position spacing between two adjacent hole positions is summed to calculate the first number of pulses.

5. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the control method of the PDU device according to any one of claims 2 to 4 is implemented.

6. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, a control method for a PDU device according to any one of claims 2 to 4 is implemented.