CN108729490B - Method suitable for fault diagnosis and CAN bus transmission of excavator - Google Patents

Method suitable for fault diagnosis and CAN bus transmission of excavator Download PDF

Info

Publication number
CN108729490B
CN108729490B CN201810580295.2A CN201810580295A CN108729490B CN 108729490 B CN108729490 B CN 108729490B CN 201810580295 A CN201810580295 A CN 201810580295A CN 108729490 B CN108729490 B CN 108729490B
Authority
CN
China
Prior art keywords
fault
num
code
entering
fault code
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.)
Active
Application number
CN201810580295.2A
Other languages
Chinese (zh)
Other versions
CN108729490A (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.)
Xuzhou XCMG Excavator Machinery Co Ltd
Original Assignee
Xuzhou XCMG Excavator Machinery 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 Xuzhou XCMG Excavator Machinery Co Ltd filed Critical Xuzhou XCMG Excavator Machinery Co Ltd
Priority to CN201810580295.2A priority Critical patent/CN108729490B/en
Publication of CN108729490A publication Critical patent/CN108729490A/en
Application granted granted Critical
Publication of CN108729490B publication Critical patent/CN108729490B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • EFIXED CONSTRUCTIONS
    • E02HYDRAULIC ENGINEERING; FOUNDATIONS; SOIL SHIFTING
    • E02FDREDGING; SOIL-SHIFTING
    • E02F9/00Component parts of dredgers or soil-shifting machines, not restricted to one of the kinds covered by groups E02F3/00 - E02F7/00
    • E02F9/20Drives; Control devices
    • EFIXED CONSTRUCTIONS
    • E02HYDRAULIC ENGINEERING; FOUNDATIONS; SOIL SHIFTING
    • E02FDREDGING; SOIL-SHIFTING
    • E02F9/00Component parts of dredgers or soil-shifting machines, not restricted to one of the kinds covered by groups E02F3/00 - E02F7/00
    • E02F9/20Drives; Control devices
    • E02F9/22Hydraulic or pneumatic drives

