Disclosure of Invention
Aiming at the defects of the prior art, the technical problems to be solved by the invention are as follows: a board signal change travel time detection apparatus and method are provided.
1. The signal change condition of the single board can be monitored in real time, the action performance of various working modes from a few seconds to a dozen hours can be checked, and the signal can be automatically latched, so that the signal change is judged when, and the problems are analyzed in time.
2. The equipment can also test a plurality of sets of single plates simultaneously, and the test efficiency of the single plates is improved.
In order to solve the technical problems, the invention adopts the following technical scheme:
a single-board signal change travel time detection device comprises a device body and an industrial personal computer, wherein a power supply module, a single-board control gating module and a signal acquisition module are arranged in the device body;
the single-board control gating module comprises a master gating relay, L groups of switching units and L single-board sockets, wherein the master gating relay is provided with N groups of gating end groups, each group of gating end groups is provided with a common end, a normally-open end and a normally-closed end, the common ends of the N groups of gating end groups are correspondingly connected with N output voltage end groups of the power supply module, the normally-open ends or the normally-closed ends of the N groups of gating end groups are correspondingly connected with N voltage input ends of each group of switching units, and a communication end group of the master gating relay is connected with a gating control end group of the industrial personal computer;
the L voltage output ends of the L groups of switching units are correspondingly connected with the input end groups of the L single board sockets, and the L single board sockets are used for being plugged with the working input end groups of the L single boards to be tested;
the signal acquisition module is provided with L groups of acquisition ports for inserting signal output end groups of L single plates to be detected, the L groups of acquisition ports are connected with an acquisition end group of an AD acquisition unit, and the output end group of the AD acquisition unit is connected with a receiving end group of an industrial personal computer; l and N are both natural numbers more than or equal to 1;
the power supply module is used for providing working voltages of the single board control gating module and the signal acquisition module.
A method for detecting the time of a single board signal change comprises the following steps:
after L single boards to be tested are correspondingly inserted into the single board sockets and the acquisition ports, starting detection equipment, and enabling the single boards to control the gating module, the signal acquisition module and the industrial personal computer to establish communication;
the industrial personal computer sends a control instruction to the master gating relay according to the detection mode and starts timing;
the master gating relay gates N groups of gating end groups according to the control instruction so that the single board to be tested operates according to the detection mode;
the signal acquisition module acquires an output signal of the veneer to be detected and sends the output signal to the industrial personal computer;
the industrial personal computer analyzes whether the single board to be detected corresponding to the detection mode is qualified or not according to the output signal and the timing condition;
and repeating the test until each detection mode is tested at least once, and completing the detection.
The working principle of the scheme is as follows:
firstly, a single board to be detected, which needs to be detected, is inserted into a single board socket and an acquisition port, detection equipment is started, the single board control gating module and the signal acquisition module are communicated with an industrial personal computer respectively, and program initialization is carried out after the industrial personal computer is communicated;
after initialization is completed, the industrial personal computer selects a detection mode, the detection mode comprises preset running time of a single board to be detected and a standard value of normal working voltage, a corresponding detection instruction is sent to the master gating relay, meanwhile, the industrial personal computer starts timing according to running time preset by the selected detection mode, after the master gating relay receives the detection instruction, two groups of corresponding gating end groups are gated according to the selected detection mode, then a common end of the master gating relay receives voltage input by a voltage input end group corresponding to the power supply module, the voltage is transmitted into the switching unit from a common end of the master gating relay through a normally open end (or a normally closed end), the switching unit transmits the received voltage into the single board to be detected through a single board socket, and the single board to be detected executes the corresponding working mode according to the two groups of received voltage values;
when a voltage signal appears on the single board to be tested, the single board to be tested transmits the voltage signal into the acquisition port through the signal output end group, the acquisition port transmits the voltage signal into the AD acquisition unit, the AD acquisition unit processes the voltage signal into a high-level signal, the high-level signal is transmitted into the industrial personal computer through the output end group, and the industrial personal computer stops timing and records time after receiving the high-level signal, and compares the recorded time with preset time;
if the recording time is not within the preset time deviation value, the timing condition of the single board to be detected in the detection mode is unqualified;
if the recording time is within the preset time deviation value, the timing condition of the single board to be detected in the current detection mode is qualified
The industrial personal computer further judges whether the voltage value of the output signal of the group of the acquisition ports is equal to a standard value,
if the voltage value of the output signal is not equal to the standard value, the output signal of the single board to be detected in the current detection mode is unqualified;
if the voltage value of the output signal is equal to the standard value, the output signal of the single board to be detected in the current detection mode is qualified;
if the output signal and the timing condition are both qualified, the single board to be detected is qualified in the current detection mode, otherwise, the single board to be detected is unqualified.
After all the veneers to be detected are detected in the current detection mode, the industrial personal computer sends a reset instruction to the master gating relay, and the detection at this stage is finished;
and the industrial personal computer selects the rest detection modes, repeats the detection process, and can classify the qualified single boards and the unqualified single boards after all the detection modes are finished.
The beneficial effect of this scheme:
1. the device can monitor the signal change condition of the single board in real time, can detect from several seconds to ten hours in working mode, and can automatically latch signals, thereby judging when the signal change occurs, analyzing the problems occurring in time, comparing with the traditional manual monitoring detection timing, and greatly improving the detection accuracy.
2. The equipment can test a plurality of sets of single boards simultaneously, and the detection efficiency of the single boards to be detected is improved.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
As shown in fig. 1, a single-board signal change travel time detection device comprises a device body 1 and an industrial personal computer 2, wherein a power supply module, a single-board control gating module and a signal acquisition module are arranged in the device body 1;
as shown in fig. 2, the single-board control gating module includes a total gating relay, L groups of switching units, and L single-board sockets, the total gating relay is provided with N groups of gating end groups, each group of gating end groups is provided with a common end, a normally open end, and a normally closed end, the common end of the N groups of gating end groups is correspondingly connected with N output voltage end groups of the power supply module, the normally open end or the normally closed end of the N groups of gating end groups is correspondingly connected with N voltage input ends of each group of switching units, and a communication end group of the total gating relay is connected with a gating control end group of the industrial personal computer 2;
the L voltage output ends of the L groups of switching units are correspondingly connected with the input end groups of the L single board sockets, and the L single board sockets are used for being plugged with the working input end groups of the L single boards to be tested;
as shown in fig. 2 and 3, the signal acquisition module is provided with L groups of acquisition ports for plugging signal output end groups of L single boards to be tested, the L groups of acquisition ports are connected with an acquisition end group of an AD acquisition unit, and an output end group of the AD acquisition unit is connected with a receiving end group of the industrial personal computer 2; l and N are both natural numbers more than or equal to 1;
the power supply module is used for providing working voltage for the single board control gating module and the signal acquisition module.
The total gating controller is an YAV16J 16-path relay controller;
the AD acquisition unit is YAV16 AD;
as shown in fig. 7, the power supply module adopts two power supply modes, namely battery power supply and linear power supply: the voltage of 9V and 5V is supplied by a battery, and the voltage of 24V and the industrial personal computer 2 are supplied by a linear power supply;
as shown in fig. 2, N groups of gating end groups of the master gating controller are preferably 4 groups of relay end groups, which correspond to the relay end groups No. 1, No. 2, No. 3 and No. 4, respectively, and the common ends of the 4 groups of relays are connected with voltages of 5V, 0V, 9V and 0V, respectively;
as shown in fig. 4, the switching unit is mainly used for debugging a single board, and short-circuiting is performed after debugging is completed. Wherein + G, + D, J5-13, J10-13 are controlled by 16 control relay modules, can realize the change of high-low level respectively. Respectively changing + D to 0V, + G to 9V, J5-13 to 0V, and J10-13 to 5V;
the circuit is shown in fig. 5, and the L single board sockets correspond to and preferably 8 44-core sockets, and are used for directly plugging and unplugging a product single board. The purpose is to control 6 logic combinations of products and implement different single board working modes. At present, the product is provided with 6 working modes. (any setting can be adjusted);
the working principle of the scheme is as follows:
firstly, a single board to be detected, which needs to be detected, is inserted into a single board socket and an acquisition port, detection equipment is started, the single board control gating module and the signal acquisition module are communicated with the industrial personal computer 2 respectively, and program initialization is carried out after the industrial personal computer 2 is communicated;
after initialization is completed, the industrial personal computer 2 selects a detection mode and sends a corresponding detection instruction to the master gating relay, the detection mode comprises preset running time of the single board to be detected and a standard value of normal working voltage, after the master gating relay receives the detection instruction, the two groups of gating end groups corresponding to the selected detection mode are gated, then the common end of the master gating relay receives the voltage input by the voltage input end group corresponding to the power supply module, the voltage is transmitted into the switching unit from the common end of the master gating relay through the normally open end (or the normally closed end), the switching unit transmits the received voltage into the single board to be detected through the single board socket, and the single board to be detected executes the corresponding working mode (namely running time preset by the running detection mode) according to the two groups of received voltage values;
when a voltage signal appears on a single board to be detected, the single board to be detected transmits the voltage signal into an acquisition port through a signal output end group, the acquisition port transmits the voltage signal into an AD acquisition unit, the AD acquisition unit processes the voltage signal into a high-level signal, the high-level signal is transmitted into an industrial personal computer 2 through an output end group, the industrial personal computer 2 stops timing and records time after receiving the high-level signal, and compares the recorded time with preset time (the preset time has a deviation value, for example, a detection mode 1, the preset time is 2.1 +/-0.5 min, the time of the first detection is 2 '08', the time of the second detection is 2 '08', the two detection times are within the deviation value, so the single board to be detected is qualified in the detection mode 1.)
If the recording time is not within the preset time deviation value, the timing condition of the single board to be detected in the detection mode is unqualified;
if the recording time is within the preset time deviation value, the timing condition of the single board to be detected in the current detection mode is qualified
The industrial personal computer further judges whether the voltage value of the output signal of the group of the acquisition ports is equal to a standard value,
if the voltage value of the output signal is not equal to the standard value, the output signal of the single board to be detected in the current detection mode is unqualified;
if the voltage value of the output signal is equal to the standard value, the output signal of the single board to be detected in the current detection mode is qualified;
if the output signal and the timing condition are both qualified, the single board to be detected is qualified in the current detection mode, otherwise, the single board to be detected is unqualified.
After all the veneers to be detected are detected in the current detection mode, the industrial personal computer 2 sends a reset instruction to the master gating relay, and the detection at this stage is finished;
the industrial personal computer 2 selects the rest detection modes, repeats the detection process, and can classify the qualified single boards and the unqualified single boards after all the detection modes are completed.
The beneficial effect of this scheme:
1. the device can monitor the signal change condition of the single board in real time, can detect from several seconds to ten hours in working mode, and can automatically latch signals, thereby judging when the signal change occurs, analyzing the problems occurring in time, comparing with the traditional manual monitoring detection timing, and greatly improving the detection accuracy.
2. The equipment can test a plurality of sets of single boards simultaneously, and the detection efficiency of the single boards to be detected is improved; each single board to be tested in the scheme can also be independently detected and judged.
Wherein, the surface of equipment body 1 is provided with touch-control industrial computer 2, and touch-control industrial computer 2 corresponds with gating relay and AD acquisition unit respectively and is connected.
In this embodiment, touch-control industrial computer 2 is convenient for the staff to operate check out test set, and makes things convenient for the staff to carry out the observation of signal change and the record of time to the veneer that awaits measuring in real time.
The signal acquisition module further comprises a signal isolation unit, and the signal isolation unit is used for controlling the conduction of the corresponding acquisition port and the acquisition end group of the AD acquisition unit according to the signal of the acquisition port.
In the scheme, the signal isolation unit is an isolation gating relay, an output end group of the acquisition port is respectively connected with a corresponding enabling end and a corresponding public end of the isolation gating relay, and a normally open end (or a normally closed end) of the isolation gating relay is connected with an acquisition end group of the AD acquisition unit;
when a voltage signal of a single board to be tested is input into the isolation gating relay from the acquisition port, the corresponding enabling end of the isolation gating relay is activated, then the corresponding enabling end of the isolation gating relay controls the corresponding public end of the isolation gating relay to be communicated with the corresponding normally open end (or the corresponding normally closed end), the voltage signal is transmitted to the corresponding normally open end (or the corresponding normally closed end) from the corresponding public end of the isolation gating relay, and the voltage signal is transmitted into the AD acquisition unit through the acquisition end group of the AD acquisition unit (namely, the signal isolation transmission process of the voltage signal is that the acquisition port output end-the isolation gating relay public end-the isolation gating relay normally open end (or the normally closed end) -the AD acquisition end group.
In this embodiment:
the isolation gating relay adopts an 8-path 24V gating relay, and the enabling end is IN1-IN 8;
the scheme has the advantages that:
the output voltage signal is isolated by the isolation gating relay, and the industrial personal computer 2, the AD module and the relay control module are all power supply modules (namely AC/DC modules) for providing power supply; the signal isolation unit is arranged, so that power supply ripple interference and signals of the AD acquisition module can be prevented from being possibly fed back to the single board to be tested, the single board to be tested is prevented from outputting voltage signals due to the interference, and the testing precision of the single board to be tested is improved.
The main gating relay is further provided with K groups of self-checking gating end groups, each group of self-checking gating end groups are provided with a public end, a normally-open end and a normally-closed end, the public ends of the K groups of self-checking gating end groups are correspondingly connected with K output voltage end groups of the power supply module, and the normally-open ends or the normally-closed ends of the K groups of self-checking gating end groups are correspondingly connected with K acquisition ends of the AD acquisition unit.
In this embodiment:
the total gating controller is a relay controller with YAV16J16 paths, wherein the total relay controller comprises 16 groups of relay end groups, and except that the 4 groups of relay end groups are used for single board testing, 3 groups of the rest relay end groups are used for self-checking, namely the K groups of gating end groups are corresponding to the No. 5, No. 6 and No. 7 relay end groups.
The working principle of the scheme is as follows:
after the detection equipment is started, the output voltage end group of the power supply module inputs a self-detection voltage signal to the common end of the self-detection gating end group of the master gating relay, then the self-detection voltage signal is transmitted to the normally open end or the normally closed end of the self-detection gating end group through the common end of the self-detection gating end group, and finally transmitted to the AD acquisition unit, and the AD acquisition unit processes the self-detection voltage signal and transmits the self-detection voltage signal to the industrial personal computer 2;
the program of the industrial personal computer 2 analyzes whether the self-checking voltage signal is normal, if the program is normal, the standby mode is carried out, and the self-checking gating end group is disconnected; if the program is abnormal, the system reports an error.
The beneficial effect of this scheme:
before detecting the single board to be detected, self-checking is carried out, so that the influence on the detection of the single board to be detected is prevented, and the detection precision is improved.
As shown in fig. 8, a method for detecting a change in a single board signal by time-varying includes the following steps:
after L single boards to be tested are correspondingly inserted into the single board sockets and the acquisition ports, starting detection equipment, and enabling the single boards to control the gating module, the signal acquisition module and the industrial personal computer to establish communication;
the industrial personal computer sends a control instruction to the master gating relay according to the detection mode and starts timing;
the master gating relay gates N groups of gating end groups according to the control instruction so that the single board to be tested operates according to the detection mode;
the signal acquisition module acquires an output signal of the veneer to be detected and sends the output signal to the industrial personal computer;
the industrial personal computer analyzes whether the single board to be detected corresponding to the detection mode is qualified or not according to the output signal and the timing condition;
and repeating the test until each detection mode is tested at least once, and completing the detection.
The industrial personal computer sends a control instruction to the master gating relay according to the detection mode, and before the step of starting timing, the method further comprises a self-checking step:
the industrial personal computer sends a self-checking instruction to the master gating relay;
the master gating relay controls the common end of the K groups of self-checking gating end groups to be conducted with K acquisition ends of the AD acquisition unit;
the AD acquisition unit acquires an acquisition signal and sends the acquisition signal to the industrial personal computer;
and the industrial personal computer analyzes whether the master gating relay is normal or not according to the acquired signal.
The industrial personal computer analyzes whether the working condition of the master gating relay is normal according to the collected signals, and the method comprises the following steps of:
whether all of the K acquisition signals are high level signals,
if the K collected signals are all high-level signals, the working condition of the total gating relay is normal;
and if at least one of the K collected signals is not a high-level signal, the working condition of the total gating relay is abnormal.
The step of analyzing whether the veneer to be detected corresponding to the detection mode is qualified or not by the industrial personal computer according to the output signal and the timing condition comprises the following steps:
when the industrial personal computer receives that the output signals correspondingly acquired by any group of acquisition ports are at a high level, the industrial personal computer stops timing the group of acquisition ports;
the industrial personal computer judges whether the timing duration of the group of acquisition ports is equal to a threshold value (the threshold value is equal to the timing duration within the range of the threshold value, the threshold value is a preset time value)
If the timing duration of the group of acquisition ports is not equal to the threshold, the timing condition of the single board to be detected corresponding to the group of acquisition ports in the current detection mode is unqualified;
if the timing duration of the group of acquisition ports is equal to the threshold, the timing condition of the single board to be detected corresponding to the group of acquisition ports in the current detection mode is qualified;
the industrial personal computer further analyzes and judges the voltage value of the output signal of the group of acquisition ports,
if the voltage value of the output signal of the group of acquisition ports is not equal to the standard value, the output signal of the single board to be detected in the current detection mode corresponding to the group of acquisition ports is unqualified;
if the voltage value of the output signal of the group of acquisition ports is equal to the standard value, the output signal of the single board to be detected corresponding to the group of acquisition ports in the current detection mode is qualified;
if the output signal and the timing condition are both qualified, the single board to be detected corresponding to the group of acquisition ports is detected to be qualified in the current detection mode, otherwise, the single board to be detected is not qualified.
The detection steps of the following detection method are shown in fig. 8:
s01: correspondingly inserting the single board to be detected on the single board socket and the acquisition port, and starting detection equipment;
s02: the industrial personal computer controls the master gating relay and the AD acquisition unit to communicate and carry out self-checking;
s03: the industrial personal computer selects a detection mode, sends a corresponding control instruction to the master gating relay and starts timing;
s04: the master gating relay gates any two groups of gating end groups in the N groups of gating end groups according to the control instruction so that the single board to be tested operates according to the corresponding detection mode;
s05: the single board to be detected sends an output signal generated when the single board operates in the corresponding detection mode to the industrial personal computer after being processed by the AD acquisition unit, and the industrial personal computer judges whether to stop timing and records according to the output signal;
s06: the industrial personal computer analyzes whether the single board to be detected corresponding to the detection mode is qualified or not according to the output signal and the timing condition;
s07: and (4) repeatedly testing until each detection mode of the single board to be tested is tested at least once, and screening out qualified and unqualified single boards after the detection is finished.
The self-test method of step S02 may include, as shown in fig. 9: s021: the industrial personal computer sends a self-checking instruction to the master gating relay;
s022: the power supply module transmits the corresponding voltage signals to the normally-open ends of the three groups of relays of the master gating controller and then transmits the corresponding voltage signals to the common end;
s023: the master gating relay controls the common ends of the three groups of relays to be conducted with the acquisition end of the AD acquisition unit, and transmits the voltage signal to the AD acquisition unit;
s024: the AD acquisition unit processes the voltage signal and sends the voltage signal to the industrial personal computer;
s025: the industrial personal computer analyzes whether the master gating relay is normal according to the received signal.
As shown in fig. 10, S0251: analyzing the received signal;
if the signals are all high level signals, executing S0252, otherwise executing S0253;
s0252: the working condition of the master gating relay is normal, the program belongs to a standby mode, and three groups of relays of the master control relay are disconnected;
s0253: and if the working condition of the master gating relay is abnormal, debugging is required to be carried out again.
As shown in fig. 11, S051: the single board to be detected processes an output signal generated when the single board operates in the corresponding detection mode through the AD acquisition unit;
s052: the AD acquisition unit converts the output signal into a double-precision floating point number, and the output signal is compared and analyzed with a preset value (0.5 in the embodiment) by the industrial personal computer;
the predetermined value is determined only according to the voltage to be applied, and is used as a basis for determining that the output signal triggers the stop of timing, and in the embodiment, the timing is set to stop when the predetermined value is greater than 0.5. (the predetermined value of the voltage signal can be adjusted as required, since the predetermined value of 0.5 is the threshold value for triggering the stop of the timing).
If the output signal is greater than the preset value, executing S053, otherwise executing S054;
s053: the industrial personal computer sends a command to stop the operation of the single board to be tested, and simultaneously stops timing and stores current data;
s054: the industrial personal computer sends a command to enable the single board to be tested to continue to operate, and if a next output signal appears, S051 is executed; otherwise, executing S055;
s055: after the single board to be tested runs in the mode to be tested, the industrial personal computer stops timing and stores the current data;
as shown in fig. 12, S061: the industrial personal computer analyzes and judges the timing duration, if the timing duration is out of the threshold range, S062 is executed, and if the timing duration is in the threshold range, S063 is executed;
the threshold value is a preset time value;
s062: if the timing duration of the group of acquisition ports is out of the threshold range, the timing condition of the single board to be detected corresponding to the group of acquisition ports in the current detection mode is unqualified;
s063: if the timing duration of the group of acquisition ports is within the threshold range, the timing condition of the single board to be detected corresponding to the group of acquisition ports in the current detection mode is qualified;
s064: the industrial personal computer further analyzes and judges the voltage value of the output signal of the group of acquisition ports;
when the voltage value of the output signal is higher than the standard value, the timing stop is triggered, but the voltage value of the output signal does not necessarily satisfy the standard value, so that the voltage value of the output signal needs to be further compared with the standard value (for example, in the detection mode 1, the standard value is 5V, the voltage value of the output signal detected for the first time is 5V, the voltage value of the output signal detected for the second time is also 5V, the voltage values of the output signals detected for the two times are both equal to the standard value, so that the output signal is qualified in the detection mode 1.)
S065: if the voltage value of the output signal of the group of acquisition ports is not equal to the standard value, the output signal of the single board to be detected in the current detection mode corresponding to the group of acquisition ports is unqualified;
s066: if the voltage value of the output signal of the group of acquisition ports is equal to the standard value, the single board to be detected corresponding to the group of acquisition ports is qualified in the current detection mode;
wherein, comprises
And in the detection mode, every two groups of gating end groups in the N groups of gating end groups corresponding to the total gating relay form a detection mode of the single board to be detected.
The step of gating N groups of gating end groups by the total gating relay according to the control instruction so that the single board to be tested operates according to the detection mode comprises the following steps:
and the master gating relay gates any two groups of gating end groups in the N groups of gating end groups according to the control instruction so that the single board to be detected operates according to the corresponding detection mode.
In this embodiment, the N groups of gating end groups of the master gating controller correspond to relays No. 1, No. 2, No. 3, and No. 4, and thus include
A seed detection mode;
taking one of the detection modes as an example:
when the system is normally self-checked, a detection mode 1 is selected, a computer sends a command to a relay control board to control the relay No. 1 to be closed and the relay No. 3 to be closed (different modes respectively), after the relay No. 1 and the relay No. 3 are closed, J10-13 and + G are respectively 5V and 9V, J10-13 respectively transmit signals to 20 pins (respectively J10-1 to J10-8) of P1-P8 through a circuit, and + G signals respectively transmit signals to 2 pins (respectively + G1 to + G8) of P1-P8 through a circuit, and when P1-P8 receive the control signals, a tested product starts to work;
the other detection modes are only different in commands sent by the industrial personal computer to the master control relay, different combinations are mainly carried out according to requirements for controlling J10-13, J5-13, + G and + D, corresponding signals are 5V, gnd and 9V, gnd respectively, then the signals are transmitted to each single board to be tested respectively through a circuit, a plurality of mode tests can be carried out according to different combination modes, and only 6 detection modes are set in the scheme.
The specific detection results are as follows:
the preset time and the standard value can be set arbitrarily on a program interface, and the normal state is determined as long as the timing is stopped within the set requirement.
The above is only a preferred embodiment of the present invention, and it should be noted that several modifications and improvements made by those skilled in the art without departing from the technical solution should also be considered as falling within the scope of the claims.