CN109808738A - A kind of two-way Train control method, device and computer readable storage medium - Google Patents

A kind of two-way Train control method, device and computer readable storage medium Download PDF

Info

Publication number
CN109808738A
CN109808738A CN201910122731.6A CN201910122731A CN109808738A CN 109808738 A CN109808738 A CN 109808738A CN 201910122731 A CN201910122731 A CN 201910122731A CN 109808738 A CN109808738 A CN 109808738A
Authority
CN
China
Prior art keywords
signal
level
logic control
input terminal
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910122731.6A
Other languages
Chinese (zh)
Other versions
CN109808738B (en
Inventor
黄众
罗显光
杜求茂
李翀
孙俊勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CRRC Zhuzhou Locomotive Co Ltd
Original Assignee
CRRC Zhuzhou Locomotive Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CRRC Zhuzhou Locomotive Co Ltd filed Critical CRRC Zhuzhou Locomotive Co Ltd
Priority to CN201910122731.6A priority Critical patent/CN109808738B/en
Publication of CN109808738A publication Critical patent/CN109808738A/en
Application granted granted Critical
Publication of CN109808738B publication Critical patent/CN109808738B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Train Traffic Observation, Control, And Security (AREA)

Abstract

The embodiment of the invention discloses a kind of two-way Train control method, device and computer readable storage mediums to realize the double-direction control of train-line in the case where communication cable between not increasing logic control element additionally.Increase level transmission direction signal in current logic control unit;When the unlocked level transmission direction of current logic control unit, then according to the level signal input condition of two input terminals of current logic control unit train-line, the signal form of adjustment direction signal;When the locked transmission direction of current logic control unit train-line function, then according to direction type and control instruction belonging to direction signal, the level of output end corresponding with input terminal is adjusted, to guarantee that the output end level of current logic control unit matches with direction signal;And the level signal of target output is transmitted to the input terminal of next logic control element.Referring to the working method of current logic control unit, the orderly control to entire two-way train may be implemented.

Description

A kind of two-way Train control method, device and computer readable storage medium
Technical field
The present invention relates to technical field of rail traffic, more particularly to a kind of two-way Train control method, device and calculating Machine readable storage medium storing program for executing.
Background technique
Currently, rail traffic vehicles control loop largely uses relay as the control element of control loop.Relay It is made of coil and contact two parts, the disconnection closed state of contact can be changed in power control coil, to realize vehicle control Function.But due to the problems such as mechanical contact of relay is short there are the service life, easy to aging, contact adhesion, logic control element Schedule has also been pushed in the utilization of (Logical Control Unit, LCU) this system without deaerator technology.
Outputting and inputting for LCU is two sets of independent circuits, after input signal is acquired by input card, by logic control list After the completion of n ary operation, then result exported by output board card.It can be seen that its processing sequence is input-processing-output (Input- Processing-Output, IPO) such a unidirectional process.It is different from relay contact, relay contact closure successor Meaning one end obtain it is electric, the other end also will it is electric, logic control element a pair of input and output can be only done the control on a direction.It is right For the train line traffic control of track train, usually from unoccupied end drivers' cab to the power supply of end drivers' cab is occupied, as generation driver The power supply direction of train-line also switches when room occupies switching, this needs to realize track train the control on two different directions System.It using the input in LCU acquisition both direction and will export to when next vehicle transmitting, and need correctly to handle input and output simultaneously Join the logic control used, such as do not handle logic well correctly, output signal all the way can be fed back in another way input, may With making entire circuit error must be electric, lead to the error control of train.
As it can be seen that how logic-based control unit realizes the orderly control of two-way train, be those skilled in the art urgently It solves the problems, such as.
Summary of the invention
The purpose of the embodiment of the present invention is that providing a kind of two-way Train control method, device and computer-readable storage medium Matter can realize the orderly control of two-way train with logic-based control unit.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of two-way Train control method, it is suitable for having more The logic control element of road input and output, which comprises
Judge the whether unlocked direction of the direction signal of current logic control unit;
If so, adjusting the direction letter according to the level signal of two input terminals of the current logic control unit Number signal form;
If it is not, then according to the control signal in direction type and current logic control unit belonging to the direction signal, Adjust the level of output end corresponding with the input terminal;
The level signal of target output is transmitted to the input terminal of next logic control element.
Optionally, the level signal of two input terminals according to the current logic control unit, adjusts the side Include: to the signal form of signal
Whether it is low that whether the level signal for judging first input end is the level signal of high level and the second input terminal Level;
If so, direction signal is adjusted to positive useful signal;
If it is not, whether the level signal for then judging first input end is that the level signal of low level and the second input terminal is No is high level;
If so, direction signal is adjusted to reversed useful signal;
If it is not, then by the electricity of the first output end corresponding with the first input end in the current logic control unit It is flat to be set as low level, set low level for the level of second output terminal corresponding with second input terminal.
Optionally, the control letter according in direction type and current logic control unit belonging to the direction signal Number, the level for adjusting output end corresponding with the input terminal includes:
When the direction signal is positive useful signal, then according to the level signal and control of the first input end The level signal of the first output end is arranged in signal;And low level is set by second output terminal;
When the direction signal is reversed useful signal, then according to the level signal and control of second input terminal The level signal of second output terminal is arranged in signal;And low level is set by the first output end.
Optionally, in the level signal according to the first input end and control signal, the first output end is set Level signal;And it sets second output terminal to after low level further include:
Judge whether first input end is low level;
When the first input end is high level, then count value is reset;
When the first input end is low level, then count value is added one, and judge whether the second input terminal is low electricity Whether flat or count value is greater than or equal to preset threshold;
If so, direction signal is adjusted to invalid signals.
Optionally, in the level signal according to second input terminal and control signal, second output terminal is set Level signal;And it sets the first output end to after low level further include:
Judge whether the second input terminal is low level;
When second input terminal is high level, then count value is reset;
When second input terminal is low level, then count value is added one, and judge whether first input end is low electricity Whether flat or count value is greater than or equal to preset threshold;
If so, direction signal is adjusted to invalid signals.
Optionally, described by the first output corresponding with the first input end in the current logic control unit The level at end is set as low level, set the level of second output terminal corresponding with second input terminal to low level it Afterwards further include:
Count value is reset.
Optionally, it is described by the level signal of target output be transmitted to next logic control element input terminal it Before further include:
Judge whether current logic control unit is ultimate node unit;
If it is not, then executing the input terminal that the level signal of target output is transmitted to next logic control element The step of;
If so, using the level signal of the target output as the comprehensive judgement result of train-line level.
The embodiment of the invention also provides a kind of two-way train controllers, suitable for the logic with multichannel input and output Control unit, described device include judging unit, the first adjustment unit, second adjustment unit and output unit;
The judging unit, the whether unlocked direction of direction signal for judging current logic control unit;If so, Trigger the first adjustment unit;If it is not, then triggering the second adjustment unit;
The first adjustment unit, for the level signal according to two input terminals of the current logic control unit, Adjust the signal form of the direction signal;
The second adjustment unit, for according to direction type belonging to the direction signal and current logic control unit In control signal, adjust the level of corresponding with input terminal output end;
The output unit, for the level signal of target output to be transmitted to the input of next logic control element End.
Optionally, the first adjustment unit includes the first judgment sub-unit, positive adjustment subelement, the second judgement son list Member, reversed adjustment subelement and reset subelement;
First judgment sub-unit, for judging whether the level signal of first input end is high level and second is defeated Whether the level signal for entering end is low level;If so, the triggering positive adjustment subelement;If it is not, then triggering described second Judgment sub-unit;
The positive adjustment subelement, for direction signal to be adjusted to positive useful signal;
Second judgment sub-unit, for judging whether the level signal of first input end is low level and second is defeated Whether the level signal for entering end is high level;If so, the triggering reversed adjustment subelement;If it is not, then triggering the reset Subelement;
The reversed adjustment subelement, for direction signal to be adjusted to reversed useful signal;
The reset subelement, for by the current logic control unit corresponding with the first input end the The level of one output end is set as low level, sets low for the level of second output terminal corresponding with second input terminal Level.
Optionally, the second adjustment unit includes the first setting subelement and the second setting subelement;
The first setting subelement, is used for when the direction signal is positive useful signal, then according to described first The level signal and control signal of input terminal, are arranged the level signal of the first output end;And set low for second output terminal Level;
The second setting subelement, is used for when the direction signal is reversed useful signal, then according to described second The level signal and control signal of input terminal, are arranged the level signal of second output terminal;And set low for the first output end Level.
It optionally, further include first input end judging unit, resetting unit, summing elements, the second input terminal judging unit And invalid unit;
The first input end judging unit, in the level signal and control according to the first input end The level signal of the first output end is arranged in signal;And after by second output terminal setting low level, judge that first input end is No is low level;
The resetting unit, for when the first input end is high level, then resetting count value;
The summing elements, for when the first input end is low level, then count value being added one, and described in triggering Second input terminal judging unit;
The second input terminal judging unit, for judging whether the second input terminal is whether low level or count value are big In or equal to preset threshold;If so, triggering the invalid unit;
The invalid unit, for direction signal to be adjusted to invalid signals.
Optionally, the second input terminal judging unit is also used in the level signal according to second input terminal And control signal, the level signal of second output terminal is set;And after by the first output end setting low level, second is judged Whether input terminal is low level;
The resetting unit is also used to then reset count value when second input terminal is high level;
The summing elements are also used to count value then be added one, and trigger institute when second input terminal is low level State first input end judging unit;
The first input end judging unit be also used to judge first input end whether be low level or count value whether More than or equal to preset threshold;If so, triggering the invalid unit;
The invalid unit is also used to direction signal being adjusted to invalid signals.
Optionally, the resetting unit is also used to input in the current logic control unit with described first described The level of corresponding first output end is held to be set as low level, by second output terminal corresponding with second input terminal Level is set as after low level, and count value is reset.
Optionally, further includes: node judging unit, as unit;
The node judging unit, for the level signal of target output to be transmitted to next logic control described Before the input terminal of unit, judge whether current logic control unit is ultimate node unit;If it is not, it is single then to trigger the output Member executes the step of input terminal that the level signal of target output is transmitted to next logic control element;If so, It then triggers described as unit;
It is described to be used as unit, for using the level signal of the target output as the comprehensive judgement knot of train-line level Fruit.
The embodiment of the invention also provides a kind of two-way train controllers, comprising:
Memory, for storing computer program;
Processor, for executing the computer program to realize such as the step of above-mentioned two-way Train control method.
The embodiment of the invention also provides a kind of computer readable storage medium, deposited on the computer readable storage medium Computer program is contained, is realized when the computer program is executed by processor such as the step of above-mentioned two-way Train control method.
It can be seen from above-mentioned technical proposal when the unlocked direction of the direction signal of current logic control unit, then illustrate Current time prime train-line level is not set up, and current logic control unit is not to next compartment output level.It at this time can basis The variation of the level signal of two input terminals of current logic control unit, the signal form of adjustment direction signal;Current logic It, then can be according to the direction type and current logic control list belonging to direction signal when the direction signal locking direction of control unit Control signal in member adjusts the level of output end corresponding with input terminal, to guarantee the output of current logic control unit End level matches with direction signal;And the level signal of target output is transmitted to the input of next logic control element End.Two-way train includes multiple compartments, and each compartment is provided with logic control element, referring to the work of current logic control unit Make mode, the orderly control to entire two-way train may be implemented.
Detailed description of the invention
In order to illustrate the embodiments of the present invention more clearly, attached drawing needed in the embodiment will be done simply below It introduces, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ordinary skill people For member, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of two-way Train control method provided in an embodiment of the present invention;
Fig. 2 is the connection relationship in a train provided in an embodiment of the present invention between the logic control element in three section compartments Schematic diagram;
Fig. 3 is the structural representation of the one provided in an embodiment of the present invention logic control element comprising two-way input/output terminal Figure;
Fig. 4 is a kind of structural schematic diagram of two-way train controller provided in an embodiment of the present invention;
Fig. 5 is a kind of hardware structural diagram of two-way train controller provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole embodiments.Based on this Embodiment in invention, those of ordinary skill in the art are without making creative work, obtained every other Embodiment belongs to the scope of the present invention.
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description The present invention is described in further detail.
Next, a kind of two-way Train control method provided by the embodiment of the present invention is discussed in detail.Fig. 1 is that the present invention is real The flow chart that a kind of two-way Train control method of example offer is provided, suitable for the logic control element with multichannel input and output, This method comprises:
S101: judge the whether unlocked direction of the direction signal of current logic control unit.
One train includes more piece compartment, in embodiments of the present invention, a logic can be arranged in each compartment Control unit may include multichannel input and output in each logic control element.It is illustrated in figure 2 three section vehicles in a train Connection relationship diagram between compartment, that is, A vehicle, B vehicle and the logic control element of C vehicle, the corresponding logic control list of each compartment Member, the logic control element can handle the two-way train line traffic control of multichannel simultaneously, and top half is that right side car door shuts column in figure Fare annexation figure, lower half portion are that left side car door shuts train-line annexation figure.
Each section is made of two-way input/output terminal, as shown in figure 3, being the logic control comprising two-way input/output terminal The structural schematic diagram of unit processed, can define IN1- > OUT1 is voltage direction of transfer from left to right, defines IN2- > OUT2 and is Voltage direction of transfer from right to left.When controlling the unlocked direction signal (CTRL) namely control invalidating signal, OUT1 and OUT2 exports low level;When CTRL locking direction namely effective control signal, detect that IN1 or IN2 are wherein inputted all the way It is effective then enable corresponding output, while shielding the output of another way input.
Direction signal is used to indicate the direction of transfer of train-line level.When the unlocked direction of direction signal, then before illustrating One moment train-line does not have latch voltage transmission direction, can then execute S102 at this time.
When direction signal locking direction, then it can determine that train line voltage passes according to the concrete form of direction signal Defeated direction, so as to adjust the output end level of logic control element corresponding in train, i.e. execution S103.
S102: according to the level signal of the two of current logic control unit input terminals, the signal shape of adjustment direction signal Formula.
For ease of description, in embodiments of the present invention, can define high level is useful signal, and low level is invalid letter Number.The processing mode of each logic control element is similar, in the present invention is implemented, with all logic control lists of a train Explanation is unfolded for any one logic control element, that is, current logic control unit in member.
When the direction signal of current logic control unit is invalid signals, then it can come according to the level signal of input terminal true The direction of settled preceding logic control element train-line, so that it is determined that voltage direction of transfer in each logic control element out.
In order to realize the double-direction control to train, in logic control element all the way input/output signal with another way Input/output signal is in parallel, in order to avoid this two-way input/output terminal constitutes closed loop, needs to be believed according to the level of input terminal Number, the level of output end is adjusted in time.
The partial structure diagram of logic control element as shown in connection with fig. 3, including two input terminals, for the ease of area Point, IN1 can be referred to as to first input end, IN2 is referred to as the second input terminal, correspondingly, OUT1 corresponding with IN1 is referred to as first Output end, OUT2 corresponding with IN2 are referred to as second output terminal.
It, in embodiments of the present invention, can be by the electricity between logic control element each in train for the ease of subsequent introduction The sequence of pressure direction of transfer from left to right is referred to as positive direction, correspondingly, the voltage between logic control element each in train is passed It passs the sequence of direction from right to left and is referred to as opposite direction.
In the concrete realization, it can be determined that whether the level signal of first input end is high level and the second input terminal Whether level signal is low level.
When the level signal that the level signal of first input end is high level and the second input terminal is low level, then say Each logic control element is successively to transmit voltage signal according to sequence from left to right in bright train, at this time can be by direction signal It is adjusted to positive useful signal.
When the level signal that the level signal of first input end is low level either the second input terminal is high level, then Illustrate that the voltage signal of each logic control element in train is not transmitted according to forward direction, can further judge the first input at this time Whether it is high level that whether the level signal at end is the level signal of low level and the second input terminal.
When the level signal that the level signal of first input end is low level and the second input terminal is high level, then illustrate The voltage signal of each logic control element is transmitted according to opposite direction in train, and direction signal can be adjusted to reversed effective at this time Signal.
When the level signal of first input end and the level signal of the second input terminal are low level or are high level When, then low level is set by the level of the first output end corresponding with first input end in current logic control unit, incite somebody to action The level of second output terminal corresponding with the second input terminal is set as low level.
S103: according to the control signal in direction type and current logic control unit belonging to direction signal, adjustment with The level of the corresponding output end of input terminal.
It may be positive useful signal is also likely to be reversed useful signal when direction signal is useful signal.It is different Direction type, the level set-up mode of output end is different in logic control element.
Specifically, when direction signal is positive useful signal, then according to the level signal of first input end and control The level signal of the first output end is arranged in signal;And low level is set by second output terminal;When direction signal is reversed effective When signal, then according to the level signal of the second input terminal and control signal, the level signal of second output terminal is set;And by One output end is set as low level.
In conjunction with Fig. 3, when IN1 is high level, when current logic control unit can work normally, then controlling signal also is high electricity Flat i.e. useful signal, first input end IN1 and the first output end OUT1 are in the conductive state at this time, in order to avoid IN1- > OUT1- > IN2- > OUT2 forms closed circuit, leads to the non-normal working of logic control element, at this time can be by second output terminal OUT2 It is set as low level.Similarly, when IN2 is high level, when current logic control unit can work normally, then it is high for controlling signal also Level, that is, useful signal, the second input terminal IN2 and second output terminal OUT2 are in the conductive state at this time, in order to avoid IN2- > OUT2- > IN1- > OUT1 forms closed circuit, leads to the non-normal working of logic control element, at this time can be by the first output end OUT1 is set as low level.
S104: the level signal of target output is transmitted to the input terminal of next logic control element.
It include multiple logic control elements in a train, logic control list corresponding to the compartment occupied except driver Member is outside ultimate node, and other logic control elements are required to after determining output end voltage according to voltage transmission direction, to Next logic control element transmits useful signal.
It include that there are two output end OUT1 and OUT2 such as in conjunction with Fig. 3, in logic control element.Assuming that INI is high level, OUT1 is high level, and voltage direction of transfer is positive direction at this time, and OUT1 is target output.
It can be seen from above-mentioned technical proposal when the unlocked direction of the direction signal of current logic control unit, then illustrate Current time prime train-line level is not set up, and current logic control unit is not to next compartment output level.It at this time can basis The variation of the level signal of two input terminals of current logic control unit, the signal form of adjustment direction signal;Current logic It, then can be according to the direction type and current logic control list belonging to direction signal when the direction signal locking direction of control unit Control signal in member adjusts the level of output end corresponding with input terminal, to guarantee the output of current logic control unit End level matches with direction signal;And the level signal of target output is transmitted to the input of next logic control element End.Two-way train includes multiple compartments, and each compartment is provided with logic control element, referring to the work of current logic control unit Make mode, the orderly control to entire two-way train may be implemented.
In view of that in practical applications, can there is the case where level shake, in order to reduce level shake to logic control list The influence of member, can be set count value.
By taking train forward travel as an example, in the concrete realization, believe according to the level signal and control of first input end Number, the level signal of the first output end is set;And set can also further judging after low level for second output terminal Whether one input terminal is low level.
When first input end is high level, then count value is reset;When first input end is low level, then will count Value plus one, and judge whether the second input terminal is whether low level or count value are greater than or equal to preset threshold.
Either work as first input end when first input end and the second input terminal are low level to be low level and count Numerical value is greater than or equal to preset threshold, then direction signal is adjusted to invalid signals.
By taking train backward going as an example, in the concrete realization, believe according to the level signal and control of the second input terminal Number, the level signal of second output terminal is set;And set can also further judging after low level for the first output end Whether two input terminals are low level.
When the second input terminal is high level, then count value is reset;When the second input terminal is low level, then will count Value plus one, and judge whether first input end is whether low level or count value are greater than or equal to preset threshold.
When first input end and the second input terminal are low level either when the second input terminal is low level and is counted Numerical value is greater than or equal to preset threshold, then direction signal is adjusted to invalid signals.
Wherein, preset threshold can be set to 2.When first input end be low level, and count value be greater than or equal to 2 When, then explanation may cause logic control element to the driving mode error in judgement of train, then may be used at this time due to level shake To set invalid signals for direction signal.
When being provided with count value, correspondingly, by current logic control unit corresponding with first input end The level of one output end is set as low level, sets low level for the level of second output terminal corresponding with the second input terminal It also needs to reset count value later, to realize the reset of logic control element.
The erroneous judgement that level shakes bring train driving mode can be effectively reduced by the way that count value is arranged, further Improve the accuracy and safety of logic control element work.
In conjunction with Fig. 3, level either from IN1- > OUT1 or the direction IN2- > OUT2 is handled by logic control element Can correctly judge afterwards energization direction and voltage is passed into next logic control element.In practical applications, by Car room of powering provides electric energy, is successively transmitted downwards by the logic control element in each compartment, is finally transmitted to where driver Car room.In embodiments of the present invention, each logic control element can be regarded to a node unit as, and can be by driver The logic control element of place car room is set as ultimate node unit.
Specifically, before the level signal of target output is transmitted to the input terminal of next logic control element also Can further judge whether current logic control unit is ultimate node unit.
If current logic control unit is not ultimate node unit, the level signal of target output is transmitted to by execution The step of input terminal of next logic control element.
If current logic control unit is ultimate node unit, without a logic control element transmission level still further below Signal.
If current logic control unit is ultimate node unit, illustrate that current logic control unit is set to where driver Car room, understand the executive condition of each logic control element in time for the ease of driver, the level of target output can be believed Comprehensive judgement result number as train-line level.
When the non-effective signal of the level signal of target output, then it is corresponding to its to illustrate that target output is not received Input terminal transmission level signal.
Lead to the reason of not receiving level signal, it may be possible to which failure occurs in current logic control unit, it is also possible to There is failure in the prime node unit of current logic control unit, and the failure for causing level signal to be transmitted can carry out at this time Warning note.
Wherein, the mode of warning note can there are many, for example, play audio either by display screen show or It is by indicator light flashing etc..
By using the level signal of target output as the comprehensive judgement of train-line level as a result, can be in order to driver more Add and get information about whether each logic control element can work normally, and when logic control element goes wrong, can and When remind driver find and solve the problems, such as, improve the integral working of logic control element.
Fig. 4 is a kind of structural schematic diagram of two-way train controller provided in an embodiment of the present invention, is suitable for having more The logic control element of road input and output, device include judging unit 41, the first adjustment unit 42, second adjustment unit 43 and defeated Unit 44 out;
Judging unit 41, the whether unlocked direction of direction signal for judging current logic control unit;If so, touching Send out the first adjustment unit 42;If it is not, then triggering second adjustment unit 43;
The first adjustment unit 42, for the level signal according to two input terminals of current logic control unit, adjustment side To the signal form of signal;
Second adjustment unit 43, for according to the control in direction type and current logic control unit belonging to direction signal Signal processed adjusts the level of output end corresponding with input terminal;
Output unit 44, for the level signal of target output to be transmitted to the input of next logic control element End.
Optionally, the first adjustment unit include the first judgment sub-unit, positive adjustment subelement, the second judgment sub-unit, Reversed adjustment subelement and reset subelement;
First judgment sub-unit, for judging whether the level signal of first input end is high level and the second input terminal Level signal whether be low level;If so, the positive adjustment subelement of triggering;If it is not, then triggering the second judgment sub-unit;
Forward direction adjustment subelement, for direction signal to be adjusted to positive useful signal;
Second judgment sub-unit, for judging whether the level signal of first input end is low level and the second input terminal Level signal whether be high level;If so, the reversed adjustment subelement of triggering;If it is not, then triggering reset subelement;
Reversed adjustment subelement, for direction signal to be adjusted to reversed useful signal;
Subelement is resetted, for by the electricity of the first output end corresponding with first input end in current logic control unit It is flat to be set as low level, set low level for the level of second output terminal corresponding with the second input terminal.
Optionally, second adjustment unit includes the first setting subelement and the second setting subelement;
First setting subelement, is used for when direction signal is positive useful signal, then according to the level of first input end Signal and control signal, are arranged the level signal of the first output end;And low level is set by second output terminal;
Second setting subelement, is used for when direction signal is reversed useful signal, then according to the level of the second input terminal Signal and control signal, are arranged the level signal of second output terminal;And low level is set by the first output end.
It optionally, further include first input end judging unit, resetting unit, summing elements, the second input terminal judging unit And invalid unit;
First input end judging unit, for according to the level signal of first input end and control signal, setting the The level signal of one output end;And after by second output terminal setting low level, judge whether first input end is low level;
Resetting unit, for when first input end is high level, then resetting count value;
Summing elements for when first input end is low level, then count value being added one, and trigger the second input terminal and sentence Disconnected unit;
Second input terminal judging unit, for judge the second input terminal whether be low level or count value whether be greater than or Equal to preset threshold;If so, triggering invalid unit;
Invalid unit, for direction signal to be adjusted to invalid signals.
Optionally, the second input terminal judging unit is also used to believe according to the level signal and control of the second input terminal Number, the level signal of second output terminal is set;And after by the first output end setting low level, whether the second input terminal is judged For low level;
Resetting unit is also used to then reset count value when the second input terminal is high level;
Summing elements are also used to count value then be added one, and trigger first input end when the second input terminal is low level Judging unit;
First input end judging unit is also used to judge whether first input end is whether low level or count value are greater than Or it is equal to preset threshold;If so, triggering invalid unit;
Invalid unit is also used to direction signal being adjusted to invalid signals.
Optionally, resetting unit is also used to defeated by current logic control unit corresponding with first input end first The level of outlet is set as low level, set the level of second output terminal corresponding with the second input terminal to low level it Afterwards, count value is reset.
Optionally, further includes: node judging unit, as unit;
Node judging unit, for the level signal of target output to be transmitted to the defeated of next logic control element Before entering end, judge whether current logic control unit is ultimate node unit;It executes if it is not, then triggering output unit by target The level signal of output end is transmitted to the step of input terminal of next logic control element;If so, triggering is used as unit;
As unit, for using the level signal of the target output as the comprehensive judgement result of train-line level.
The explanation of feature may refer to the related description of embodiment corresponding to Fig. 1 in embodiment corresponding to Fig. 4, here no longer It repeats one by one.
It can be seen from above-mentioned technical proposal when the unlocked direction of the direction signal of current logic control unit, then illustrate Current time prime train-line level is not set up, and current logic control unit is not to next compartment output level.It at this time can basis The variation of the level signal of two input terminals of current logic control unit, the signal form of adjustment direction signal;Current logic It, then can be according to the direction type and current logic control list belonging to direction signal when the direction signal locking direction of control unit Control signal in member adjusts the level of output end corresponding with input terminal, to guarantee the output of current logic control unit End level matches with direction signal;And the level signal of target output is transmitted to the input of next logic control element End.Two-way train includes multiple compartments, and each compartment is provided with logic control element, referring to the work of current logic control unit Make mode, the orderly control to entire two-way train may be implemented.
Fig. 5 is a kind of hardware structural diagram of two-way train controller 50 provided in an embodiment of the present invention, comprising:
Memory 51, for storing computer program;
Processor 52, for executing computer program to realize such as the step of above-mentioned two-way Train control method.
The embodiment of the invention also provides a kind of computer readable storage medium, it is stored on computer readable storage medium Computer program is realized when computer program is executed by processor such as the step of above-mentioned two-way Train control method.
It is provided for the embodiments of the invention a kind of two-way Train control method, device and computer-readable storage medium above Matter is described in detail.Each embodiment is described in a progressive manner in specification, and each embodiment stresses It is the difference from other embodiments, the same or similar parts in each embodiment may refer to each other.For embodiment public affairs For the device opened, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to side Method part explanation.It should be pointed out that for those skilled in the art, not departing from the principle of the invention Under the premise of, it can be with several improvements and modifications are made to the present invention, these improvement and modification also fall into the claims in the present invention In protection scope.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.

Claims (10)

1. a kind of two-way Train control method, which is characterized in that suitable for the logic control element with multichannel input and output, institute The method of stating includes:
Judge the whether unlocked direction of the direction signal of current logic control unit;
If so, adjusting the direction signal according to the level signal of two input terminals of the current logic control unit Signal form;
If it is not, then according to the control signal in direction type and current logic control unit belonging to the direction signal, adjustment The level of output end corresponding with the input terminal;
The level signal of target output is transmitted to the input terminal of next logic control element.
2. the method according to claim 1, wherein described two according to the current logic control unit defeated The level signal for entering end, the signal form for adjusting the direction signal include:
Whether it is low level that whether the level signal for judging first input end is the level signal of high level and the second input terminal;
If so, direction signal is adjusted to positive useful signal;
If it is not, then judge first input end level signal whether be low level and the second input terminal level signal whether be High level;
If so, direction signal is adjusted to reversed useful signal;
If it is not, then the level of the first output end corresponding with the first input end in the current logic control unit is set It is set to low level, sets low level for the level of second output terminal corresponding with second input terminal.
3. according to the method described in claim 2, it is characterized in that, it is described according to direction type belonging to the direction signal and Control signal in current logic control unit, the level for adjusting output end corresponding with the input terminal include:
When the direction signal is positive useful signal, then believed according to the level signal of the first input end and control Number, the level signal of the first output end is set;And low level is set by second output terminal;
When the direction signal is reversed useful signal, then believed according to the level signal of second input terminal and control Number, the level signal of second output terminal is set;And low level is set by the first output end.
4. according to the method described in claim 3, it is characterized in that, the level signal according to the first input end with And control signal, the level signal of the first output end is set;And it sets second output terminal to after low level further include:
Judge whether first input end is low level;
When the first input end is high level, then count value is reset;
When the first input end be low level when, then count value is added one, and judge the second input terminal whether be low level or Whether person's count value is greater than or equal to preset threshold;
If so, direction signal is adjusted to invalid signals.
5. according to the method described in claim 4, it is characterized in that, the level signal according to second input terminal with And control signal, the level signal of second output terminal is set;And it sets the first output end to after low level further include:
Judge whether the second input terminal is low level;
When second input terminal is high level, then count value is reset;
When second input terminal be low level when, then count value is added one, and judge first input end whether be low level or Whether person's count value is greater than or equal to preset threshold;
If so, direction signal is adjusted to invalid signals.
6. according to the method described in claim 5, it is characterized in that, it is described by the current logic control unit with it is described The level of corresponding first output end of first input end is set as low level, will be with second input terminal corresponding second The level of output end is set as after low level further include:
Count value is reset.
7. method described in -6 any one according to claim 1, which is characterized in that believe in the level by target output It number is transmitted to before the input terminal of next logic control element further include:
Judge whether current logic control unit is ultimate node unit;
If it is not, then executing the step of the input terminal that the level signal of target output is transmitted to next logic control element Suddenly;
If so, using the level signal of the target output as the comprehensive judgement result of train-line level.
8. a kind of two-way train controller, which is characterized in that suitable for the logic control element with multichannel input and output, institute Stating device includes judging unit, the first adjustment unit, second adjustment unit and output unit;
The judging unit, the whether unlocked direction of direction signal for judging current logic control unit;If so, triggering The first adjustment unit;If it is not, then triggering the second adjustment unit;
The first adjustment unit, for the level signal according to two input terminals of the current logic control unit, adjustment The signal form of the direction signal;
The second adjustment unit, for according in direction type and current logic control unit belonging to the direction signal Signal is controlled, the level of output end corresponding with the input terminal is adjusted;
The output unit, for the level signal of target output to be transmitted to the input terminal of next logic control element.
9. a kind of two-way train controller characterized by comprising
Memory, for storing computer program;
Processor, for executing the computer program to realize the two-way Train Control as described in claim 1 to 7 any one The step of method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes the two-way Train control method as described in any one of claim 1 to 7 when the computer program is executed by processor The step of.
CN201910122731.6A 2019-02-19 2019-02-19 Bidirectional train control method and device and computer readable storage medium Active CN109808738B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910122731.6A CN109808738B (en) 2019-02-19 2019-02-19 Bidirectional train control method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910122731.6A CN109808738B (en) 2019-02-19 2019-02-19 Bidirectional train control method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109808738A true CN109808738A (en) 2019-05-28
CN109808738B CN109808738B (en) 2021-06-04

Family

ID=66606800

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910122731.6A Active CN109808738B (en) 2019-02-19 2019-02-19 Bidirectional train control method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109808738B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112590872A (en) * 2020-12-29 2021-04-02 卡斯柯信号有限公司 Train running direction control system and method for bidirectional line section

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1021835A (en) * 1961-11-24 1966-03-09 Oerlikon Maschf Safety apparatus for use in controlling a railway vehicle
CN203775176U (en) * 2014-01-03 2014-08-13 北京润锋思创科技有限公司 Electric valve control circuit
CN104683174A (en) * 2013-12-02 2015-06-03 北车大连电力牵引研发中心有限公司 WTB (Wire Train bus) analysis device and method
CN205726572U (en) * 2016-06-20 2016-11-23 西京学院 A kind of railway car Lighting Control Assembly
CN106782334A (en) * 2016-12-19 2017-05-31 上海天马微电子有限公司 Scanning unit and gate drive circuit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1021835A (en) * 1961-11-24 1966-03-09 Oerlikon Maschf Safety apparatus for use in controlling a railway vehicle
CN104683174A (en) * 2013-12-02 2015-06-03 北车大连电力牵引研发中心有限公司 WTB (Wire Train bus) analysis device and method
CN203775176U (en) * 2014-01-03 2014-08-13 北京润锋思创科技有限公司 Electric valve control circuit
CN205726572U (en) * 2016-06-20 2016-11-23 西京学院 A kind of railway car Lighting Control Assembly
CN106782334A (en) * 2016-12-19 2017-05-31 上海天马微电子有限公司 Scanning unit and gate drive circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112590872A (en) * 2020-12-29 2021-04-02 卡斯柯信号有限公司 Train running direction control system and method for bidirectional line section
CN112590872B (en) * 2020-12-29 2022-07-26 卡斯柯信号有限公司 Train running direction control system and method for bidirectional line section

Also Published As

Publication number Publication date
CN109808738B (en) 2021-06-04

Similar Documents

Publication Publication Date Title
EP0870648B1 (en) Data bus system for motor vehicles
CN100590051C (en) Safety system for an elevator structure and method for performing continuous checking to the same
CN106249632B (en) A kind of preferred module for nuclear power plant's I&C system
CN111787128B (en) Automatic addressing method, system and main control module thereof
CN104423374B (en) Controller for automobile and the automobile with it, monitoring method
CN108973966B (en) Method for operating a parking brake and control unit for operating a parking brake
CN108345254A (en) Triple redundance control method and system
DE102009041434A1 (en) Method and device for waking participants of a bus system and corresponding participants
CN211075914U (en) Emergency unlocking control self-holding circuit of unmanned vehicle
CN110007663A (en) The output switch parameter dynamic diagnostics system and method for nuclear safe level DCS
CN105629797A (en) Output control method and system for N output channels
CN109808738A (en) A kind of two-way Train control method, device and computer readable storage medium
EP0470056A2 (en) A system for transmitting signals, particularly in motor vehicles, and a method for its operation
CN104583017B (en) Vehicular communication system and vehicle-mounted communication method
CN102318269B (en) Method for communication between two automotive electronic computers and associated device
EP3207664B1 (en) Use of a bus line to transmit alternative signal coding
EP2297619A1 (en) Monitoring system
EP2801874A1 (en) Multi-channel control switchover logic
US6812589B1 (en) Circuit for activating a CAN (car area network) bus control unit
CN219122584U (en) Redundant autopilot control system and autopilot vehicle
CN111510352B (en) Bus system with inquiry barrier and heartbeat state report applied to large-scale parking space management
EP1459488B1 (en) Method and device for a bi-directional half-duplex transmission of data
CN102117057B (en) Bodywork-controlled one-key starting fault-tolerant system
CN114740814A (en) Finished automobile control method based on cloud control system, cloud control system and electric framework
CN219041798U (en) Automatic drive-by-wire gateway system and gateway equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant