Method for automatically drawing railway signal cabinet wiring diagram

文档序号:9424 发布日期:2021-09-17 浏览:44次 中文

1. The method for automatically drawing the wiring diagram of the railway signal cabinet is characterized by comprising the following steps of:

the method comprises the following steps:

step 1: decomposing the annunciator according to the attribute;

step 2: generating external core wire data according to the color lamp information;

and step 3: selecting the number of the indicators, and if the number of the indicators is more than 0, generating indicator core wire connection data according to the number of the indicators;

and 4, step 4: determining reserved wiring information and generating connection data of reserved wiring;

and 5: determining the number and the model of the boxes according to the attribute of the annunciator, the number of the color lamps and the number of the indicators;

step 6: generating a filament disk terminal, a lighting unit terminal, a box terminal and a connection relation one by one according to the lighting unit sequence of the color lamp and the indicator; generating a box terminal and a relation between the box terminal and the box terminal according to the reserved wiring information;

and 7: setting drawing parameters of mechanism width, lamp filament disc bulb radius, box width, lighting unit size, lighting unit interval, terminal radius and character size, and drawing the final signal box terminal wiring diagram according to the information obtained in the steps 1 to 6.

2. The method for automatically drawing a railway signal cabinet wiring diagram according to claim 1, wherein:

the specific process of the step 1 is as follows:

step 1.1, determining the type of a high and low column of the signal machine;

and step 1.2, determining the mechanism serial number, the lamp position serial number and the lamp position color according to the type of the annunciator, counting the number of lighting units of all colored lamps after removing the sealed lamps, and sequencing according to the mechanism and the lamp position serial number.

3. The method for automatically drawing a railway signal cabinet wiring diagram according to claim 2, wherein:

the specific process of the step 2 is as follows:

step 2.1, defining two arrays which are respectively used for recording a lamp lighting line list and a return line terminal list;

step 2.2, according to the color lamp list, sequentially adding corresponding color lamp identifiers to the lighting line list, and sequentially adding identifiers of independent return lines to the return line terminal list;

and 2.3, calculating loop lines according to the colors of the color lamps in sequence.

4. The method for automatically drawing a railway signal cabinet wiring diagram according to claim 3, wherein:

the specific process of step 3 is as follows:

step 3.1, adding corresponding number of indicators in turn to the lighting line list, and if only one indicator exists, adding indicator symbols; when more than one indicator is provided, adding an identifier in front of the indicator symbol, sequentially adding the point lamp wire list, and sequentially adding the identifiers of the independent return wires into the return wire terminal list;

and 3.2, adding a return line identifier of the indicator into the lighting line list, splicing the positions of the indicators in the step 3.1 into a character string, separating by using a separation symbol, and adding the character string into the recording return line terminal list.

5. The method for automatically drawing a railway signal cabinet wiring diagram according to claim 4, wherein:

in step 4, the reserved wiring information is determined, namely whether the reserved wiring information comprises a lamp wire line, a voice line, a telephone line and a power line is determined.

Background

The railway signal is a general name of manual control, automatic control and remote control technology which can guarantee the driving safety and improve the passing capability and the decoding capability of the section and the station. The signal machine is one of three main devices outside a railway signal room as a rail-side basic device, and has important significance in ensuring the safe operation of trains and improving the transportation efficiency.

With the continuous development of computer technology, the informatization means based on railway signal engineering design is gradually increased, but the signal box wiring still has the following problems:

1. although the wiring diagram of the railway signal box at the present stage is electronized, designers can look up the wiring diagram in an electronic diagram mode, the electronic diagram is integrated mainly in a mode of depending on exhaustion of different signal types, the number is huge, the designers cannot quickly search for the wiring diagram of the signal box, and the diagram is difficult to exhaust completely.

2. The wiring board of the existing signal box is drawn by hand, and the drawn picture element is not endowed with digital information, so that a computer is difficult to capture useful data and cannot meet the requirement of data information bearing.

3. The informatization requirement of the current railway signal aided design software cannot be met.

Disclosure of Invention

The invention aims to provide a method for automatically drawing a wiring diagram of a railway signal box, which is used for solving the problems that the wiring of the signal box cannot be quickly acquired, primitive data can not be captured and the like at the present stage, realizing the automatic drawing of the wiring diagram of the signal box and providing a new idea for the development of railway signal auxiliary design software.

The technical scheme adopted by the invention is as follows:

