CN207337124U - A kind of data acquisition circuit - Google Patents

A kind of data acquisition circuit Download PDF

Info

Publication number
CN207337124U
CN207337124U CN201721072744.XU CN201721072744U CN207337124U CN 207337124 U CN207337124 U CN 207337124U CN 201721072744 U CN201721072744 U CN 201721072744U CN 207337124 U CN207337124 U CN 207337124U
Authority
CN
China
Prior art keywords
module
data acquisition
data
serial
serial data
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.)
Active
Application number
CN201721072744.XU
Other languages
Chinese (zh)
Inventor
梁冲聪
陈庆锋
杨继焕
韩清涛
陈俊欢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongguan Intellectual Property Mdt Infotech Ltd
Original Assignee
Dongguan Intellectual Property Mdt Infotech Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Dongguan Intellectual Property Mdt Infotech Ltd filed Critical Dongguan Intellectual Property Mdt Infotech Ltd
Priority to CN201721072744.XU priority Critical patent/CN207337124U/en
Application granted granted Critical
Publication of CN207337124U publication Critical patent/CN207337124U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

It the utility model is related to data collecting field, and in particular to a kind of data acquisition circuit.The data acquisition circuit includes power module, input terminal J5 and output terminal J6, further includes serial port data acquisition module, main control module, wireless transport module;Serial data A1, for receiving or sending serial data A1, can be converted into serial data A2 or serial data A2 is converted into A1 by serial port data acquisition module;The main control module, for handling and replicating serial data A2, the serial data A2 of duplication is sent to wireless transport module and level switch module;The power module, input terminal J5, output terminal J6, serial port data acquisition module, main control module, wireless transport module are electrically connected.The circuit can carry out industrial control equipment not influencing the data transfer between industrial control equipment and industry control on-screen data display while data acquisition.

Description

