CN113703428A - Train functional fault diagnosis method and device based on logic ladder diagram - Google Patents

Train functional fault diagnosis method and device based on logic ladder diagram Download PDF

Info

Publication number
CN113703428A
CN113703428A CN202111025207.0A CN202111025207A CN113703428A CN 113703428 A CN113703428 A CN 113703428A CN 202111025207 A CN202111025207 A CN 202111025207A CN 113703428 A CN113703428 A CN 113703428A
Authority
CN
China
Prior art keywords
logic
train
item
logical
fault
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
CN202111025207.0A
Other languages
Chinese (zh)
Other versions
CN113703428B (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.)
Chengdu Yunda Technology Co Ltd
Original Assignee
Chengdu Yunda Technology 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 Chengdu Yunda Technology Co Ltd filed Critical Chengdu Yunda Technology Co Ltd
Priority to CN202111025207.0A priority Critical patent/CN113703428B/en
Publication of CN113703428A publication Critical patent/CN113703428A/en
Application granted granted Critical
Publication of CN113703428B publication Critical patent/CN113703428B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Abstract

The invention discloses a train functional fault diagnosis method and device based on a logic ladder diagram, which comprises the following steps: setting a logical relation for the functions of the train through a graphical interface, and storing; the logical relation consists of logical item points and relation lines, and each relation line is provided with an output node, namely the rightmost node; generating a corresponding XML file according to the set logical relationship, and drawing a corresponding logic ladder diagram according to the XML file; finding a corresponding logic relation of an output signal issued by the train through the coding of the logic item points, and rendering the values of the logic item points to the nodes corresponding to the logic ladder diagram; and comparing an output signal issued by the train with a theoretical value according to the influence of the output logic item on the function of the train, and judging whether the output logic item has a fault. When a certain train function breaks down, the operation and maintenance personnel can directly judge which semaphore causes the fault, the type and the position of the fault are quickly positioned, and the difficulty of troubleshooting of the operation and maintenance personnel is reduced.

Description

