The pump stroke signal harvester that has isolated gate
Technical field
The utility model relates to a kind of pump stroke signal harvester that has isolated gate, can be used for the collection of the tach signal that the drill pump in oil field dashes, and especially is fit to the occasion that the oil field has damp and uses, and belongs to signals collecting
Technical field.
Background technology
Drill pump in the oil field rushes to and adopts traditional dcs at present, as shown in Figure 1, expand an equipment and must increase an interface and a cable, cable between interface and the measuring and controlling equipment increases along with the increase of equipment, and the signal that sensor obtains is directly delivered to and is gone in the interfacing equipment to calculate and conversion of signals, on the cable of sensor and interfacing equipment, tend to be subjected to electromagnetic interference (EMI), make interfacing equipment calculate and make mistakes, produce error.
Summary of the invention
To be that invention is a kind of expand the pump stroke signal harvester that freedom, easy to connect and signal have isolated gate without interruption to the purpose of this utility model.
For realizing above purpose, the technical solution of the utility model provides a kind of pump stroke signal harvester that has isolated gate, comprise host computer and sensor, it is characterized in that, between host computer and sensor, be provided with a CAN bus, the CAN bus is provided with at least one node, and each node is connected with a sensor.
Described node is made up of safety isolated gate, microcontroller, CAN controller, CAN transceiver and software thereof, and sensor connects safe isolated gate, is connected with the CAN bus by microcontroller, CAN controller, CAN transceiver.
AD0~the AD7 of described CAN controller is connected to the P0 mouth of microcontroller, CS is connected to the P2.0 of microcontroller, the RD of CAN controller, WR, ALE links to each other to the corresponding pin of microcontroller respectively, INT meets micro controller I NT0, the TX0 of CAN controller and RX0 link to each other with the CAN transceiver after by high speed photo coupling, the CANH/L of CAN transceiver links to each other with the CAN bus with small resistor by fuse, be connected to a slope resistance on the Rs pin of CAN transceiver, two little electric capacity in parallel between the CANH of CAN transceiver and CANL and the ground are connected an anti-lightning strike pipe respectively between two CAN bus input ends and ground.
The utility model adopts the fieldbus structure, it is as the tie of smart machine, be connected to network system being articulated on the bus as apparatus for network node, further constitute automated system, realize basic controlling, compensation is calculated, parameter modification, report to the police, show, functions such as monitoring, its effect is pump to be dashed and digital signal that pulse electrical signal that speed probe obtains converts us to and needs provides interface and host computer communication with the CAN fieldbus simultaneously, because making, these characteristics of CAN bus in this system, add and minimizing equipment becomes very easy, this is the adaptability to changes of enhanced system widely just, extension facility arbitrarily within the quantity of regulation, save wiring cable, shortened the set-up time.
The utility model has the advantages that extension facility is easy, the interference-free and saving wiring cable of sensor signal.
Description of drawings
Fig. 1 is former pump stroke signal harvester structural representation;
Fig. 2 is the pump stroke signal harvester synoptic diagram that has isolated gate
Fig. 3 is each node structure synoptic diagram;
Fig. 4 is each node electrical schematic diagram;
Fig. 5 is the pump stroke signal harvester software flow pattern that has isolated gate.
Embodiment
The utility model is described in further detail below in conjunction with drawings and Examples.
Embodiment
As shown in Figure 2, for having the pump stroke signal harvester synoptic diagram of isolated gate, the described pump stroke signal harvester that has isolated gate, form by host computer, CAN bus, 3 nodes 1 and sensor, between host computer and sensor, be provided with a CAN bus, the CAN bus is provided with at least one node 1, and each node 1 is connected with a sensor.
As shown in Figure 3, be each node structure synoptic diagram, described node 1 is by the safety isolated gate, microcontroller, the CAN controller, the CAN transceiver, and software is formed, sensor interface connects safe isolated gate, pass through microcontroller, the CAN controller, the CAN transceiver is connected with the CAN bus, the safe buffer circuit signal of autobiography sensor in the future carries out safe handling and delivers to microcontroller later on signal is carried out pulse numeration and adaptive processing, microcontroller also is responsible for the initialization of CAN controller, realizes communication tasks such as the reception of data and transmission by control CAN controller.
As shown in Figure 4, be each node electrical schematic diagram, described circuit is made by safety buffer circuit, microcontroller 89C52, CAN controllers SJA1000, CAN transceiver 82C250, AD0~the AD7 of described CAN controller is connected to the P0 mouth of microcontroller, CS is connected to the P2.0 of microcontroller, P2.0 is 0 o'clock, CAN controller SJA1000 can be chosen in CPU chip external memory address, and CPU can carry out corresponding read/write operation to CAN controller SJA1000 by these addresses.The RD of CAN controller, WR, ALE link to each other to the corresponding pin of microcontroller respectively, INT meets micro controller I NT0, and microcontroller 89C52 also can visit CAN controller SJA1000 by interrupt mode.
In order to strengthen the antijamming capability of CAN bus node, the TX0 of CAN controller SJA1000 is not directly to link to each other with CAN transceiver 82C250 with RX0, but link to each other with CAN transceiver 82C250 by behind the high speed photo coupling 6N137, so just well realized the internodal electrical isolation of each CAN on the bus.Two power supply VCC and VDD that the optocoupler partial circuit is adopted isolate fully, this example has adopted special insulating power supply circuit, produced 3 fully independently insulating power supply respectively circuit and pump are powered towards sensor, though the complicacy that this part has increased circuit, the stability and the security that have improved node.
Certain safety practice has also been adopted in the interface section of CAN transceiver 82C250 and CAN bus, and the CANH/L of CAN transceiver 82C250 links to each other with the CAN bus with small resistor by fuse, and protection CAN transceiver 82C250 avoids over-current shock; The R of CAN transceiver 82C250
SBe connected to a slope resistance on the pin, resistance sizes can suitably be adjusted according to bus communication speed, plays jamproof effect.
The little electric capacity of two 30pF in parallel between the CANH of CAN transceiver 82C250 and CANL and the ground; can play the ability of high frequency interference on the filtering bus and certain anti-electromagnetic radiation; in addition; between two CAN bus input ends and ground, connect an anti-lightning strike pipe respectively; when occurring the transition interference between two input ends and the ground; discharge by anti-lightning strike pipe can be played the certain protection effect; it is a kind of conflicting mode main in the electromagnetic compatibility field that transition is disturbed; lightning surge ripple particularly; because the duration is short; the pulse amplitude height, energy is big, brings great threat for the normal operation of electronic electric equipment.
As shown in Figure 5, for having the pump stroke signal harvester software flow pattern of isolated gate, during work, on the CAN bus, install and pump matched node 1 according to the quantity of pump, each node 1 connects the sensor that is contained on the pump, microcontroller 89C52 carries out initialization to CAN controller SJA1000, accept the pulse electrical signal that speed probe that sensor signal dashes pump obtains and convert digital signal to,, carry out sending after the rate calculations digital filtering, if add pump, as long as in the CAN bus node 1 is installed again, sensor installation on pump is connected with node 1 and gets final product, maximum like this 64 nodes 1 are installed, gather the tach signal of 64 pumps simultaneously.