DEVICES AND METHODS FOR CONTROLLING A RAILROAD CROSSING GATE MECHANISM
20250360954 ยท 2025-11-27
Assignee
Inventors
Cpc classification
B61L29/08
PERFORMING OPERATIONS; TRANSPORTING
International classification
Abstract
A crossing gate mechanism includes a brushless direct current (BLDC) motor with at least one sensing device, a crossing gate arm operated via the BLDC motor, a control unit configured to control the BLDC motor to raise or lower the crossing gate arm in response to a gate control signal, wherein the control unit comprises position and speed proportional-integral-derivative (PID) controllers configured to output a pulse width modulation (PWM) command to a commutator logic, wherein the PWM command is converted to a motor direction and PWM duty cycle, and wherein the PWM duty cycle is variable depending on a motor input voltage.
Claims
1. A crossing gate mechanism comprising: a brushless direct current (BLDC) motor with at least one sensing device, a crossing gate arm operated via the BLDC motor, a control unit configured to control the BLDC motor to raise or lower the crossing gate arm in response to a gate control signal, wherein the control unit comprises position and speed proportional-integral-derivative (PID) controllers configured to output a pulse width modulation (PWM) command to a commutator logic, wherein the PWM command is converted to a motor direction and PWM duty cycle, and wherein the PWM duty cycle is variable depending on a given motor input voltage.
2. The crossing gate mechanism of claim 1, wherein the PWM duty cycle comprises a motor current at the given motor input voltage.
3. The crossing gate mechanism of claim 1, wherein the PWM duty cycle is delivered, by the speed PID controller, to the commutator logic to command a specific level of current to the BLDC motor.
4. The crossing gate mechanism of claim 2, wherein the control unit comprises an analog-to-digital converter configured to provide a motor voltage sample of the motor input voltage to a scale desired speed logic, wherein the scale desired speed logic issues a PWM command limit which sets a maximum motor current at the given motor input voltage.
5. The crossing gate mechanism of claim 4, wherein the PWM command limit is sent to the speed PID controller configured to output PWM commands, the PWM commands including commanded motor direction and the PWM duty cycle.
6. The crossing gate mechanism of claim 4, wherein the scale desired speed logic comprises a closed-loop control for measuring ascent time and descent time of the crossing gate arm, in response to received desired ascent time and descent time as inputs.
7. The crossing gate mechanism of claim 4, wherein the control unit comprises logic to detect obstruction of the crossing gate arm, wherein the logic receives as inputs the PWM command limit, the PWM command and an actual velocity of the crossing gate arm, and wherein the logic is configured to flag or detect an obstruction when approaching a maximum current for the respective motor input voltage.
8. The crossing gate mechanism of claim 1, comprising an input voltage range of 9V to 36V for the BLDC motor.
9. The crossing gate mechanism of claim 8, wherein a maximum PWM duty cycle is 90% duty cycle when a motor voltage is less than 11V, and a maximum PWM duty cycle is 28% when a motor voltage is equal or greater than 34V.
10. The crossing gate mechanism of claim 1, wherein the at least one sensing device comprises one or more Hall effect sensor(s).
11. The crossing gate mechanism of claim 1, wherein the control unit is implemented as a field-programmable gate array (FPGA), in a real-time central processing unit (CPU), an application-specific integrated circuit (ASIC), a complex programmable logic device (CPLD) or a system-on-chip (SoC).
12. A method for controlling a crossing gate mechanism, the method comprising: measuring ascent time or descent time of a crossing gate arm, scaling a desired motor speed, receiving a gate control command to lower or raise the gate arm, sampling a motor input voltage, and creating a PWM command limit based on a sampled motor input voltage.
13. The method of claim 12, further comprising: generating a PWM command and converting the PWM command to a motor direction and PWM duty cycle.
14. The method of claim 12, wherein the method is repeated to establish a closed-loop control to achieve a desired ascent time or descent time.
15. The method of claim 12, further comprising: detecting an obstruction of the crossing gate arm based on the PWM command limit, the PWM command and an actual velocity of the crossing gate arm.
16. The method of claim 15, generating an error code in response to a detected obstruction.
17. The method of claim 10, further comprising: halting operation of the crossing gate arm in response to a detected obstruction.
18. A non-transitory computer readable medium storing executable instructions, which, when executed by a computer, perform a method for controlling a crossing gate mechanism as claimed in claim 12.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0008]
[0009]
[0010]
[0011]
[0012]
DETAILED DESCRIPTION
[0013] To facilitate an understanding of embodiments, principles, and features of the present disclosure, they are explained hereinafter with reference to implementation in illustrative embodiments. In particular, they are described in the context of devices or systems and methods for a crossing gate mechanism and controlling an arm of a crossing gate mechanism.
[0014] The components and materials described hereinafter as making up the various embodiments are intended to be illustrative and not restrictive. Many suitable components and materials that would perform the same or a similar function as the materials described herein are intended to be embraced within the scope of embodiments of the present disclosure.
[0015] A gate crossing mechanism protects motorists, pedestrians, and the like from oncoming trains by blocking level crossings or points at which public or private roads cross railway lines at the same level. As one example, a gate crossing mechanism can include an arm or gate that, using a motor, selectively lowers/raises depending upon whether a train or other vehicle is passing through the level crossing. For example, if a train is approaching a level crossing, a gate can be lowered to prevent traffic on the road or path from crossing the railway line. A level crossing can be equipped with multiple crossing mechanisms. For example, each side of the railway line can include a gate crossing mechanism. In larger intersections, each side of the railway line can include two (or more) gate crossing mechanisms. Gate crossing mechanisms can further include lights, sirens, bells, or other similar devices that can provide visual and/or aural warnings.
[0016] Conventional gate crossing mechanisms can be susceptible to failures, malfunctions, etc., which can reduce their reliability to control a level crossing safely. It is, therefore, desirable to improve efficiency and reliability of conventional gate crossing mechanisms. Gate crossing mechanisms having the features and functionality described herein improve efficiency and address problems associated with conventional gate crossing mechanisms.
[0017]
[0018] The example railroad crossing gate 100 also includes a pole 110 and signal lights 120. The gate control mechanism 200 is attached to the pole 110 and is used to raise and lower the roadway and pedestrian gates 130, 140. The illustrated railroad crossing gate 100 is often referred to as a combined crossing gate. When a train approaches the crossing, the railroad crossing gate 100 may provide a visual warning using the signal lights 120. The gate control mechanism 200 will lower the roadway gate 130 and the pedestrian gate 140 to respectively restrict traffic and pedestrians from crossing the track until the train has passed.
[0019] As shown in
[0020] Typically, the gates 130, 140 are lowered from the vertical position using an electric motor contained within the gate control mechanism 200. The electric motor drives gearing connected to shafts (not shown) connected to the roadway gate support arm 134 and pedestrian gate support arm 144. The support arms 134, 144 are usually driven part of the way down by the motor (e.g., somewhere between 70 and 45 degrees) and then gravity and momentum are allowed to bring the arms 132, 142 and the support arms 134, 144 to the horizontal position. In another example, the support arms 134, 144 are driven all the way down to the horizontal position by the electric motor of the gate control mechanism 200.
[0021]
[0022] The crossing gate mechanism 200 comprises an enclosure 210 housing multiple electric and electronic components, such as for example gearing 212, electric motor 214 driving the gearing 212, and control unit 216. The control unit 216 comprises a printed circuit board (PCB) 218 with the necessary electronics for operating and controlling the gate mechanism 200 and associated crossing gate equipment, such as crossing gate arm(s), see for example
[0023] The enclosure 210 can be opened and closed via door or cover 220, for maintenance, repair, or other services. The cover 220 is moveable between a closed position and an open position, wherein
[0024] The electric motor 214 includes sensing devices, such as Hall effect sensors. The crossing gate arm 132 (see
[0025]
[0026] For example, with reference to
[0027] In an example, a motor controller, for example control unit 216, is implemented as a field-programmable gate array (FPGA), which is selected for its real-time responsiveness and ability to handle multiple activities at once. In other examples, the motor controller is designed or implemented in a real-time central processing unit (CPU), an application-specific integrated circuit (ASIC), a complex programmable logic device (CPLD) or a system-on-chip (SoC). In case of a SoC, the SoC comprises a CPU and an FPGA.
[0028] In an embodiment, the electric motor 214 (see
[0029] In an exemplary embodiment of the present disclosure and with reference to
[0030] A Hall State Encoder 306 determines a current Hall State as well as a motor direction of the BLDC motor. In an example, the Hall effect sensor input signals are received as a sequence represented by vector <U V W>, where U is the most significant bit and W is the least significant bit. The sequence is encoded into the Hall State. When the Hall State is received in a first order, the Hall State Encoder 306 indicates that the BLDC motor is turning in a forward direction, which for Position Estimator 308 results in an actual position of the gate arm, measured in Hall-state units, counting upward. When the Hall State is received in a second order, then the Hall State Encoder 306 indicates that the BLDC motor is turning in a reverse direction, which for the Position Estimator 308 results in the actual position of the gate arm, measured in Hall-state units, counting downward. Further, the Hall State is also used by a commutation block, see Commutator 324, to determine a correct firing sequence for motor phases A, B and C of the BLDC motor.
[0031] As noted, the Position Estimator 308 determines the actual position of the gate arm by counting the number of Hall States that have been received from the Hall State Encoder 306. A Hall State received in a forward direction, results in the actual position being incremented by one; a Hall State received in a reverse direction, results in the actual position being decremented by one. Forward and reverse directions are determined by the Hall State Encoder 306. When the gate arm is moving up, the actual position is counting up in a forward direction; when the gate arm is moving down, the actual position is counting down in a reverse direction. For an entrance gate, each time the arm reaches the bottom, unless an obstruction in the downward direction has been encountered, the actual position is reset to avoid accumulating any positional error.
[0032] An actual speed generated by Speed Estimator 310 is a count of the number of Hall States that have been sent by the Hall State Encoder 306 during a sampling window in a given direction, multiplied by a scaling factor that converts the count to motor revolutions per second (RPS).
[0033] Gate Control, referred to as GC 312, comprises and provides gate control input signals, received from a grade crossing controller, constant warning time device or other type of control equipment arranged wayside adjacent to a railroad track, for example in a crossing bungalow. For an entrance gate, when GC 312 is high, the gate arm is being commanded to go up until it has reached a programmed, near-vertical gate-up position. When GC 312 is low, the gate arm is being commanded to go down until it has reached a fixed, horizontal gate-down position. For an exit gate, it is the reverse: when GC 312 is high, the gate arm is commanded to go down, and when GC 312 is low, the gate arm is commanded to go up.
[0034] Typically, crossing gates are either configured as an entrance gate or an exit gate. An entrance gate is installed on the vehicle entry side of a railroad crossing zone, wherein an exit gate is installed on the vehicle exit side of the crossing zone. The exit gates can be equipped with a delay and begin their descent to their horizontal position several seconds after the entrance gates do, to avoid trapping vehicles in the crossing zone. Whether or not a gate is an entrance or exit gate is part of the Gate Configuration input to the Gate Control State Machine 316. As noted, the exit gate first delays lowering the arm to allow exit of a vehicle in the process of crossing, then later lowers the arm to prevent reverse entry of a vehicle into a crossing. The two GC signals to the entrance and exit gates are not the same signal and happen at different times. A reason the GC signals are opposite state for entrance and exit gate is that if both GC signals drop out due to some fault at the bungalow and therefore both GC signals go low, then the fail-safe position of an entrance gate is to lower its arm (to prevent a vehicle from entering a crossing), whereas for an exit gate, the fail-safe position is to raise its arm (to allow a vehicle to exit a crossing).
[0035] The input signal from GC 312 is debounced, by GC Debounce 314, to minimize extraneous edge detections. Gate Control State Machine 316 receives a debounced GC input signal to determine a proper motion of the gate arm. The Gate Control State Machine 316 determines or decides whether the gate arm needs to move up, move down or stop moving to achieve a desired position for the gate arm. The Gate Control State Machine 316 also manages states of multiple outputs, including motor brake and motor snub circuit.
[0036] A Position PID (proportional-integral-derivative) Controller 318 compares the actual position, provided by Position Estimator 308, to the desired position, provided by the Gate Control State Machine 316, of the gate arm and outputs a desired speed/velocity. A scaling factor can also be applied to the desired speed to slow down or speed up the arm movement.
[0037] A Speed PID (proportional-integral-derivative) Controller 320 compares the actual speed to the desired speed of the gate arm and outputs a PWM (pulse width modulation) command. In an example, the Position PID Controller 318 uses a PID control loop to meet a desired position by outputting a desired velocity to the Speed PID Controller 320.
[0038] A Scale Desired Speed logic 322 multiplies the desired speed/velocity by an ascent or descent speed scale factor, depending on whether the gate arm is moving up or moving down, respectively. The ascent or descent speed scale factors are initialized by a processor of the gate control mechanism and automatically adjusted within a constrained range to better meet the desired up-time or desired down-time, as programmed by the processor into the motor controller.
[0039] The Speed PID Controller 320 uses for example a PID control loop to meet a scaled desired velocity by outputting a PWM command to the Commutator 324. The PWM command from the Speed PID Controller 320 is converted into a motor direction and PWM duty cycle, which the Commutator 324 uses, along with the encoded Hall State, to activate half-bridge field effect transistors (FETs) that deliver current to a sequence of motor winding phases, such as phases A, B, C. To cause the BLDC motor to spin, the three motor winding phases A, B and C are energized by the Commutator 324 in a rotating sequence. The Hall State from the Hall State Encoder 306 indicates the current motor position, based on which corresponding windings are energized. The Commutator 324 can further be configured to provide reverse commutation to spin the BLDC motor in an opposite direction, thus causing the gate arm to move both up and down.
[0040] In an embodiment, a method for driving or operating the BLDC motor is a complementary pulse width modulation (PWM) using six independently controlled FETs (a high and low FET for each motor phase). As each phase A, B, C is being driven the high and low side FETs will be driven inversely, with a guaranteed dead time where neither the high FET nor the low FET is driven.
[0041] As noted earlier, per AREMA, a crossing gate mechanism must lower and raise its gate arm(s) within a specified time limit. More specifically, a crossing gate mechanism must lower its gate arm within 10-15 seconds and raise its gate arm within 12 seconds. This must be done over a normal operating voltage range. It is desirable to do so also under normal and adverse weather conditions; for example, when it is very cold and there is ice buildup on the gate arm, or when it is very hot, and the electric motor is less efficient.
[0042] Further, the crossing gate mechanism should operate consistently over a wide operating voltage range, for example in different voltage environments in the U.S.A. and in Europe. For example, a gate mechanism must operate consistently over 9V-18V in a 12V environment (i.e., USA) and over 18V-36V in a 24V environment (i.e., Europe). With respect to a BLDC motor, its motor speed is directly affected by the voltage applied to it.
[0043] In accordance with an exemplary embodiment of the present disclosure and with respect to the required ascent and descent times, the Scale Desired Speed logic 322 comprises a closed-loop control for measuring ascent time and descent time of the crossing gate arm, in response to received desired ascent time and descent time as inputs. By implementing a closed-loop control, the descent time can be measured, which provides feedback to the control logic 322 to raise or lower the arm speed to achieve the desired descent time. Likewise, the same can occur for the ascent time. This avoids having to set a resistor value and measuring the time that results; instead, the installer or user can now simply request a specific ascent or descent time, within the AREMA requirements, and that desired time will be met by the closed-loop control system. As a result, the ascent and descent times can be configured digitally and does not need any further set up by the installer. It is not necessary to set a resistor value and determine if such a resistor setting results in the desired descent time. The ascent and descent times will be maintained by the gate-mechanism's closed-loop control system from that point forward, without further intervention by the installer.
[0044] With respect to a wide operating voltage range, an in accordance with another exemplary embodiment of the present disclosure, an algorithm is provided and implemented which involves selective sampling of an input voltage and scaling a maximum current to the BLDC motor accordingly to maintain smooth control of the gate arm. Motor Voltage 330 includes an input voltage level for the electric motor and gate mechanism. Such input voltage level is set for example by an operator or user of the gate mechanism. The gate mechanism and electric motor may be operated at 24V or may be operated at 12V, depending on a voltage environment. The motor voltage 330 is input to an analog-to-digital converter 332, which then provides a motor voltage sample to the Scale Desired Speed logic 322. Based on the motor voltage sample (input voltage level, motor voltage 330), the logic 322 issues a PWM command limit, which sets up a maximum current for the respective voltage sample. The PWM command limit is sent to the Speed PID Controller 320 that outputs PWM commands, including commanded motor direction (clockwise or counterclockwise) and the PWM duty cycle.
[0045] The PWM duty cycle is delivered to the commutator logic 324 to command a specific level of current to the BLDC motor. Setting a maximum for the PWM duty cycle has an effect of setting a maximum on the commanded motor current for a given input voltage to the motor, which is sampled just prior to moving the gate arm. By setting a maximum current, the motor control system will be given proper bounds within which to achieve the desired ascend and descend times of the gate arm.
[0046] By limiting the PWM command and therefore setting the maximum current, detecting obstruction of the gate arm is also improved. This is implemented by Detect Obstruction logic 334. For example, approaching a maximum current due to obstruction when the input voltage is 36V would occur at about half the current level than when the input voltage is 18V. By lowering the maximum current by nearly 50% from the 18V setting, the motor control system can detect obstruction more readily when the input voltage is 36V. For example, by comparing a desired position to an actual position and a desired speed to an actual speed of the gate arm (utilizing Position PID Controller 318 and Speed PID controller 320), the Gate Control State Machine 316 can determine an obstruction/hindrance of the gate arm, based on discrepancies of position/speed and direction of motion.
[0047]
[0048] The PWM command from the Speed PID controller 320 is converted into a commanded motor direction and PWM duty cycle, which the commutator logic uses along with the encoded Hall State to activate half-bridge FETs that deliver current to a sequence of motor winding phases. A maximum permissible PWM duty cycle for different input voltages is shown in the table 400. For example, when motor input voltage is less than 11V, the maximum PWM duty cycle is 90% duty cycle. On the other hand, when the motor voltage is equal or greater than 34V, the maximum PWM duty cycle is 28% duty cycle. By staying within these maximum PWM duty cycle limits at the referenced voltages, the desired ascent and descent times are achieved while still allowing for detection of obstruction when the maximum PWM duty cycle is approached.
[0049] While the method is described as a series of acts or steps that are performed in a sequence, it is to be understood that the method may not be limited by the order of the sequence. For instance, unless stated otherwise, some acts may occur in a different order than what is described herein. In addition, in some cases, an act may occur concurrently with another act. Furthermore, in some instances, not all acts may be required to implement a methodology described herein.
[0050] The method may start at 510. The method 500 comprises measuring ascent time or descent time of the gate arm (act 520) and scaling a desired motor speed (act 530). In act 540, a gate control command to lower or raise the gate arm is received (from Gate Control 312), and a motor input voltage (from Motor Voltage 330) is sampled (act 550). Based on the sampled motor input voltage, a PWM Command Limit is created (act 560) and a PWM Command generated (act 570), using PID control systems, such as Speed PID Controller 320. In act 580 (decision block), the PID control systems examine whether the generated PWM Command is greater than the created PWM Command Limit. If the PWM Command is not greater than the PWM Command Limit, no changes are necessary, and the systems continue with the generated PWM Command (act 590). If the PWM Command is greater than the PWM Command Limit, the control systems are configured to limit the PWM Command in accordance with the PWM Command Limit (act 600). Based on the PWM Command, the control systems, for example using Commutator logic 324, commutate drive signals to the BLDC motor to lower or raise the gate arm (act 610). The method 500 is repeated, starting at act 520.
[0051] As described, the method 500 comprises a closed-loop control by incorporating measuring ascent time and descent time of the crossing gate arm. Further, the method 500 comprises detecting an obstruction of the crossing gate arm based on the PWM command limit, the PWM command and an actual velocity of the crossing gate arm; generating an error code in response to a detected obstruction; and halting operation of the crossing gate arm in response to a detected obstruction.
[0052] Further, a non-transitory computer readable medium storing executable instructions, which, when executed by a computer, perform the method for controlling a railroad crossing gate mechanism as described is provided.