Background technology
Working status parameter in the engineering mechanical device operational processs such as crane, and the variation tendency of these parameters, closely related with its serviceability and fault state and development trend thereof.Duty, engine state parameters and the hydraulic system data of real-time monitoring works plant equipment, continuous acquisition and storage working status parameter, utilize microprocessor strong calculation function and store function, carry out Theoretical Calculation and statistical study, can find out the corresponding failure of engineering mechanical device, for the repair on technical conditions of engineering mechanical device provides the theoretical foundation of science, guarantee the normal and safety in production of engineering mechanical device.
In recent years, the domestic engineering mechanical device fault diagnosis product that occurred in succession, but function is comparatively simple, the memory space of data is little, the reading displayed of data is convenient inadequately, and the stored parameter relative fixed that sets, be difficult to intactly preserve data, to understand the Changing Pattern of data in the course of work, and sharply change or when fault takes place, more can not accomplish the real-time accurate recording of data when the engineering mechanical device duty, and can not collect data acquisition, data presentation, fault diagnosis, report to the police, functions such as printing can not be carried out the transplanting and the expansion of system flexibly.Therefore, multi-functional, high integrated, and the transplanting of carrying out system that can be convenient, flexible and expansion will be the development trends of engineering mechanical device fault diagnosis system from now on.
CAN, full name are " Controller Area Network ".The CAN bus can effectively be supported distributed control or the serial communication network of controlling in real time, has strong interference immunity and uses advantages such as reliable, and high-speed data transfer is provided, and has (1Mbit/s) data transmission capabilities at a high speed under short distance (40m) condition.Initial main using vehicle industry is widely used in automatic fields such as auto industry, aircraft industry and Industry Control, now as Distributed Environmental Monitoring System, greenhouse surroundings monitoring system, transformer station's change monitoring system etc.
Embodiment
Present embodiment is mainly introduced the technical solution of the utility model and is applied to situation on the crane.The utility model can be applied on other any suitable engineering mechanical devices, and for example vehicle etc. is not limited to be applied to crane.
As shown in Figure 1, this crane fault diagnosis system is by microcontroller, the FLASH storer, real-time clock, the CAN interface, USB interface, the RS232 interface, LCDs, several sections such as printer and state indication are formed, be connected with the CAN network in the crane, receiving data that transmit on the CAN bus and the collection date and time of enclosing data deposits in the Flash storer together, also can make corresponding operation according to the order of CAN or the transmission of 232 buses, simultaneously can be with crane operating status, engine behavior and hydraulic system data deposit into portable hard drive, so that further analyze on computers, show.
The utility model is analyzed gathering the data of coming in, and judges whether corresponding crane operating status, engine behavior and hydraulic system exist fault.Order according to the transmission of CAN network, LCDs shows corresponding crane operating status, engine behavior and hydraulic system state or failure condition, printer carries out the printing of corresponding information, exists under the situation of fault loudspeaker to report to the police.The deficiencies in the prior art, engineering mechanical device fault diagnosis system based on bus type, the collection data acquisition, data presentation, data storage, fault diagnosis and warning, functions such as printing, be based on field bus technique and singlechip technology, the singlechip chip of uses advanced and peripheral expansion equipment, the integrated circuit that design has superperformance, make product accomplish the precision height, easy to operate, multiple functional, characteristics such as transplantability is good, biggest advantage is advanced field bus technique, multi-functional, high integrated, can carry out system transplantation and expansion flexibly, extremely make things convenient for it to be connected with various engineering machinery.
Microcontroller has 64 digital I/O pins, and chip integration has become a CAN 2.0B controller, has simplified the CPU peripheral circuit; Data memory module adopts the volatibility flash memory K9F5608UOA of SAMSUNG company, have 8 I/O ports, can realize the multiplexed of address, data and order easily, so not only reduced number of pins on a large scale, and the system of being convenient to expands memory capacity from now on and need not change the system board structural design.Real-time clock module adopts low-power consumption real-time clock/calendar chip, and its reliability height can solve traditional shortcoming that the parallel clock chip volume is big, pin is many, power consumption is big, wiring is complicated; The USB-HOST module adopts the usb bus common interface chip, has 8 bit data bus and reading and writing, sheet selects control line and interrupts output, can be articulated to easily on the system bus of controller such as single-chip microcomputer/DSP/MCU/MPU.Under the usb host mode, also provide serial communication mode, by serial input, serial output with interrupt output and single-chip microcomputer/DSP/MCU/MPU etc. and link to each other; RS232 selects RS-232 transceiver interface chip for use.It supports EIA/TIA-232 and ITU-TV.28/V.24 communication protocol, is applicable to that portable set uses; The CAN bus transceiver has difference transmitting-receiving ability, and flank speed can reach 1Mb/s.
As shown in Figure 2, U2 is that the D0~D7 of FLASH storer links to each other with the P7.0~P7.7 of single-chip microcomputer, be connected to the 3.3V positive source by pull-up resistor again, command latch enable terminal CLE is connected with the pin P6.1 of single-chip microcomputer, address latch enables terminal ALE and is connected with the pin P6.2 of single-chip microcomputer, write and enable terminal WE and be connected with the pin P4.7 of single-chip microcomputer, reading to enable terminal RE is connected with the pin P4.6 of single-chip microcomputer, sheet selects terminal CE1, the pin P5.1 of CE2 and single-chip microcomputer, P5.2 is connected, state terminal R/B1, the pin P3.2 of R/B2 and single-chip microcomputer, P3.3 is connected, positive source Vcc (12 and 37 pin) is connected to the 3.3V positive source, power supply ground GND (13 and 36 pin) is connected to ground, is connected with decoupling capacitor between 3.3V positive source and the power supply ground.CLE and ALE are that high level is effective, and CE1, CE2 low level are effective, and the WE low level is effective, and the RE low level is effective.During read/write data, must keep CE1, CE2, pins such as CLE, ALE is low level, and promptly putting single-chip microcomputer pin P5.1, P5.2, P6.1, P6.2 is low level, and other position of P5, P6 mouth is not limit; During write command byte, must keep CE1, CE2, ALE is low level, and CLE is a high level, promptly puts single-chip microcomputer pin P5.1, P5.2, P6.2 are low level, and P6.1 is a high level, and other position of P5, P6 mouth is not limit; The write address byte, must keep CE1, CE2, CLE is low level, and ALE is a high level, promptly puts single-chip microcomputer pin P5.1, P5.2, P6.1 are low level, and P6.2 is a high level, and other position of P5, P6 mouth is not limit.
Among Fig. 3, U7 is a real-time timepiece chip, can be independent of CPU work, not shaken by the CPU oikocryst and the influence of electric capacity, two programmable alarm clocks and a programmable square wave output are arranged, after the primary power power down, can be transformed into stand-by circuit work automatically, the serial data input of real-time timepiece chip, lead-out terminal SDA link to each other with the P0.0 of single-chip microcomputer, and serial clock input terminal SCL links to each other with the P0.1 of single-chip microcomputer, R9, R10 are pull-up resistor, standby power supply input terminal V
BACKUPBe connected to power supply 3.6V positive pole, ground terminal GND receives power supply ground, and crystal oscillator inserts the XT3 crystal oscillator that inserts 32.768KHz between terminal X1, the X2.
Among Fig. 4, U6 is the common interface chip of usb bus, the direct ground connection of its serial data lead-out terminal TXD, make it work in the parallel port mode, data line D0~D7 links to each other with the P7.0~P7.7 of single-chip microcomputer, address wire input terminal A0 is connected with the P6.0 of single-chip microcomputer, read gate input terminal RD is connected with the P4.6 of single-chip microcomputer, write gate terminal WR is connected with the P4.7 of single-chip microcomputer, interrupt request terminal ITT is connected with the P0.4 of single-chip microcomputer, sheet selects terminal CS to be connected with the P5.0 of single-chip microcomputer, reseting terminal RST is connected with the P3.0 of single-chip microcomputer, reseting terminal RST is connected with the P3.1 of single-chip microcomputer, state terminal ACT is connected with photodiode D1 positive source by resistance R 7, crystal oscillator inserts terminal XI, insert the crystal oscillator XT2 of 1.2MHz between the XO, power supply terminal VCC and V3 are connected to the 3.3V positive source, and be connected to decoupling capacitor, ground terminal GND receives power supply ground, D+ data line UD+ and D-data line UD-receive respectively on power supply and the signal plug J3, as shown in Figure 4, the 5V power supply terminal of J3 is connected on the power supply 5V by resistance R 4 and fuse FU, inserts decoupling capacitor simultaneously.During the data of the common interface chip of read/write usb bus, must keep CS, A0 pin to be level for low, promptly putting single-chip microcomputer pin P5.0, P6.0 is low level, and other position of P5, P6 mouth is not limit.When the common interface chip write command byte of usb bus, be necessary for low level, A0 is necessary for high level, and promptly putting single-chip microcomputer pin P5.0 is low level, and P6.0 is a high level, and other position of P5, P6 mouth is not limit.U4 is the PSD electrostatic discharge (ESD) protection, and VD+ and VD-insert U4, to guarantee data line speed and data integrity
Among Fig. 5, chip for driving of needs when the RS232 bus links to each other with single-chip microcomputer.It supports EIA/TIA-232 and ITU-TV.28/V.24 communication protocol, chip for driving inside is by driver, receiver, the proprietary charge pump of SIPEX, automatically going up four basic circuit pieces of line circuit forms, the sub-T1IN of TTL driver input end of chip for driving links to each other with the P0.2 of single-chip microcomputer, TTL receiver lead-out terminal R1OUT links to each other with the P0.3 of single-chip microcomputer, insert electric capacity between charge pump capacitance cathode terminal C1+ and the negative terminal C1-, insert electric capacity between charge pump inversion capacitance positive terminal C2+ and the negative terminal C2-, the SHUTDOWN terminal receive on the 3.3V power supply with open go up automatically line circuit and the ONLINE effect, enable terminal EN ground connection, ONLINE terminal ground connection is gone up line circuit automatically to start, state terminal STATUS is connected with photodiode D positive source by resistance R, and J4 is power supply and signal plug.TTL driver output T1OUT and RS-232 receiver input R1IN insert power supply and signal plug J4, regulate that charge pump produces+5.5V output V+ and-5.5V output V-is connected to decoupling capacitor respectively.Power supply terminal V
CCBe connected to the 3.3V positive source, and be connected to no coupling electric capacity, ground terminal GND receives power supply ground, and external reset input terminal RSTI high level is effective, receives the 3.3V positive source by electric capacity.
Fig. 6 is a CAN interface circuit connection layout, wherein the sub-D of transmission data input pin of CAN bus transceiver is connected with the CANTX of single-chip microcomputer, receiving the sub-R of data output end is connected with the CANRX of single-chip microcomputer, slope resistance input terminal RS ground connection, power supply terminal VCC is connected to the 3.3V positive source, and ground terminal GND receives power supply ground.
Power supply control chip is by charging among Fig. 7, and step-down is finished in such circulation that stops to charge.Electric current is provided by No. 8 pins, and No. 4 the external resistance-capacitance network of pin provides frequency compensation, the inner charge frequency that produces 250khz.In each frequency band, compare reference voltage (1.235V) and sampled voltage, if (reference voltage then begins charging to sampled voltage, form current return by 8-1 pin-inductance-load, if sampled voltage) reference voltage then stops charging, form current return by diode-inductance-load, above-mentioned 2 states that circulate are finished the step-down process.
The utility model is not limited to embodiment discussed above.More than the description of embodiment is intended in order to describe and illustrate the technical scheme that the utility model relates to.This description should or not limit protection domain of the present utility model as limit.Based on the conspicuous conversion of the utility model enlightenment or substitute and also should be considered to fall into protection domain of the present utility model.Above embodiment is used for disclosing best implementation method of the present utility model, so that those of ordinary skill in the art can use numerous embodiments of the present utility model and multiple alternative reaches the purpose of this utility model.Embodiment discussed above is mainly used in crane; but protection domain of the present utility model should not only limit to crane, and the engineering machinery that can be suitable for that other those skilled in the art can associate can be used the bus data registering instrument under the utility model.