the method for automatically drawing the wiring diagram of the railway signal cabinet is characterized by comprising the following steps of:

the method comprises the following steps:

step 1: decomposing the annunciator according to the attribute;

step 2: generating external core wire data according to the color lamp information;

and step 3: selecting the number of the indicators, and if the number of the indicators is more than 0, generating indicator core wire connection data according to the number of the indicators;

and 4, step 4: determining reserved wiring information and generating connection data of reserved wiring;

and 5: determining the number and the model of the boxes according to the attribute of the annunciator, the number of the color lamps and the number of the indicators;

step 6: generating a filament disk terminal, a lighting unit terminal, a box terminal and a connection relation one by one according to the lighting unit sequence of the color lamp and the indicator; generating a box terminal and a relation between the box terminal and the box terminal according to the reserved wiring information;

and 7: setting drawing parameters of mechanism width, lamp filament disc bulb radius, box width, lighting unit size, lighting unit interval, terminal radius and character size, and drawing the final signal box terminal wiring diagram according to the information obtained in the steps 1 to 6.

The specific process of the step 1 is as follows:

step 1.1, determining the type of a high and low column of the signal machine;

and step 1.2, determining the mechanism serial number, the lamp position serial number and the lamp position color according to the type of the annunciator, counting the number of lighting units of all colored lamps after removing the sealed lamps, and sequencing according to the mechanism and the lamp position serial number.

The specific process of the step 2 is as follows:

step 2.1, defining two arrays which are respectively used for recording a lamp lighting line list and a return line terminal list;

step 2.2, according to the color lamp list, sequentially adding corresponding color lamp identifiers to the lighting line list, and sequentially adding identifiers of independent return lines to the return line terminal list;

and 2.3, calculating loop lines according to the colors of the color lamps in sequence.

The specific process of step 3 is as follows:

step 3.1, adding corresponding number of indicators in turn to the lighting line list, and if only one indicator exists, adding indicator symbols; when more than one indicator is provided, adding an identifier in front of the indicator symbol, sequentially adding the point lamp wire list, and sequentially adding the identifiers of the independent return wires into the return wire terminal list;

and 3.2, adding a return line identifier of the indicator into the lighting line list, splicing the positions of the indicators in the step 3.1 into a character string, separating by using a separation symbol, and adding the character string into the recording return line terminal list.

In step 4, the reserved wiring information is determined, namely whether the reserved wiring information comprises a lamp wire line, a voice line, a telephone line and a power line is determined.

The invention has the following advantages:

1. the existing railway signal machine box wiring diagram is further informationized on the basis of electronization, so that a designer can generate the box wiring diagram of the specified signal machine by inputting related parameters, and the design efficiency is improved;

2. the digitization of the wiring diagram of the railway signal box is realized, so that data information can be borne in the graphics primitives, the defect of the connection relation between the railway signal machine and the box at the present stage is made up, and a data foundation is laid for signal auxiliary design.

3. And a technical means is provided for the informatization of the aided design of the railway signals.

Drawings

FIG. 1 is a schematic flow chart for automatically drawing a wiring diagram of a railway signal cabinet.

FIG. 2 is a diagram showing a wiring diagram of a high-mast single-mechanism three-lamp-position departure entry signal box.

Fig. 3 is a wiring diagram of a low profile single-mechanism two-lamp-site outlet-signal-box.

Detailed Description

The present invention will be described in detail with reference to specific embodiments.

The invention relates to a method for automatically drawing a wiring diagram of a railway signal cabinet box, which specifically comprises the following steps:

step 1, decomposing a signal machine according to attributes such as height and short type, mechanism and light configuration and the like according to railway signal design specifications (TB 10007-2017).

The specific process of the step 1 is as follows:

step 1.1, determining the type of a high and low column of the signal machine;

and step 1.2, determining the mechanism serial number, the lamp position serial number and the lamp position color according to the type of the annunciator, counting the number of lighting units of all colored lamps after removing the sealed lamps, and sequencing according to the mechanism and the lamp position serial number.

And 2, generating external core wire data according to the color lamp information.

The specific process of the step 2 is as follows:

step 2.1, defining two arrays of LightCopyList and ListIndex which are respectively used for recording a point lamp line list and a return line terminal list;

