Summary of the invention
Third party device can be simulated it is an object of the present invention to provide one kind and Devices to test carries out signal interaction
Interactive signal test device.
According to the first aspect of the invention, a kind of interactive signal test device, including Logic control module, first are provided
Photoelectrical coupler, the second photoelectrical coupler, input terminal and output end, the input terminal through first photoelectrical coupler with it is described
The input pin of Logic control module connects, and the output pin of the Logic control module is through second photoelectrical coupler and institute
Output end connection is stated, the Logic control module is arranged to carry out the first logic to the first signal that the input pin inputs
Operation obtains second signal, and the second signal is exported to the output pin.
Optionally, the Logic control module is provided by a programmable logic controller (PLC).
Optionally, the first positive input pin of first photoelectrical coupler is connect with the input terminal, and described first
First negative input pin of photoelectrical coupler is connect with power end, the first positive output pin of first photoelectrical coupler and institute
The input pin connection of Logic control module is stated, the first negative output pin of first photoelectrical coupler is connect with ground terminal;
Second positive input pin of second photoelectrical coupler is connect with the output pin of the Logic control module, second light
Second negative input pin of electric coupler is connect with the power end, the second positive output pin of second photoelectrical coupler with
The output end connection, the second negative output pin of second photoelectrical coupler are connect with the ground terminal.
Optionally, the interactive signal test device further includes input module, and the input module is arranged to receive
The control instruction of user's input, the control instruction are used to control the logical operation mode of the Logic control module.
Optionally, the interactive signal test device further includes display module, and the display module is arranged to show
The logical operation mode.
Optionally, the input module and the display module are provided by a touching display screen.
Optionally, the interactive signal test device further includes the 4th photoelectrical coupler and another output end, described to patrol
Another output pin for collecting control module is connect through the 4th photoelectrical coupler with another output end;The logic control
Module is also configured to carry out the second logical operation to the first signal that the input pin inputs to obtain fourth signal, and by institute
Fourth signal is stated to export to another output pin.
Optionally, the 4th positive input pin of the 4th photoelectrical coupler and the Logic control module is another defeated
Pin connects out, and the 4th negative input pin of the 4th photoelectrical coupler is connect with the power end, the 4th photoelectricity coupling
4th positive output pin of clutch is connect with another output end, the 4th negative output pin of the 4th photoelectrical coupler with
Ground terminal connection.
A beneficial effect of the invention is that interactive signal test device through the invention can simulate third party and set
It is standby to carry out signal interaction with Devices to test, to be used to test whether Devices to test runs according to set action, and the interactive signal
The structure of test device is simple, cost is relatively low.
By referring to the drawings to the detailed description of exemplary embodiment of the present invention, other feature of the invention and its
Advantage will become apparent.
Specific embodiment
Carry out the various exemplary embodiments of detailed description of the present invention now with reference to attached drawing.It should also be noted that unless in addition having
Body explanation, the unlimited system of component and the positioned opposite of step, numerical expression and the numerical value otherwise illustrated in these embodiments is originally
The range of invention.
Be to the description only actually of at least one exemplary embodiment below it is illustrative, never as to the present invention
And its application or any restrictions used.
Technology, method and apparatus known to person of ordinary skill in the relevant may be not discussed in detail, but suitable
In the case of, the technology, method and apparatus should be considered as part of specification.
It is shown here and discuss all examples in, any occurrence should be construed as merely illustratively, without
It is as limitation.Therefore, other examples of exemplary embodiment can have different values.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, then in subsequent attached drawing does not need that it is further discussed.
In order to solve the Devices to test and third party device existing in the prior art that need to dock interactive signal, in third party
The problem of equipment can not test interactive signal before not designing completion, provides a kind of interactive signal test device, such as
Shown in Fig. 1, including Logic control module U1, the first photoelectrical coupler OC1, the second photoelectrical coupler OC2, input terminal in1 and defeated
The input pin in11 of outlet out1, input terminal in1 through the first photoelectrical coupler OC1 and Logic control module, logic control mould
The output pin out11 of block U1 is connect through the second photoelectrical coupler OC2 with output end out1, and Logic control module U1 is arranged to
First logical operation is carried out to the first signal of input pin in11 input and obtains second signal, and second signal is exported to defeated
Pin out11 out.Wherein, input terminal in1 is with the interactive signal output end of Devices to test for connect, output end out1 for
The interactive signal input terminal of Devices to test connects.
Photoelectrical coupler is a kind of electrical-optical-electrical switching device using light as media transmission electric signal.It is to input, output
Electric signal has good buffer action.Photoelectrical coupler is generally made of light emitting source and light-receiving device two parts.Light emitting source and by
Light device is assembled in same closed shell, is isolated to each other with transparent insulator.The pin of light emitting source is input terminal, light-receiving device
Pin be output end, common light emitting source be light emitting diode, light-receiving device be photodiode, phototriode etc..It is defeated
The electric signal driving light emitting source entered issues the light of certain wavelength, is received by light-receiving device and generates photoelectric current, using further putting
Output after big.This completes the conversions of electrical-optical-electrical, to play the role of input, output isolation.Due to photoelectrical coupler
Input and output between be mutually isolated, electric signal transmission has the characteristics that one-way, and photoelectrical coupler has good electrical isolation energy
Power and anti-interference ability.
In first specific embodiment of the invention, Devices to test and third party device need interactive signal, Devices to test
Article is carried at middle rotating tooling, and issues the first signal to third party device;Then third party device therefrom changes a job article
It is taken away at dress, third party device will also issue second signal to Devices to test, and Devices to test will again when receiving second signal
Secondary carry an object is recycled at middle rotating tooling with this.Below with no third party device, pass through information test device simulation the
Three method, apparatus be illustrated for signal interaction with Devices to test.
Such as can be after Devices to test carries article at middle rotating tooling, the first signal to input end in1 is issued, it should
First signal for example can be rising edge, which is transmitted to the input of Logic control module U1 through photoelectrical coupler OC1
Pin in11, carries out the first logical operation to the first signal and obtains second signal, wherein carries out the first logic fortune to the first signal
Example such as can with but be not limited to be by the first signal delay 2s, then, the output pin out11 of Logic control module U1 will
A rising edge is exported after the 2s that is delayed, which is transmitted to output end out1 through the second photoelectrical coupler OC2, then transmits
To Devices to test, Devices to test receives the rising edge, i.e. expression third party device will be taken away, concurrently at article therefrom rotating tooling
For second signal to Devices to test, Devices to test will carry article at middle rotating tooling again, and repeat the above steps out.
In this way, interactive signal test device of the invention can simulate third party device and Devices to test carries out signal friendship
Mutually, for testing whether Devices to test runs according to set action.Moreover, the structure of the interactive signal test device it is simple,
Cost is relatively low.
Above-mentioned Logic control module U1 can be to be provided by a programmable logic controller (PLC).Programmable logic controller (PLC) is used for
Its internally stored program executes the user oriented instructions such as logical operation, sequential control, timing, counting and arithmetical operation, and leads to
Cross number or the various types of mechanical or production processes of analog pattern input/output control.
Specifically, as shown in Fig. 2, the first positive input A1+ pin of the first photoelectrical coupler OC1 is connect with input terminal in1,
The first negative input pin A1- of first photoelectrical coupler OC1 is connect with power end VCC, and the first of the first photoelectrical coupler OC1 is just
Output pin B1+ is connect with the input pin in11 of Logic control module U1, and the first negative output of the first photoelectrical coupler OC1 is drawn
Foot B1- is connect with ground terminal GND;The the second positive input pin A2+ and Logic control module U1's of second photoelectrical coupler OC2 is defeated
Second negative input pin A2- of pin out11 connection out, the second photoelectrical coupler OC2 is connect with power end VCC, the second photoelectricity
The second positive output pin B2+ of coupler OC2 is connect with output end out1, and the second negative output of the second photoelectrical coupler OC2 is drawn
Foot B2- is connect with ground terminal GND.Specifically, in the case where the interactive signal test device is communicated with Devices to test, the interaction
The ground terminal GND of signal-testing apparatus need to be connect with the ground terminal of Devices to test, with guarantee the interactive signal test device and to
Measurement equipment is altogether.
In the second embodiment of the present invention, it can also be that three equipment need interactive signal, e.g. Devices to test is removed
The first article and the second article are transported at middle rotating tooling, and issues the first signal to two third party devices and third equipment;So
First third party device will be taken away at the first article therefrom rotating tooling and issue second signal to Devices to test afterwards, and second
Three method, apparatus will be taken away at the second article therefrom rotating tooling and issue fourth signal to Devices to test, and Devices to test is receiving
The first article and the second article will be carried when binary signal and fourth signal again at middle rotating tooling, will be recycled with this.
Further, which can also include the 4th photoelectrical coupler OC4 and another output end
Another output pin out12 of out2, Logic control module U1 connect through the 4th photoelectrical coupler OC4 and another output end out2
It connects;Logic control module U1 is also configured to carry out the second logical operation to the first signal that input pin in11 is inputted to obtain the
Four signals, and fourth signal is exported to another output pin out12.
If not there are two third party device, can be simulated by the interactive signal test device two third party devices with
Devices to test carries out signal interaction.
After Devices to test carries article at middle rotating tooling, the first signal to input end in1, the first signal example are issued
It such as can be rising edge, which is transmitted to the input pin in11 of Logic control module U1 through photoelectrical coupler OC1.It is right
First signal carries out the first logical operation and obtains second signal, wherein carrying out the first logical operation to the first signal for example can be with
Be by the first signal delay 2s, then, the output pin out11 of Logic control module U1 will export one after the 2s that is delayed
Rising edge, which is transmitted to output end out1 through the second photoelectrical coupler OC2, then is transmitted to Devices to test, Devices to test
The rising edge is received, that is, indicates that first third party device will be taken away at article therefrom rotating tooling and issue second signal extremely
Devices to test.Second logical operation is carried out to the first signal and obtains second signal, wherein the second logic fortune is carried out to the first signal
Example such as can with but be not limited to be the first signal is carried out inverse and to postpone 3s, then, Logic control module U1's is another
Output pin out12 will export a failing edge after 3s, which exports through the 4th photoelectrical coupler OC4 to another
Output end out2, then it is transmitted to Devices to test, Devices to test receives the failing edge, that is, indicates second third party device by article
It therefrom fills and is taken away at tooling and issue fourth signal to Devices to test.Devices to test will receive the of above-mentioned rising edge
After the fourth signal of binary signal and failing edge, article is carried again at middle rotating tooling, and repeat the above steps.
In this way, interactive signal test device of the invention can be there are two third party device, simulation two
A third party device and Devices to test carry out signal interaction, to go back for testing whether Devices to test runs according to set action
Whether the signal that can detecte Devices to test output is correct.
Further, as shown in Fig. 2, the 4th positive input pin A4+ and Logic control module of the 4th photoelectrical coupler OC4
Another output pin out12 connection of U1, the 4th negative input pin A4- and power end VCC of the 4th photoelectrical coupler OC4 connect
It connects, the 4th positive output pin B4+ of the 4th photoelectrical coupler OC4 is connect with another output end out2, the 4th photoelectrical coupler OC4
The 4th negative output pin B4- connect with ground terminal GND.
Specifically, input module U2 is set as shown in Fig. 2, the interactive signal test device further includes input module U2
For the control instruction for receiving user's input, which is used for the logical operation mode of Logic control module U1.Wherein, this is patrolled
Collecting operation mode specifically can be the operation mode of the first logical operation and/or the second logical operation.
Further, which can also include display module U3, and display module U3 is arranged to
Display logic operation mode.
On this basis, input module U2 and display module U3 can be is provided by a touching display screen.In this way, can be with
The degree of integration of the interactive signal test device is provided.
Further, the input terminal of the interactive signal test device can be one, be also possible to multiple.
In third specific embodiment of the invention, which for example can be tool, and there are four input terminals
With four output ends, as shown in Fig. 2, to meet the needs for the treatment of test cross mutual number of signals.Specifically, each input terminal passes through pair
The photoelectrical coupler answered is connected to four input pins of Logic control module U1, four output pins of Logic control module U1
Four output ends are connected to through corresponding photoelectrical coupler.
For example, need to simulate third party with third party device interactive signal in Devices to test by the information test device and set
It is standby carry out signal interaction with Devices to test in the case where, Devices to test exports the first signal and third signal to third party device,
Third party device is in the case where receiving the first signal and third signal, it will output second signal to Devices to test.At this point,
If interactive signal test device through the invention simulates third party device, input terminal in1 can be connected to Devices to test
Input terminal in3 is connected to the third signal output end of Devices to test by the first signal output end, by output end out1 be connected to
The second signal input terminal of measurement equipment.Since input terminal in1 is connected to Logic control module U1's through the first photoelectrical coupler OC1
Input pin in11, input terminal in3 are connected to the input pin in12 of Logic control module U1 through third photoelectrical coupler OC3,
The output pin out11 of Logic control module U1 is connected to the output out1 through the second photoelectrical coupler OC2, therefore, can incite somebody to action
Logic control module U1 is set as the third signal to input pin in11 the first signal inputted and input pin in12 input
It carries out the first logical operation and obtains second signal, wherein the first signal for example can be high level, and third signal for example can be
Rising edge, the first logical operation for example can with but be not limited to be with delay disposal 2s after operation, i.e., to the first signal and third
Signal carries out and operation, and to and operation after obtained signal carry out the processing of delay 2s, obtain second signal.It needs to illustrate
It is that the time of delay disposal mentioned above is a kind of embodiment, it is not limited to 2s either 3s.
In this way, a kind of embodiment of interactive signal test device through the invention, can be used for Multipexer interactive signal,
Pass through the logical operation mode of control logic control module, so that it may test multichannel interactive signal.And the present embodiment
Operation detection, configuration flexibly, have wide range of applications.
The difference of the various embodiments described above primary focus description and third party's embodiment, but those skilled in the art should
It is clear that the various embodiments described above can according to need exclusive use or be combined with each other.
Although some specific embodiments of the invention are described in detail by example, the skill of this field
Art personnel it should be understood that example above merely to being illustrated, the range being not intended to be limiting of the invention.The skill of this field
Art personnel are it should be understood that can without departing from the scope and spirit of the present invention modify to above embodiments.This hair
Bright range is defined by the following claims.