Landscapes

  • Engineering & Computer Science (AREA)
  • Mining & Mineral Resources (AREA)
  • Civil Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Structural Engineering (AREA)
  • Operation Control Of Excavators (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

The invention provides a method suitable for fault diagnosis and CAN bus transmission of an excavator, which comprises two modules, wherein one module is a fault code scanning module, and the other module is a fault code transmitting module; the system comprises a fault code scanning module, a fault code sending module and a communication protocol, wherein the fault code scanning module is used for calculating the number of faults and counting the position and the type of each fault, then the fault code scanning module sends the fault code to an instrument through a CAN (controller area network) bus of the fault code sending module, and an operator quickly determines the root of the fault according to the description of the fault code and the; the invention describes a fault diagnosis and CAN bus transmission method, which effectively improves the speed of searching problems and simultaneously improves the working efficiency of the excavator. The fault diagnosis is put into a controller program and sent through a CAN bus, and the hydraulic excavator with the fault diagnosis is produced and assembled, so that the performance of the excavator is effectively improved, the rapidity of the fault diagnosis is improved, and the working efficiency of a user is improved.

Description

Method suitable for fault diagnosis and CAN bus transmission of excavator
Technical Field
The invention can be applied to a hydraulic excavator, is a control technology suitable for excavator fault diagnosis, and belongs to the technical field of excavators.
Background
With the rapid progress of the engineering machinery in China, the excavator has more and more obvious effect in the field of engineering construction, and the position of the excavator in the market of the engineering machinery is continuously increased and plays a major role. The control system of the excavator is complex, the functional requirements of customers on the excavator are higher and higher, and when the excavator fails, the method has important significance in quickly finding out the failure position and the problem source;
therefore, the invention provides a fault diagnosis and CAN bus type transmission method, and the hydraulic excavator CAN improve the troubleshooting speed and improve the working efficiency of an operator under the condition of a fault.
Disclosure of Invention
The invention provides a fault diagnosis and CAN bus type transmission method for improving the troubleshooting speed and the working efficiency of an operator under the condition that a hydraulic excavator has a fault.
The invention is realized according to the following technical scheme:
a method suitable for fault diagnosis and CAN bus transmission of an excavator comprises two modules, wherein one module is a fault code scanning module, and the other module is a fault code transmitting module; the system comprises a fault code scanning module, a fault code sending module and a communication protocol, wherein the fault code scanning module is used for calculating the number of faults and counting the position and the type of each fault, then the fault code scanning module sends the fault code to an instrument through a CAN (controller area network) bus of the fault code sending module, and an operator quickly determines the root of the fault according to the description of the fault code and the; when the excavator starts to work, the Fault code scanning module is operated once in a cycle period, the cycle period can be set, and related variables send a Fault code enable Fault _ Stop, a Fault code quantity Fault _ Num, a Fault code type array Fault _ bind [ ], and a Fault code Position array Fault _ Position [ ].
Preferably, the cycle period is 10 ms.
Preferably, the specific steps are as follows:
(1) adding 1 to the Fault number faultNum when one Fault is scanned;
(2) after one scanning period is finished, judging whether the Fault number Fault _ Num is 0, if so, entering the step (1), and if not, entering the step (3);
(3) if the Fault _ Num is not equal to 0, the main controller sends corresponding Fault type Fault _ bond [ Fault _ Num ] and Fault Position Fault _ Position [ Fault _ Num ] Fault information to the display through the CAN line, 1 frame sends 2 Fault codes, and 4 bytes send 1 Fault code;
(4) every time a fault is sent, adding 1 to the number of sent faults fault _ i;
(5) judging whether the Fault _ Num is an even number, entering the step (8) if the Fault _ Num is the even number, and entering the step (6) if the Fault _ Num is the even number;
(6) judging whether the Fault _ i is equal to the Fault _ Num-1, if so, entering the step (7), otherwise, entering the step (8);
(7) if the Fault _ Num is an odd number, setting 4 bytes to zero after the last 1 Fault frame;
(8) after a Fault frame is sent, judging whether the sent Fault number Fault _ i is smaller than the Fault _ Num or not, if so, entering the step (3), otherwise, entering the step (9);
(9) and (4) if the Fault data is completely sent, namely Fault _ i is more than or equal to Fault _ Num, clearing the data in the Fault frame and setting the data to zero, setting the Fault number Fault _ Num to zero, entering the next Fault scanning period, and returning to the step (1).
The invention has the beneficial effects that:
the invention describes a fault diagnosis and CAN bus transmission method, which effectively improves the speed of searching problems and simultaneously improves the working efficiency of the excavator. The fault diagnosis is put into a controller program and sent through a CAN bus, and the hydraulic excavator with the fault diagnosis is produced and assembled, so that the performance of the excavator is effectively improved, the rapidity of the fault diagnosis is improved, and the working efficiency of a user is improved.
Drawings
FIG. 1 is a logical relationship flow diagram of the present invention;
FIG. 2 is a diagram of the relationship of two modules of the present invention.
Detailed Description
The invention is further described by means of specific embodiments in the following with reference to the accompanying drawings.
As shown in fig. 1 and fig. 2, a method for fault diagnosis and CAN bus transmission of an excavator includes two modules, one is a module for scanning fault codes, and the other is a module for transmitting fault codes; the system comprises a fault code scanning module, a fault code sending module and a communication protocol, wherein the fault code scanning module is used for calculating the number of faults and counting the position and the type of each fault, then the fault code scanning module sends the fault code to an instrument through a CAN (controller area network) bus of the fault code sending module, and an operator quickly determines the root of the fault according to the description of the fault code and the;
when the excavator starts to work, the fault code scanning module is operated once in one cycle period, the cycle period can be set, and the default cycle period is 10 ms. The related variables send Fault code enable Fault _ Stop, Fault code number Fault _ Num, Fault code type array Fault _ bond [ ], and Fault code Position array Fault _ Position [ ].
The method comprises the following specific steps:
(1) adding 1 to the Fault number faultNum when one Fault is scanned;
(2) after one scanning period is finished, judging whether the Fault number Fault _ Num is 0, if so, entering the step (1), and if not, entering the step (3);
(3) if the Fault _ Num is not equal to 0, the main controller sends corresponding Fault type Fault _ bond [ Fault _ Num ] and Fault Position Fault _ Position [ Fault _ Num ] Fault information to the display through the CAN line, 1 frame sends 2 Fault codes, and 4 bytes send 1 Fault code;
(4) every time a fault is sent, adding 1 to the number of sent faults fault _ i;
(5) judging whether the Fault _ Num is an even number, entering the step (8) if the Fault _ Num is the even number, and entering the step (6) if the Fault _ Num is the even number;
(6) judging whether the Fault _ i is equal to (Fault _ Num-1), if so, entering the step (7), otherwise, entering the step (8);
(7) if the Fault _ Num is an odd number, setting 4 bytes to zero after the last 1 Fault frame;
(8) after a Fault frame is sent, judging whether the sent Fault number Fault _ i is smaller than the Fault _ Num or not, if so, entering the step (3), otherwise, entering the step (9);
(9) and (4) if the Fault data is completely sent, namely Fault _ i is more than or equal to Fault _ Num, clearing the data in the Fault frame and setting the data to zero, setting the Fault number Fault _ Num to zero, entering the next Fault scanning period, and returning to the step (1).
The invention describes a fault diagnosis and CAN bus transmission method, which effectively improves the speed of searching problems and simultaneously improves the working efficiency of the excavator. The fault diagnosis is put into a controller program and sent through a CAN bus, and the hydraulic excavator with the fault diagnosis is produced and assembled, so that the performance of the excavator is effectively improved, the rapidity of the fault diagnosis is improved, and the working efficiency of a user is improved.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (2)

1. A method suitable for fault diagnosis and CAN bus transmission of an excavator is characterized by comprising the following steps: the system comprises two modules, one is a fault code scanning module, and the other is a fault code sending module;
the system comprises a fault code scanning module, a fault code sending module and a communication protocol, wherein the fault code scanning module is used for calculating the number of faults and counting the position and the type of each fault, then the fault code scanning module sends the fault code to an instrument through a CAN (controller area network) bus of the fault code sending module, and an operator quickly determines the root of the fault according to the description of the fault code and the;
when the excavator starts to work, the Fault code scanning module is operated once in a cycle period, the cycle period can be set, and related variables are sent to a Fault code enable Fault _ Stop, a Fault code quantity Fault _ Num, a Fault code type array Fault _ bond [ ], and a Fault code Position array Fault _ Position [ ];
the method comprises the following specific steps:
(1) adding 1 to the Fault number faultNum when one Fault is scanned;
(2) after one scanning period is finished, judging whether the Fault number Fault _ Num is 0, if so, entering the step (1), and if not, entering the step (3);
(3) if the Fault _ Num is not equal to 0, the main controller sends corresponding Fault type Fault _ bond [ Fault _ Num ] and Fault Position Fault _ Position [ Fault _ Num ] Fault information to the display through the CAN line, 1 frame sends 2 Fault codes, and 4 bytes send 1 Fault code;
(4) every time a fault is sent, adding 1 to the number of sent faults fault _ i;
(5) judging whether the Fault _ Num is an even number, entering the step (8) if the Fault _ Num is the even number, and entering the step (6) if the Fault _ Num is the even number;
(6) judging whether the Fault _ i is equal to the Fault _ Num-1, if so, entering the step (7), otherwise, entering the step (8);
(7) if the Fault _ Num is an odd number, setting 4 bytes to zero after the last 1 Fault frame;
(8) after a Fault frame is sent, judging whether the sent Fault number Fault _ i is smaller than the Fault _ Num or not, if so, entering the step (3), otherwise, entering the step (9);
(9) and (4) if the Fault data is completely sent, namely Fault _ i is more than or equal to Fault _ Num, clearing the data in the Fault frame and setting the data to zero, setting the Fault number Fault _ Num to zero, entering the next Fault scanning period, and returning to the step (1).
2. The method for fault diagnosis and CAN bus transmission of an excavator according to claim 1, wherein the method comprises the following steps: the cycle period is 10 ms.
CN201810580295.2A 2018-06-07 2018-06-07 Method suitable for fault diagnosis and CAN bus transmission of excavator Active CN108729490B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810580295.2A CN108729490B (en) 2018-06-07 2018-06-07 Method suitable for fault diagnosis and CAN bus transmission of excavator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810580295.2A CN108729490B (en) 2018-06-07 2018-06-07 Method suitable for fault diagnosis and CAN bus transmission of excavator

Publications (2)

Publication Number Publication Date
CN108729490A CN108729490A (en) 2018-11-02
CN108729490B true CN108729490B (en) 2020-09-08

Family

ID=63932799

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810580295.2A Active CN108729490B (en) 2018-06-07 2018-06-07 Method suitable for fault diagnosis and CAN bus transmission of excavator

Country Status (1)

Country Link
CN (1) CN108729490B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2247806Y (en) * 1996-06-10 1997-02-19 广西梧州怀业高新科技有限公司 Chinese character display automotive fault finder
WO2003075180A2 (en) * 2002-03-04 2003-09-12 Accenture Global Services Gmbh Content bank for objects
CN102433911A (en) * 2011-10-01 2012-05-02 徐州徐工挖掘机械有限公司 Online fault diagnosis system and method for excavator
CN105181360A (en) * 2015-08-25 2015-12-23 南车青岛四方机车车辆股份有限公司 Method for determining train fault by display terminal
CN106284470A (en) * 2016-08-31 2017-01-04 山推工程机械股份有限公司 A kind of bull-dozer entire car controller fault finding system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2247806Y (en) * 1996-06-10 1997-02-19 广西梧州怀业高新科技有限公司 Chinese character display automotive fault finder
WO2003075180A2 (en) * 2002-03-04 2003-09-12 Accenture Global Services Gmbh Content bank for objects
CN102433911A (en) * 2011-10-01 2012-05-02 徐州徐工挖掘机械有限公司 Online fault diagnosis system and method for excavator
CN105181360A (en) * 2015-08-25 2015-12-23 南车青岛四方机车车辆股份有限公司 Method for determining train fault by display terminal
CN106284470A (en) * 2016-08-31 2017-01-04 山推工程机械股份有限公司 A kind of bull-dozer entire car controller fault finding system

Also Published As

Publication number Publication date
CN108729490A (en) 2018-11-02

Similar Documents

Publication Publication Date Title
CN103412734B (en) A kind of method of Lookup protocol concatenation unit address
CN104281086A (en) Soft PLC control system based on EtherCAT communication protocol and applied to automatic argon-welding device
CN102333113B (en) System and method for remote debugging and upgrading of software
CN108729490B (en) Method suitable for fault diagnosis and CAN bus transmission of excavator
CN117499442B (en) Data efficient processing method for Internet of things energy monitoring device
CN1949180A (en) Structuring method of distributed type simulated testing system series based on signal classification
CN102750143A (en) Digital signal processing (DSP) developing method based on matrix laboratory (MATLAB) component object model (COM) component calling
CN101673105A (en) Remote monitoring and diagnosis method based on internet and FactoryTalk platform
CN101324989A (en) Automatic recognition technique of electrical energy meter in centralized meter reading system
CN103259845B (en) Improving one's methods of the data backup task of interruption Network Based
CN108259130A (en) The Modbus Transmission systems and method of a kind of baud rate even-odd check position adaptive
CN102635379B (en) Online program updating method for hydraulic support controllers
CN112035323A (en) Method and tool for monitoring redis cluster by using ansable framework
CN1494263A (en) Method of carrying out test against join up service instrument
CN105843046A (en) Intelligent household electrical appliance master control communication method and system thereof
CN110389751B (en) Data interface mock method applied to knowledge graph
CN1163083C (en) Digital signal and instruction treatment device for program controlled switchboard
CN113075915A (en) Em-plant based virtual simulation implementation method, system and equipment
CN201522698U (en) Multi-frequency scanning infrared touch device
CN104699572A (en) Computer hardware diagnosis method based on UNIX operating system
CN117009774B (en) Rapid verification method for multivariate data
CN106640167B (en) A kind of three machine monitoring systematic communication network of fully-mechanized mining working based on LabVIEW
CN104699593A (en) Computer software diagnosis method based on UNIX operating system
CN115687190B (en) Multipath interaction control circuit and method
CN115941477B (en) Optimization method for connectivity of GMAC network card

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