Train functional fault diagnosis method and device based on logic ladder diagram
Technical Field
The invention relates to the technical field of rail transit, in particular to a train functional fault diagnosis method and device based on a logic ladder diagram.
Background
At present, the fault of the train is influenced by the input or output signal of the board card, but the relation cannot be visually displayed in a graphical mode; when a certain function of the train breaks down, the operation and maintenance personnel cannot quickly locate whether the function is influenced by a certain output or input channel of the board card.
Therefore, how to quickly diagnose and position whether the output or the input of a certain board card results when a certain train is abnormal is a technical problem to be solved urgently so as to reduce the difficulty of troubleshooting by operation and maintenance personnel.
Disclosure of Invention
The invention aims to provide a train function fault diagnosis method and device based on a logic ladder diagram, which solve the problem that when the train function is in fault, operation and maintenance personnel cannot directly judge whether the fault is caused by which semaphore (namely which output signal) so as to reduce the difficulty of troubleshooting of the operation and maintenance personnel. The invention is realized by the following technical scheme:
in a first aspect, the present invention provides a train functional fault diagnosis method based on a logic ladder diagram, including:
setting a logical relationship for the functions of the train through a graphical interface, and storing the set logical relationship; the logical relation consists of logical item points and relationship lines, and each relationship line is provided with an output node (namely the rightmost node);
generating a corresponding XML file according to the set logical relationship; drawing a corresponding logic ladder diagram according to the XML file;
finding a corresponding logic relation of an output signal issued by the train through the coding of the logic item points, and rendering the values of the logic item points to the nodes corresponding to the logic ladder diagram;
according to the influence of the output logic item on the function of the train, the output signal (namely the actual value) issued by the train is compared with the theoretical value, and whether the output logic item has a fault or not is judged.
The working principle is as follows: based on the problem that when the train function breaks down, the operation and maintenance personnel cannot directly judge whether the problem is caused by which semaphore (namely which output signal), the difficulty of troubleshooting of the operation and maintenance personnel is increased. The invention designs a train functional fault diagnosis method based on a logic ladder diagram, which can visually display the problem caused by which semaphore (namely which output signal) the functional fault of the current train is caused by in a graphical mode; the technical scheme of the invention firstly sets a logical relation to the functions of the train through a graphic interface and stores the set logical relation; secondly, generating a corresponding XML file according to the set logical relationship; drawing a corresponding logic ladder diagram according to the XML file; then, finding a corresponding logical relation of an output signal issued by the train through the coding of the logical item points, and rendering the values of the logical item points to the nodes corresponding to the logical ladder diagram; and finally, comparing an output signal (namely an actual value) issued by the train with a theoretical value according to the fact that the function of the train is influenced by the output logic item point, and judging whether the output logic item point has a fault or not. Therefore, when a certain train function fails, the operation and maintenance personnel can directly judge which semaphore (namely which output signal) causes the failure according to the technical scheme, and quickly locate the type and position of the failure, so that the difficulty of troubleshooting of the operation and maintenance personnel is reduced. The method is suitable for large-area popularization and application in the field of rail transit.
Further, the logical item point comprises a logical item point attribute, a logical item point type, a logical item point state and a logical operation expression;
the logical item point attribute comprises a display name, a code, a type and a value, wherein the value of the logical item point is only 0 and 1;
the logic item point types comprise an input type (I), an output type (O), an intermediate variable type (M), a relay type (JD) and a clock Type (TIMER);
the logic item states comprise red and green, wherein the red represents the train function fault, and the green represents the train function normal;
the logical operation expression comprises and 2 operations, wherein, & represents a relationship line composition, and at least one logical item point is arranged on the relationship line; the | representation is composed of a plurality of relation lines, and each relation line is provided with at least one logic item point;
there may be one or more logical item points on one of the relationship lines.
Further, the output signal (i.e. the actual value) issued by the train is compared with the theoretical value according to the fact that the function of the train is influenced by the output logic item, and whether the output logic item has a fault or not is judged; wherein, the judgment logic is as follows:
if the output signal (namely the actual value) issued by the train is inconsistent (namely different) from the theoretical value, the function of the train has a fault;
if the output signal (i.e. the actual value) issued by the train is consistent (i.e. the same) with the theoretical value, the function of the train has no fault.
Further, if the output signal (i.e. the actual value) issued by the train is inconsistent with the theoretical value, the function of the train has a fault; the method specifically comprises the following steps:
if the output signal (namely the actual value) issued by the train is inconsistent with the theoretical value, firstly marking the node with red to represent a fault node; then deducing whether the next node has a fault from right to left according to the logical relationship of the node;
if the next node has a fault, deducing whether the sub-logic item point has a fault, acquiring a logic operation expression according to the relation line, calculating the logic expression, generating a calculation result, and judging whether the value of the calculation result is consistent with the value of the rightmost item point: if not, circularly searching the next logic expression until the value of the calculation result of the logic operation is consistent with the value of the rightmost item point; if the calculated value of the logical expression is consistent with the value of the rightmost item point, circularly searching the operation logical item point in the expression, and judging whether the value of the logical item point is consistent with the value of the rightmost item point: if not, returning to continuously and circularly searching the operation logic item points in the expression; if the node is consistent with the train function, marking the node as red for display, and indicating that the train function corresponding to the node has a fault; and otherwise, displaying in green to show that the train function corresponding to the node has no fault.
Further, the function of the train consists of one or more logical relationships.
Furthermore, the drawing of the corresponding logic ladder diagram according to the XML file is a drawing of the logic ladder diagram from right to left.
In a second aspect, the present invention further provides a train functional fault diagnosis device based on a logic ladder diagram, which supports the train functional fault diagnosis method based on the logic ladder diagram, and the device includes:
the train function logic relationship setting unit is used for setting logic relationships for the functions of the train through a graphical interface and storing the set logic relationships; the logical relation consists of logical item points and relationship lines, and each relationship line is provided with an output node, namely the rightmost node;
the XML file generating unit is used for generating a corresponding XML file according to the set logical relationship;
the logic ladder diagram generating unit is used for drawing a corresponding logic ladder diagram according to the XML file;
the rendering unit is used for finding a corresponding logical relation of an output signal issued by the train through the coding of the logical item points and rendering the values of the logical item points to the nodes corresponding to the logical ladder diagram;
and the train functional fault diagnosis unit is used for comparing an output signal (namely an actual value) issued by the train with a theoretical value according to the influence of the output logic item on the function of the train, and judging whether the output logic item has a fault.
Further, the logical item point comprises a logical item point attribute, a logical item point type, a logical item point state and a logical operation expression;
the logical item point attribute comprises a display name, a code, a type and a value, wherein the value of the logical item point is only 0 and 1;
the logic item point types comprise an input type (I), an output type (O), an intermediate variable type (M), a relay type (JD) and a clock Type (TIMER);
the logic item states comprise red and green, wherein the red represents the train function fault, and the green represents the train function normal;
the logical operation expression comprises and 2 operations, wherein, & represents a relationship line composition, and at least one logical item point is arranged on the relationship line; the | representation is composed of a plurality of relation lines, and each relation line is provided with at least one logic item point;
there may be one or more logical item points on one of the relationship lines.
Further, the logic for judging the train function fault diagnosis unit is as follows:
if the output signal (namely the actual value) issued by the train is inconsistent (namely different) from the theoretical value, the function of the train has a fault;
if the output signal (i.e. the actual value) issued by the train is consistent (i.e. the same) with the theoretical value, the function of the train has no fault.
Further, if the output signal (i.e. the actual value) issued by the train is inconsistent with the theoretical value, the function of the train has a fault; the method specifically comprises the following steps:
if the output signal (namely the actual value) issued by the train is inconsistent with the theoretical value, firstly marking the node with red to represent a fault node; then deducing whether the next node has a fault from right to left according to the logical relationship of the node;
if the next node has a fault, deducing whether the sub-logic item point has a fault, acquiring a logic operation expression according to the relation line, calculating the logic expression, generating a calculation result, and judging whether the value of the calculation result is consistent with the value of the rightmost item point: if not, circularly searching the next logic expression until the value of the calculation result of the logic operation is consistent with the value of the rightmost item point; if the calculated value of the logical expression is consistent with the value of the rightmost item point, circularly searching the operation logical item point in the expression, and judging whether the value of the logical item point is consistent with the value of the rightmost item point: if not, returning to continuously and circularly searching the operation logic item points in the expression; if the node is consistent with the train function, marking the node as red for display, and indicating that the train function corresponding to the node has a fault; and otherwise, displaying in green to show that the train function corresponding to the node has no fault.
Compared with the prior art, the invention has the following advantages and beneficial effects:
the invention relates to a train functional fault diagnosis method and device based on a logic ladder diagram, which can visually display the problem caused by which semaphore (namely which output signal) the functional fault of the current train is caused in a graphical mode; firstly, setting a logical relation for the functions of a train through a graphic interface, and storing the set logical relation; secondly, generating a corresponding XML file according to the set logical relationship; drawing a corresponding logic ladder diagram according to the XML file; then, finding a corresponding logical relation of an output signal issued by the train through the coding of the logical item points, and rendering the values of the logical item points to the nodes corresponding to the logical ladder diagram; and finally, comparing an output signal (namely an actual value) issued by the train with a theoretical value according to the fact that the function of the train is influenced by the output logic item point, and judging whether the output logic item point has a fault or not. Therefore, when a certain train function fails, the operation and maintenance personnel can directly judge which semaphore (namely which output signal) causes the failure according to the technical scheme, and quickly locate the type and position of the failure, so that the difficulty of troubleshooting of the operation and maintenance personnel is reduced. The method is suitable for large-area popularization and application in the field of rail transit.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the principles of the invention. In the drawings:
fig. 1 is a flow chart of a train functional fault diagnosis method based on a logic ladder diagram.
FIG. 2 is a flow chart illustrating a configuration logic relationship according to the present invention.
FIG. 3 is a diagram of an example logic ladder diagram of the present invention.
FIG. 4 is a schematic diagram illustrating a process of generating a logic ladder diagram and loading data according to an XML file according to the present invention.
FIG. 5 is a schematic flow chart of the method for finding fault logic item points.
FIG. 6 is a flow chart of the fault derivation of the sub-logical item of the method of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to examples and accompanying drawings, and the exemplary embodiments and descriptions thereof are only used for explaining the present invention and are not meant to limit the present invention.
Example 1
As shown in fig. 1, the present invention provides a train functional fault diagnosis method based on a logic ladder diagram, which comprises:
step 1: setting a logical relationship for the functions of the train through a graphical interface, and storing the set logical relationship; the logical relation consists of logical item points and relationship lines, and each relationship line is provided with an output node (namely the rightmost node); in specific implementation, a logic item point is selected through a drawing board, then a relation line is selected, and a logic relation is set; as shown in fig. 2 and 3, defining logical relationships, setting logical item points, configuring the names, encodings, setting types of logical item points, and setting which output item points have an effect on which functions; and save the logical relationship.
Specifically, the logical item point includes a logical item point attribute, a logical item point type, a logical item point state, and a logical operation expression;
the logical item point attribute comprises a display name, a code, a type and a value, wherein the value of the logical item point is only 0 and 1;
the logic item point types comprise an input type (I), an output type (O), an intermediate variable type (M), a relay type (JD) and a clock Type (TIMER);
the logic item states comprise red and green, wherein the red represents the train function fault, and the green represents the train function normal;
the logical operation expression comprises and 2 operations, wherein, & represents a relationship line composition, and at least one logical item point is arranged on the relationship line; the | representation is composed of a plurality of relation lines, and each relation line is provided with at least one logic item point;
there may be one or more logical item points on one of the relationship lines.
The function of the train is that one or more logic relations are formed;
step 2: generating a corresponding XML file by a background according to the set logical relation;
and step 3: loading the XML file at a browser end (B end), drawing a corresponding logic ladder diagram from right to left according to the XML file, and loading the values of logic item points in the logic ladder diagram; as shown in fig. 4.
And 4, step 4: finding a corresponding logic relation of an output signal issued by the train through the coding of the logic item points, and rendering the values of the logic item points to the nodes corresponding to the logic ladder diagram;
and 5: checking whether a certain function (such as door opening) of the train has a fault, judging whether the actual values of the rightmost item points corresponding to the function are the same as theoretical values, if so, the function has no fault, and if not, the function has a fault, wherein the theoretical values are transmitted from the train; according to the influence of the function of the train by the output logic item, comparing an output signal (namely an actual value) issued by the train with a theoretical value, and judging whether the output logic item has a fault; as shown in fig. 5. Wherein, the judgment logic is as follows:
if the output signal (namely the actual value) issued by the train is inconsistent (namely different) from the theoretical value, the function of the train has a fault;
if the output signal (i.e. the actual value) issued by the train is consistent (i.e. the same) with the theoretical value, the function of the train has no fault.
Specifically, if an output signal (i.e., an actual value) issued by a train is inconsistent (i.e., different) from a theoretical value, a fault exists in the function of the train; the method comprises the following steps:
if the output signal (namely the actual value) issued by the train is inconsistent with the theoretical value, firstly marking the node with red to represent a fault node; then deducing whether the next node has a fault from right to left according to the logical relationship of the node;
derivation mode: finding the next logic operation expression through the relation line, and then judging whether a fault is caused according to the logic operation; as shown in fig. 6.
If the next node has a fault, deducing whether the sub-logic item point has a fault, acquiring a logic operation expression according to the relation line, calculating the logic expression, generating a calculation result, and judging whether the value of the calculation result is consistent with the value of the rightmost item point: if not, circularly searching the next logic expression until the value of the calculation result of the logic operation is consistent with the value of the rightmost item point; if the calculated value of the logical expression is consistent with the value of the rightmost item point, circularly searching the operation logical item point in the expression, and judging whether the value of the logical item point is consistent with the value of the rightmost item point: if not, returning to continuously and circularly searching the operation logic item points in the expression; if the node is consistent with the train function, marking the node as red for display, and indicating that the train function corresponding to the node has a fault; and otherwise, displaying in green to show that the train function corresponding to the node has no fault.
In specific implementation, if the value of the current fault output logic item point is 1: finding all logic operation expressions influencing the node through the relationship, calculating which expression value is equal to 1 according to the expressions, then searching which logic item point in the expressions is 1, and if the logic item point is 1, the logic item point is faulty, otherwise, the logic item point is not;
the working principle is as follows: based on the problem that when the train function breaks down, the operation and maintenance personnel cannot directly judge whether the problem is caused by which semaphore (namely which output signal), the difficulty of troubleshooting of the operation and maintenance personnel is increased. The invention designs a train functional fault diagnosis method based on a logic ladder diagram, which can visually display the problem caused by which semaphore (namely which output signal) the functional fault of the current train is caused by in a graphical mode; the technical scheme of the invention firstly sets a logical relation to the functions of the train through a graphic interface and stores the set logical relation; secondly, generating a corresponding XML file according to the set logical relationship; drawing a corresponding logic ladder diagram according to the XML file; then, finding a corresponding logical relation of an output signal issued by the train through the coding of the logical item points, and rendering the values of the logical item points to the nodes corresponding to the logical ladder diagram; and finally, comparing an output signal (namely an actual value) issued by the train with a theoretical value according to the fact that the function of the train is influenced by the output logic item point, and judging whether the output logic item point has a fault or not. Therefore, when a certain train function fails, the operation and maintenance personnel can directly judge which semaphore (namely which output signal) causes the failure according to the technical scheme, and quickly locate the type and position of the failure, so that the difficulty of troubleshooting of the operation and maintenance personnel is reduced. The method is suitable for large-area popularization and application in the field of rail transit.
Example 2
As shown in fig. 1 to 6, the present embodiment is different from embodiment 1 in that the present embodiment provides a train functional fault diagnosis device based on a logic ladder diagram, which supports the train functional fault diagnosis method based on the logic ladder diagram described in embodiment 1, and the device includes:
the train function logic relationship setting unit is used for setting logic relationships for the functions of the train through a graphical interface and storing the set logic relationships; the logical relation consists of logical item points and relationship lines, and each relationship line is provided with an output node (namely the rightmost node);
the XML file generating unit is used for generating a corresponding XML file according to the set logical relationship;
the logic ladder diagram generating unit is used for drawing a corresponding logic ladder diagram according to the XML file;
the rendering unit is used for finding a corresponding logical relation of an output signal issued by the train through the coding of the logical item points and rendering the values of the logical item points to the nodes corresponding to the logical ladder diagram;
and the train functional fault diagnosis unit is used for comparing an output signal (namely an actual value) issued by the train with a theoretical value according to the influence of the output logic item on the function of the train, and judging whether the output logic item has a fault.
For further explanation of the present embodiment, the logical item includes a logical item attribute, a logical item type, a logical item state, and a logical operation expression;
the logical item point attribute comprises a display name, a code, a type and a value, wherein the value of the logical item point is only 0 and 1;
the logic item point types comprise an input type (I), an output type (O), an intermediate variable type (M), a relay type (JD) and a clock Type (TIMER);
the logic item states comprise red and green, wherein the red represents the train function fault, and the green represents the train function normal;
the logical operation expression comprises and 2 operations, wherein, & represents a relationship line composition, and at least one logical item point is arranged on the relationship line; the | representation is composed of a plurality of relation lines, and each relation line is provided with at least one logic item point;
there may be one or more logical item points on one of the relationship lines.
To further explain the embodiment, the logic for determining the train function fault diagnosis unit is as follows:
if the output signal (namely the actual value) issued by the train is inconsistent (namely different) from the theoretical value, the function of the train has a fault;
if the output signal (i.e. the actual value) issued by the train is consistent (i.e. the same) with the theoretical value, the function of the train has no fault.
For further explanation of the present embodiment, if the output signal (i.e. the actual value) sent by the train is inconsistent with the theoretical value, the function of the train has a fault; the method specifically comprises the following steps:
if the output signal (namely the actual value) issued by the train is inconsistent with the theoretical value, firstly marking the node with red to represent a fault node; then deducing whether the next node has a fault from right to left according to the logical relationship of the node;
if the next node has a fault, deducing whether the sub-logic item point has a fault, acquiring a logic operation expression according to the relation line, calculating the logic expression, generating a calculation result, and judging whether the value of the calculation result is consistent with the value of the rightmost item point: if not, circularly searching the next logic expression until the value of the calculation result of the logic operation is consistent with the value of the rightmost item point; if the calculated value of the logical expression is consistent with the value of the rightmost item point, circularly searching the operation logical item point in the expression, and judging whether the value of the logical item point is consistent with the value of the rightmost item point: if not, returning to continuously and circularly searching the operation logic item points in the expression; if the node is consistent with the train function, marking the node as red for display, and indicating that the train function corresponding to the node has a fault; and otherwise, displaying in green to show that the train function corresponding to the node has no fault.
To further illustrate the present embodiment, the train function is composed of one or more logical relationships.
To further illustrate the embodiment, the drawing of the corresponding logic ladder diagram according to the XML file is a drawing of the logic ladder diagram from right to left.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A train function fault diagnosis method based on a logic ladder diagram is characterized by comprising the following steps:
setting a logical relationship for the functions of the train through a graphical interface, and storing the set logical relationship; the logical relation consists of logical item points and relationship lines, and each relationship line is provided with an output node, namely the rightmost node;
generating a corresponding XML file according to the set logical relationship, and drawing a corresponding logic ladder diagram according to the XML file;
finding a corresponding logic relation of an output signal issued by the train through the coding of the logic item points, and rendering the values of the logic item points to the nodes corresponding to the logic ladder diagram;
and comparing an output signal issued by the train with a theoretical value according to the influence of the output logic item on the function of the train, and judging whether the output logic item has a fault.
2. The train functional fault diagnosis method based on the logic ladder diagram according to claim 1, wherein the logic item comprises a logic item attribute, a logic item type, a logic item state and a logic operation expression;
the logical item point attribute comprises a display name, a code, a type and a value, wherein the value of the logical item point comprises 0 and 1;
the logic item point types comprise an input type, an output type, an intermediate variable type, a relay type and a clock type;
the logic item states comprise red and green, wherein the red represents the train function fault, and the green represents the train function normal;
the logical operation expression comprises and 2 operations, wherein, & represents a relationship line composition, and at least one logical item point is arranged on the relationship line; the | representation is composed of a plurality of relation lines, and each relation line is provided with at least one logic item point;
one of the relationship lines has one or more logical item points.
3. The method for diagnosing the functional fault of the train based on the logic ladder diagram according to the claim 2, wherein the output signal issued by the train is compared with a theoretical value according to the influence of the output logic item on the function of the train, so as to judge whether the output logic item has a fault; wherein, the judgment logic is as follows:
if the output signal issued by the train is inconsistent with the theoretical value, the function of the train has a fault;
and if the output signal sent by the train is consistent with the theoretical value, the function of the train has no fault.
4. The method for diagnosing the functional fault of the train based on the logic ladder diagram according to claim 3, wherein if the output signal sent by the train is inconsistent with the theoretical value, the function of the train has a fault; the method specifically comprises the following steps:
if the output signal sent by the train is inconsistent with the theoretical value, firstly marking the node with red to represent a fault node; then deducing whether the next node has a fault from right to left according to the logical relationship of the node;
if the next node has a fault, deducing whether the sub-logic item point has a fault, acquiring a logic operation expression according to the relation line, calculating the logic expression, generating a calculation result, and judging whether the value of the calculation result is consistent with the value of the rightmost item point: if not, circularly searching the next logic expression until the value of the calculation result of the logic operation is consistent with the value of the rightmost item point; if the calculated value of the logical expression is consistent with the value of the rightmost item point, circularly searching the operation logical item point in the expression, and judging whether the value of the logical item point is consistent with the value of the rightmost item point: if not, returning to continuously and circularly searching the operation logic item points in the expression; if the node is consistent with the train function, marking the node as red for display, and indicating that the train function corresponding to the node has a fault; and otherwise, displaying in green to show that the train function corresponding to the node has no fault.
5. The method according to claim 1, wherein the train function is composed of one or more logic relationships.
6. The method for diagnosing functional faults of a train based on a logic ladder diagram according to claim 1, wherein the logic ladder diagram is drawn from right to left by drawing the corresponding logic ladder diagram according to the XML file.
7. A train function fault diagnosis apparatus based on a logic ladder diagram, the apparatus supporting a train function fault diagnosis method based on a logic ladder diagram according to any one of claims 1 to 6, the apparatus comprising:
the train function logic relationship setting unit is used for setting logic relationships for the functions of the train through a graphical interface and storing the set logic relationships; the logical relation consists of logical item points and relationship lines, and each relationship line is provided with an output node, namely the rightmost node;
the XML file generating unit is used for generating a corresponding XML file according to the set logical relationship;
the logic ladder diagram generating unit is used for loading the XML file and drawing a corresponding logic ladder diagram according to the XML file;
the rendering unit is used for finding a corresponding logical relation of an output signal issued by the train through the coding of the logical item points and rendering the values of the logical item points to the nodes corresponding to the logical ladder diagram;
and the train functional fault diagnosis unit is used for comparing an output signal issued by the train with a theoretical value according to the influence of the output logic item on the function of the train and judging whether the output logic item has a fault.
8. The logic ladder diagram-based train functional fault diagnosis device according to claim 7, wherein the logic item comprises a logic item attribute, a logic item type, a logic item state and a logic operation expression;
the logical item point attribute comprises a display name, a code, a type and a value, wherein the value of the logical item point comprises 0 and 1;
the logic item point types comprise an input type, an output type, an intermediate variable type, a relay type and a clock type;
the logic item states comprise red and green, wherein the red represents the train function fault, and the green represents the train function normal;
the logical operation expression comprises and 2 operations, wherein, & represents a relationship line composition, and at least one logical item point is arranged on the relationship line; the | representation is composed of a plurality of relation lines, and each relation line is provided with at least one logic item point;
one of the relationship lines has one or more logical item points.
9. The train functional failure diagnosis device based on the logic ladder diagram according to claim 8, wherein the logic of the train functional failure diagnosis unit is:
if the output signal issued by the train is inconsistent with the theoretical value, the function of the train has a fault;
and if the output signal sent by the train is consistent with the theoretical value, the function of the train has no fault.
10. The logic ladder diagram-based train function fault diagnosis device according to claim 9, wherein if the output signal issued by the train is not consistent with the theoretical value, the function of the train has a fault; the method specifically comprises the following steps:
if the output signal sent by the train is inconsistent with the theoretical value, firstly marking the node with red to represent a fault node; then deducing whether the next node has a fault from right to left according to the logical relationship of the node;
if the next node has a fault, deducing whether the sub-logic item point has a fault, acquiring a logic operation expression according to the relation line, calculating the logic expression, generating a calculation result, and judging whether the value of the calculation result is consistent with the value of the rightmost item point: if not, circularly searching the next logic expression until the value of the calculation result of the logic operation is consistent with the value of the rightmost item point; if the calculated value of the logical expression is consistent with the value of the rightmost item point, circularly searching the operation logical item point in the expression, and judging whether the value of the logical item point is consistent with the value of the rightmost item point: if not, returning to continuously and circularly searching the operation logic item points in the expression; if the node is consistent with the train function, marking the node as red for display, and indicating that the train function corresponding to the node has a fault; and otherwise, displaying in green to show that the train function corresponding to the node has no fault.
CN202111025207.0A 2021-09-02 2021-09-02 Train functional fault diagnosis method and device based on logic ladder diagram Active CN113703428B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111025207.0A CN113703428B (en) 2021-09-02 2021-09-02 Train functional fault diagnosis method and device based on logic ladder diagram

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111025207.0A CN113703428B (en) 2021-09-02 2021-09-02 Train functional fault diagnosis method and device based on logic ladder diagram

