Utility model content
Detect comparatively trouble in order to solve the RS232 interface using on existing lathe, be inconvenient to operate, the utility model provides a kind of pick-up unit for RS232 interface on lathe.
The technical solution adopted in the utility model is: a kind of pick-up unit for RS232 interface on lathe, described RS232 interface comprises up five pins, descending four pins, the pin of described RS232 interface is according to from left to right, order is from top to bottom divided into: the first pin, the second pin, three-prong, the 4th pin, the 5th pin, the 6th pin, the 7th pin, the 8th pin, the 9th pin, described pick-up unit comprises the first light emitting diode, the second light emitting diode, the 3rd light emitting diode and the 4th light emitting diode, described the first light emitting diode and the second light emitting diode are connected in parallel, the anode of described the first light emitting diode is connected with three-prong, negative electrode is connected with the first pin in the time detecting, the negative electrode of described the second light emitting diode is connected with the 4th pin in the time detecting, and anode is connected with the first pin in the time detecting, described the 3rd light emitting diode and the 4th light emitting diode are connected in parallel, and the anode of described the 3rd light emitting diode is connected with the second pin in the time detecting, and negative electrode is connected with the 5th pin in the time detecting, the anode of described the 4th light emitting diode is connected with the 6th pin in the time detecting, and negative electrode is connected with the 5th pin in the time detecting.
Preferably, also comprise the first resistance, the negative electrode of described the 3rd light emitting diode is connected to the first end of the first resistance, and the second end of described the first resistance is connected with the 5th pin in the time detecting; The negative electrode of described the 4th light emitting diode is connected to the first end of the first resistance.
Preferably, also comprise the second resistance, the negative electrode of described the first light emitting diode is connected to the first end of the second resistance, and the second end of described the second resistance is connected with the first pin in the time detecting; The negative electrode of described the 4th light emitting diode is connected to the first end of the second resistance.
Preferably, also comprise a plug, described plug is provided with six syringe needles that match with the pin of RS232, and described plug is connected with the pin on corresponding RS232 by this syringe needle.
Preferably, described plug comprises a housing, and four light emitting diodes are arranged on the outside of described housing, and six syringe needles are arranged on the end of described plug.
The beneficial effects of the utility model are: RS232 interface detection apparatus of the present utility model is connected with pick-up unit after only RS232 interface need being powered on, and just can carry out according to the instruction situation of light emitting diode the judgement of interface fault, simple and convenient.
Embodiment
For making the technical problems to be solved in the utility model, technical scheme and advantage clearer, be described in detail below in conjunction with the accompanying drawings and the specific embodiments.
As shown in Figure 1, for the structural representation of RS232 interface, this RS232 interface has nine kinds of needles pin, described RS232 is in the time of the laying state shown in Fig. 1, pin becomes up-downgoing to arrange, five pins of upper behavior, four pins of lower behavior, described pin is divided into the first pin one, the second pin two, three-prong 3, the 4th pin 4, the 5th pin 5, the 6th pin 6, the 7th pin 7, the 8th pin 8, the 9th pin 9 according to order from left to right, from top to bottom, and the definition of each stitch of RS232 interface number is as shown in table 1:
The stitch corresponding relation of table 1 RS232 interface
Number |
Title |
I/O |
Explanation |
1 |
DCD |
Input |
Data carrier detect |
2 |
RXD |
Input |
Receive data |
3 |
TXD |
Output |
Send data |
4 |
DTR |
Output |
Data terminal is prepared |
5 |
GND |
--- |
Ground connection |
6 |
DSR |
Input |
Transceiving data is prepared |
7 |
RTS |
Output |
Request sends |
8 |
CTS |
Input |
Clear to send |
9 |
RI |
Input |
Call entry |
As shown in Figure 2,3, for the structure of the RS232 interface detection apparatus of a kind of embodiment of the utility model, the pick-up unit of the present embodiment comprises the first light emitting diode L1, the second light emitting diode L2, the 3rd light emitting diode L3 and the 4th light emitting diode L4, described the first light emitting diode L1 and the second light emitting diode L2 are connected in parallel, the anode of described the first light emitting diode L1 is connected with three-prong 3 in the time detecting, and negative electrode is connected with the first pin one in the time detecting; The negative electrode of described the second light emitting diode L2 is connected with the 4th pin 4 in the time detecting, and anode is connected with the first pin one in the time detecting; Described the 3rd light emitting diode L3 and the 4th light emitting diode L4 are connected in parallel, and the anode of described the 3rd light emitting diode L3 is connected with the second pin two in the time detecting, and negative electrode is connected with the 5th pin 5 in the time detecting; The anode of described the 4th light emitting diode L4 is connected with the 6th pin 6 in the time detecting, and negative electrode is connected with the 5th pin 5 in the time detecting.
RS232 interface detection apparatus of the present utility model only need be connected with interface detecting after interface powers on, and just can carry out according to the instruction situation of light emitting diode the judgement of interface fault, simple and convenient.RS232 interface of the present utility model is the communication interface on lathe, according to the duty of lathe, just can carry out fault judgement to the pin of RS232 interface.
Fig. 2 is the structural drawing of the pick-up unit of the present embodiment, this pick-up unit comprises plug A and housing B, the end of plug A is provided with six syringe needles, plug with six pins of corresponding RS232 interface, because the pick-up unit of the present embodiment just connects for six pins, the end correspondence of this plug is provided with six syringe needles.Certainly, also can be arranged to nine syringe needles, but the syringe needle being connected with the 7th, eight, nine pins is non-conductive.In housing B, be provided with testing circuit, the outside of housing B is provided with four light emitting diodes.The RS232 interface detection apparatus of the present embodiment connects four light emitting diodes, and the pin corresponding with RS232 interface on lathe couples together.Each number of pins of this pick-up unit is defined as follows (in the time that RS232 is input, detecting device side is output):
The pick-up unit of the RS232 interface of the present embodiment is applied on the RS232 interface of numerically-controlled machine, due to numerically-controlled machine in use, substantially use the signal less than 7,8, No. 9 pins, so this pick-up unit only detects six pins 1 to No. 6.
When after lathe energising, pick-up unit is inserted on the RS232 interface of lathe, if now RS232 interface does not have out of order words, have electric current and flow to the first pin one from its three-prong 3, at this moment the first light emitting diode L1 will be bright; Whether if do not worked, can search three-prong 3 and the first pin one on RS232 interface has fault, and whether can further search the wire being connected with the first pin one with three-prong 3 has problem.
In the time of the order of executing data input on the operation screen at lathe, if now RS232 interface does not have out of order words, have electric current and flow to the 5th pin 5 from the second pin two and the 6th pin 6 of RS232 interface, at this moment the 3rd light emitting diode L3 and the 4th light emitting diode L4 will be bright, and the first light emitting diode L1 and the second light emitting diode L2 go out; Whether if only have the 3rd light emitting diode L3 not work (other lamp states are normal), can search the second pin two on RS232 interface has fault, and whether can further search the wire being connected with the second pin two has problem; Whether if only have the 4th light emitting diode L4 not work, can search the 6th pin 6 on RS232 interface has fault, and whether can further search the wire being connected with the 6th pin 6 has problem; If the 3rd light emitting diode L3 and the 4th light emitting diode L4 do not work, whether have fault, can further search with the second pin two, the 6th pin 6 and the wire that the 5th pin 5 is connected whether have problem if can search the second pin two on RS232 interface, the 6th pin 6 and the 5th pin 5; If the first light emitting diode L1 or the second light emitting diode L2 are bright, can search three-prong 3 and the 4th pin 4 on RS232 interface and whether have short circuit, can further search with three-prong 3 whether have problem with the wire that the 4th pin 4 is connected.
In the time of the order of executing data output on the operation screen at lathe, if now RS232 interface does not have out of order words, have electric current and flow to the 5th pin 5 from the second pin two and the 6th pin 6 of RS232 interface, have electric current simultaneously and flow to the 4th pin 4 from the first pin one of RS232 interface, at this moment on pick-up unit, the second light emitting diode L2, the 3rd light emitting diode L3 and the 4th light emitting diode L4 can be bright, and the first light emitting diode L1 goes out; If only have the second light emitting diode L2 do not work (other light emitting diode states are normal), whether have fault, can further search with the first pin one whether have problem with the wire that the 4th pin 4 is connected if can search the first pin one and the 4th pin 4 on RS232 interface; Whether if only have the 3rd light emitting diode L3 not work, can search the second pin two on RS232 interface has fault, and whether can further search the wire being connected with the second pin two has problem; Whether if only have the 4th light emitting diode L4 not work, can search the 6th pin 6 on RS232 interface has fault, and whether can further search the wire being connected with the 6th pin 6 has problem; If the 3rd light emitting diode L3 and the 4th light emitting diode L4 do not work, can search on RS232 interface the second pin two and the 6th pin 6 and flow to the 5th pin 5 and whether have fault, can further search and flow to the second pin two and the 6th pin 6 wire that the 5th pin 5 is connected and whether have problem; If the second light emitting diode L2, the 3rd light emitting diode L3 and the 4th light emitting diode L4 do not work, whether have fault, can further search with the first pin one, the 4th pin 4, the second pin two, the 6th pin 6 whether have problem with the wire that the 5th pin 5 is connected if can search the first pin one on RS232 interface, the 4th pin 4, the second pin two, the 6th pin 6 and the 5th pin 5; If the first light emitting diode L1 is bright, can search the first pin one and three-prong 3 on RS232 interface and whether have fault, whether can further search the wire being connected with three-prong 3 with the first pin one has problem.
Again consult Fig. 3, the negative electrode of described the 3rd light emitting diode is connected to the first end of the first resistance R 1, and the second end of described the first resistance is connected with the 5th pin in the time detecting; The negative electrode of described the 4th light emitting diode is connected to the first end of the first resistance.The resistance of the first resistance R 1 is 1000 ohm, for current limliting, prevents the destruction of excessive current to diode.
As shown in Figure 4, be the circuit diagram of the pick-up unit of the utility model the second embodiment, the negative electrode of described first light emitting diode of the present embodiment is connected to the first end of the second resistance, and the second end of described the second resistance is connected with the first pin in the time detecting; The negative electrode of described the 4th light emitting diode is connected to the first end of the second resistance.The resistance of the second resistance R 2 is 1000 ohm, for current limliting, prevents the destruction of excessive current to diode.
The interface detection apparatus of technique scheme is connected with the interface of pick-up unit after only RS232 interface need being powered on, and just can carry out according to the instruction situation of light emitting diode the judgement of interface fault, simple and convenient.
The above is the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, do not departing under the prerequisite of principle of the present invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.