step 2.2, according to the color lamp list, sequentially adding corresponding color lamp identifiers to the lighting line list lightcopy list, and following the following rules: blue light- > A, green light- > L, red light- > H, yellow light- > U, moon light- > B, guide white light- > YB, shunting white light- > DB, and mark's' is added in sequence to the return wire terminal list ListIndex to represent an independent return wire;

step 2.3, calculating the return line according to the color of the color lamp in sequence, wherein the specific process is as follows:

(1) in the case of three white lamps B (for example, an inbound reply signal), C, B, A, ZH is sequentially added to the lighting line list lightcopy list, and 0,1,2 is added to the number of the recording loop.

(2) If the color light is a green light L, it is first determined whether the color light list includes a yellow light U, if so, it is determined whether the lighting line list lightcopy list includes "LUH", and if not, it is added with "LUH"; if the yellow light U is not contained in the color light list, it is determined whether the LightCopyList already contains "LH", and if not, the "LH" is added thereto.

Next, in the color lamp list, all the green lamps L and yellow lamps U are found out, and their positions are spliced into a character string, so as to be "separated", and added to the ListIndex array recording the return line terminal. Before adding, whether the loop exists is judged, and if the loop exists, the loop is not added repeatedly.

(3) If the color lamp is a yellow lamp U, first determining whether the color lamp list includes a green lamp L, if so, determining whether the lighting line list lightcopy list includes "LUH", and if not, adding "LUH"; if the yellow lamp U is not contained in the color lamp list, it is determined whether the "UH" is already contained in the LightCopyList, and if not, the "UH" is added thereto.

Next, in the color lamp list, all the green lamps L and yellow lamps U are found out, and their positions are spliced into a character string, so as to be "separated", and added to the ListIndex array recording the return line terminal. Before adding, whether the loop exists is judged, and if the loop exists, the loop is not added repeatedly.

(4) If the color lamp is the red lamp H, firstly, whether a moon white lamp B or a shunting white lamp DB is contained in the color lamp list is judged, if yes, whether the 'HBH' is contained in the lighting line list LightCopyList is judged, and if not, the 'HBH' is added into the lighting line list LightCopyList; if the color lamp list does not include the moon white lamp B and the shunting white lamp DB, it is determined whether "HH" has been included in the LightCopyList, and if not, the "HH" is added thereto.

Secondly, in the color lamp list, all the red lamps H, the moon lamps B and the shunting white lamps DB are found out, and the positions thereof are spliced into a character string so as to be separated from each other and added to the ListIndex array recording the return line terminal. Before adding, whether the loop exists is judged, and if the loop exists, the loop is not added repeatedly.

(5) If the color lamp is the blue lamp A, firstly, whether the color lamp list contains the moon white lamp B or the shunting white lamp DB is judged, if yes, whether the lighting line list LightCopyList contains the BAH is judged, and if not, the BAH is added; if the color lamp list does not include the moon white lamp B and the shunting white lamp DB, whether the LightCopyList already includes the 'AH' is judged, and if not, the 'AH' is added.

Secondly, in the color lamp list, all the blue lamps a, the moon lamp B and the shunting white lamp DB are found out, and the positions thereof are spliced into a character string, so as to be separated from each other and added into the ListIndex array for recording the return line terminal. Before adding, whether the loop exists is judged, and if the loop exists, the loop is not added repeatedly.

(6) If the color lamp is a moon white lamp B or a shunting white lamp DB, firstly judging whether the color lamp list contains a red lamp H, if so, judging whether the lighting line list LightCopyList contains 'HBH', and if not, adding 'HBH'; judging whether a blue lamp A exists in the color lamp list, if so, judging whether the 'BAH' is contained in the LightCopyList, and if not, adding the 'BAH' into the LightCopyList; if the color lamp list does not contain the red lamp H and the blue lamp A, whether the LightCopyList contains the 'BH' is judged, and if the LightCopyList does not contain the 'BH', the 'BH' is added into the LightCopyList.

Secondly, in the color lamp list, all the red lamp B, the blue lamp A, the moon lamp B and the shunting white lamp DB are found out, and the positions of the red lamp B, the blue lamp A, the moon lamp B and the shunting white lamp DB are spliced into a character string so as to be separated from each other and added into a ListIndex array for recording return line terminals. Before adding, whether the loop exists is judged, and if the loop exists, the loop is not added repeatedly.

(7) If the color lamp is the guide white lamp YB, firstly, it is determined whether the light line list lightcopy list contains the 'YBH', if not, the 'YBH' is added to the light line list lightcopy list, and the color lamp position character is added to the ListIndex array of the recording return terminal.

