Summary of the invention
In view of this, the object of the invention is to propose a kind of diesel locomotive steering logic electronization method and system thereof.
Based on above-mentioned purpose diesel locomotive steering logic provided by the invention electronic system, comprise input/output interface board, digital and analogue signals change-over panel, system control panel, network interface unit; Described input/output interface board, digital and analogue signals change-over panel are connected with described system control panel respectively; Described system control panel is connected with described network interface unit; Described input/output interface board and digital and analogue signals change-over panel gather the input signal of locomotive controlled device, and described input signal is flowed to described system control panel; Described system control panel is processed and is drawn control variable described input signal, with the switching of the controlled device of controlling described locomotive; Described system control panel also is transported to described network interface unit by described output variable data, has a fault detection unit to coordinate described system control panel to carry out the locomotive condition monitoring and fault diagnosis of advancing by described network interface unit.
Optionally, described system control panel comprises bus transceiver, power supply, network-driven circuit, controller reset circuit, controller; Described bus transceiver connects described input/output interface board, digital-to-analog conversion interface board, controller; Described controller connects described reset circuit; Described network-driven circuit connects described bus transceiver, power supply, controller reset circuit and controller; Described power supply connects described bus transceiver, controller reset circuit and controller; Input signal that described input/output interface board and digital and analogue signals change-over panel gather is transported to through described bus transceiver that described controller carries out logic analysis and computing draws corresponding control variable; Described control variable to described network interface unit, also is transferred to described input/output interface board through described bus transceiver through described network-driven circuit transmission.
Optionally, also comprise the backup logic unit; Described controller comprises master controller and from controller; Described controller reset circuit comprises the master controller reset circuit and from the controller reset circuit; Describedly from controller, by described backup logic unit, connect described master controller, take over described master controller when described master controller breaks down described input signal is carried out to computing; Described backup logic unit is backed up by described master controller or from controlling described control variable.
Optionally, described network-driven circuit comprises 485 driver modules and CAN driver module.
Optionally, described input/output interface board comprises sample circuit, anti-jamming circuit, isolating coupler, shaping circuit, latch cicuit, isolated drive circuit, holding circuit, the output circuit connected successively; Described latch cicuit connects described system control panel; Described holding circuit connects described controlled device; Digital signal in described input signal is gathered through described sample circuit; be transferred to described anti-jamming circuit and remove undesired signal; be transferred to described shaping circuit through described isolating coupler under isolation again and carry out signal shaping; input signal after shaping is transferred to described latch cicuit and is latched; described latch cicuit sends to system control panel by the input signal latched; the control variable of described system control panel output is transferred to described isolated drive circuit through described latch cicuit, then is transferred to described topworks through described holding circuit.
Optionally, described digital-to-analog conversion interface board comprises amplifying circuit, filtering circuit, digital-to-analogue sample circuit, digital-to-analogue output circuit; Described amplifying circuit carries out voltage transition by the simulating signal in described input signal, be transported to described filtering circuit, described filtering circuit makes the undesired signal in described simulating signal obtain filtering, and described digital-to-analogue sample circuit is exported for the conversion digital signal and by the signal after described transformation described analog-signal transitions through described digital-to-analogue output circuit.
Further, the invention provides a kind of diesel locomotive steering logic electronization method, comprise the steps: the initialization of diesel locomotive steering logic electronic system; The system control panel of diesel locomotive steering logic electronic system judges whether to start to check; If enter next step; If not, continue to wait for; The input/output interface board of diesel locomotive steering logic electronic system and digital and analogue signals change-over panel are gathered respectively and are transferred to described system control panel to the input signal of controlled device in locomotive cab; Network interface unit and the described system control panel of diesel locomotive steering logic electronic system are carried out state-detection and fault diagnosis according to described input signal, if there is fault to be resetted, if non-fault enters next step; Described system control panel is carried out logical operation by described input signal and is drawn control variable; Described system control panel is transported to the terminal device in the locomotive chamber by described input/output interface board by described control variable.
Optionally, described state-detection and fault diagnosis comprise the steps: that described system control panel is transferred to described network interface unit by described input signal, and a fault detection unit is arranged, and by described network interface unit, the validity to described input signal is judged; If described input signal is effective, described input signal is stored in described system control panel; If described input signal is invalid, enter next step; The number of times that described input signal is invalid is recorded in described system control panel; If described system control panel judges described number of times and be no more than 3 times, the retrieval system control panel judges whether to start the step checked; If described number of times surpasses 3 times, described control system plate judgement is broken down.
Optionally, described system control panel is carried out logical operation by described input signal and is shown that control variable comprises the steps: that the bus transceiver of described system control panel gathers described input variable; The controller of described system control panel carries out logic analysis according to described input variable and computing draws described control variable; Described control variable is transported to described bus transceiver by described controller.
Optionally, when the controller of described system control panel carries out logic analysis and computing and draws described control variable according to described input variable, the backup logic unit of described control system plate is backed up described control variable.
Optionally, input/output interface board gathers respectively to the input signal of controlled device in locomotive cab the sample circuit that comprises the steps: input/output interface board and gathers the digital signal in described input signal; The anti-jamming circuit of input/output interface board is removed the undesired signal in described digital signal; The isolating coupler of input/output interface board carries out signal shaping by described digital data transmission to the shaping circuit of input/output interface board under isolation; The latch cicuit of input/output interface board is latched and be transferred to described system control panel by the described digital signal after shaping to carry out logic analysis and computing and receives described control variable; Described latch cicuit sends to described control variable the isolated drive circuit of input/output interface board; Described isolated drive circuit is transferred to controlled device by the holding circuit of described control variable process input/output interface board.
Optionally, described digital and analogue signals change-over panel comprises the steps: that to the input signal collection of controlled device in locomotive cab the amplifying circuit of digital and analogue signals change-over panel carries out voltage transition to the simulating signal of described input signal, is transported to the filtering circuit of digital and analogue signals change-over panel; Undesired signal in the described simulating signal of described filtering circuit filtering; The digital-to-analogue sample circuit of digital and analogue signals change-over panel is the conversion digital signal by described analog-signal transitions; The digital-to-analogue output circuit of digital and analogue signals change-over panel outputs to described system control panel by described conversion digital signal.
As can be seen from above, diesel locomotive steering logic electronization method provided by the invention and system thereof, adopt Programmable Logic Controller to replace traditional relay control mode, i.e. contactless control.Can effectively prevent the contact misoperation situation caused because of factors such as running environment.Pass through programming Control, whether normally can monitor each road input/output signal, thereby when breaking down, detect out of order source by software records, simultaneously, with communication of locomotive, can on display screen, the guiding work personnel investigate fault, reduced greatly staff's workload and improved work efficiency and fiduciary level.Diesel locomotive steering logic electronization method provided by the present invention, can prevent the contact misoperation situation caused because of the factor such as environment effectively, improved reliability and the trouble shooting efficiency of locomotive operation.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with specific embodiment, and, with reference to accompanying drawing, the present invention is described in more detail.
Diesel locomotive steering logic electronic system provided by the present invention, its structure as shown in Figure 1, comprise input/output interface board 1, digital and analogue signals change-over panel 2, system control panel 3 and network interface unit 4, described input/output interface board 1, digital and analogue signals change-over panel 2 are connected with system control panel 3 respectively, and system control panel 3 is connected with network interface unit 4.System control panel 3 gathers the input signal of controlled device by input/output interface board 1 and digital and analogue signals interface board 2, in the present embodiment, described controlled device comprises large-scale contactor between the locomotive internal electric and the various terminal devices in the trainman pulpit; In described controlled device, the input signal of some equipment is digital signal, the input signal of some equipment is simulating signal, therefore, the input signal of described terminal device comprises digital signal and simulating signal, input/output interface board 1 gathers described digital signal, and digital and analogue signals interface board 2 gathers described simulating signal.In the present embodiment, gather respectively digital signal and the simulating signal in described input signal by input/output interface board 1 and digital and analogue signals interface board 2, described simulating signal and described digital signal are separately processed, thereby isolated digital signal and simulating signal, avoid its phase mutual interference.Terminal device in described trainman pulpit comprises controller, key hole, forward-reverse gear shifting device etc.The information gathered by input/output interface board 1, digital and analogue signals interface board 2 is transferred to system control panel 3 through system bus; System control panel is according to parameters such as predefined vehicles, described input signal is carried out to logic analysis and computing, draw corresponding control variable, again by the corresponding control variable of described input/output interface board 1 output, control the switching of the controlled device of described locomotive by these control variable, drive corresponding device in described controlled device, thereby complete the realization of driver's control operation on the locomotive relevant device.Simultaneously, the system control panel 3 of the present embodiment is sent to network interface unit 4 by the described data through the logic analysis computing, by network interface unit 4, the locomotive intermediary electrical control system of the present embodiment can with display, the LJK(train monitoring system of cab), TAX2(motorcycle safety informix pick-up unit) etc. vehicle-mounted equipment carry out message exchange, realize the function of state-detection and fault diagnosis.
The system control panel structural drawing that Fig. 2 is the embodiment of the present invention, comprise bus transceiver 21, power supply 22,485(485: also be expressed as RS485, EIA-RS-485; EIA:Electronic Industries Association, Electronic Industries Association; RS:Recommended Standard recommended standard) driver module 23, CAN(Controller Area Network, controller local area network) driver module 24, from controller reset circuit 25, from controller 26, backup logic unit 27, master controller reset circuit 28, master controller 29.Wherein, master controller 29 connect bus transceivers 21, from controller 26, master controller reset circuit 28, backup logic unit 27; From controller 26 connection bus transceivers 21, from controller reset circuit 25, backup logic unit 27.CAN driver module 24 and bus transceiver 21, power supply 22,485 driver modules 23, from controller reset circuit 25, be electrically connected to from being provided with between controller 26, backup logic unit 27, master controller reset circuit 28, master controller 29.485 driver modules 23 and bus transceiver 21, power supply 22, CAN driver module 24, from controller reset circuit 25, be electrically connected to from being provided with between controller 26, backup logic unit 27, master controller reset circuit 28, master controller 29.Power supply 22 and bus transceiver 21,485 driver modules 23, CAN driver module 24, from controller reset circuit 25, be electrically connected to from being provided with between controller 26, backup logic unit 27, master controller reset circuit 28, master controller 29.In addition, power supply 22,485 driver modules 23, CAN driver module 24 also are connected with the network interface unit 4 in Fig. 1 respectively.Input/output interface board 1, digital-to-analog conversion interface board 2 shown in master controller reset circuit bus transceiver 21 connection layout 1, be responsible for the exchanges data between the described input/output interface board 1 of described system control panel 3 and digital-to-analog conversion interface board 2.
System control panel is connected with digital and analogue signals change-over panel 2 with the input/output interface board 1 described in the present embodiment by described system bus and carries out the data exchange, to obtain the described input signal of input/ output interface board 1 and 2 collections of digital and analogue signals change-over panel.When master controller 29 does not break down, at first the input signal that described input/output interface board 1 and digital and analogue signals change-over panel 2 gather enters in master controller 29 and carries out logical operation, to draw corresponding described control variable, then described control variable is proceeded to backup logic unit 27 and stored; When master controller 29 breaks down, by from controller 27 replaces master controller 29 execution control functions, the input signal that described input/output interface board 1 and digital and analogue signals change-over panel 2 gather enters from controller 26 and carries out logical operation to draw corresponding control variable; By master controller 29 or the control variable from controller 26 computings, on the one hand through 485 driver modules 23 or CAN driver module 24, be sent to the network interface unit 4 shown in Fig. 1 and carry out fault diagnosis and monitoring, be sent to described input/output interface board 1 by bus transceiver 21 on the other hand, then be sent to each controlled device execution from input/output interface board 1 via system bus.In addition, from 25 pairs of controller reset circuits, from controller 26, monitor in real time, master controller reset circuit 28 has also carried out real-time monitoring to master controller 29, once the reasons such as power-fail, system control panel are subject to impacting, experience interference cause from controller 26 or master controller 29 breaking down, corresponding reset circuit will be attempted controller is carried out to reset operation, the part running software is played to restitution extremely, make program recovery to normal operating condition, thereby make system recover normal.Backup logic unit 27 is backed up system state in real time, makes the normal condition of system held before it resets after resetting; Simultaneously, backup logic unit 27 is also monitored the duty from controller 26, master controller 29, once master controller 29 breaks down, described reset circuit is resetted to system, if it is normal that master controller 29 still can not recover, switch to immediately from controlling and continue to control function, make to control functions from controller 26 performances, it is reliable that the assurance system is moved.When system by master controller 29 to the moment of being switched from controller 26, backup logic unit 27 also can be sent to the control variable of up-to-date backup from controller 26, makes from controller 26 and can continue operation with the state resetting.The network-driven circuit such as CAN driver module 24,485 driver modules 23 set in system control panel are connected with described network interface unit 4, thereby make system control panel and vehicle-mounted other smart machines, as display, LJK, TAX2 etc. carry out exchanges data, thereby realize monitoring and the fault diagnosis of locomotive running state.Power supply 22 obtains the 5V power supply for the backboard from system control panel, and is converted into the each several part of 3.3V or 1.8V feed system control panel.In the present embodiment, master controller reset circuit 28, be respectively arranged with house dog from controller reset circuit 25.
In the present embodiment, controller comprises described master controller and described from controller, and corresponding reset circuit comprises the master controller reset circuit and from the controller reset circuit.In other embodiments, controller and corresponding controller reset circuit can arrange one or more.When controller is provided with two or more, can be provided with the backup logic unit in system control panel, in order to when different controller switching operations, the data after the controller logic computing are carried out to data backup.
In the present embodiment, the network-driven circuit adopts described CAN driver module and 485 driver modules, and in other embodiments, the network-driven circuit also can adopt other driver module.
The input/output interface board structural drawing that Fig. 3 is the embodiment of the present invention, comprise sample circuit 31, anti-jamming circuit 32, isolating coupler 33, shaping circuit 34, latch cicuit 35, isolated drive circuit 36, holding circuit 37, output circuit.Sample circuit 31 connects anti-jamming circuit 32; anti-jamming circuit 32 connects isolating coupler 33, and isolating coupler 33 connects shaping circuit 34, and shaping circuit 34 connects latch cicuit 35; latch cicuit 35 connects isolated drive circuit 36, and isolated drive circuit 36 connects holding circuit 37.Wherein, each controlled device that sample circuit 31 connects in cab; for gathering the signal of each controlled device of cab; latch cicuit 35 is gone back the bus transceiver of connected system control panel; the output circuit that holding circuit 37 connects on input/output interface board, input/output interface board transmits signal to the bus transceiver of system control panel by described output circuit.The input signal signal of described controlled device is gathered through over-sampling circuit 31, be transferred to anti-jamming circuit 32 and processed the undesired signal in described input signal signal, communication after processing is to isolating coupler 33, thereby be transferred to shaping circuit 34 and carry out the signal shaping processing under the state of isolation fully, signal after shaping is transferred to latch cicuit 35 and is latched, latch cicuit 35 is according to the travelling speed of described system control panel, the signal that it is latched is sent to described system control panel to carry out computing and carries out logic analysis and computing, draw corresponding control variable.Described control variable is back to latch cicuit 35 by system control panel again, is transferred to isolated drive circuit 36 by latch cicuit 35 and carries out conversion processing, finally by overprotection circuit 37, sends to described controlled device.The circuit of 37 pairs of input/output interface boards of holding circuit plays a protective role; at whole diesel locomotive steering logic electronic system, be short-circuited, in the situation such as impact; holding circuit 37 is the described input/output interface board circuit of fragmentary 3 temporarily, thus the damage of avoiding various abnormal conditions to cause the input/output interface board circuit.
Input/output interface board is mainly used in obtaining the state of controlled device, and system control panel gathers the signal of controlled device by input/output interface board; Simultaneously, input/output interface board also receives the order that control desk sends over.Sample circuit 31 is comprised of resistor network; isolating coupler 33 adopts photoelectrical coupler particularly; signal is after the two-stage not gate shaping of shaping circuit 34; be sent to latch cicuit 35; finally deliver to system control panel and carry out logical operation; the signal that latch cicuit 35 is sent is after the system control panel computing completes; be back to again latch cicuit 35; via isolated drive circuit 36 and the holding circuit 37 of pulse transformer and triode composition, deliver to various contactors, the relay of vehicle-mounted high/low voltage switch board.
The digital-to-analog conversion interface board structural representation that Fig. 4 is the embodiment of the present invention, comprise amplifying circuit 41, filtering circuit 42, digital-to-analogue sample circuit 43, digital-to-analogue output circuit.Amplifying circuit 41 connects filtering circuit 42, and filtering circuit 42 connects digital-to-analogue sample circuit 43.Wherein, the controlled device that amplifying circuit 41 connects in cab, sample circuit 43 connects the equipment that the relevant simulating signal in cab is controlled.Amplifying circuit 41 connects the bus transceiver of said system control panel.
Digital analog interface plate circuit is gathered all kinds of simulating signals relevant to control of cab.The simulating signal that described controlled device sends gathers amplification through number amplifying circuit 41, change suitable voltage level into, then by filtering circuit filtering environmental undesired signal, finally by digital-to-analogue sample circuit 43, carry out analog to digital conversion, convert the conversion digital signal to, be sent to system control panel and carry out logical operation.
In the present embodiment, in order to distinguish, the digital signal in the input signal that described input/output interface board is gathered is called digital signal; Digital signal after transforming through the digital-to-analogue sample circuit of described digital-to-analog conversion interface board is called the conversion digital signal.
The diesel locomotive steering logic electronization method that Fig. 5 is the embodiment of the present invention and working-flow schematic diagram thereof.Comprise the steps.
Step 51: initialization.When locomotive starts, the diesel locomotive steering logic electronic system of the present embodiment carries out an initialization, and after initialization, native system starts with certain loop cycle operation this method, and in the present embodiment, this cycle is 200 milliseconds.
Step 52: whether the supervision time reaches cycle period.In this step, whether the diesel locomotive steering logic electronization method of the present embodiment and systems inspection thereof reach described cycle period according to the time of poll-final last time, if reach cycle period, start to carry out next step.If do not reach, continue to wait for.Concrete, by the system control panel of native system time check just, if, apart from checking that the time finished reached cycle period last time, start to carry out next step, carry out new one and take turns inspection, otherwise continue to wait for.
Step 53: Gather and input signal.In this step, the diesel locomotive steering logic electronization method of the present embodiment and system thereof are carried out respectively the input signal collection to each equipment in cab.Concrete, the diesel locomotive steering logic electronization method of the present embodiment and the input/output interface board of system thereof and digital and analogue signals change-over panel are gathered the input signal of each equipment in cab.
Step 54: check that whether described input signal is effective.In this step, the diesel locomotive steering logic electronization method of the present embodiment and system thereof are gathered the input signal of each equipment in cab, and are transported to checkout equipment, and in the present embodiment, described checkout equipment refers to described network interface unit; If data are effective, described input signal is stored in described system control panel, enters step 55; Otherwise the number of times that described system control panel is invalid to described input signal carries out record, enters step 551.Concrete, the network interface unit of the diesel locomotive steering logic electronic system of the present embodiment is judged described input signal.
Step 551: the number of times that described input signal is invalid is recorded in described system control panel.
Step 552: the described invalid number of times of described system control panel judgement, if invalid number of times is greater than 3 times, judgement is broken down, and enters step 553; If invalid number of times does not surpass 3 times, return to step 52.Concrete, invalid number of times checks judgement to described input signal for the diesel locomotive steering logic electronization method of the present embodiment and the system control panel of system thereof.
Step 553: reset.In this step, the diesel locomotive steering logic electronization method of the present embodiment and the system control panel of system thereof are resetted to control system, make it recover normal operation.
Step 55: described input signal is carried out to logical operation, the control variable that will send with each equipment drawn respectively cab.
Step 56: described control variable is sent to controlled device, and return to step 52.
Described system control panel is carried out logical operation by described input signal and is shown that control variable comprises the steps:
The bus transceiver of described system control panel gathers described input variable; The controller of described system control panel carries out logic analysis according to described input variable and computing draws described control variable; Described control variable is transported to described bus transceiver by described controller.
In certain embodiments, when the controller of described system control panel carries out logic analysis and computing and draws described control variable according to described input variable, the backup logic unit of described control system plate is backed up described control variable.
Input/output interface board gathers and comprises the steps: respectively the input signal of controlled device in locomotive cab
The sample circuit of input/output interface board gathers the digital signal in described input signal; The anti-jamming circuit of input/output interface board is removed the undesired signal in described digital signal; The isolating coupler of input/output interface board carries out signal shaping by described digital data transmission to the shaping circuit of input/output interface board under isolation; The latch cicuit of input/output interface board is latched and be transferred to described system control panel by the described digital signal after shaping to carry out logic analysis and computing and receives described control variable; Described latch cicuit sends to described control variable the isolated drive circuit of input/output interface board; Described isolated drive circuit is transferred to controlled device by the holding circuit of described control variable process input/output interface board.
Described digital and analogue signals change-over panel comprises the steps: the input signal collection of controlled device in locomotive cab
The amplifying circuit of digital and analogue signals change-over panel carries out voltage transition to the simulating signal of described input signal, is transported to the filtering circuit of digital and analogue signals change-over panel; Undesired signal in the described simulating signal of described filtering circuit filtering; The digital-to-analogue sample circuit of digital and analogue signals change-over panel is the conversion digital signal by described analog-signal transitions; The digital-to-analogue output circuit of digital and analogue signals change-over panel outputs to described system control panel by described conversion digital signal.
As a specific embodiment, in the excitation control loop of the diesel locomotive of prior art, the driver is by button to three relay operation, and the logic control of the tentaculum that achieves a butt joint, realize carrying out disconnection, the closure between contactor and auxiliary reclay by the hardware line; And the diesel locomotive steering logic electronic system that adopts the embodiment of the present invention to provide, No. 571 lines in former excitation control loop, 573A line, No. 623 lines, No. 375 lines, No. 383 lines, No. 393 lines can be connected with the input end of native system, No. 395 lines in former energized circuit are connected with the output terminal of native system; State by the described six roots of sensation line to the input end connection is judged, the control of the tentaculum that achieves a butt joint.Described input end can be the signal input interface of native system input/output interface board and digital and analogue signals change-over panel, and described output terminal can make the signal output interface of native system input/output interface board and digital and analogue signals change-over panel; Low and high level in each wiring meets while imposing a condition, and carries out the contactor closure, otherwise, carry out contactor and disconnect.Concrete, when No. 375 line input signals are high level, No. 571 line input low levels, No. 573 line input low levels and No. 393 line input high levels, if meet following one of two things, master controller or from the control variable of controller output controlled device closure:
No. 623 line input low levels,
Or, No. 383 line input high levels.
As can be seen from above, diesel locomotive steering logic electronic system provided by the present invention, can adopt the mode combustion motor car related system of control able to programme to be controlled, be not subject to the impact of the factors such as environment simultaneously, reduce to a greater degree staff's work, there is higher work efficiency and trouble shooting, treatment effeciency.
Diesel locomotive steering logic electronization method provided by the invention, adopt Programmable Logic Controller to replace traditional relay control mode, i.e. contactless control.Can effectively prevent the contact misoperation situation caused because of factors such as running environment.Pass through programming Control, whether normally can monitor each road input/output signal, thereby when breaking down, detect out of order source by software records, simultaneously, with communication of locomotive, can on display screen, the guiding work personnel investigate fault, reduced greatly staff's workload and improved work efficiency and fiduciary level.
Those of ordinary skill in the field are to be understood that: the foregoing is only specific embodiments of the invention; be not limited to the present invention; within the spirit and principles in the present invention all, any modification of making, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.