CN108594051A - A kind of electrical equipment malfunction automatic testing method and system - Google Patents

A kind of electrical equipment malfunction automatic testing method and system Download PDF

Info

Publication number
CN108594051A
CN108594051A CN201810756693.5A CN201810756693A CN108594051A CN 108594051 A CN108594051 A CN 108594051A CN 201810756693 A CN201810756693 A CN 201810756693A CN 108594051 A CN108594051 A CN 108594051A
Authority
CN
China
Prior art keywords
signal
state
plc
port
electrical equipment
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.)
Granted
Application number
CN201810756693.5A
Other languages
Chinese (zh)
Other versions
CN108594051B (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.)
China Resources Cement Technology R&D Co Ltd
Original Assignee
China Resources Cement Technology R&D 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 China Resources Cement Technology R&D Co Ltd filed Critical China Resources Cement Technology R&D Co Ltd
Priority to CN201810756693.5A priority Critical patent/CN108594051B/en
Publication of CN108594051A publication Critical patent/CN108594051A/en
Application granted granted Critical
Publication of CN108594051B publication Critical patent/CN108594051B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts

Abstract

The present invention discloses a kind of electrical equipment malfunction automatic testing method and system, and each fault point of electrical equipment is separately connected by each first ports I/O PLC;PLC connects electrical equipment by the second I/O port and detects driving signal output end simultaneously;Program is stored in PLC internal composition fault detects, each line state signal of each fault point is detected in the case where there is electrical equipment drive signal, and stored.Each line state signal is grouped, and is directed to every group of status signal, turn word function by position switchs to 1 output word state by every group of status signal;For final host computer according to the information in each output word state, whether each line state signal obtained in each group status signal is fault-signal, learns whether the electrical equipment malfunction point that each first I/O ports of PLC are connected breaks down.The present invention can fast and accurately detect the failure problems that electrical equipment occurs, and greatly improve the working efficiency of electrical equipment malfunction detection.

Description

A kind of electrical equipment malfunction automatic testing method and system
Technical field
The present invention relates to electric fault service technique field, more particularly to a kind of electrical equipment malfunction automatic testing method and System.
Background technology
It when electrical equipment breaks down at present, mainly examined, divided for phenomenon of the failure by professional Analysis, then diagnoses fault reason.This process needs, which take a significant amount of time, searches fault point, and working efficiency is extremely low, and to skill Art personnel's skill set requirements are higher, are not easy to ensure the accuracy of diagnostic result.
When usually debugging, used step is broadly divided into:Symptom analysis, equipment inspection determine fault point, event Behavioral observation after barrier is excluded and excluded, because electric fault phenomenon is diversified, for example, same class failure may be different Phenomenon of the failure, different faults may have a phenomenon of the failure of the same race, the homogeneity and diversity of this phenomenon of the failure, to searching failure Bring complexity.
Invention content
The first object of the present invention is the shortcomings that overcoming the prior art and deficiency, and it is automatic to provide a kind of electrical equipment malfunction Detection method, by this method can failure problems that are accurate and being quickly detected electrical equipment appearance, and can it is automatic, Quickly and displaying in real time detects obtained failure, greatly improves the working efficiency of electrical equipment malfunction detection.
The second object of the present invention is to provide a kind of failure problems that electrical equipment that realizing the above method occurs.
The first object of the present invention is achieved through the following technical solutions:A kind of electrical equipment malfunction automatic testing method, step It is rapid as follows:
Step S1, each fault point of electrical equipment is separately connected by each first ports I/O PLC;PLC passes through the simultaneously Two I/O ports connect electrical equipment and detect driving signal output end;
Program is stored in PLC internal composition fault detects, PLC executes fault detect and stores program, carries out following processing:It will The input results of each first I/O port carry out logical AND operation with the input results of the second I/O port respectively, obtain each logical AND behaviour Result after work;Result after being operated according to each logical AND gets each line state signal;Wherein each I/O port, which corresponds to, to be obtained To status signal all the way;
Step S2, obtain status signal total way N, N line state signals are divided into it is multigroup, wherein every group of status signal The way of middle status signal is less than or equal to 16;
Step S3, be directed to every group of status signal, by position turn word function will wherein multichannel status signal it is corresponding multiple Information bit state switchs to 1 output word state STATE;
Step S4, host computer reads each output word state STATE of PLC;Host computer is according in each output word state STATE Information, whether each line state signal got in each group status signal is fault-signal, to obtain each first ends IO PLC Whether the electrical equipment malfunction point that mouth is connected breaks down.
Preferably, PLC internal faults detection storage program include logical AND operating function, detection rising edge operation function and Store operating function;
In the step S1:
First by logical AND operating function for the first I/O port input results and the second I/O port input results into Row logical AND operates, and obtains logical AND operating result;
Then whether detection rising edge operation Function detection current logic occurs saltus step with operating result;If saltus step occurs, Useful signal is then generated, and useful signal is kept to continue in certain time interval T, otherwise generates invalid signals;
Finally storage operating function then using the useful signal as status signal, and is protected when detecting useful signal Constant, the reset signal until detecting PLC inputs is held, then will export invalid signals as status signal;
In the step S4, when status signal is useful signal, then host computer passes through the corresponding output that it is converted into The correspondence position of word state STATE judges the status signal for fault-signal, and it is electrical to determine that PLC the first I/O ports of correspondence are connected Equipment fault point breaks down.
Further, the T is a PLC cycle period.
Further, the PLC internal faults detection storage program further includes closing delay operating function;
In the step S1 input results of the second I/O port by close delay operation after again by with the first I/O port Input results carry out logical AND operation;Wherein the input results of the second I/O port carry out closing the detailed process for postponing operation such as Under:
When the input results of the second I/O port export useful signal, detection comes into force, and the input results of the second I/O port are straight It connects and carries out logical AND operation with the input results of the first I/O port;
Become invalid signals when the input results of the second I/O port are exported from useful signal, then closes delay operating function and open Dynamic internal time ET, when internal time ET reaches PT values, the input results for generating invalid signals and the first I/O port are patrolled It collects and operates;
The logical AND operating function is for the result exported after the input results of the first I/O port and closing delay operation Logical AND operation is carried out, logical AND operating result is obtained;
The PT is more than a PLC cycle period.
Further, the useful signal is high level signal, and invalid signals are low level signal;Or it is described effective Signal is low level signal, and invalid signals are high level signal.
Preferably, further comprising the steps of, after each line state signal in every group of status signal is carried out logic or operation A carry-out bit state F_STATE is obtained, each carry-out bit state F_STATE that every group of status signal is corresponded to carries out logic Or operation;
Host computer read PLC in each carry-out bit state F_STATE logics or operation after as a result, according on the output control Position machine man-machine interface pops up fault message display window.
The second object of the present invention is achieved through the following technical solutions:A kind of electrical equipment malfunction automatic checkout system, packet PLC and host computer are included, each first ports I/O of the PLC are separately connected each fault point of electrical equipment, each for receiving The signal that fault point is sent;PLC connects electrical equipment by the second I/O port and detects driving signal output end simultaneously, for receiving Drive signal;
Include fault detect memory function module FDS inside the PLC, program is stored for PLC for storing fault detect It calls, it is by storing fault detect storage program realization that the input results of each first I/O port are defeated with the second I/O port respectively Enter result and carry out logical AND operation, obtains after each logical AND operation as a result, and being obtained according to the result after the operation of each logical AND Get each line state signal;Wherein each I/O port correspondence gets status signal all the way;Total road for obtaining status signal Number N, and N line state signals are divided into it is multigroup, wherein the way of status signal is less than or equal to 16 in every group of status signal;With In being directed to every group of status signal, the corresponding multiple information bit states of multichannel status signal therein are switched into 1 output shape State STATE;
The host computer connects PLC, each output word state STATE for reading PLC;For according to each output word state Information in STATE, whether each line state signal got in each group status signal is fault-signal, to obtain PLC each Whether the electrical equipment malfunction point that one I/O port is connected breaks down.
Preferably, the fault detect memory function module FDS includes:
Logical AND operating function modules A ND, the input for input results and the second I/O port for the first I/O port As a result logical AND operation is carried out, logical AND operating result is obtained;
Rising edge operation function module R_TRIG is detected, for detecting whether current logic occurs saltus step with operating result; If saltus step occurs, useful signal is generated, and useful signal is kept to continue in certain time interval T, otherwise generates invalid signals;
Store operating function module SR;For when detecting useful signal, then using the useful signal as status signal, And it remains unchanged, the reset signal until detecting PLC inputs then exports invalid signals as status signal;
Status signal grouping module, total way N for obtaining status signal, and N line state signals are divided into more Group;
Position turns word function module, for being directed to every group of status signal, multichannel status signal therein is corresponding multiple Information bit state switchs to 1 output word state STATE.
Further, the fault detect memory function module FDS further includes:
Delay operating function module TOF is closed, carries out closing delay operation, tool for the input results to the second I/O port Body is:When the input results of the second I/O port export useful signal, detection comes into force, and closes delay operating function module for straight Connect output the second I/O port input results, by its second I/O port directly exported input results and the first I/O port it is defeated Enter result and carries out logical AND operation;Become invalid signals when the input results of the second I/O port are exported from useful signal, then closes Postpone operating function module and start internal time ET, when internal time ET reaches PT values, generates invalid signals and the first ends IO The input results of mouth carry out logical AND operation;
The logical AND operating function modules A ND is directed to the input results of the first I/O port and closes delay operating function Module TOF carries out logical AND operation;
The PT is more than a PLC cycle period.
Preferably, the fault detect memory function module FDS further includes:
First logic or operation module, after each line state signal in every group of status signal is carried out logic or operation Obtain a carry-out bit state F_STATE;
Further include inside the PLC:
Second logic or operation module, for patrolling the corresponding each carry-out bit state F_STATE of every group of status signal It collects or operates;
The host computer reads the second logic or operation module in PLC and exports as a result, according to output control host computer people Pop up fault message display window in machine interface.
The present invention has the following advantages and effects with respect to the prior art:
(1) a kind of electrical equipment malfunction automatic testing method of the present invention and system are distinguished by each first ports I/O PLC Connect each fault point of electrical equipment;PLC connects electrical equipment by the second I/O port and detects driving signal output end simultaneously; Program is stored in PLC internal composition fault detects, can be examined in the case where there is electrical equipment drive signal by program PLC Each line state signal of each fault point is measured, and is stored.Each line state signal is grouped in PLC, wherein every group The way of status signal is less than or equal to 16 in status signal, is directed to every group of status signal, turns word function by every group of shape by position All information bit states in state signal switch to 1 output word state STATE;Final host computer is according to each output word state Information in STATE, whether each line state signal got in each group status signal is fault-signal, to obtain PLC each Whether the electrical equipment malfunction point that one I/O port is connected breaks down.It can be seen from the above, PLC believes every group of state in the present invention Each line state signal in number is packaged into an output word state and directly reads an output when host computer obtains fault message It can be obtained every group of status signal when word state, therefore the present invention is used as slave computer by PLC and can fast and accurately be detected To electrical equipment occur failure problems, and can it is automatic by host computer, quick and it is real-time displaying detection obtain therefore Barrier greatly improves the working efficiency of electrical equipment malfunction detection.
(2) in electrical equipment malfunction automatic testing method of the present invention and system, each line state letter in every group of status signal Number carry out logic or operation after obtain a carry-out bit state F_STATE, by the corresponding each carry-out bit state of every group of status signal F_STATE carries out logic or operation;Host computer read PLC in each carry-out bit state F_STATE logics or operation after as a result, root Host computer man-machine interface, which can be controlled, according to the result pops up fault message display window;It can be seen from the above, in the present invention, for every Each line state signal in group status signal, by obtaining corresponding carry-out bit state F_STATE after logic or operation, host computer is logical It crosses each carry-out bit state F_STATE logics or whether operation and control pops up fault message display window, the above-mentioned realization side of the present invention Formula make host computer as long as have all the way status signal be fault-signal when as long as can pop up fault message display window, can play Good warning function.
(3) in electrical equipment malfunction automatic testing method of the present invention and system, PLC internal faults detection storage program includes Close delay operating function;In the present invention, the input results of the second I/O port are by closing after delay operation again by with the The input results of one I/O port carry out logical AND operation;Specially:When the input results of the second I/O port export useful signal, Detection comes into force, and the input results of the second I/O port are directly and the input results of the first I/O port carry out logical AND operation;When second The input results of I/O port, which are exported from useful signal, becomes invalid signals, then closes delay operating function and start internal time ET, When internal time ET reaches PT values, the input results for generating invalid signals and the first I/O port carry out logical AND operation;Wherein PT is more than a PLC cycle period.PLC can also after the above-mentioned closing delay operating function of the present invention can ensure electrical equipment stop jumping There is the time of PT to be in fault detection status, to ensure that fault point detection signal acquisition is complete, further ensures fault detect As a result accuracy.
(4) include fault detect memory function module in electrical equipment malfunction automatic checkout system of the present invention, inside PLC FDS stores fault detect by the module and stores program, facilitates the calling fault diagnosis of PLC more convenient and quickers to store program, keep away Exempt to repeat to write when large number of equipment does fault diagnosis the fault diagnosis storage program inside FDS, reduces workload.
Description of the drawings
Fig. 1 is electrical equipment malfunction automatic checkout system structure diagram of the present invention.
Fig. 2 is that the present invention stores programme diagram in the fault detect of PLC internal compositions.
Fig. 3 a are the schematic diagrames of fault detect memory function module FDS in the present invention.
Fig. 3 b are the annotated maps of fault detect memory function module FDS in invention respectively output and input.
Fig. 4 a are that 16 tunnel fault detects store programme diagram in fault detect memory function module FDS in the present invention.
Fig. 4 b are that position turns word functional module structure schematic diagram in the present invention.
Fig. 4 c are 16 line state signals or logical operation functional schematic in the present invention.
Fig. 5 a are that the fault detect being directed in the present invention when coal mill main motor carries out fault detect in PLC internal compositions is deposited Store up programme diagram.
Fig. 5 b are the numbers for being directed to host computer when coal mill main motor carries out fault detect in the present invention and corresponding to PLC storage insides According to block message.
Fig. 6 a and 6b are the failure for being directed to coal mill main motor in the present invention and carrying out host computer pop-up when fault detect respectively Messagewindow figure.
Specific implementation mode
Present invention will now be described in further detail with reference to the embodiments and the accompanying drawings, but embodiments of the present invention are unlimited In this.
Embodiment
Present embodiment discloses a kind of electrical equipment malfunction automatic testing methods, and steps are as follows:
Step S1, each fault point of electrical equipment is separately connected by each first ports I/O PLC;PLC passes through the simultaneously Two I/O ports connect electrical equipment and detect driving signal output end;Program is stored in PLC internal composition fault detects, PLC is executed Fault detect stores program, carries out following processing:By the input with the second I/O port respectively of the input results of each first I/O port As a result logical AND operation is carried out, the result after each logical AND operation is obtained;Result after being operated according to each logical AND is got respectively Line state signal;Wherein each I/O port correspondence gets status signal all the way;
Step S2, obtain status signal total way N, N line state signals are divided into it is multigroup, wherein every group of status signal The way of middle status signal is less than or equal to 16;Wherein, in the present embodiment, it is directed to the process that N line state signals are grouped It is as follows:
First determine whether the total way N for the status signal that step S1 is got is more than 16;
If so, when N can be divided exactly by 16, then status signal is divided into N/16 groups, is otherwise divided into [N/16]+1 Group, wherein [N/16] indicates rounding after N divided by 16;
If it is not, all line state signals are then divided into one group of signal.
Step S3, be directed to every group of status signal, by position turn word function will wherein multichannel status signal it is corresponding multiple Information bit state switchs to 1 output word state STATE;In the present embodiment, when the way of status signal in this group of status signal When less than 16, then it will become after everybody subsequent supplement invalid signal level of the corresponding multiple information bit states of multichannel status signal 16.
Step S4, host computer reads each output word state STATE of PLC;Host computer is according in each output word state STATE Information, whether each line state signal got in each group status signal is fault-signal, to obtain each first ends IO PLC Whether the electrical equipment malfunction point that mouth is connected breaks down, while host computer is according to the information in each output word state STATE Control fault message is shown in its human-computer interaction interface window.
In the present embodiment, when fault point generate normal signal be low level, when fault-signal is high level signal, then Useful signal is high level signal, and invalid signals are low level signal.When the normal signal that fault point generates is high level, failure When signal is low level signal, then useful signal is low level signal, and invalid signals are high level signal.Host computer is read from PLC After getting each output word state STATE, corresponding each group status signal is learnt by every information of each output word state STATE In each line state signal whether be fault-signal, when the level of a certain position for exporting word state STATE is high level 1, then Status signal corresponding to this of output word state STATE is fault-signal, and host computer can be controlled in human-computer interaction circle at this time Corresponding fault message is shown in face-port mouth.
The storage program of PLC internal faults detection in the present embodiment includes closing delay operating function, logical AND operating work Rising edge operation function and storage operating function can, be detected, as shown in Figure 2:
The input results of second I/O port by close delay operation after again by the input results with the first I/O port into Row logical AND operates;Wherein it is as follows to carry out the detailed process that closing delay operates for the input results of the second I/O port:
When the input results of the second I/O port export useful signal, detection comes into force, and the input results of the second I/O port are straight It connects and carries out logical AND operation with the input results of the first I/O port;
Become invalid signals when the input results of the second I/O port are exported from useful signal, then closes delay operating function and open Dynamic internal time ET, when internal time ET reaches PT values, the input results for generating invalid signals and the first I/O port are patrolled It collects and operates;In the present embodiment, PT is more than a PLC cycle period.
Logical AND operating function is closed for the input results of the first I/O port and the input results of the second I/O port The result exported after delay operation carries out logical AND operation, obtains logical AND operating result;
Whether detection rising edge operation Function detection current logic occurs the saltus step from 0 to 1 with operating result;If jumping Become, then generate useful signal, and useful signal is kept to continue in certain time interval T, otherwise generates invalid signals;In this implementation In example, T is a PLC cycle period.
Operating function is stored when detecting useful signal, then using the useful signal as status signal, and is kept not Become, the reset signal until detecting PLC inputs, then will export invalid signals as status signal;
In the present embodiment step S4, when status signal is useful signal, then host computer is converted by corresponding to it Output word state STATE judges the status signal for fault-signal, determines that PLC corresponds to the electrical equipment that the first I/O port is connected It breaks down fault point.
In the present embodiment, by every group of status signal each line state signal carry out logic or operation after obtain one it is defeated Go out a state F_STATE, the corresponding each carry-out bit state F_STATE of every group of status signal is subjected to logic or operation;Host computer Result X after reading each carry-out bit state F_STATE logics in PLC or operating, host computer man-machine interface is controlled according to result X Fault message display window is popped up, in the present embodiment, when host computer reads each carry-out bit shape in PLC by Ethernet interface When result X after state F_STATE logics or operation is 1, fault message display window just is popped up in its human-computer interaction interface, therefore When any line state signal breaks down, host computer can automatic spring fault message display window, it is aobvious with the fault message Show that window shows fault message.
In the present embodiment, also disclose a kind of electrical equipment malfunction automatic checkout system, as shown in Figure 1, including PLC and Host computer;
Each first ports I/O of PLC are separately connected each fault point of electrical equipment, are sent for receiving each fault point Signal;PLC connects electrical equipment by the second I/O port and detects driving signal output end simultaneously, for receiving drive signal;
In the present embodiment, include fault detect memory function module FDS inside PLC:
It is called for PLC for storing fault detect storage program, storing program by storing fault detect realizes each the The input results of one I/O port carry out logical AND operation with the input results of the second I/O port respectively, after obtaining each logical AND operation As a result, and according to each logical AND operate after result get each line state signal;Wherein each I/O port, which corresponds to, to be obtained To status signal all the way;
Total way N for obtaining status signal, and N line state signals are divided into it is multigroup, wherein every group of state letter The way of status signal is less than or equal to 16 in number;For being directed to every group of status signal, multichannel status signal therein is corresponded to Multiple information bit states switch to 1 output word state STATE;
In the present embodiment, host computer connects PLC, each output word state for reading PLC by Ethernet interface STATE;For according to the information in each output word state STATE, each line state signal got in each group status signal is No is fault-signal, to show whether the electrical equipment malfunction point that each first I/O ports of PLC are connected breaks down.
In the present embodiment, as shown in Figure 2, fault detect memory function module FDS includes:
Delay operating function module TOF is closed, carries out closing delay operation, tool for the input results to the second I/O port Body is:When the input results of the second I/O port export useful signal, detection comes into force, and closes delay operating function module for straight Connect output the second I/O port input results, by its second I/O port directly exported input results and the first I/O port it is defeated Enter result and carries out logical AND operation;Become invalid signals when the input results of the second I/O port are exported from useful signal, then closes Postpone operating function module and start internal time ET, when internal time ET reaches PT values, generates invalid signals and the first ends IO The input results of mouth carry out logical AND operation;PT is more than a PLC cycle period.Wherein, as shown in Fig. 2, in the present embodiment, It includes two inputs to close delay operating function module TOF, is electrical equipment detection i.e. the second I/O ports of drive signal DR respectively Input results and internal time ET signals.When DR variables are " 1 ", delay operating function module TOF outputs are closed " Q " For " 1 ", fault detect storage program comes into force;When DR variables become " 0 " from " 1 ", close inside delay operating function module TOF Time (ET) starts, and internal time reaches the value (time value of PT must be more than a PLC circulation time) of PT, then " Q " changes For " 0 ", it is invalid that fault detect stores program.
Logical AND operating function modules A ND, for the input results and closing delay operating function for the first I/O port Module TOF output results carry out logical AND operation, obtain logical AND operating result;Wherein, as shown in Fig. 2, in the present embodiment, Logical AND operating function modules A ND includes two input signals, is input results and the closing delay of the first I/O port respectively Operating function module TOF exports result;The IN variables of logical AND operating function modules A ND are the input results of the first I/O port, That is the signal of fault point, when fault point is broken down, IN variables become " 1 ", and defeated when closing delay operating function module TOF It is " 1 " to go out result, i.e., the inputs IN1 of logical AND operating function modules A ND are also " 1 " (i.e. fault detect stores program and comes into force) When, logical AND operating function modules A ND outputs OUT is " 1 ".
Rising edge operation function module R_TRIG is detected, for detecting whether current logic and operating result occur " 0 " and arrive " 1 " saltus step;If the saltus step that " 0 " arrives " 1 " occurs, useful signal is generated, and useful signal is kept to be held in certain time interval T It is continuous, otherwise generate invalid signals;Wherein, as shown in Fig. 2, in the present embodiment, detecting rising edge operation function module R_TRIG It is inputted including CLK signal, CLK signal comes from the output OUT of logical AND operating function modules A ND;When detection rising edge operation When function module R_TRIG detects that the inputs CLK have the saltus step from " 0 " to " 1 ", then exporting will become " 1 ", and keep one It is " 1 " then to export Q and return to " 0 " in a PLC circulation times.
Store operating function module SR;For when detecting useful signal, then using the useful signal as status signal, And it remains unchanged, the reset signal until detecting PLC inputs, then will export invalid signals as status signal, wherein logical Fault message can be removed by crossing reset signal;Wherein, as shown in Fig. 2, in the present embodiment, storage operating function module SR includes Two input S1 and RESET, respectively detect the output Q and reset signal of rising edge operation function module R_TRIG;When depositing When storage operating function module SR detects that its S1 inputs become " 1 ", output Q1 will become " 1 ", and corresponding F variables are " 1 ";Even if Input S1 reverts to " 0 ", this state also remains unchanged.When input R becomes " 1 ", output Q1 is reverted to, and " 0, F variable is " 0 ". If it is " 1 " to input S1 and R simultaneously, the preferential S1 that inputs can set " 1 " output Q1 to, and F variables are " 1 ".F variables are for depositing The fault message of detection is stored up, F variables are in faulty state when being " 1 ", F variables are in unfaulty conditions when being " 0 ".
Status signal grouping module, total way N for obtaining status signal, and N line state signals are divided into more Group, wherein the way of status signal is less than or equal to 16 in every group of status signal;In the present embodiment, status signal grouping module needle The mode being grouped for N line state signals is as follows:When total way N of status signal is more than 16, then when N can be divided exactly by 16 When, then status signal is divided into N/16 groups, is otherwise divided into [N/16]+1 group, wherein [N/16] indicates rounding after N divided by 16; When total way N of status signal is less than 16, then all line state signals are divided into one group of signal.
Position turns word function module BOOL_TO_WORD, and for being directed to every group of status signal, multichannel state therein is believed Number corresponding multiple information bit states switch to 1 output word state STATE;
First logic or operation module, after each line state signal in every group of status signal is carried out logic or operation Obtain a carry-out bit state F_STATE;
In the present embodiment, further include inside PLC:
Second logic or operation module, for patrolling the corresponding each carry-out bit state F_STATE of every group of status signal It collects or operates;
Host computer reads the second logic or operation module in PLC by Ethernet interface and exports as a result, according to the result control Host computer man-machine interface processed pops up fault message display window.
In the present embodiment, the every 16 line state signal F0 to F15 generated in PLC is divided into one group, and converted defeated Go out word state STATE, while obtaining carry-out bit state F_STATE, it is corresponding by fault detect store function mould as shown in Figure 3a Block FDS realizes that FDS gets 16 line state signal F0 according to the corresponding 16 road signal IN0 to IN15 in 16 fault points of input To F15.Wherein the annotation of fault detect memory function module FDS input signals IN0 to IN15 and output signal F0 to F15 is such as Shown in Fig. 3 b;Wherein as shown in fig. 4 a, the IN0 to IN15 in fault detect memory function module FDS is 16 of PLC respectively One I/O port correspond to input 16 road signals, that is, correspond to 16 fault points signal, DR be in PLC the second I/O port correspond to it is defeated The electrical equipment detection drive signal entered is input to each road signals of IN0 to IN15 of PLC respectively by closing delay operating function Module TOF, logical AND operating function modules A ND, detection rising edge operation function module R_TRIG and storage operating function mould Corresponding status signal F0 to F15 is obtained after block SR, that is, each road signals of IN0 to IN15 for being input to PLC prolong by closing respectively Corresponding status signal F0 to F15 is obtained after operation late, logical AND operation, detection rising edge operation and storage operating function. As shown in Figure 4 b, word function is turned by position totally 16 line state signals switchs to 1 output word state STATE by F0 to F15, while such as Shown in Fig. 4 c, carry-out bit state F_STATE is obtained after F0 to F15 is carried out logic or operation.Host computer passes through Ethernet interface It is that can detect that whether 16 road signal IN0 to IN15 of PLC inputs are failure to read one in PLC output word state STATE Signal.
When the present embodiment above method and system are detected applied to 26 fault points of coal mill main motor 73B04, The fault detect storage program directly invoked by programming software Unity Pro XL inside PLC is as shown in Figure 5 a, wherein adjusting Program is stored with 2 fault detects, respectively FDS_1 and FDS_2, wherein FDS_1 input the signal of 16 fault points, FDS_1 The signal of 10 fault points is inputted, the corresponding 26 kinds of fault messages detected are as shown in Figure 5 b respectively for the signal of 26 fault points, 16 line state signals of middle FDS_1 outputs are stored in the address of PLC as % after being converted into output word state M73B04M1_STATE In MW232,16 line state signals of FDS_2 outputs are converted into being stored in the ground of PLC after output word state M73B04M2_STATE Location is in %MW233, and host computer reads storage address %MW232 and %MW233 in PLC by Ethernet interface and can obtain To 26 line state signals, so as to judge whether corresponding 26 fault points of 26 line state signals break down.
M73B04MF_STATE shown in Fig. 5 a and Fig. 5 b is that 73B04 stores variables associated with failure, and it is defeated to correspond to FDS_1 Go out 16 line state signals and FDS_2 output 10 line state signals carry out logic or operation after as a result, the variable in PLC Storage address be %M500, host computer by read the variable of the storage address determine whether to pop-up fault message display window Mouthful.
The M73B04_RESET as shown in Fig. 5 a and Fig. 5 b is to remove 73B04 to store fault message signal variable, in PLC In storage address be %M664.M7304_ST as illustrated in fig. 5 a is the starting-up signal variable of 73B04, when M7304_ST is Automatically cleared failure stores information when " 1 ".
Configuration software GE iFIX are designed in host computer, increases 73B04 as shown in Figure 5 b in iFIX data management systems and deposits The data block of fault message is stored up, wherein GE iFIX drive the number of the PLC control stations LCS73 where read-write 73B.04 by MBE According to.As shown in Figure 6 a the fault message shown in human-computer interaction interface after word state, nothing are respectively exported by reading PLC for host computer When failure, corresponding malfunction and the aobvious green of word;When in the event of failure, corresponding malfunction and word become red.Such as Fig. 6 b show when 73B04 produce coal mill base bearing temperature break down when, in the failure that host computer human-computer interaction interface is popped up Information display window.In the present embodiment Fig. 6 b correspond to window can be with automatic spring.It is former when clicking the removing in Fig. 6 a or Fig. 6 b When hindering information button, it can make the reset signal of the storage operating function module SR in fault detect memory function module FDS It becomes zero, the 16 line state signals stored in fault detect memory function module FDS can be removed at this time.
It should be noted that the various embodiments described above provide electrical equipment malfunction automatic checkout system in PLC only with The division of above-mentioned each function module carries out for example, in practical applications, can as needed and by above-mentioned function distribution by Different function module is completed, i.e., internal structure is divided into different function modules, with complete it is described above whole or Partial function.
The above embodiment is a preferred embodiment of the present invention, but embodiments of the present invention are not by above-described embodiment Limitation, it is other it is any without departing from the spirit and principles of the present invention made by changes, modifications, substitutions, combinations, simplifications, Equivalent substitute mode is should be, is included within the scope of the present invention.

Claims (10)

1. a kind of electrical equipment malfunction automatic testing method, which is characterized in that steps are as follows:
Step S1, each fault point of electrical equipment is separately connected by each first ports I/O PLC;PLC passes through the 2nd IO simultaneously Port connects electrical equipment and detects driving signal output end;
Program is stored in PLC internal composition fault detects, PLC executes fault detect and stores program, carries out following processing:By each The input results of one I/O port carry out logical AND operation with the input results of the second I/O port respectively, after obtaining each logical AND operation Result;Result after being operated according to each logical AND gets each line state signal;Wherein each I/O port correspondence gets one Line state signal;
Step S2, obtain status signal total way N, N line state signals are divided into it is multigroup, wherein shape in every group of status signal The way of state signal is less than or equal to 16;
Step S3, it is directed to every group of status signal, turning word function by position will wherein corresponding multiple information of multichannel status signal Position state switchs to 1 output word state STATE;
Step S4, host computer reads each output word state STATE of PLC;Host computer is according to the letter in each output word state STATE Breath, whether each line state signal got in each group status signal is fault-signal, to obtain each first I/O port institutes of PLC Whether the electrical equipment malfunction point of connection breaks down.
2. electrical equipment malfunction automatic testing method according to claim 1, which is characterized in that PLC internal faults detect Storage program includes logical AND operating function, detection rising edge operation function and storage operating function;
In the step S1:
It is patrolled first for the input results of the first I/O port and the input results of the second I/O port by logical AND operating function It collects and operates, obtain logical AND operating result;
Then whether detection rising edge operation Function detection current logic occurs saltus step with operating result;If saltus step occurs, produce Raw useful signal, and useful signal is kept to continue in certain time interval T, otherwise generate invalid signals;
Finally storage operating function is when detecting useful signal, then using the useful signal as status signal, and keeps not Become, the reset signal until detecting PLC inputs, then will export invalid signals as status signal;
In the step S4, when status signal is useful signal, then host computer passes through the corresponding output shape that it is converted into The correspondence position of state STATE judges the status signal for fault-signal, determines that PLC corresponds to the electrical equipment that the first I/O port is connected It breaks down fault point.
3. electrical equipment malfunction automatic testing method according to claim 2, which is characterized in that the T is that a PLC is followed The ring period.
4. electrical equipment malfunction automatic testing method according to claim 2, which is characterized in that the PLC internal faults Detection storage program further includes closing delay operating function;
The input results of the second I/O port are by closing after delay operation again by defeated with the first I/O port in the step S1 Enter result and carries out logical AND operation;Wherein it is as follows to carry out the detailed process that closing delay operates for the input results of the second I/O port:
When the input results of the second I/O port export useful signal, detection comes into force, the input results of the second I/O port directly and The input results of first I/O port carry out logical AND operation;
Become invalid signals when the input results of the second I/O port are exported from useful signal, then closes in delay operating function startup Portion time ET, when internal time ET reaches PT values, the input results for generating invalid signals and the first I/O port carry out logical AND Operation;
The logical AND operating function is carried out for the result exported after the input results of the first I/O port and closing delay operation Logical AND operates, and obtains logical AND operating result;
The PT is more than a PLC cycle period.
5. electrical equipment malfunction automatic testing method according to claim 2 or 4, which is characterized in that the useful signal For high level signal, invalid signals are low level signal;Or the useful signal is low level signal, invalid signals are high electricity Ordinary mail number.
6. electrical equipment malfunction automatic testing method according to claim 1, which is characterized in that it is further comprising the steps of, A carry-out bit state F_STATE is obtained after each line state signal in every group of status signal is carried out logic or operation, it will be every Each carry-out bit state F_STATE that group status signal corresponds to carries out logic or operation;
Host computer read PLC in each carry-out bit state F_STATE logics or operation after as a result, according to the output control host computer Man-machine interface pops up fault message display window.
7. a kind of electrical equipment malfunction automatic checkout system, which is characterized in that including PLC and host computer, each the first of the PLC The ports I/O are separately connected each fault point of electrical equipment, the signal sent for receiving each fault point;PLC passes through simultaneously Second I/O port connects electrical equipment and detects driving signal output end, for receiving drive signal;
Include fault detect memory function module FDS inside the PLC, called for PLC for storing fault detect storage program, By store fault detect store program realize by the input results of each first I/O port respectively with the input knot of the second I/O port Fruit carries out logical AND operation, obtains after each logical AND operation as a result, and being got according to the result after the operation of each logical AND Each line state signal;Wherein each I/O port correspondence gets status signal all the way;Total way N for obtaining status signal, And N line state signals are divided into it is multigroup, wherein in every group of status signal status signal way be less than or equal to 16;For needle For every group of status signal, the corresponding multiple information bit states of multichannel status signal therein are switched into 1 output word state STATE;
The host computer connects PLC, each output word state STATE for reading PLC;For according to each output word state Information in STATE, whether each line state signal got in each group status signal is fault-signal, to obtain PLC each Whether the electrical equipment malfunction point that one I/O port is connected breaks down.
8. electrical equipment malfunction automatic checkout system according to claim 7, which is characterized in that the fault detect storage Function module FDS includes:
Logical AND operating function modules A ND, the input results for input results and the second I/O port for the first I/O port Logical AND operation is carried out, logical AND operating result is obtained;
Rising edge operation function module R_TRIG is detected, for detecting whether current logic occurs saltus step with operating result;If hair Raw saltus step, then generate useful signal, and useful signal is kept to continue in certain time interval T, otherwise generates invalid signals;
Store operating function module SR;For when detecting useful signal, then using the useful signal as status signal, and It remains unchanged, the reset signal until detecting PLC inputs then exports invalid signals as status signal;
Status signal grouping module, total way N for obtaining status signal, and N line state signals are divided into multigroup;
Position turns word function module, for being directed to every group of status signal, by the corresponding multiple information of multichannel status signal therein Position state switchs to 1 output word state STATE.
9. electrical equipment malfunction automatic checkout system according to claim 8, which is characterized in that the fault detect storage Function module FDS further includes:
Delay operating function module TOF is closed, carries out closing delay operation for the input results to the second I/O port, specifically For:When the input results of the second I/O port export useful signal, detection comes into force, and closes delay operating function module for direct The input results for exporting the second I/O port, by the input of the input results and the first I/O port of its second I/O port directly exported As a result logical AND operation is carried out;Become invalid signals when the input results of the second I/O port are exported from useful signal, then closes and prolong Slow operating function module starts internal time ET, when internal time ET reaches PT values, generates invalid signals and the first I/O port Input results carry out logical AND operation;
The logical AND operating function modules A ND is directed to the input results of the first I/O port and closes delay operating function module TOF carries out logical AND operation;
The PT is more than a PLC cycle period.
10. electrical equipment malfunction automatic checkout system according to claim 7, which is characterized in that the fault detect is deposited Storing up function module FDS further includes:
First logic or operation module, for being obtained after each line state signal in every group of status signal is carried out logic or operation One carry-out bit state F_STATE;
Further include inside the PLC:
Second logic or operation module, for by the corresponding each carry-out bit state F_STATE of every group of status signal carry out logic or Operation;
The host computer reads the second logic or operation module in PLC and exports as a result, according to the man-machine boundary of output control host computer Pop up fault message display window in face.
CN201810756693.5A 2018-07-11 2018-07-11 Automatic detection method and system for electrical equipment fault Active CN108594051B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810756693.5A CN108594051B (en) 2018-07-11 2018-07-11 Automatic detection method and system for electrical equipment fault

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810756693.5A CN108594051B (en) 2018-07-11 2018-07-11 Automatic detection method and system for electrical equipment fault