Next, if there are lighting symbols of the same color in the lighting line list lightcopy list, the lighting symbols are sorted by position, and serial numbers, such as "1L, 2L", are added before the color lighting symbols.

And 3, selecting the number of the indicators according to needs. If the number of indicators is greater than 0, indicator core wire connection data is generated based on the number of indicators.

The specific process of the step 3 is as follows:

step 3.1, adding corresponding quantity of indicators 'BQ' into the lighting line list LightCopyList in sequence, and if only one indicator is available, adding 'BQ'; when more than one indicator is provided, letters such as 'ABQ, BBQ and CBQ' are added in front of the indicator symbols according to the sequence of capital letters, then LightCopyList is added in sequence, and an identifier's' is added in sequence to the ListIndex array to represent an independent loop;

and 3.2, adding a presenter loop 'JBH' into the lighting line list LightCopyList, splicing the positions of the presenters in the step 3.1 into a character string, and adding the character string into a ListIndex array of a recording loop terminal at intervals.

And step 4, determining the reserved wiring information, namely whether the reserved wiring information comprises a lamp wire line, a voice line, a telephone line and a power line, so as to generate connection data of the reserved wiring, namely sequentially adding the identifiers of the corresponding reserved wiring to the lightcopy list in the lighting line list, and sequentially adding the identifier's' to the ListIndex array to represent the independent return wires respectively.

And 5, determining the number and the model of the boxes according to the type of the high and low columns of the annunciator, the number of the color lamps (not including the lamps) and the number of the indicators.

Step 6, generating a lamp panel terminal, a lighting unit terminal (1 (main), 2 (auxiliary), 3 (common), 4(JZ), 5(JF)), a box terminal and a connection relation one by one according to the lighting unit sequence of the color lamp and the indicator; and generating the box terminal and the relation of the box terminal and the box terminal according to the reserved wiring information.

And 7, setting drawing parameters such as mechanism width, lamp filament disc bulb radius, box width, lighting unit size, lighting unit interval, terminal radius, character size and the like, and drawing the final signal box terminal connecting line graph according to the information obtained in the steps.

The first embodiment is as follows:

step 1, selecting a high-column single-mechanism three-lamp-position departure route signal machine as an embodiment one. And decomposing the signal machine according to attributes such as height and short type, mechanism and light configuration and the like according to the railway signal design specification (TB 10007-2017).

The specific process of the step 1 is as follows:

step 1.1, the annunciator is a high-column annunciator;

step 1.2, the signal machine comprises a mechanism, three lamp positions and no sealing lamp. The number of lighting units of the color lamp is 3, and the colors of the lamp positions are arranged into red light (H), yellow light (U) and moon light (B) according to the mechanism and the lamp position sequence.

And 2, generating external core wire data according to the color lamp information.

The specific process of the step 2 is as follows:

step 2.1, defining two arrays of LightCopyList and ListIndex which are respectively used for recording a point lamp line list and a return line terminal list;

step 2.2, according to the color lamp list, sequentially adding corresponding color lamp identifiers to the lighting line list lightcopy list, and following the following rules: red is represented by "H", yellow is represented by "U", and moon is represented by "B", and the mark "s" is added to the wire terminal list ListIndex in order to represent an independent wire;

step 2.3, calculating the return line according to the color of the color lamp in sequence, wherein the specific process is as follows:

(1) the first color light is red light H, then "H" is added to LightCopyList and "1" is added to the ListIndex array. It is judged that the moon white lamp B exists in the color lamp list and "HBH" is not included in the LightCopyList, then "HBH" is added thereto. Next, the positions of the red light H and the moon light B are spliced into a character string "1, 3" and added to the ListIndex array.

(2) The second color lamp is yellow lamp U, then "U" is added to LightCopyList and "2" is added to the ListIndex array. It is judged that the green lamp L is not included in the color lamp list and the "UH" is not included in the LightCopyList, the "UH" is added thereto.

(3) The third color lamp is moon lamp B, then add "B" to LightCopyList and "3" to the ListIndex array. It is judged that the color lamp list contains red lamp H, but the LightCopyList already contains "HBH", and the addition is not repeated. Secondly, the position character strings '1, 3' of the red light H and the moon light B are added into a ListIndex array for recording return terminals and are not repeatedly added;

