Summary of the invention
For the defective that exists in the above-mentioned prior art, technical matters to be solved by this invention provides and a kind ofly can initiatively apply interference when the FA system performance testing, so that the FA system can obtain all round properties test before practical application, thereby improve the active interference proving installation of the FA system of FA system Reliability of Microprocessor in actual applications.
In order to solve the problems of the technologies described above, a kind of active interference proving installation for the FA system provided by the present invention is characterized in that: comprise that single-chip microcomputer, Communication Jamming loop, switch disturb the loop;
Described single-chip microcomputer is provided with eight communication part control ends, and is provided with a switch state signal input end, a switch state signal output terminal;
Described Communication Jamming loop comprises communication port input component, communication port output, switching array;
Described switching array is made of eight transfer relays, and described transfer relay has a moving contact, a stationary contact;
Described communication port input component, communication port output respectively have eight end pin, and eight end pin of described communication port input component are received respectively the moving contact of eight transfer relays, and eight end pin of described communication port output are received respectively the stationary contact of eight transfer relays;
Eight communication part control ends of described single-chip microcomputer are received respectively the control end of eight transfer relays;
Described switch disturbs the loop to comprise on off state input component, on off state output, and two electric level conversion modulars, and described two electric level conversion modulars are respectively the first electric level conversion modular, second electrical level conversion module;
Described on off state input component is received the switch state signal input end of single-chip microcomputer through the first electric level conversion modular;
The switch state signal output terminal of described single-chip microcomputer is received the on off state output through the second electrical level conversion module.
Further, described communication port input component, communication port output are the Ethernet web member, or are the serial communication web member.
The active interference proving installation of FA provided by the invention system, can when the FA system performance testing, utilize Single-chip Controlling Communication Jamming loop and switch to disturb the loop, initiatively apply interference to the FA system, with various possible disturbance regimes after the simulation practical application, so that the FA system can obtain all round properties test before practical application, thereby improve FA system Reliability of Microprocessor in actual applications.
Embodiment
Below in conjunction with description of drawings embodiments of the invention are described in further detail, but present embodiment is not limited to the present invention, every employing analog structure of the present invention and similar variation thereof all should be listed protection scope of the present invention in.
As shown in Figure 1, a kind of active interference proving installation for the FA system that the embodiment of the invention provides is characterized in that: comprise that single-chip microcomputer U1, Communication Jamming loop, switch disturb the loop;
Described single-chip microcomputer U1 is provided with eight communication part control ends, and is provided with a switch state signal input end, a switch state signal output terminal;
Described Communication Jamming loop comprises communication port input component J1, communication port output J2, switching array U2;
Described switching array U2 is made of eight transfer relays, and described transfer relay has a moving contact, a stationary contact;
Described communication port input component J1, communication port output J2 respectively have eight end pin, eight end pin of described communication port input component J1 are received respectively the moving contact of eight transfer relays, and eight end pin of described communication port output J2 are received respectively the stationary contact of eight transfer relays;
Eight communication part control ends of described single-chip microcomputer U1 are received respectively the control end of eight transfer relays;
Described switch disturbs the loop to comprise on off state input component J3, on off state output J4, and two electric level conversion modulars, and described two electric level conversion modulars are respectively the first electric level conversion modular U31, second electrical level conversion module U32;
Described on off state input component J3 receives the switch state signal input end of single-chip microcomputer U1 through the first electric level conversion modular U31;
The switch state signal output terminal of described single-chip microcomputer U1 is received on off state output J4 through second electrical level conversion module U32.
In the embodiment of the invention, what described single-chip microcomputer adopted is that model is the micro-chip processor of STM32F103, described electric level conversion modular is prior art, the first electric level conversion modular wherein is used for the voltage transitions of switch state signal that the switch state signal input end is inputted to the voltage that is applicable to single-chip microcomputer work, and the second electrical level conversion module is used for the voltage transitions of the switch state signal of single-chip microcomputer output consistent to the voltage of the switch state signal of inputting with the switch state signal input end.
In the embodiment of the invention, described communication port input component, communication port output are the Ethernet web member, or are the serial communication web member.
In the embodiment of the invention, described single-chip microcomputer U1 is provided with man-machine interface, and the man-machine interface of single-chip microcomputer U1 is connected to input equipment D1, and the input equipment D1 in the present embodiment is touch-screen.
The embodiment of the invention cooperates relay-protection tester to use, or cooperates the feeder automation tester to use, and passes through to produce when the sequential relationship simulated failure occurs the situation of undesired signal during use, the reliability of testing the FA action.
The concrete using method of the embodiment of the invention is as follows:
Utilize communication port input component and communication port output, the Communication Jamming loop is connected in series communication line to be measured in the FA system;
Utilize on off state input component and on off state output, disturb the loop to be connected in series measured switch status signal transmission circuit in the FA system on switch;
Before beginning test, input the disturbed test data by input equipment to single-chip microcomputer first, described disturbed test data comprise that interference applies type, disturbs application time;
During test, single-chip microcomputer sends undesired signal according to the disturbed test data in good time, tests the acting characteristic of FA system under this undesired signal;
When not loading undesired signal, the output corresponding control signal of single-chip microcomputer, so that the sound closing of contact of eight transfer relays, this moment, communication port input component and communication port output were interconnected, communication line to be measured is in normal communication state;
When loading the Communication Jamming signal, the output corresponding control signal of single-chip microcomputer, so that open the sound contact of eight transfer relays, or the time close when opening, thereby realize to communication line output to be measured cut-off, the undesired signal such as shake, come the communication abnormality situations such as analogue communication is interrupted, communication error code, when opened the sound contact of eight transfer relays, the electric wiring between communication port input component and the communication port output opened circuit;
During loaded switches state undesired signal, after single-chip microcomputer receives the switch state signal of on off state input component input, not coming the situation of analog switch tripping to the mode of on off state output output switch status signal, or to come the lumbering situation of analog switch to the mode of on off state output time-delay output switch status signal.