A kind of data acquisition circuit
Technical field
It the utility model is related to data collecting field, and in particular to a kind of data acquisition circuit.
Background technology
Current industrial control equipment has PLC controller and industry control on-screen data display substantially, can pass through between both For Serial Port Line into row data communication, screen sends inquiry data command by receiving TX lines, wherein the address with inquiry data; After PLC controller receives instruction, the data of corresponding address are returned by RX lines, complete the communication of data.In order to equipment Working status is understood, and the collection to serial data is essential.Collection to serial data must be in Serial Port Line On data collector is installed, the circuit in data collector completes the collection of serial data;But data collector is once sent out Raw failure or power-off, just will disconnect electrical connection, influence the number between PLC controller and screen between PLC controller and screen According to exchange.
The content of the invention
In order to overcome shortcoming and defect existing in the prior art, the purpose of this utility model is to provide a kind of data to adopt Collector, which does not influence industrial control equipment while can carrying out data acquisition to industrial control equipment and industry control on-screen data is shown Data transfer between device.
The utility model is realized by following technology:
A kind of data acquisition circuit, including power module, input terminal J5 and output terminal J6, it is characterised in that:Further include string Mouth data acquisition module, main control module, wireless transport module;The input terminal J5 is connected with PLC;The serial port data acquisition mould Swapped between block and PLC by serial data A1;The output terminal J6 is connected with display screen;The serial port data acquisition mould Swapped between block and display screen by serial data A1;Pass through string between the serial port data acquisition module and main control module Mouth data A2 is swapped;The power module provides power supply for data acquisition circuit;Serial port data acquisition module, for receiving Or serial data A1 is sent, for serial data A1 to be converted into serial data A2 or for serial data A2 to be converted into serial ports Data A1;The main control module, including MCU, the MCU are used to handle serial data A2, by serial data A2 by handling, dividing Analyse, extract and send to wireless transport module and serial port data acquisition module after useful information;The serial port data acquisition module Include the relay module connected for control signal J5 with output terminal J6.
Wherein, the serial port data acquisition module further includes the level switch module for carrying out serial data conversion, institute Level switch module is stated to be electrically connected with relay module.
Wherein, the level switch module includes the MAX3232 chips for level conversion, and the main control module includes STM32 microcontrollers;Pin R2OUT, R1OUT, T2IN, T1IN of the MAX3232 chips pins with STM32 microcontrollers respectively PB11, PA3, PB10, PA2 are electrically connected.
Wherein, the wireless transport module includes being used for the CC2530 chips that ZigBee is wirelessly transferred, the CC2530 cores Pin P0_2, P0_3 of piece are electrically connected with pin PA9, PA10 of MCU respectively.
Wherein, the power module includes power regulator module.
The beneficial effects of the utility model:
Data friendship is carried out by TX lines and RX lines between PLC controller and industry control on-screen data display under normal circumstances Change, the data of transmission are serial data A1 in TX lines and RX lines;In PLC controller and industry control on-screen data display data serial ports The data acquisition circuit of the utility model is installed, to realize data acquisition on line.The data acquisition circuit of the utility model, integrates Serial port data acquisition module, main control module, wireless transport module;Serial port data acquisition module is used to receiving or sending serial ports number According to A1, serial data A1 can be converted into serial data A2 or serial data A2 is converted into A1;The main control module includes MCU, the MCU are used to handle and replicate serial data A2, and the serial data A2 of duplication is sent to wireless transport module and electricity Flat modular converter;Since in main control module, MCU receives the serial data A2 of level switch module transmission, then MCU is produced Data receiver interrupts and serial data A2 is extracted, and at the same time serial data A2 is copied to transmission data buffering by MCU Area, and at once data sending to wireless transport module;The propagation delay time for being passed through MCU due to period serial data substantially may be used To ignore, to reach the data that can not influenced while data acquisition between PLC controller and industry control on-screen data display The effect of transmission speed.Due to relay module can in the case of data acquisition circuit failure or power-off by input terminal J5 and Output terminal J6 is changed into direct-connected, so as to not influence the data exchange between PLC controller and screen.
Brief description of the drawings
Using attached drawing, the utility model is described in further detail, but the embodiment in attached drawing is not formed to the utility model Any restrictions, without creative efforts, can also be according to following attached for those of ordinary skill in the art Figure obtains other attached drawings.
Fig. 1 is the serial port data acquisition module circuit diagram of the utility model;
Fig. 2 is the main control module circuit diagram of the utility model;
Fig. 3 is the power module circuitry figure of the utility model;
Fig. 4 is the wireless transport module circuit body of the utility model.
Fig. 5 is the schematic diagram of connection relation between the PLC controller of the utility model and industry control on-screen data display.
Reference numeral
Serial port data acquisition module -- 1, relay module -- 11, relay -- 12, control relay circuit -- 13, level Modulus of conversion -- 14, main control module -- 2, power module -- 3, power regulator module -- 31, wireless transport module -- 4.
Embodiment
Illustrate the embodiment of the utility model below by way of specific instantiation, those skilled in the art can be by this theory Content disclosed by bright book understands other advantages and effect of the utility model easily.The utility model can also be by addition Different embodiments are embodied or practiced, and the various details in this specification can also be based on different viewpoints with answering With carrying out various modifications or alterations under the spirit without departing from the utility model.
It should be noted that structure, ratio, size depicted in this specification institute accompanying drawings etc., only coordinating The bright revealed content of book, so that those skilled in the art understands and reads, being not limited to the utility model can implement Qualifications, therefore do not have technical essential meaning, the modification of any structure, the change of proportionate relationship or the adjustment of size, In the case where not influencing the effect of the utility model can be generated and the purpose that can reach, should all still fall disclosed in the utility model Technology contents obtain and can cover in the range of.Meanwhile in this specification it is cited as " on ", " under ", "left", "right", " in Between " and " one " etc. term, be merely convenient to understanding for narration, and be not used to limit the enforceable scope of the utility model, its Relativeness is altered or modified, in the case where changing technology contents without essence, when being also considered as the enforceable category of the utility model.
As shown in Figures 1 to 5, a kind of data acquisition circuit, including power module 3, input terminal J5 and output terminal J6, it is special Sign is:Further include serial port data acquisition module 1, main control module 2, wireless transport module 4;Input terminal J5 is connected with PLC;It is described Swapped between serial port data acquisition module 1 and PLC by serial data A1;Output terminal J6 is connected with display screen;The string Swapped between mouth data acquisition module 1 and display screen by serial data A1;The serial port data acquisition module 1 and master control Swapped between module 2 by serial data A2;Serial port data acquisition module 1, for receiving or sending serial data A1, is used In serial data A1 is converted into serial data A2 or for serial data A2 to be converted into A1;The main control module 2, including MCU, the MCU are used to handle and replicate serial data A2, by the serial data A2 of duplication through processing, analyze, extract it is useful Information after send to wireless transport module 4 and serial port data acquisition module 1;Serial port data acquisition module 1 includes for controlling The relay module 11 that input terminal J5 processed is connected with output terminal J6.
Specifically, carried out under normal circumstances between PLC controller and industry control on-screen data display by TX lines and RX lines The data of transmission are serial data A1 in data exchange, TX lines and RX lines;In PLC controller and industry control on-screen data display number According to the data acquisition circuit that the utility model is installed on Serial Port Line, to realize data acquisition.The data acquisition electricity of the utility model Road, is integrated with serial port data acquisition module 1, main control module 2, wireless transport module 4;Serial port data acquisition module 1 is used to receive Or serial data A1 is sent, serial data A1 can be converted into serial data A2 or serial data A2 is converted into A1;The master Control module 2 includes MCU, and the MCU is used to handle and replicate serial data A2, and the serial data A2 of duplication is sent to wireless and is passed Defeated module 4 and level switch module 14;Since in main control module 2, MCU receives the serial ports number of the transmission of level switch module 14 According to A2, then MCU generations data receiver, which interrupts, simultaneously extracts serial data A2, and at the same time MCU answers serial data A2 Make and send data buffer zone, and data sending is gone out at once;Since period serial data passes through the propagation delay time of MCU Substantially it can ignore, can not influenced while data acquisition between PLC controller and industry control on-screen data display with reaching Data transmission bauds effect.Due to relay module 11 can data acquisition circuit failure or power-off in the case of will be defeated Enter to hold J5 and output terminal J6 to be changed into direct-connected, so as to not influence the data exchange between PLC controller and screen.
Specifically, when data acquisition circuit works normally, relay module 11 disconnects input terminal J5, the electricity of output terminal J6 Gas connects, and input terminal J5, output terminal J6 and data acquisition circuit are connected, and realizes data acquisition;When data acquisition circuit breaks When electricity or failure, relay module 11 disconnects the electrical connection of input terminal J5, output terminal J6 and data acquisition circuit, again will be defeated Enter to hold J5, output terminal J6 to connect.
Specifically, the relay module 11 includes relay 12 and the relay control for driving relay 12 to be opened and closed Circuit 13, the relay module 11 are connected between input terminal J5, output terminal J6, in actual use, it is contemplated that simultaneous Hold the direct-connected property of legacy data line, ensure that collector can be into row data communication in the case where not powering on.In data acquisition Circuit do not power on or failure in the case of circuit between PLC controller and industry control on-screen data display realized by relay 12 It is direct-connected;After data acquisition circuit has powered on, by relay 12 circuit switching, and by serial port data acquisition module 1, MCU carries out data acquisition.
Specifically, the serial port data acquisition module 1 further includes the level switch module for carrying out serial data conversion 14, the level switch module 14 is electrically connected with relay module 11, and relay module 11 is by between input terminal J5, output terminal J6 Electrical connection disconnect, and serial data A1 is transmitted to level switch module 14 and carries out level conversion, i.e., by serial data A1 It is converted into serial data A2.
As depicted in figs. 1 and 2, specifically, the level switch module 14 includes the MAX3232 cores for level conversion Piece, the MCU use STM32 microcontrollers;Pin R2OUT, R1OUT, T2IN, T1IN of the MAX3232 chips respectively with MCU Pin PB11, PA3, PB10, PA2 be electrically connected, the data cable that wherein PLC controller is transmitted to industry control on-screen data display is RX lines, the data cable that industry control on-screen data display is transmitted to PLC controller are TX lines, the pin R1IN of MAX3232 chips, Connected between pin PA3, PA2 of R1OUT, T1IN, MCU by TX lines, the pin PB10 of R2IN, R2OUT, T2IN, MCU, Connected between PB11 by RX lines.
As shown in figure 4, specifically, the wireless transport module 4 includes being used for the CC2530 chips that are wirelessly transferred of ZigBee, Pin P0_2, P0_3 of the CC2530 chips are electrically connected with pin PA9, PA10 of MCU respectively, and signal is passed through pin by MCU Pin P0_2, P0_3 that PA9, PA10 are transmitted to CC2530 chips carry out wireless data transmission.
As shown in figure 3, specifically, the power module 3 includes power regulator module 31, guarantee data acquisition circuit is in work The stability that power supply is powered in work.
Finally it should be noted that above example is only illustrating the technical solution of the utility model, rather than to this reality With the limitation of novel protected scope, although being explained with reference to preferred embodiment to the utility model, this area it is general Lead to it will be appreciated by the skilled person that can be to the technical solution of the utility model technical scheme is modified or replaced equivalently, without departing from this The spirit and scope of utility model technical solution.