and 3, not including a displayer, and skipping the step.

And 4, reserving the lamp filament wire, adding a filament wire identifier 'DS' into the lighting wire list LightCopyList, and adding an identifier's' into the ListIndex array to represent an independent loop.

And 5, determining the number of the boxes to be one and the type XB1 (transformer box) according to the type of the signal machine, the number of the color lamps (not including the light-sealing) and the number of the indicators.

Step 6, generating a lamp panel terminal, a lighting unit terminal (1 (main), 2 (auxiliary), 3 (common), 4(JZ), 5(JF)), a box terminal and a connection relation one by one according to the lighting unit sequence of the color lamp and the indicator; and generating the box terminal and the relation of the box terminal and the box terminal according to the reserved wiring information.

And 7, setting drawing parameters such as mechanism width, filament disc bulb radius, box width, lighting unit size, lighting unit interval, terminal radius, character size and the like, and drawing the final signal box terminal wiring diagram according to the information obtained in the steps.

Example two:

step 1, selecting a short single-mechanism two-lamp-position outbound signal machine as an embodiment two. And decomposing the signal machine according to attributes such as height and short type, mechanism and light configuration and the like according to the railway signal design specification (TB 10007-2017).

The specific process of the step 1 is as follows:

step 1.1, the signal machine is a short signal machine;

step 1.2, the signal machine comprises a mechanism, two lamp positions and no sealing lamp. The number of lighting units of the color lamp is 2, and the colors of the lamp positions are arranged into green lamp light (L) and red lamp light (H) according to the mechanism and the lamp position sequence.

And 2, generating external core wire data according to the color lamp information.

The specific process of the step 2 is as follows:

step 2.1, defining two arrays of LightCopyList and ListIndex which are respectively used for recording a point lamp line list and a return line terminal list;

step 2.2, according to the color lamp list, sequentially adding corresponding color lamp identifiers to the lighting line list lightcopy list, and following the following rules: green is represented by "L" and red is represented by "H", and a mark "s" is sequentially added to the wire terminal list ListIndex to represent an independent wire;

step 2.3, calculating the return line according to the color of the color lamp in sequence, wherein the specific process is as follows:

(1) the first color light is green light L, then "L" is added to LightCopyList and "1" is added to the ListIndex array. If the color lamp list does not contain the yellow lamp U and the LightCopyList does not contain the LH, the LH is added;

(2) the second color light is red light H, then "H" is added to LightCopyList and "2" is added to the ListIndex array. It is judged that the color lamp list does not include the moon white lamp B and the shunting white lamp DB, and the LightCopyList does not include "HH", and "HH" is added thereto.

And 3, providing a displayer and generating the core wire connection data of the displayer.

The specific process of the step 3 is as follows:

step 3.1, adding a presenter identifier 'BQ' into the LightCopyList, and adding an identifier's' into the ListIndex array to represent an independent loop;

step 3.2 adds presenter loop "JBH" to LightCopyList and presenter position "3" to the ListIndex array recording the loop terminals.

And 4, reserving the lamp filament wire and the voice wire, adding a lamp filament wire identifier 'DS' and a voice wire identifier 'YY' into the lighting wire list LightCopyList, and adding an identifier's' into the ListIndex array to represent an independent loop.

And 5, determining the number of the boxes to be one and the type XB1 (transformer box) according to the type of the signal machine, the number of the color lamps (not including the lamp sealing) and the number of the indicators.

Step 6, generating a lamp panel terminal, a lighting unit terminal (1 (main), 2 (auxiliary), 3 (common), 4(JZ), 5(JF)), a box terminal and a connection relation one by one according to the lighting unit sequence of the color lamp and the indicator; and generating the box terminal and the relation of the box terminal and the box terminal according to the reserved wiring information.

And 7, setting drawing parameters such as mechanism width, filament disc bulb radius, box width, lighting unit size, lighting unit interval, terminal radius, character size and the like, and drawing the final signal box terminal wiring diagram according to the information obtained in the steps.

In conclusion, the invention provides a method for automatically drawing a railway signal box wiring diagram, which realizes the automatic generation of the railway signal box wiring diagram and provides a new idea for the development of railway signal auxiliary design software.

The invention is not limited to the examples, and any equivalent changes to the technical solution of the invention by a person skilled in the art after reading the description of the invention are covered by the claims of the invention.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:一种车牌图像生成方法、系统、装置及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!