Publications (2)

Publication Number Publication Date
CN113703428A true CN113703428A (en) 2021-11-26
CN113703428B CN113703428B (en) 2022-12-27

Family

ID=78657300

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111025207.0A Active CN113703428B (en) 2021-09-02 2021-09-02 Train functional fault diagnosis method and device based on logic ladder diagram

Country Status (1)

Country Link
CN (1) CN113703428B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7325229B2 (en) * 2001-04-17 2008-01-29 Schneider Automation Method for graphically visualizing an automatism application and computer terminal for carrying out said method
CN104820393A (en) * 2015-03-17 2015-08-05 浪潮集团有限公司 Ladder diagram matrix compiling and interpreting method based on PLC
CN106802624A (en) * 2017-03-31 2017-06-06 山东超越数控电子有限公司 It is a kind of ladder diagram is converted into by arborescence based on PLC to enter the method that edlin shows
US9735782B1 (en) * 2016-03-29 2017-08-15 Wipro Limited Systems and methods for configuring a field programmable device
CN108681444A (en) * 2018-04-12 2018-10-19 华中科技大学 A kind of Soft- PLC configuration development approach based on XML technology
CN109143952A (en) * 2018-06-13 2019-01-04 华东师范大学 Programmable logic controller (PLC) programming language converting system
CN110376959A (en) * 2019-07-25 2019-10-25 大连理工大学 A kind of Soft- PLC configuration software generation system based on FPGA platform
CN111782199A (en) * 2019-12-27 2020-10-16 江苏恩达通用设备有限公司 Development method of PLC graphical editor based on XML technology

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7325229B2 (en) * 2001-04-17 2008-01-29 Schneider Automation Method for graphically visualizing an automatism application and computer terminal for carrying out said method
CN104820393A (en) * 2015-03-17 2015-08-05 浪潮集团有限公司 Ladder diagram matrix compiling and interpreting method based on PLC
US9735782B1 (en) * 2016-03-29 2017-08-15 Wipro Limited Systems and methods for configuring a field programmable device
CN106802624A (en) * 2017-03-31 2017-06-06 山东超越数控电子有限公司 It is a kind of ladder diagram is converted into by arborescence based on PLC to enter the method that edlin shows
CN108681444A (en) * 2018-04-12 2018-10-19 华中科技大学 A kind of Soft- PLC configuration development approach based on XML technology
CN109143952A (en) * 2018-06-13 2019-01-04 华东师范大学 Programmable logic controller (PLC) programming language converting system
CN110376959A (en) * 2019-07-25 2019-10-25 大连理工大学 A kind of Soft- PLC configuration software generation system based on FPGA platform
CN111782199A (en) * 2019-12-27 2020-10-16 江苏恩达通用设备有限公司 Development method of PLC graphical editor based on XML technology