Publications (2)

Publication Number Publication Date
CN108594051A true CN108594051A (en) 2018-09-28
CN108594051B CN108594051B (en) 2020-11-10

Family

ID=63615248

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810756693.5A Active CN108594051B (en) 2018-07-11 2018-07-11 Automatic detection method and system for electrical equipment fault

Country Status (1)

Country Link
CN (1) CN108594051B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491368A (en) * 2018-11-30 2019-03-19 邯郸市邯钢集团信达科技有限公司 A method of PLC system input signal failure is diagnosed using counter
CN110471398A (en) * 2019-08-26 2019-11-19 中国自然资源航空物探遥感中心 A kind of airborne geophysical prospecting airborne system fault detection method and device
CN116908751A (en) * 2023-09-13 2023-10-20 合肥安迅精密技术有限公司 Test board for detecting peripheral interfaces of industrial system, detection system and method

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09128015A (en) * 1995-11-02 1997-05-16 Omron Corp Remote i/o system for plc
CN101825876A (en) * 2009-11-30 2010-09-08 浙江大学 Portable fault diagnosis tester applied to petrochemical production device
US20110267070A1 (en) * 2010-04-30 2011-11-03 Schlumberger Technology Corporation Ground Fault Detection For An Electrical Subsea Control System
CN102354162A (en) * 2011-07-22 2012-02-15 江俊逢 Motion control interface and interface controller
CN106508008B (en) * 2007-12-27 2012-03-07 中国航天科技集团公司燎原无线电厂 Multi way temperature chip interface implementation method based on FPGA
CN102375426A (en) * 2010-08-09 2012-03-14 深圳市合信自动化技术有限公司 Controlling apparatus of digital quantity output of PLC and controlling method thereof
CN103885431A (en) * 2014-04-02 2014-06-25 北京石油化工学院 Control system for manufacturing rolled finned tubes
CN203758543U (en) * 2013-12-27 2014-08-06 天津海洋数码科技有限公司 Ship machinery fault detection and alarm device
CN104227502A (en) * 2014-08-12 2014-12-24 东莞市润星机械科技有限公司 Temperature controller with intelligent three-phase power phase sequence detection and judgment function
CN204314679U (en) * 2014-12-19 2015-05-06 芜湖国睿兆伏电子有限公司 A kind of fault routing inspection circuit exported for many power sources in parallel
CN104863545A (en) * 2015-05-21 2015-08-26 大庆天鸿电热器材有限公司 Paraffin removal and viscosity reduction device for oil well
CN105446313A (en) * 2015-09-16 2016-03-30 华锐风电科技(集团)股份有限公司 Detection method of PLC and IO module
CN107632575A (en) * 2017-10-25 2018-01-26 中国恩菲工程技术有限公司 Intelligent operation post

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09128015A (en) * 1995-11-02 1997-05-16 Omron Corp Remote i/o system for plc
CN106508008B (en) * 2007-12-27 2012-03-07 中国航天科技集团公司燎原无线电厂 Multi way temperature chip interface implementation method based on FPGA
CN101825876A (en) * 2009-11-30 2010-09-08 浙江大学 Portable fault diagnosis tester applied to petrochemical production device
US20110267070A1 (en) * 2010-04-30 2011-11-03 Schlumberger Technology Corporation Ground Fault Detection For An Electrical Subsea Control System
CN102375426A (en) * 2010-08-09 2012-03-14 深圳市合信自动化技术有限公司 Controlling apparatus of digital quantity output of PLC and controlling method thereof
CN102354162A (en) * 2011-07-22 2012-02-15 江俊逢 Motion control interface and interface controller
CN203758543U (en) * 2013-12-27 2014-08-06 天津海洋数码科技有限公司 Ship machinery fault detection and alarm device
CN103885431A (en) * 2014-04-02 2014-06-25 北京石油化工学院 Control system for manufacturing rolled finned tubes
CN104227502A (en) * 2014-08-12 2014-12-24 东莞市润星机械科技有限公司 Temperature controller with intelligent three-phase power phase sequence detection and judgment function
CN204314679U (en) * 2014-12-19 2015-05-06 芜湖国睿兆伏电子有限公司 A kind of fault routing inspection circuit exported for many power sources in parallel
CN104863545A (en) * 2015-05-21 2015-08-26 大庆天鸿电热器材有限公司 Paraffin removal and viscosity reduction device for oil well
CN105446313A (en) * 2015-09-16 2016-03-30 华锐风电科技(集团)股份有限公司 Detection method of PLC and IO module
CN107632575A (en) * 2017-10-25 2018-01-26 中国恩菲工程技术有限公司 Intelligent operation post

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
游亚陆,孟婥,孙志军,李培兴: "《基于PLC的裤袜自动包装机实时故障检测与处理》", 《包装工程》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491368A (en) * 2018-11-30 2019-03-19 邯郸市邯钢集团信达科技有限公司 A method of PLC system input signal failure is diagnosed using counter
CN109491368B (en) * 2018-11-30 2021-09-24 邯郸市邯钢集团信达科技有限公司 Method for diagnosing PLC system input signal fault by using counter
CN110471398A (en) * 2019-08-26 2019-11-19 中国自然资源航空物探遥感中心 A kind of airborne geophysical prospecting airborne system fault detection method and device
CN116908751A (en) * 2023-09-13 2023-10-20 合肥安迅精密技术有限公司 Test board for detecting peripheral interfaces of industrial system, detection system and method
CN116908751B (en) * 2023-09-13 2024-04-19 合肥安迅精密技术有限公司 Test board for detecting peripheral interfaces of industrial system, detection system and method