Claims (5)

1. a kind of data acquisition circuit, including power module (3), input terminal J5 and output terminal J6, it is characterised in that:Further include string Mouth data acquisition module (1), main control module (2), wireless transport module (4);
The input terminal J5 is connected with PLC;The serial port data acquisition module (1) is carried out between PLC by serial data A1 Exchange;
The output terminal J6 is connected with display screen;The serial port data acquisition module (1) passes through serial data between display screen A1 is swapped;
Swapped between the serial port data acquisition module (1) and main control module (2) by serial data A2;
The power module (3) provides power supply for data acquisition circuit;
Serial port data acquisition module (1), for receiving or sending serial data A1, for serial data A1 to be converted into serial ports number According to A2 or for serial data A2 to be converted into serial data A1;
The main control module (2), including MCU, the MCU are used to handle and replicate serial data A2, by the serial data of duplication A2 is sent to wireless transport module (4) and serial port data acquisition module (1) after handling, analyze, extract useful information;
The serial port data acquisition module (1) includes the relay module connected for control signal J5 with output terminal J6 (11)。
A kind of 2. data acquisition circuit according to claim 1, it is characterised in that:The serial port data acquisition module (1) Further include the level switch module (14) for carrying out serial data conversion, the level switch module (14) and relay module (11) it is electrically connected.
A kind of 3. data acquisition circuit according to claim 2, it is characterised in that:The level switch module (14) includes For the MAX3232 chips of level conversion, the MCU uses STM32 microcontrollers;The pin R2OUT of the MAX3232 chips, R1OUT, T2IN, T1IN are electrically connected with pin PB11, PA3, PB10, PA2 of MCU respectively.
A kind of 4. data acquisition circuit according to claim 3, it is characterised in that:The wireless transport module (4) includes The CC2530 chips being wirelessly transferred for ZigBee, pin P0_2, P0_3 of the CC2530 chips pin with MCU respectively PA9, PA10 are electrically connected.
A kind of 5. data acquisition circuit according to claim 1, it is characterised in that:The power module (3) includes power supply Voltage stabilizing module (31).
CN201721072744.XU 2017-08-25 2017-08-25 A kind of data acquisition circuit Active CN207337124U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201721072744.XU CN207337124U (en) 2017-08-25 2017-08-25 A kind of data acquisition circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201721072744.XU CN207337124U (en) 2017-08-25 2017-08-25 A kind of data acquisition circuit