Also Published As

Publication number Publication date
CN113703428B (en) 2022-12-27

Similar Documents

Publication Publication Date Title
EP2353089B1 (en) Method for representation of safety-relevant information on a display and apparatus for the application of the method
CN109815124B (en) MBSE-based interlocking function defect analysis method and device and interlocking system
CN113721584B (en) Visual vehicle diagnosis method and device, equipment and storage medium
CN113703428B (en) Train functional fault diagnosis method and device based on logic ladder diagram
JPS626247B2 (en)
CN109980789B (en) State detection method, device, equipment and medium of direct current control protection system
JP2000358029A (en) Automatic fault diagnostic network system, and automatic fault diagnostic method for network
CN111599174B (en) Traffic index abnormity detection method and electronic equipment
CN110399258B (en) Stability testing method, system and device for server system
CN109361192B (en) Terminal equipment, and constant value modification method and device
JPH0577143A (en) Failure diagnosis device for automated line
JPS6188311A (en) Supervising method of plant
JPS61206099A (en) Alarm information processing for display unit
CN107291588B (en) Method and device for generating XM L log
CN107145422A (en) A kind of software fault alert detecting method
JP2861861B2 (en) Failure diagnosis system
CN116700226A (en) Time parameter testing method, device, equipment and medium for diagnosing fault code
Godbole et al. Tools for the design of fault management systems [automated highway systems]
CN115167354A (en) Fault online diagnosis method and device
JPS6151578A (en) Fault diagnostic system of electronic circuit device
CN113741410A (en) Distributed control system debugging data refreshing method and system
JPS6213697B2 (en)
CN113655769A (en) Motor controller test method and test system
CN116466187A (en) Cable fault prediction visualization system and method
JPH0887426A (en) Self-diagnosis state display system

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