Also Published As

Publication number Publication date
CN108594051B (en) 2020-11-10

Similar Documents

Publication Publication Date Title
CN108594051A (en) A kind of electrical equipment malfunction automatic testing method and system
CN107544462B (en) For diagnosing the method and system of the failure of wind power generating set
JP3116322B2 (en) Defect diagnosis device
CN105225049B (en) High-expandability fault diagnosis expert system
CN104596780B (en) Diagnosis method for sensor faults of motor train unit braking system
CN103259686A (en) CAN bus network fault diagnosis method based on disperse error events
CN101778007B (en) System and method for automatically testing I/O pin of CAN bus control module
CN105974232B (en) A kind of electric network failure diagnosis method suitable for grid
CN106292633A (en) A kind of digital output passage self-checking system based on FPGA and method
CN105760253B (en) A kind of software implementation method of electronic throttle chip secure monitoring
CN104657244A (en) Embedded device CPU (Central Processing Unit) bus fault injection test system and test method
CN102708052A (en) Automatic positioning method of software failures in unit test
CN107247827A (en) Empty terminal model modeling and automatic connecting method based on machine learning
CN105301490B (en) Hall switch signal acquisition circuit with fault detection capability
CN113536658B (en) Electromechanical equipment lightweight fault diagnosis method based on STM32 embedded processor
CN105116869B (en) Large-scale maintenance machinery electrical malfunction real-time monitoring diagnostic method
CN111953657B (en) Sequence-data joint driven CPS network attack identification method for power distribution network
CN109523030A (en) A kind of telemetry parameter exception monitoring system based on machine learning
CN107092247A (en) A kind of packaging production line method for diagnosing faults based on status data
CN106556517A (en) Multifunction electro-controlled explosive motor trouble-shooter
CN103744752B (en) A kind of online fault detection method of internal memory and device
CN109164311A (en) Fault detection method and device, electronic equipment
Cohen et al. Utilizing timed petri nets to guide data-driven fault diagnosis of PLC-timed event systems
CN2874577Y (en) Accident sequence recorder
CN107908132A (en) A kind of device and method merged for autodiagnosis link sensor with ordinary sensors signal

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