Publications (1)

Publication Number Publication Date
CN207337124U true CN207337124U (en) 2018-05-08

Family

ID=62374484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201721072744.XU Active CN207337124U (en) 2017-08-25 2017-08-25 A kind of data acquisition circuit

Country Status (1)

Country Link
CN (1) CN207337124U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110173808A (en) * 2019-05-21 2019-08-27 四川虹美智能科技有限公司 A kind of air-conditioning host computer fault handling method, apparatus and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110173808A (en) * 2019-05-21 2019-08-27 四川虹美智能科技有限公司 A kind of air-conditioning host computer fault handling method, apparatus and system

Similar Documents

Publication Publication Date Title
CN205038637U (en) RS232 and RS485422 interface converter based on microprocessor
CN206820735U (en) A kind of serial communication interface function switch circuit
CN103853689A (en) Device and method of automatic switchover of USB (Universal Serial Bus) and four-line serial port UART (Universal Asynchronous Receiver Transmitter)
CN204155273U (en) A kind of multi-functional data switch based on elevator communication
CN207337124U (en) A kind of data acquisition circuit
CN107871378A (en) Fire resistant doorsets monitoring module
CN206835082U (en) Serial ports isolates communication interface circuit and electronic equipment
CN207409092U (en) Fire resistant doorsets monitoring module
CN205942681U (en) Serial communication interface that can dispose
CN107508737A (en) Radio communication device and its communication means based on EtherCAT
CN205049966U (en) Intelligence touch screen scene panel based on bus link power supply technique
CN207337391U (en) A kind of data collector
CN209593402U (en) Passive isolated form RS232 serial communication circuit
CN206331281U (en) A kind of kinematic system controls circuit
CN207460184U (en) A kind of fiber optic communications devices based on exposure machine control system
CN207637147U (en) It is a kind of based on one Uart mouthfuls of multichannel RS485 interface communication circuitries
CN201904651U (en) Communication adapter for earth leakage circuit breaker
CN109683835A (en) A kind of electronics price tag system based on POWERBUS bus
CN206389594U (en) A kind of light fixture control control output system
CN205950777U (en) Transformer station inspection robot monitor system based on centralized monitoring
CN104460456B (en) A kind of electric control system with network communicating function
CN209233855U (en) It is adapted to the industrial communication gateway of multiple power sources input
CN205070989U (en) Follow quick -witted transceiver, receiving and dispatching system and follow quick -witted receiving and dispatching system
CN203812009U (en) Instrument communication serial port multiplex control device
CN209002002U (en) A kind of interchanger with Zigbee module

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant