A kind of rotary multipoint switch switching device, control system and control method
Technical field
The present invention relates to automatic test technology field more particularly to a kind of rotary multipoint switch switching devices, control system
System and control method.
Background technique
With the development of industrial automation, Auto-Test System is fast by test speed, and measuring accuracy is high, easy to operate etc.
Feature becomes the important means of product quality detection, and is widely used in industrial automation production field.Wherein, switching circuit
As the interface that realization is tested automatically, it is mainly responsible for power supply, the test and excitations signal such as signal source is switched to by switch matrix
Any input port of measurand, at the same by the signal of measurand output port automatically switch to corresponding test equipment,
Instrument.Therefore high performance switch matrix becomes the key component for realizing Auto-Test System versatility.
Existing switch matrix circuit mostly uses control unit+switch arrays implementation, and wherein control unit is by micro-
Controller and latch driving circuit composition, switch arrays mostly use relay array.A large amount of relay is used in system,
So that entire handover control system is at high cost, bulky, control circuit is complicated, and the response time is long, and power consumption is big, and the service life is short
The features such as.In addition, the versatility and scalability of this method are poor, different testing requirements need to carry out again relay array
Exploitation design.
Summary of the invention
The purpose of the invention is to overcome the deficiencies in the prior art, obtain the rotation that a kind of structure is simple, universal performance is strong
Rotatable multipoint switch switching device, control system and control method.
The present invention is achieved through the following technical solutions:
A kind of rotary multipoint switch switching device, including shell are provided with driving device in the shell, setting is being driven
It moves the circuit board above device, square on circuit boards injection molded trays, main switch, auxiliary switch and controller, the driving is set
The driving end of device is connected with brush block, and the side of the circuit board is electrically connected with main switch, the main switch it is another
Side extend out to shell exterior, and the other side of the circuit board is electrically connected with auxiliary switch, and the auxiliary switch other side is electrically connected
To controller, the communication interface of the controller extend out to shell exterior;Wherein,
It is provided with the interior conducting ring concentric with injection molded trays aperture between the circuit board and injection molded trays and is socketed in interior conduction
The outer conducting ring of ring outer ring is provided with spacing, edge on the circuit board between the outer conducting ring inner edge and interior conducting ring outer rim
Interior conducting ring outer rim is laid with main switch cathode contact, has been uniformly arranged auxiliary along outer conducting ring outer rim on the circuit board and has opened
Cathode contact is closed, the brush block, which is correspondingly arranged, to be touched on interior conducting ring and outer conducting ring and under the control of driving device with corresponding
Point contact does not contact switching to realize route, and the main switch is identical as the working condition of auxiliary switch.
The present invention further improvement lies in that, the shell includes by a bottom plate, a cover board, a left wall, a right side
The closing accommodation space that wall, an antetheca and a rear wall are surrounded;The driving device is arranged on bottom plate;The injection molded trays
For the plate structure of center aperture, it is detachably arranged between left wall and right wall;The circuit board is detachably installed to injection molded trays
Lower surface and with injection molding disk shape be adapted;The main switch has terminals and extend out to outside antetheca, the other side and electricity
Road plate is electrically connected;The auxiliary switch, is connected to the I/O interface of controller, and the other side and circuit board are electrically connected;The control
Device is adapted with rear wall, has communication interface, and the communication interface stretches out rear wall to outside.
The present invention, which further improves, to be, the lower part of the left wall and right wall has been recessed rank toward accommodation space respectively
Terraced portion, the injection molded trays and circuit board are detachably installed to stepped part.
The present invention, which further improves, to be, the rear wall includes framework and the face that is detachably connected with framework
Plate, has opening compatible with communication interface on the panel, and the panel-shaped is adapted with controller shape.
The present invention, which further improves, to be, ventilation hole or ventilation slot are provided in the antetheca, left wall and right wall.
The present invention, which further improves, to be, the circuit board has the first mounting portion and the extension for extending to antetheca direction
To second mounting portion in rear wall direction, the main switch is inserted into the first mounting portion by looper and circuit board is electrically connected, institute
It states auxiliary switch and the second mounting portion and circuit board electric connection is inserted by looper.
The present invention, which further improves, to be, the driving mechanism includes:
Stepper motor is set in accommodation space and is detachably secured on bottom plate;
Transmission shaft is connected to the output end of stepper motor;
Brush carrier, bar portion and asymmetry with a center opening are mounted on the brush block mounting portion at bar portion both ends, card
It is connected on transmission shaft top;And
Brush block, installation is in brush block mounting portion and having extension end.
The present invention, which further improves, to be, the transmission shaft upper end is provided with bearing, is arranged on the inner wall of corresponding shell
There is fixed part compatible with bearing.
It is another object of the present invention to provide a kind of rotary multipoint switch handover control system, is arranged in host computer
And between equipment under test, the control system based on a kind of rotary multipoint switch switching control described above, including
One controller, a switch arrays and a driving device;
The controller include a processing unit, one mutually communicate with processing unit communications interface unit, one with processing
The feedback circuit unit of unit communication, a pulse generating circuit unit being in communication with each other with processing unit and one and processing unit
The control unit of communication;
The processing unit is used for the information communication between host computer and equipment under test, and in the switch arrays
Switch is configured;The communications interface unit is for realizing the communication between the processing unit and host computer;The feedback
Circuit unit is used to the movement of switch arrays unit feeding back to processing unit;The pulse generating circuit unit is for passing through control
Pulse frequency processed adjusts the speed driving unit and is positioned;Described control unit includes a clock circuit, system reset electricity
Road and a communicative indication circuit, the clock circuit are used to provide clock signal, the system reset circuit for processing unit
For inputting reset signal when system is operating abnormally for system reset to original state, the communicative indication circuit is for showing
Receive or send the state of data;
The switch arrays include multiple main switches and with the one-to-one auxiliary switch of main switch posture, movement configuration by
Processing unit realizes the selection of the switch contact of each main switch by driving unit, corresponds to the switch contact of auxiliary switch
Selection feeds back main switch closed state to controller unit by feed circuit;
The driving device includes a stepper motor and one for driving the driving circuit of stepper motor, the driving circuit
The rotation direction and distance of control signal controling stepping motor for receiving and according to pulse generating circuit unit.
It is another object of the present invention to provide a kind of rotary multipoint switch method for handover control, this method is based on upper
A kind of rotary multipoint switch handover control system is stated, is included the following steps:
After S1, control system electrifying startup, pc control procedure enters initialization, and opens PORT COM;
Whether S2, control loop detection communication receiving port have data receiver;
S3, data port is received, control parsing data obtain the switch that need to be controlled and its dbjective state;
S4, controller are according to the instruction being resolved to, signal condition needed for calculating and exporting closure switch;
After S5, controller sending correspondence close the switch control signal, corresponding feedback port level is detected;
S6, it is closed the switch according to electrical level judging as a result, if low, is closed success, it is on the contrary then fail;
The result is sent to host computer by S7, controller;
S8, controller, which continue cycling through, has detected whether new command arrival.
Compared with prior art, the beneficial effects of the present invention are:
1, compared to the system of same number of switches, plant bulk provided by the invention, volume are less than existing scheme, reduce
Cost;
2, the included switch state feedback detection of the present invention, substantially increases automatic Security of test, reliability;
3, switching node good pressure-resistant performance of the present invention.The pressure-resistant performance switched in existing scheme depends on selected relay line
Performance is enclosed, pressure-resistant performance is higher, and cost and volume are also higher.Two, switch contact one provided by this programme is copper brush,
One to cover copper contact on circuit board, switch resistance to pressure is good, can be applied to 0 into upper kilovolt circuit loop;
4, the stepper motor that the present invention uses technology highly developed is as execution unit, so as to so that corresponding control is
The design of system simplifies.
Detailed description of the invention
Fig. 1 is the device schematic perspective view of one embodiment of the invention;
Fig. 2 is the schematic perspective view of the other side Fig. 1;
Fig. 3 is to get rid of the schematic perspective view after cover board, antetheca, rear wall, left wall and right wall in Fig. 1;
Fig. 4 is the schematic perspective view of the other side Fig. 3;
Fig. 5 is the top view of Fig. 3;
Fig. 6 is the schematic perspective view that bottom plate and injection molded trays are got rid of in Fig. 3;
Fig. 7 is the schematic perspective view that controller, main switch and auxiliary switch are got rid of in Fig. 6;
Fig. 8 is the structural schematic diagram that stepper motor, transmission shaft and brush carrier are combined together;
Fig. 9 is the structural schematic diagram of cover board;
Figure 10 is the structural schematic diagram that left wall, right wall and antetheca link together;
Figure 11 is the schematic diagram of control system in the present invention;
Figure 12 is the peripheral circuit schematic diagram of controller in one embodiment of the invention;
Figure 13 is CAN interface circuit diagram in one embodiment of the invention;
Figure 14 is serial communication interface circuit schematic diagram in one embodiment of the invention;
Figure 15 is drive circuit schematic diagram in one embodiment of the invention;
Figure 16 is 18 upper contact schematic diagram of circuit board in one embodiment of the invention;
Figure 17 is the flow chart of control method in one embodiment of the invention.
Appended drawing reference is as follows:
1, cover board, 1-1, fixed part, 2, right wall, 3, bottom plate, 4, antetheca, 5, main switch, 6, rear wall, 7, communication interface, 8,
Left wall, 9, controller, 10, stepper motor, 11, auxiliary switch, 12, injection molded trays, 13, bearing, 14, transmission shaft, 15, the installation of brush block
Portion, 16, brush carrier, 17, brush block, 18, circuit board, 19, auxiliary switch cathode contact, 20, main switch cathode contact, 21, interior conduction
Ring, 22, outer conducting ring, 23, stepped part, A1, host computer, A21, communications interface unit, A22, feedback circuit unit, A23, control
Unit, A24, pulse generating circuit unit, A25, processing unit, A3, driving circuit.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
As shown in Figures 1 to 10, a kind of rotary multipoint switch switching device, including shell are provided in the shell
Driving device, the setting square circuit board 18, injection molded trays 12 that 18 top of circuit board is set, main switch 5, auxiliary on the drive means
Switch 11 and controller 9, the driving end of the driving device are connected with brush block 17, and the side of the circuit board 18 is electrical
It is connected with main switch 5, the other side of the main switch 5 extend out to shell exterior, and the other side of the circuit board 18 is electrically connected
There is auxiliary switch 11,11 other side of auxiliary switch is electrically connected to controller 9, and the communication interface 7 of the controller 9 extend out to outer
Outside shell;Wherein,
The interior conducting ring 21 and socket concentric with 12 aperture of injection molded trays are provided between the circuit board 18 and injection molded trays 12
Outer conducting ring 22 in interior 21 outer ring of conducting ring, between being provided between 21 outer rim of outer 22 inner edge of conducting ring and interior conducting ring
Away from 5 cathode contact of main switch being laid with along interior 21 outer rim of conducting ring on the circuit board 18, along leading outside on the circuit board 18
Electric 22 outer rim of ring has been uniformly arranged auxiliary switch cathode contact, and the brush block 17 is correspondingly arranged in interior conducting ring 21 and outer conducting ring
Contact or does not contact the switching to realize route on 22 and under the control of driving device with corresponding contact, the main switch 5 and
The working condition of auxiliary switch 11 is identical.
When it is implemented, the shell includes by a right wall 2, one of left wall 8, one of cover board 1, one of bottom plate 3, one
The closing accommodation space that antetheca 4 and a rear wall 6 are surrounded;The driving device is arranged on bottom plate 3;The injection molded trays 12 are
The plate structure of center opening is detachably arranged between left wall 8 and right wall 2;Detachably installation is extremely molded the circuit board 18
The lower surface of disk 12 is simultaneously adapted with 12 shape of injection molded trays;The main switch 5 has terminals and extend out to outside antetheca 4, separately
Side and circuit board 18 are electrically connected;The auxiliary switch 11 is connected to the I/O interface of controller 9,18 electricity of the other side and circuit board
Property connection;The controller 9, is adapted with rear wall 6, has communication interface 7, and the communication interface 7 stretches out rear wall 6 to outside.
When it is implemented, the lower part of the left wall 8 and right wall 2 has been recessed stepped part 23, institute toward accommodation space respectively
It states injection molded trays 12 and circuit board 18 is detachably installed to stepped part 23.
When it is implemented, the rear wall 6 includes framework and the panel that is detachably connected with framework, on the panel
With opening compatible with communication interface 7, the panel-shaped is adapted with 9 shape of controller.
Ventilation hole or ventilation slot are provided in the antetheca 4, left wall 8 and right wall 2 when specific implementation.
When it is implemented, the circuit board 18 has the first mounting portion for extending to 4 direction of antetheca and extends to 6 side of rear wall
To the second mounting portion, the main switch 5 is inserted into the first mounting portion and circuit board 18 by looper and is electrically connected, described auxiliary to open
It closes 11 and second mounting portion and the electric connection of circuit board 18 is inserted by looper.
When it is implemented, the driving mechanism includes:
Stepper motor 10 is set in accommodation space and is detachably secured on bottom plate 3;
Transmission shaft 14 is connected to the output end of stepper motor 10;
Brush carrier 16, bar portion and asymmetry with a center opening are mounted on 17 mounting portion of brush block at bar portion both ends
15, clamping is on 14 top of transmission shaft;And
Brush block 17, installation is in 17 mounting portion 15 of brush block and having extension end.
When it is implemented, 14 upper end of transmission shaft is provided with bearing 13, it is provided on the inner wall of corresponding shell and bearing
13 compatible fixed part 1-1, more specifically, for the cover board 1 on shell.
When it is implemented, the brush block 17, interior conducting ring 21 and outer conducting ring 22 are made of copper, material is with strong conduction
The copper of ability, hardness is strong, not easy to wear.There are two copper brush in device, one is used as 5 cathode contact of main switch, another work
For auxiliary switch cathode contact.And two copper brush, using in installation to brush carrier 16, balance is good.
When it is implemented, the controller 9 be ARM Cortex-M3 processor, be mainly responsible for it is upper in test macro
Position machine A1 communication, receives switching control instruction, corresponding electric impulse signal is generated, by the fortune for directly controlling stepper motor 10
It is dynamic, realize the control of switching node, and feedback switch closed state.
In the above-mentioned technical solutions, any one group of switch is made of two corresponding contacts of brush block 17, stepping electricity
Machine 10 is responsible for converting received electric impulse signal to angular displacement signal, and brush block 17 is driven to move in injection molded trays 12, controls copper
It brushes and the contact of 12 upper contact of injection molded trays.12 inner ring contact of injection molded trays is 5 cathode contact of main switch, is formed together with corresponding copper brush
Two contacts of one main switch 5, the switch can access Auto-Test System, realize the switching of measurement circuit.Own in device
Main switch 5 shares a cathode contact.5 wiring end side of main switch shares a negative terminals and multiple positive terminals,
Middle negative terminals are connected with the brush block 17 as 5 cathode of main switch, and positive terminal is connected with 12 inner ring contact of injection molded trays.It should
Terminals are supplied in user's access measurement circuit as switch and use.12 outer ring contact of injection molded trays is the anode touching of auxiliary switch 11
Point forms two contacts of an auxiliary switch 11 together with corresponding copper brush.The switch ends are connect with the I/O of controller 9 mouth, when
When main switch 5 is closed, there must be one group of auxiliary switch closure, controller 9 detects that corresponding I/O mouthfuls has low level signal input.Auxiliary
Switch, which is mainly responsible for control unit A23, feeds back 5 closed state of main switch.
As shown in figure 11, the present invention also provides a kind of rotary multipoint switch handover control systems, are arranged in host computer
Between A1 and equipment under test, a kind of control system rotary multipoint switch switching control described above, including one
9, switch arrays of a controller and a driving device;
The controller 9 includes the communications interface unit that a processing unit A25, one and processing unit A25 are mutually communicated
The pulse generation electricity that the feedback circuit unit A22, one and processing unit A25 that A21, one communicate with processing unit A25 are in communication with each other
The control unit A23 that road unit A24 and one is communicated with processing unit A25;
The processing unit A25 is used for the information communication between host computer A1 and equipment under test, and to the switch arrays
Switch in column is configured;The communications interface unit A21 is for realizing between the processing unit A25 and host computer A1
Communication;The feedback circuit unit A22 is used to the movement of switch arrays unit feeding back to processing unit A25;The pulse hair
Raw circuit unit A24 is used to adjust the speed driving unit by control pulse frequency and be positioned;Described control unit A23 packet
A clock circuit, a system reset circuit and a communicative indication circuit are included, the clock circuit is used to mention for processing unit A25
For clock signal, the system reset circuit is used to input reset signal when system is operating abnormally for system reset to initial shape
State, the communicative indication circuit are used to show the state for receiving or sending data;
The switch arrays include multiple main switches 5 and with the one-to-one auxiliary switch 11 of 5 posture of main switch, movement match
It sets and the selection of the switch contact of each main switch 5 is realized by driving unit by processing unit A25, corresponding auxiliary switch 11
The selection of switch contact feeds back 5 closed state of main switch to controller Unit 9 by feed circuit;
The driving device includes a stepper motor 10 and one for driving the driving circuit A3 of stepper motor 10, the drive
Dynamic circuit A3 be used to receive and according to the rotation direction for controlling signal controling stepping motor 10 of pulse generating circuit unit A24 and
Distance.
As shown in figure 17, the present invention also provides a kind of rotary multipoint switch method for handover control, this method is based on upper
A kind of rotary multipoint switch handover control system is stated, is included the following steps:
After S1, control system electrifying startup, host computer A1 control program enters initialization, and opens PORT COM;
Whether S2, control loop detection communication receiving port have data receiver;
S3, data port is received, control parsing data obtain the switch that need to be controlled and its dbjective state;
S4, controller 9 are according to the instruction being resolved to, signal condition needed for calculating and exporting closure switch;
After S5, the sending correspondence of controller 9 close the switch control signal, corresponding feedback port level is detected;
S6, it is closed the switch according to electrical level judging as a result, if low, is closed success, it is on the contrary then fail;
The result is sent to host computer A1 by S7, controller 9;
S8, controller 9, which continue cycling through, has detected whether new command arrival.
In the use of the present invention, can more specifically be implemented as follows:
System electrical wiring will include: that control unit A23 peripheral circuit, 7 circuit of communication interface, stepper motor 10 drive electricity
Road A3, stepper motor 10 and injection molded trays 12 form.
9 peripheral circuit of controller is as shown in figure 12, and main includes for clock circuit, system reset circuit, communicative indication electricity
Road.Wherein clock circuit is that controller 9 provides basic clock signal;Reset circuit is the Yong Huke when system is operating abnormally
Reset signal is inputted to controller 9Reset pin by reset button, system will be reset to original state;Communicative indication circuit
Transmitting-receiving pin including CAN and serial communication is equipped with corresponding LED and shows, when any pin has signal transmission, for
LED light light, remind custom system currently receive or send data.
In addition, the I/O mouth of controller 9 is configured with multiple function, wherein G0-G29 is in 30 auxiliary switches of system
Anode is connected, and when any auxiliary switch 11 is closed, anode will be pulled to low level, and controller 9 corresponds to I/O mouthfuls at it and detects
Low voltage signal can determine that the auxiliary switch 11 has been closed, to judge that corresponding main switch 5 has been closed;L0/L1/L2 points
The pulse signal of the displacement of stepper motor 10, direction signal and enable signal Wei not controlled.
System supports two kinds of communication modes of serial ports and CAN, communication interface 7 to be provided with serial interface and CAN interface, and CAN connects
Mouth circuit is as shown in figure 13, and wherein CAN1RX, CAN1TX are the receiving and transmitting signal of a pair of of Transistor-Transistor Logic level.CANH, CANL are CAN bus
On differential signal, system use a CAN interface chip with isolation features, it can be achieved that CAN1RX, CAN1TX and CANH,
The conversion of CANL signal.7 circuit of serial communication interface is as shown in figure 14, and control is controlled by control serial ports enable signal 485-EN
The connection or interruption of serial communication processed, UART1 are that controller 9 receives signal pins, and UART2 is that controller 9 sends signal pins,
485-B and 485-A is respectively transmitting terminal and the receiving end of communication object.
The driving circuit A3 of stepper motor 10, as shown in figure 15, amplified point of L0/L1/L2 signal of the output of controller 9
The enable signal EN, pulse signal CLK and direction of displacement DIR (clockwise/reversion) not driven as stepper motor 10.Three roads letter
It number is respectively connected with after optocoupler U1/U3/U4 isolation with the control pin EN/CLK/DIR of 10 drive module U2 of stepper motor.This
Design is using 10 drive module of bi-pole stepper motor of included PWM copped wave function, and the module is according to the control signal of input
Bipolar stepper motor 10 driving signal A+/A-, B+/B- are generated, 10 rotation direction of stepper motor and distance are directly controlled.Simultaneously
The stepper motor 10 that higher four lines bipolar drive is utilized using winding, by controlling the direction of its movement and apart from realizing
The movement of primary/secondary 11 cathode point of switch can be somebody's turn to do when stepper motor 10, which drives copper brush to be moved to, to be contacted with a certain disk contact
The positive and negative pole of group switch is in contact, and closes the switch.
Circuit board 18 in the design is printed circuit board, and as shown in figure 16, there is inside and outside two circle contact on surface, wherein inner ring
Contact corresponds to 5 anode of main switch, and outer ring contacts correspond to main switch cathode.When copper brush, which is moved to, to be contacted with a certain main switch m anode,
Main switch m closure, test loop are connected, and symmetrical copper brush another at the same time is contacted with auxiliary switch m anode, auxiliary switch closure,
Controller 9, which reads corresponding I/O mouthfuls of data, can determine whether switch closed condition.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.