CN201788900U - Relay board and control system thereof - Google Patents
Relay board and control system thereof Download PDFInfo
- Publication number
- CN201788900U CN201788900U CN2010202293377U CN201020229337U CN201788900U CN 201788900 U CN201788900 U CN 201788900U CN 2010202293377 U CN2010202293377 U CN 2010202293377U CN 201020229337 U CN201020229337 U CN 201020229337U CN 201788900 U CN201788900 U CN 201788900U
- Authority
- CN
- China
- Prior art keywords
- relay board
- relay
- utility
- model
- host computer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Relay Circuits (AREA)
Abstract
The utility model discloses a relay board and a control system thereof. The relay board comprises a relay and a central processing unit CPU, and the central processing unit CPU connected with the relay receives control signals from an upper computer and controls the relay according to the control signals. The control system of the relay board comprises the upper computer connected with the relay board. The relay can be controlled by the relay board conveniently by the aid of the control system of the relay board.
Description
Technical field
The utility model relates to a kind of relay board and control system thereof.
Background technology
In existing switching value control relay plate, generally to relate to the DLL routine call, even bottom layer driving programming, after the program compilation if any change, the user must be in the high-level language programs source code invoking performance function, thereby, in correlation technique, when relay board is controlled, require the user with higher advanced language programming ability.In addition, if the environment for use of relay board changes, high-level language programs must remodify source code, recompility, complicated operation, and difficulty is big.Existing most of control relay plate, an order can only be controlled No. one relay, can not control all relays simultaneously.
At correlation technique repeat circuit plate to the control ratio of relay than complicated problems, effective solution is not proposed at present as yet.
The utility model content
At relay board the control ratio of relay is proposed the utility model than complicated problems, for this reason, main purpose of the present utility model is to provide a kind of relay board and control method and system, to address the above problem.
To achieve these goals, according to an aspect of the present utility model, provide a kind of relay board.
Comprise according to relay board of the present utility model: relay; Central processor CPU is connected with relay, receives the control signal from host computer, and according to control signal controlling relay.
Further, above-mentioned relay board also comprises latch, is connected between relay and the central processor CPU, preserves the control signal from central processor CPU.
Further, above-mentioned relay board also comprises the power drive chip, is connected between latch and the relay, receives from the control signal of latch and according to control signal and drives relay.
Further, above-mentioned relay board also comprises the serial ports control module, is connected between host computer and the central processor CPU.
Further, above-mentioned serial ports control module comprises serial port chip; The cushion socket is connected with serial port chip.
Further, above-mentioned relay board also comprises power interface, and this power interface comprises a 3.5mm socket and a 5mm socket.
Further, the number of above-mentioned relay is 8 or 16.
Further, the arranged outside of above-mentioned relay has binding post, is used for external Be Controlled electrical equipment; The inboard of relay is provided with indicator light, is used for the action of indicating relay.
To achieve these goals, according on the other hand of the present utility model, provide a kind of control system of relay board.
Control system according to relay board of the present utility model comprises: host computer transmits control signal; Relay board receives control signal, and according to control signal relay is controlled.
Further, relay board is connected with host computer via the serial ports control module, and relay board comprises 8 or 16 relays.
By the utility model, adopt the relay board that comprises following structure: relay; Central processor CPU, be connected with described relay, reception is from the control signal of described host computer, and according to described control signal controlling to described relay, solved relay board to the control ratio of relay than complicated problems, and then reached the effect of by relay board relay being controlled easily.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present utility model, constitutes the application's a part, and illustrative examples of the present utility model and explanation thereof are used to explain the utility model, do not constitute improper qualification of the present utility model.In the accompanying drawings:
Fig. 1 is the schematic diagram according to the relay board of the utility model embodiment;
Fig. 2 is the schematic diagram according to the relay board of the utility model preferred embodiment;
Fig. 3 is the schematic diagram according to the power drive chip connection of the utility model embodiment;
Fig. 4 is the schematic diagram according to the chip wiring of the road relay control of the utility model embodiment;
Fig. 5 is the layout according to the various piece of the relay board of the utility model embodiment;
Fig. 6 is the schematic diagram according to the control system of the relay board of the utility model embodiment;
Fig. 7 is the flow chart according to the control method of the relay board of the utility model embodiment.
Embodiment
Need to prove that under the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.Describe the utility model below with reference to the accompanying drawings and in conjunction with the embodiments in detail.
According to embodiment of the present utility model, a kind of relay board is provided, this relay board comprises relay 5 and central processor CPU 1.
Fig. 1 is the schematic diagram according to the relay board of the utility model embodiment.
As described in Figure 1, central processor CPU 1 is connected with relay 5, thereby central processor CPU 1 can receive the control signal from host computer, and according to control signal controlling relay 5.
In this embodiment, because directly receiving control signal by central processing unit controls relay, thereby need not to programme at central processing unit, thereby by relay board relay is controlled easily, and change at relay board under the situation of environment, need not relay board is continued any change.Improved the versatility of relay board.
Above-mentioned relay board can also comprise:
Latch 3, this latch 3 are connected between relay 5 and the central processor CPU 1, preserve the control signal from central processor CPU 1.
Power drive chip 4 is connected between latch 3 and the relay 5, receives from the control signal of latch 3 and according to control signal and drives relay 5.
Serial ports control module 2 is connected between host computer and the central processor CPU 1.
Fig. 2 is the schematic diagram according to the relay board of the utility model preferred embodiment.Fig. 5 is the layout according to the various piece of the relay board of the utility model embodiment.
As Fig. 1 and shown in Figure 5, part 1 is that 16 control relays and annex, part 6 are power interface for CPU, part 2 serial ports control modules, 3 two 8 bit data latchs of part, 4 three power drive chips of part, part 5.The components and parts of relay board are industrial conventional chip, CPU can select any single-chip microcomputer of 89C5X series for use, if select the STC89C51 single-chip microcomputer for use, can be directly with the direct programming of serial ports, need not special-purpose programmable device, the function of CPU is all kinds of computings, carries out communication with host computer, controls each chip realization controlled function; The serial ports control module comprises MAX232 serial port chip and 9 cushion sockets, and function is to make host computer and relay board realize the RS232 communication.Chip connects as shown in Figure 3.
It is the latch of 74HC573 that latch can adopt model, and each chip can be preserved 8 road CPU switching value signals, and function is to preserve the control signal that CPU carries, and transmits control signal to the power drive chip; It is the chip of ULN2003 that the power drive chip can adopt model, and each chip can be realized the power drive amplification of 7 way switch amounts, and function is the control signal driving relay by CPU; The relay model can be SRD-05VDC, the power supply signal of contact may command 250VAC10A, and the relay outside is furnished with binding post, can external Be Controlled electrical equipment, there is the indication LED lamp inboard, and lamp is bright during the actuating of relay, and the chip wiring of No. one relay control as shown in Figure 4.
Power interface can be furnished with 3.5mm and two sockets of 5mm, the power supply of the two kinds of interfaces of can pegging graft, and versatility is stronger, also has a control button switch.Hardware be on the whole 5V light current circuit in the appliance plate intermediate arrangement, controlled high pressure forceful electric power has strengthened the antijamming capability of the control section of product so greatly in the appliance plate periphery.
Circuit board main chip layout is shown in 5.
Fig. 6 is the schematic diagram according to the control system of the relay board of the utility model embodiment
As shown in Figure 6, the control system of this relay board comprises host computer and relay board.
Wherein, host computer is used to transmit control signal; Relay board is used to receive control signal, and according to control signal relay is controlled.
Fig. 7 is the flow chart according to the control method of the relay board of the utility model embodiment.
As shown in Figure 7, this method comprises that following step S702 is to step S704:
Step S702, the central processor CPU of relay board receives the control signal from host computer;
Step S704, CPU is according to the on off state of control signal control multicircuit relay.
Host computer can read the data in the INI configuration file, and according to the data realization interface display of configuration file and to slave computer (relay board) communicating control information.The INI configuration file format is common file, on personal computer, can carry out editings such as literal input, deletion, composing very easily, first trifle is general joint in the ini file, comprise general informations such as the product that will test, test step number, per step of follow-up trifle test joint, the data that comprise the pilot project, preparation content in per step, correct experimental phenomena, send to slave computer etc.; The data format that sends is totally 5 byte: 1X2X3X4X55, what Arabic numerals were represented is sequence number, X represents the hexadecimal digit of 0-F, form by 0 or 1 of tetrad, indicate the state of No. four relays respectively, if certain position is 1, then represent this road actuating of relay, if 0, then relay resets, if for example send 1B, because hexadecimal B is shown with binary form: 0111, then first relay of preceding No. four relays of representative resets, back three actuatings of relay, the 5th 55 be command bits.5 transmissions of transmission time-division send 1X for the first time, send 2X for the second time, send 3X for the third time, the 4th transmission 4X, the 5th transmission 55.
Slave computer (relay board) is responsible for explaining according to special communication protocol the control information of host computer, and control the on off state of No. 16 relays simultaneously, detailed process is as follows: if preceding four of slave computer reception data are hexadecimal 1-4, then the four figures certificate writes the appointment latch in order thereafter, if preceding four that receive data was 5 (ignoring four thereafter), 4 four figures that then front write latch are according to merging into two 8 bit data, write the P2 of CPU respectively, the P4 mouth, form 16 way switch amount signals, amplify through 74HC573 and ULN2003 two-stage, drive 16 tunnel actuatings of relay simultaneously or reset.
When working control, the user only need consider what the result of 16 actuatings of relay is, and need not to consider the detailed process of the actuating of relay.For example, the user requires 16 relays by this logical action: 1110|1101|1101|1111 in a certain step, 1 this road actuating of relay of expression, 0 expression relay resets, above-mentioned 16 bits are scaled 16 system numbers is: 65D7, add after the order of transmission number and after the control command, send data format and be: 1E2D3D4F55.
Need to prove, can in computer system, carry out in the step shown in the flow chart of accompanying drawing such as a set of computer-executable instructions, and, though there is shown logical order in flow process, but in some cases, can carry out step shown or that describe with the order that is different from herein.
From above description, as can be seen, the utility model can be controlled relay by relay board easily, and changes at relay board under the situation of environment, need not relay board is continued any change, thereby improved the versatility of relay board.
The above is a preferred embodiment of the present utility model only, is not limited to the utility model, and for a person skilled in the art, the utility model can have various changes and variation.All within spirit of the present utility model and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within the protection range of the present utility model.
Claims (10)
1. a relay board is characterized in that, comprising:
Relay (5);
Central processor CPU (1) is connected with described relay (5).
2. relay board according to claim 1 is characterized in that, also comprises:
Latch (3) is connected between described relay (5) and the described central processor CPU (1).
3. relay board according to claim 1 is characterized in that, also comprises:
Power drive chip (4) is connected between described latch (3) and the described relay (5).
4. relay board according to claim 1 is characterized in that, also comprises:
Serial ports control module (2) is connected between described host computer and the described central processor CPU (1).
5. relay board according to claim 4 is characterized in that, described serial ports control module (2) comprising:
Serial port chip;
9 cushion sockets are connected with described serial port chip.
6. according to each described relay board in the claim 1 to 5, it is characterized in that, also comprise power interface, this power interface comprises a 3.5mm socket and a 5mm socket.
7. according to each described relay board in the claim 1 to 5, it is characterized in that the number of described relay (5) is 16 or 8.
8. according to each described relay board in the claim 1 to 5, it is characterized in that the arranged outside of described relay has binding post, inboard to be provided with indicator light.
9. the control system of a relay board is characterized in that, comprising:
Host computer;
Each described relay board in the claim 1 to 8 is connected with described host computer.
10. control system according to claim 9 is characterized in that, described relay board is connected with described host computer via the serial ports control module, and described relay board comprises 8 or 16 relays.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010202293377U CN201788900U (en) | 2010-06-13 | 2010-06-13 | Relay board and control system thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010202293377U CN201788900U (en) | 2010-06-13 | 2010-06-13 | Relay board and control system thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN201788900U true CN201788900U (en) | 2011-04-06 |
Family
ID=43820856
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010202293377U Expired - Fee Related CN201788900U (en) | 2010-06-13 | 2010-06-13 | Relay board and control system thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN201788900U (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104918041A (en) * | 2015-05-30 | 2015-09-16 | 歌尔声学股份有限公司 | PC and television set serial communication device used for production line |
CN107844082A (en) * | 2017-12-08 | 2018-03-27 | 河南迪天环保科技有限公司 | A kind of program controling module based on relay driving |
CN110334039A (en) * | 2019-07-03 | 2019-10-15 | 山东职业学院 | A kind of RJ11 turns RJ45 converter |
CN110444444A (en) * | 2019-08-19 | 2019-11-12 | 欣旺达电子股份有限公司 | Drive the circuit of contactor |
-
2010
- 2010-06-13 CN CN2010202293377U patent/CN201788900U/en not_active Expired - Fee Related
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104918041A (en) * | 2015-05-30 | 2015-09-16 | 歌尔声学股份有限公司 | PC and television set serial communication device used for production line |
CN107844082A (en) * | 2017-12-08 | 2018-03-27 | 河南迪天环保科技有限公司 | A kind of program controling module based on relay driving |
CN110334039A (en) * | 2019-07-03 | 2019-10-15 | 山东职业学院 | A kind of RJ11 turns RJ45 converter |
CN110444444A (en) * | 2019-08-19 | 2019-11-12 | 欣旺达电子股份有限公司 | Drive the circuit of contactor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN201788900U (en) | Relay board and control system thereof | |
EP2256669A3 (en) | Memory cards including a standard security function | |
CA2413420C (en) | System and method for establishing wireless connection | |
CN100397838C (en) | Digital type infrared-bluetooth two-bridge universal remote control device | |
CN101893856B (en) | Relay board and control method and device thereof | |
CN204557186U (en) | A kind of control circuit of vacuum component | |
CN101859277A (en) | Human-computer interactive debugging method of EC (Electronic Computer) by inputting character string command based on UART (Universal Asynchronous Receiver/Transmitter) terminal | |
CN204229149U (en) | Touch key-press driving circuit and the control desk be made up of it | |
CN205826852U (en) | A kind of electric energy meter data intelligence read-write equipment based on bluetooth communication | |
CN102254469A (en) | Experimental device based on embedded development platform | |
CN204992516U (en) | Computer protection device and power equipment | |
CN101719053A (en) | Method for reading IIC storage card by SPI interface | |
CN207488755U (en) | A kind of portable IIC command control systems | |
CN210986125U (en) | Embedded industrial control all-in-one machine | |
CN203313471U (en) | Lamp control apparatus | |
CN203799367U (en) | Virtual terminal control system | |
CN102523003B (en) | Time-sharing multiplexing keyboard display scanning circuit applied to fire alarm controller | |
CN201886461U (en) | Testing card capable of testing main boards in different sizes | |
CN201628975U (en) | IIC memory card read-write device with SPI interface | |
CN204288201U (en) | Control panel and apparatus for lighting | |
CN218602074U (en) | Touch key and LED display integrated drive circuit | |
CN113849444B (en) | PCI bus system for industrial control system | |
CN204883192U (en) | Controller | |
CN220526310U (en) | Touch control panel and touch screen terminal | |
CN209248530U (en) | Cascade Arduino development board based on IIC agreement |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110406 Termination date: 20140613 |
|
EXPY | Termination of patent right or utility model |