CN110442096A - A kind of data acquisition control work station and its data transmission method - Google Patents

A kind of data acquisition control work station and its data transmission method Download PDF

Info

Publication number
CN110442096A
CN110442096A CN201910688056.3A CN201910688056A CN110442096A CN 110442096 A CN110442096 A CN 110442096A CN 201910688056 A CN201910688056 A CN 201910688056A CN 110442096 A CN110442096 A CN 110442096A
Authority
CN
China
Prior art keywords
slave station
communication
response message
module
sent
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.)
Granted
Application number
CN201910688056.3A
Other languages
Chinese (zh)
Other versions
CN110442096B (en
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.)
FUJIAN SHUNCHANG HONG RUN PRECISION INSTRUMENTS Co Ltd
Original Assignee
FUJIAN SHUNCHANG HONG RUN PRECISION INSTRUMENTS Co 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 FUJIAN SHUNCHANG HONG RUN PRECISION INSTRUMENTS Co Ltd filed Critical FUJIAN SHUNCHANG HONG RUN PRECISION INSTRUMENTS Co Ltd
Priority to CN201910688056.3A priority Critical patent/CN110442096B/en
Publication of CN110442096A publication Critical patent/CN110442096A/en
Application granted granted Critical
Publication of CN110442096B publication Critical patent/CN110442096B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM]
    • G05B19/41845Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM] characterised by system universality, reconfigurability, modularity
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/33Director till display
    • G05B2219/33273DCS distributed, decentralised controlsystem, multiprocessor
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Selective Calling Equipment (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses a kind of data acquisition control work stations, including casing and the liquid crystal touch screen being installed on casing, there is power module in casing, and the main control module being connect respectively with power module, communication module, to drive the display of liquid crystal touch screen to drive block module, main control module includes primary processor and the memory with primary processor communication connection, communication module includes serial interface management device, message monitoring device and to the communicating circuit with slave station communication connection, the serial interface management device of communication module, message monitoring device and communicating circuit two-by-two between communication connection, the serial interface management device of communication module and display drive block module with the primary processor communication connection of main control module, the present invention can with respectively with different check format slave station adaptive communications, it breaches under the same communicating circuit interface of tradition only and with identical verification mode The limitation that each slave station is communicated, and its communication efficiency is high.

Description

A kind of data acquisition control work station and its data transmission method
Technical field
The present invention relates to industrial automation acquisitions and networking control field, particularly relate to a kind of data acquisition control work station And its data transmission method.
Background technique
With the systematization that industrial production is managed, all types of industries control system comes into being, it is relatively conventional have DCS, FCS, PLC and Combining soft control system etc., these system integrations acquisition of industrial sensor signal, record, analysis, external equipment Numerous functions such as control be equipped with industrial computer to form complete acquisition and control system and carry out networking, when networking is Make industrial computer can industrial instruments different from each company communicated, needed on industrial computer installation host computer programming software, compile The open communication protocol of numerous companies is included in journey software, this makes such industrial control system with high costs, and threshold is high, needs The personage of profession is programmed exploitation, and the development cycle is long, and follow-up maintenance difficulty is big.
Medium or small factory usually hangs back to above system by cost, the constraint of the talent, instead use with Acquisition control system based on master and slave station structure, main website namely data acquisition control work station, quantity are one, slave station, For observing and controlling product, be arranged according to industrial technology, usually several, data acquisition control work station and each slave station communication networking Afterwards, acquisition, record and the control of industrial data can be completed, without being equipped with industrial computer, without professional programming development, cost It is low, there is most of function of industrial control system currently popular.However, data acquisition control work station is realized and each slave station Communication, it is desirable that each slave station have communications protocol identical with data acquisition control work station, and be connected to data acquisition control Each slave station communication verification mode having the same under the same communication interface of work station processed.Data acquisition control work station and slave station Although mostly using the MODBUS agreement of standard, the communication verification mode that each slave station uses poor time uneven, each slave station Manufacturing enterprise is mating by respective exploitation, and some uses odd, and some uses even parity check, and some uses no parity check, due to number Communication interface according to acquisition control work station is limited, and each communication interface can only meet a kind of slave station for communicating verification mode again, Which greatly limits can communicate therewith compatible slave station range.
Summary of the invention
The purpose of the present invention one is to provide a kind of data acquisition control work station.
A kind of data acquisition control work station has electricity in casing including casing and the liquid crystal touch screen being installed on casing Source module and the main control module being connect respectively with power module, communication module, to drive the display of liquid crystal touch screen to drive Block module, main control module include primary processor and the memory with primary processor communication connection, and communication module includes serial ports pipe Manage device, message monitoring device and to the communicating circuit with slave station communication connection, serial interface management device, the message monitoring device of communication module And communicating circuit two-by-two between communication connection, the serial interface management device of communication module and display drive block module with the master of main control module Processor communication connection, in which:
The primary processor of main control module is used to receive the operation signal inputted by liquid crystal touch screen, completes parameter setting;It sends Communication packet gives serial interface management device;Receive by serial interface management device convey Lai parsing after response message;By institute in response message The industrial data information for including is stored in memory in real time, and simultaneous transmission drives block module to display, to drive liquid crystal touch screen to carry out Display;Wherein, communication packet refers to the message sent from data acquisition control work station to slave station, and response message refers to from slave station to number The message sent according to acquisition control work station;
The serial interface management device of communication module is for receiving the communication packet that primary processor is sent;According to involved in communication packet Slave station address, record and the communication number of related slave station, and the communication number information with slave station is sent to message Monitor;Communication packet is sent to communicating circuit;Receive the response that the slave station that simultaneously recorded message monitor is sent is made The verification format information of message;Receive the response message made derived from slave station that message monitoring device is sent;By answering for record The verification format for answering message parses the response message made derived from slave station, and the response message after parsing is sent To the primary processor of main control module;
The message monitoring device of communication module is for receiving the communication number information with slave station that serial interface management device is sent;It receives logical The response message made derived from slave station that news circuit transmission is come;It is being sent according to serial interface management device with slave station communication number Information judges whether the communication with slave station is to communicate for the first time, if the communication with slave station is to communicate for the first time, judges that slave station is done The verification format of response message out, and the verification format information and response message for the response message that slave station is made are sent Serial interface management device is given, if the communication with slave station is not to communicate for the first time, the response message for directly being made slave station is sent Serial interface management device is given, without judging the verification format of response message that slave station is made;
The communicating circuit of communication module for receiving the communication packet that serial interface management device is sent, and by communication packet be sent to from It stands;The response message that slave station is sent is received, response message is sent to message monitoring device.
Further, communicating circuit includes serial communication circuit and Ethernet communication circuit.Under the structure, so that data are adopted Collection control work station and slave station can carry out data interaction by following three kinds of modes: 1, data acquisition control work station passes through serial ports Communicating circuit forms one-to-many local area network with slave station and is communicated, and data acquisition control work station is made as server-side, slave station For client direct interconnection;2, data acquisition control work station is communicated by Ethernet communication circuit and slave station, and data are adopted Collection control work station is as server-side, and slave station is as client, by matching identical network port number Direct Communication;3, data Acquisition control work station connects network router by Ethernet communication circuit, and wide area network, slave station are accessed in a manner of server-side Equally access wide area network in a manner of client, data acquisition control work station passes through network port number and slave station IP address Addressing system looks for slave station client, realizes wide area network communication.A variety of different communication modes, are allowed to be suitable for a variety of different Application.
It further, further include the acquisition control module being connect with power module, the acquisition control module includes acquisition Circuit, Acquisition Processor and control output module, Acquisition Circuit and control output module are adopted with Acquisition Processor communication connection The primary processor communication connection of set processor and main control module.Acquisition Circuit can access all types of industries sensor signal, access Industrial sensor signal sampled by Acquisition Circuit, amplifier and analog-to-digital conversion, be transformed into the identifiable number of Acquisition Processor Word signal, Acquisition Processor handle transformed digital signal, and synchronous transport is to the primary processor of main control module, The primary processor of main control module to signal value processing calculate, and be transferred to display drive block module, with drive liquid crystal touch screen into Row display, according to calculated result, the primary processor transmission of main control module exports control signal to Acquisition Processor, acquired place Reason device is transferred to control output module, realizes control output by control output module.The present invention passes through acquisition control module Setting can be directly realized by the acquisition and the control of external actuator of industrial sensor signal, to adapt to the application of more occasions.
Further, the control output module of acquisition control module includes analog output module and output switch parameter mould Block.Analog output module can synchronism output mA, V analog signals, with meet other equipment or system simultaneous display acquisition The demand of value;The exportable on-off model of switching value output module, such as on-off signal, SSR, SCR.
Further, the communication connection between the Acquisition Processor of acquisition control module and the primary processor of main control module is adopted With I2C bus.Spi bus, I2C bus etc. can be used in communication connection between Acquisition Processor and primary processor, due to I2C bus A clock line (SCL) and a data wire (SDA) are only needed, can be connected, at least clock line (SCLK), one are compared According to the spi bus of output (SDO), mouth line resource occupation is relatively fewer for root Data In-Line (SDI) and a radical.
Further, power module, main control module, communication module are respectively set on an independent pcb board, are respectively formed Power panel, mainboard and communication board.Power module, main control module and communication module can be set on same pcb board jointly, can also be set In on multiple pcb boards, for convenience of replacing, preferably, to be respectively set to one independent for power module, main control module, communication module On pcb board, it is respectively formed power panel, mainboard and communication board.
The purpose of the present invention two is to provide a kind of data transmission method of data acquisition control work station.
A kind of data transmission method of data acquisition control work station, comprising the following steps:
S1. communication connection channel is established between the communicating circuit and slave station of data acquisition control work station;
S2. the primary processor of data acquisition control work station issues communication packet to serial interface management device;
S3. after serial interface management device receives the communication packet that primary processor is sent, on the one hand, according to involved in communication packet Slave station address, the communication number of slave station involved in record data acquisition control work station and communication packet, and will be with The communication number information of slave station is sent to message monitoring device, on the other hand, communication packet is sent to communicating circuit, by communication electricity It send to slave station on road;
S4. it after slave station receives communication packet, automated tos respond to, issues response report to the communicating circuit of data acquisition control work station Response message after the communicating circuit of data acquisition control work station receives response message, is transferred to message monitoring device by text;
S5. after message monitoring device receives the response message made derived from slave station that communicating circuit transmission comes, according to serial ports pipe The communication number information with slave station that sends of reason device, judge this communication with slave station whether be communicate for the first time, if this Communication with slave station is to communicate for the first time, and message monitoring device sentences the verification format for the response message that this slave station is made Disconnected, when judging, message monitoring device first determines whether the check bit of response message is sky, if the check bit of response message is Sky then judges that the verification format of response message is " no parity check ", if the check bit of response message is not sky, by response report The numerical value of the data bit of text is converted into binary system, under binary system, judges in the numerical value of response message data bit the number of " 1 ", If the number of " 1 " is odd number, judge that the verification format of response message is " odd ", if the number of " 1 " is even number, The verification format for then judging response message is " even parity check ", and message monitoring device judges the school for the response message that slave station is made After testing format, the verification format information for the response message that slave station is made and response message are sent to serial interface management device, gone here and there Mouth manager receives and records the verification format information for the response message that slave station is made;If the communication of this and slave station is not To communicate for the first time, the response message that message monitoring device is then directly made slave station is sent to serial interface management device, without judgement The verification format for the response message that slave station is made;
After what S6. serial interface management device reception message monitoring device was sent is derived from the response message that slave station is made, according to record The verification format information for the response message that slave station is made, by the verification format of the response message of record, to derived from slave station institute The response message made is parsed, and the response message after parsing is sent to the primary processor of main control module.
Data acquisition control work station of the present invention, by the setting of serial interface management device and message monitoring device, so as to its with from It stands when communicating for the first time, message monitoring device is judged using the verification format of message what slave station was made, serial interface management device note Record the verification format information for the response message that lower message monitoring device is judged, thus with the unbroken communication of slave station postorder In, serial interface management device can parse the response message made derived from slave station by the verification format of the response message of record, Communicate data acquisition control work station of the present invention successfully with slave station.Data acquisition control work station of the present invention, no matter slave station Which kind of verification format response message has, because serial interface management device can parse the response message of slave station, so that it is realized With the adaptive communications of the slave station respectively with different check format, breach under the same communicating circuit interface of tradition only with tool The limitation for thering is each slave station of identical verification mode to be communicated, in this way, so that data acquisition control work station is in restricted communication Under the premise of circuit interface, it can preferably be compatible with each slave station and carry out communication management, keep data acquisition control work station substitution existing Control system becomes possibility, substantially reduces the cost and threshold of industrial data collection and control.And data acquisition control of the present invention When work station processed and slave station communicate, only communication need to judge the verification format of slave station for the first time, because serial interface management device has recorded slave station Format information is verified, in the communication of postorder and slave station, message monitoring device no longer needs to judge the verification format of slave station, i.e. message monitoring For device without time secondary verification format for judging slave station, communication efficiency is high.In addition, popular slave station mostly uses no parity check side in the market Formula first determines whether slave station is no parity check side in this regard, message monitoring device of the present invention judges in the verification format step of slave station Formula, compared to first determine whether slave station be using productive mode, from probability for, can judge the general of result at the beginning Rate is bigger, and this can greatly save from the time and judge the time, improves communication efficiency.
Detailed description of the invention
Fig. 1 is the decomposition texture schematic diagram of data acquisition control work station of the present invention;
Fig. 2 is the circuit structure diagram of data acquisition control work station of the present invention;
Fig. 3 is the circuit structure diagram of the power module of data acquisition control work station of the present invention.
Specific embodiment
The specific embodiment of data acquisition control work station of the present invention is described in detail with reference to the accompanying drawing.
As shown in Fig. 2, a kind of data acquisition control work station, including casing 100 and the liquid crystal being installed on casing 100 touching Screen 41 is touched, has power module 1 and the main control module connecting respectively with power module 12 in casing 100, communication module 3, use To drive the display of liquid crystal touch screen 41 to drive block module 4, main control module 2 includes primary processor 21 and communicates with primary processor 21 The memory 22 of connection, communication module 3 include serial interface management device 31, message monitoring device 32 and to 200 communication connection of slave station Communicating circuit 33, serial interface management device 31, message monitoring device 32 and the communicating circuit 33 of communication module 3 two-by-two between communication connection, The serial interface management device 31 of communication module 3 and display drive block module 4 with 21 communication connection of primary processor of main control module 2, In:
The primary processor 21 of main control module 2 completes parameter setting for receiving the operation signal inputted by liquid crystal touch screen 41; Communication packet is sent to serial interface management device 31;Receive by serial interface management device 31 convey Lai parsing after response message;By response Industrial data information included in message is stored in memory 22 in real time, and simultaneous transmission drives block module 4 to display, to drive liquid crystal Touch screen 41 is shown;Wherein, communication packet refers to the message sent from data acquisition control work station to slave station, response message Refer to the message sent from slave station to data acquisition control work station;
The serial interface management device 31 of communication module 3 is for receiving the communication packet that primary processor 21 is sent;According in communication packet The address of related slave station 200, record and the communication number of related slave station 200, and by the communication number with slave station 200 Information is sent to message monitoring device 32;Communication packet is sent to communicating circuit 33;It receives and recorded message monitor 32 is sent The verification format information for the response message that the slave station 200 come is made;What reception message monitoring device 32 was sent is derived from slave station 200 The response message made;By the verification format of the response message of record, the response message made derived from slave station 200 is carried out It parses, and the response message after parsing is sent to the primary processor 21 of main control module 2;
The message monitoring device 32 of communication module 3 is used to receive the communication number letter with slave station 200 that serial interface management device 31 is sent Breath;Receive the response message made derived from slave station 200 that the transmission of communicating circuit 33 comes;It is sent according to serial interface management device 31 With the communication number information of slave station 200, judge whether the communication with slave station 200 is to communicate for the first time, if the communication with slave station 200 To communicate for the first time, the verification format for the response message that slave station 200 is made, and the response report that slave station 200 is made are judged The verification format information and response message of text are sent to serial interface management device 31, if the communication with slave station 200 is not for the first time Communication, then be directly sent to serial interface management device 31 for the response message that slave station 200 is made, without judging that slave station 200 is done The verification format of response message out;
The communicating circuit 33 of communication module 3 sends out communication packet for receiving the communication packet that serial interface management device 31 is sent Give slave station 200;The response message that slave station 200 is sent is received, response message is sent to message monitoring device 32.
Data acquisition control work station of the present invention, preferably, communicating circuit 33 includes serial communication circuit 331 and Ethernet Communicating circuit 332.Under the structure, so that data acquisition control work station can be counted with slave station 200 by following three kinds of modes According to interaction: 1, data acquisition control work station forms one-to-many local area network by serial communication circuit 331 and slave station 200 and carries out Communication, data acquisition control work station are used as client direct interconnection as server-side, slave station 200;2, data acquisition control work Make station to be communicated by Ethernet communication circuit 332 with slave station 200, data acquisition control work station is as server-side, slave station 200 are used as client, by matching identical network port number Direct Communication;3, data acquisition control work station passes through Ethernet Communicating circuit 332 connects network router, wide area network is accessed in a manner of server-side, slave station 200 is same in a manner of client Access wide area network, data acquisition control work station by the addressing system of 200 IP address of network port number and slave station look for from It stands 200 clients, realizes wide area network communication.A variety of different communication modes are allowed to be suitable for a variety of different applications.
Data acquisition control work station of the present invention, preferably, further include the acquisition control module 5 being connect with power module 1, The acquisition control module 5 includes Acquisition Circuit 51, Acquisition Processor 52 and control output module 53, Acquisition Circuit 51 and control Output module 53 is communicated with 52 communication connection of Acquisition Processor, Acquisition Processor 52 and the primary processor 21 of main control module 2 Connection.Acquisition Circuit 51 can access all types of industries sensor signal, and the industrial sensor signal of access is carried out by Acquisition Circuit 51 Sampling, amplifier and analog-to-digital conversion, are transformed into the identifiable digital signal of Acquisition Processor 52, Acquisition Processor 52 is to transformed Digital signal is handled, and synchronous transport is to the primary processor 21 of main control module 2, the primary processor 21 of main control module 2 Signal value processing is judged, and is transferred to display and drives block module 4, to drive liquid crystal touch screen 41 to be shown, is tied according to judgement Fruit, the transmission of primary processor 21 of main control module 2 export control signal to Acquisition Processor 52, and acquired processor 52 is transferred to Output module 53 is controlled, control output is realized by control output module 53.The present invention passes through the setting of acquisition control module 5, It can be directly realized by the acquisition and the control of external actuator of industrial sensor signal, to adapt to the application of more occasions.
Data acquisition control work station of the present invention, preferably, the control output module 53 of acquisition control module 5 includes simulation Measure output module 531 and switching value output module 532.Analog output module 531 can synchronism output mA, V analog signals, The needs of to meet other equipment or system simultaneous display collection value;The exportable on-off model of switching value output module 532, such as On-off signal, SSR, SCR etc..
Data acquisition control work station of the present invention, as shown in Figure 1, acquisition control module 5 can be individually set on a pcb board, Acquisition control plate 50 is formed, acquisition control plate 50 can extend on demand.
Data acquisition control work station of the present invention, preferably, the Acquisition Processor 52 of acquisition control module 5 and master control molding Communication connection between the primary processor 21 of block 2 uses I2C bus.Communication connection between Acquisition Processor 52 and primary processor 21 can Using spi bus, I2C bus etc., since I2C bus only needs a clock line (SCL) and a data wire (SDA) Connection, it is total according to the SPI of output (SDO) compared to an at least clock line (SCLK), a Data In-Line (SDI) and a radical Line, mouth line resource occupation are relatively fewer.
Data acquisition control work station of the present invention, preferably, power module 1, main control module 2, communication module 3 are respectively set In on an independent pcb board, it is respectively formed power panel 10, mainboard 20 and communication board 30.Power module 1, main control module 2 and logical Interrogating module 3 can be set on same pcb board jointly, can also be set on multiple pcb boards, for convenience of replacing, preferably, power module 1, Main control module 2, communication module 3 are respectively set on an independent pcb board, are respectively formed power panel 10, mainboard 20 and communication board 30。
Data acquisition control work station of the present invention, power module 1 is to convert main control module 2, communication mould for alternating current The power supply that block module 4 is adapted to is driven in block 3 and display, supplies to drive block module 4 for main control module 2, communication module 3 and display Electricity.The structure of power module 1 is numerous, as shown in figure 3, it is defeated to generally include sequentially connected AC input current rectifying and wave filtering circuit 11, DC Enter filter circuit 12, power conversion circuit 13 and output rectification circuit 14, between power conversion circuit 13 and output rectification circuit 14 It is also connected with feed circuit 15, electric main accesses the AC input current rectifying and wave filtering circuit 11 of power module 1, rectifies and filters by AC input After 11 rectifying and wave-filtering of wave circuit, direct current is obtained, the direct current electricity output after rectification carries out eliminating electricity to DC input filter circuit 12 Magnetic noise and clutter, direct current is exported again to power conversion circuit 13 later, carries out power conversion, through exporting rectified current after conversion Road 14 obtains several groups output voltage, and output voltage is sequentially output again to main control module 2, communication module 3 and liquid crystal touch screen 41 etc. are powered, while output voltage is also exported to feed circuit 15, and feed circuit 15 is constantly sampled output voltage, Output voltage is compared with reference voltage, when output voltage exception feed circuit 15 in real time to power conversion circuit 13 into Row, which adjusts output power, makes output voltage remain stable always.
Data acquisition control work station of the present invention, liquid crystal touch screen 41 are usually made of touch screen and liquid crystal display.Display is driven Block module 4 can be carried by liquid crystal touch screen 41 in the back side of liquid crystal touch screen 41, and the liquid crystal for driving block module 4 without display touches Touch screen 41, display drive block module 4 can also self-setting, under the structure, preferably, block module 4 is driven in display is individually set to a pcb board On, it forms display and drives block plate 40, as shown in Figure 1.
Data acquisition control work station of the present invention, as shown in Figure 1, can be used a bus switching plate 60 as power panel 10, The circuit switching bridge of block plate 40 is driven in mainboard 20, communication board 30 and display.Specifically, power panel 10, mainboard 20, communication board 30, aobvious Show that driving block plate 40 and acquisition control plate 50 is connect with bus switching plate 60 by Male/female connector.
Data acquisition control work station of the present invention, power panel 10, mainboard 20, communication board 30, display drive block plate 40 can pass through Bolt is fixed in casing 100, is also mountable in the sliding slot of casing 100, is realized and is fixed, as shown in Figure 1.
The message monitoring device 32 of data acquisition control work station of the present invention, communication module 3 generally includes data buffer 321 With check code calculator 322.The caching for the data that data buffer 321 is received for message monitoring device 32, such as communication module 3 The communication number information of slave station 200 that sends of serial interface management device 31;Check code calculator 322 is then for judging response message Verification format.According to the action and function of message monitoring device 32 comprising data buffer 321 and check code determining device 322 Structure be clearly, the present invention no longer does excessive elaboration.
After data acquisition control work station of the present invention, with the communicating interrupt of slave station 200, again communicate when need to rejudge from Stand 200 inspection format.
The present invention also provides a kind of data transmission methods of data acquisition control work station.
A kind of data transmission method of data acquisition control work station, comprising the following steps:
S1. communication connection channel is established between the communicating circuit 33 of data acquisition control work station and slave station 200;
S2. the primary processor 21 of data acquisition control work station issues communication packet to serial interface management device 31;
S3. after serial interface management device 31 receives the communication packet that primary processor 21 is sent, on the one hand, according in communication packet The address of related slave station 200, the communication of record data acquisition control work station and slave station 200 involved in communication packet Number, and the communication number information with slave station 200 is sent to message monitoring device 32, on the other hand, communication packet is sent to Communicating circuit 33 is sent by communicating circuit 33 to slave station 200;
S4. it after slave station 200 receives communication packet, automated tos respond to, is issued to the communicating circuit 33 of data acquisition control work station Response message is transferred to message after the communicating circuit 33 of data acquisition control work station receives response message by response message Monitor 32;
S5. after message monitoring device 32 receives the response message made derived from slave station 200 that the transmission of communicating circuit 33 comes, according to The communication number information with slave station 200 that serial interface management device 31 is sent judges whether the communication of this and slave station 200 is for the first time Communication, if the communication of this and slave station 200 is to communicate for the first time, the response that message monitoring device 32 makes this slave station 200 The verification format of message is judged, when judging, message monitoring device 32 first determines whether the check bit of response message is sky, such as The check bit of fruit response message is sky, then judges that the verification format of response message is " no parity check ", if the school of response message Testing position not is sky, converts binary system for the numerical value of the data bit of response message, under binary system, judges response message data The number of " 1 " in the numerical value of position judges that the verification format of response message is " odd " if the number of " 1 " is odd number, If the number of " 1 " be even number, judge response message verification format be " even parity check ", message monitoring device 32 judge from Stand after the verification format of response message that 200 are made, the verification format information for the response message that slave station 200 is made and Response message is sent to serial interface management device 31, and serial interface management device 31 receives and records the school for the response message that slave station 200 is made Test format information;If it is to communicate for the first time that the communication of this and slave station 200, which is not, directly by slave station 200 if message monitoring device 32 The response message made is sent to serial interface management device 31, without judging the verification lattice of response message that slave station 200 is made Formula;
After what S6. the reception of serial interface management device 31 message monitoring device 32 was sent is derived from the response message that slave station 200 is made, root It is right by the verification format of the response message of record according to the verification format information for the response message that the slave station 200 of record is made The response message made derived from slave station 200 is parsed, and the response message after parsing is sent to the master of main control module 2 Processor 21.
Data acquisition control work station of the present invention, by the setting of serial interface management device 31 and message monitoring device 32, so as to it When communicating for the first time with slave station 200, message monitoring device 32 is judged using the verification format of message what slave station 200 was made, Serial interface management device 31 records the verification format information for the response message that message monitoring device 32 is judged, thus with the slave station In the unbroken communication of 200 postorders, serial interface management device 31 can be by the verification format of the response message of record, to derived from slave station 200 The response message made is parsed, and communicates data acquisition control work station of the present invention successfully with slave station 200.Number of the present invention According to acquisition control work station, no matter which kind of verification format the response message of slave station 200 has, because serial interface management device 31 can to from 200 response message of standing is parsed, and is led to so that it is realized with the adaptive of the slave station 200 respectively with different check format News breach the limitation only communicated with each slave station with identical verification mode under same 33 interface of communicating circuit of tradition Property, in this way, so that data acquisition control work station under the premise of restricted communication 33 interface of circuit, can preferably be compatible with each slave station Communication management is carried out, so that data acquisition control work station substitution existing control system is become possibility, substantially reduces industrial data The cost and threshold of acquisition and control.And when data acquisition control work station of the present invention and the communication of slave station 200, only communicate for the first time The verification format that need to judge slave station 200, because serial interface management device 31 has recorded the verification format information of slave station 200, postorder and slave station In 200 communication, message monitoring device 32 no longer needs to judge the verification format of slave station 200, i.e. message monitoring device 32 is sentenced without secondary The verification format of disconnected slave station 200, communication efficiency are high.In addition, popular slave station 200 mostly uses no parity check mode in the market, it is right This, message monitoring device 32 of the present invention judges in the verification format step of slave station 200, first determines whether slave station 200 is no parity check Mode, compared to first determine whether slave station 200 be using productive mode, from probability for, can determine whether to judge at the beginning The probability of result is bigger out, and this can greatly save from the time and judge the time, improves communication efficiency.
Data acquisition control work station of the present invention, each circuit module function of dominant module, in actual circuit design, each function Energy module can be realized by variant chip, can also be realized by same chip, as the primary processor 21 of main control module 2 can be used The ARM chip of stm32M series, and the ARM chip of stm32M series can also realize the serial interface management device 31 and report of communication module 3 The function of the check code calculator 322 of literary monitor 32, so in actual setting, it can be by the serial interface management device 31 of communication module 3 It is integrated on same chip with the check code calculator 322 of message monitoring device 32 with the primary processor 21 of main control module 2;Communication Serial chip MAX485 or MAX232 etc. can be used in the serial communication circuit 331 of circuit 33, and Ethernet communication circuit 332 can be used Ethernet chip ws5500 or enc28j60 etc.;Various single-chip microcontrollers can be used in the Acquisition Processor 52 of acquisition control module 5, Such as 89c51 single-chip microcontroller or stm32F series A RM.
The above embodiment is a preferred embodiment of the present invention, but embodiments of the present invention are not by above-described embodiment Limitation, other any changes, modifications, substitutions, combinations, simplifications made without departing from the spirit and principles of the present invention, It should be equivalent substitute mode, be included within the scope of the present invention.

Claims (7)

1. a kind of data acquisition control work station has power supply in casing including casing and the liquid crystal touch screen being installed on casing Module and the main control module being connect respectively with power module, communication module, the display drive block to drive liquid crystal touch screen Module, main control module include primary processor and the memory with primary processor communication connection, and communication module includes serial interface management Device, message monitoring device and to the communicating circuit with slave station communication connection, the serial interface management device of communication module, message monitoring device and Communicating circuit two-by-two between communication connection, the serial interface management device of communication module and display drive block module with the main place of main control module Manage device communication connection, in which:
The primary processor of main control module is used to receive the operation signal inputted by liquid crystal touch screen, completes parameter setting;It sends Communication packet gives serial interface management device;Receive by serial interface management device convey Lai parsing after response message;By institute in response message The industrial data information for including is stored in memory in real time, and simultaneous transmission drives block module to display, to drive liquid crystal touch screen to carry out Display;Wherein, communication packet refers to the message sent from data acquisition control work station to slave station, and response message refers to from slave station to number The message sent according to acquisition control work station;
The serial interface management device of communication module is for receiving the communication packet that primary processor is sent;According to involved in communication packet Slave station address, record and the communication number of related slave station, and the communication number information with slave station is sent to message Monitor;Communication packet is sent to communicating circuit;Receive the response that the slave station that simultaneously recorded message monitor is sent is made The verification format information of message;Receive the response message made derived from slave station that message monitoring device is sent;By answering for record The verification format for answering message parses the response message made derived from slave station, and the response message after parsing is sent To the primary processor of main control module;
The message monitoring device of communication module is for receiving the communication number information with slave station that serial interface management device is sent;It receives logical The response message made derived from slave station that news circuit transmission is come;It is being sent according to serial interface management device with slave station communication number Information judges whether the communication with slave station is to communicate for the first time, if the communication with slave station is to communicate for the first time, judges that slave station is done The verification format of response message out, and the verification format information and response message for the response message that slave station is made are sent Serial interface management device is given, if the communication with slave station is not to communicate for the first time, the response message for directly being made slave station is sent Serial interface management device is given, without judging the verification format of response message that slave station is made;
The communicating circuit of communication module for receiving the communication packet that serial interface management device is sent, and by communication packet be sent to from It stands;The response message that slave station is sent is received, response message is sent to message monitoring device.
2. data acquisition control work station according to claim 1, it is characterised in that: communicating circuit includes serial communication electricity Road and Ethernet communication circuit.
3. data acquisition control work station according to claim 1, it is characterised in that: further include being connect with power module Acquisition control module, the acquisition control module include Acquisition Circuit, Acquisition Processor and control output module, Acquisition Circuit and Control output module with Acquisition Processor communication connection, the primary processor communication connection of Acquisition Processor and main control module.
4. data acquisition control work station according to claim 3, it is characterised in that: the control of acquisition control module exports Module includes analog output module and switching value output module.
5. data acquisition control work station according to claim 3, it is characterised in that: the acquisition process of acquisition control module Communication connection between device and the primary processor of main control module uses I2C bus.
6. data acquisition control work station according to claim 1, it is characterised in that: power module, leads to main control module News module is respectively set on an independent pcb board, is respectively formed power panel, mainboard and communication board.
7. a kind of data transmission method of data acquisition control work station, for claim 1 to as claimed in claim 6 any In communication between data acquisition control work station and slave station, comprising the following steps:
S1. communication connection channel is established between the communicating circuit and slave station of data acquisition control work station;
S2. the primary processor of data acquisition control work station issues communication packet to serial interface management device;
S3. after serial interface management device receives the communication packet that primary processor is sent, on the one hand, according to involved in communication packet Slave station address, the communication number of slave station involved in record data acquisition control work station and communication packet, and will be with The communication number information of slave station is sent to message monitoring device, on the other hand, communication packet is sent to communicating circuit, by communication electricity It send to slave station on road;
S4. it after slave station receives communication packet, automated tos respond to, issues response report to the communicating circuit of data acquisition control work station Response message after the communicating circuit of data acquisition control work station receives response message, is transferred to message monitoring device by text;
S5. after message monitoring device receives the response message made derived from slave station that communicating circuit transmission comes, according to serial ports pipe The communication number information with slave station that sends of reason device, judge this communication with slave station whether be communicate for the first time, if this Communication with slave station is to communicate for the first time, and message monitoring device sentences the verification format for the response message that this slave station is made Disconnected, when judging, message monitoring device first determines whether the check bit of response message is sky, if the check bit of response message is Sky then judges that the verification format of response message is " no parity check ", if the check bit of response message is not sky, by response report The numerical value of the data bit of text is converted into binary system, under binary system, judges in the numerical value of response message data bit the number of " 1 ", If the number of " 1 " is odd number, judge that the verification format of response message is " odd ", if the number of " 1 " is even number, The verification format for then judging response message is " even parity check ", and message monitoring device judges the school for the response message that slave station is made After testing format, the verification format information for the response message that slave station is made and response message are sent to serial interface management device, gone here and there Mouth manager receives and records the verification format information for the response message that slave station is made;If the communication of this and slave station is not To communicate for the first time, the response message that message monitoring device is then directly made slave station is sent to serial interface management device, without judgement The verification format for the response message that slave station is made;
After what S6. serial interface management device reception message monitoring device was sent is derived from the response message that slave station is made, according to record The verification format information for the response message that slave station is made, by the verification format of the response message of record, to derived from slave station institute The response message made is parsed, and the response message after parsing is sent to the primary processor of main control module.
CN201910688056.3A 2019-07-29 2019-07-29 Data acquisition control workstation and data transmission method thereof Active CN110442096B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910688056.3A CN110442096B (en) 2019-07-29 2019-07-29 Data acquisition control workstation and data transmission method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910688056.3A CN110442096B (en) 2019-07-29 2019-07-29 Data acquisition control workstation and data transmission method thereof

Publications (2)

Publication Number Publication Date
CN110442096A true CN110442096A (en) 2019-11-12
CN110442096B CN110442096B (en) 2023-07-21

Family

ID=68431968

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910688056.3A Active CN110442096B (en) 2019-07-29 2019-07-29 Data acquisition control workstation and data transmission method thereof

Country Status (1)

Country Link
CN (1) CN110442096B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103312563A (en) * 2013-06-24 2013-09-18 深圳市金正方科技股份有限公司 Automatic information collection method and system based on power line carrier communication
CN103428089A (en) * 2012-05-16 2013-12-04 深圳市金正方科技有限公司 Method and system for optimizing low-voltage power line carrier communication network
CN103795557A (en) * 2012-10-31 2014-05-14 杭州华三通信技术有限公司 Method, device, and system for synchronizing port modes between devices
CN206135946U (en) * 2016-10-31 2017-04-26 国家电网公司 Resolver is monitored to transformer substation's communication message
CN208607657U (en) * 2018-08-17 2019-03-15 广东蓄能发电有限公司 The storage station LCU both-way communication message grabbing device of multiplex roles serial communication

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428089A (en) * 2012-05-16 2013-12-04 深圳市金正方科技有限公司 Method and system for optimizing low-voltage power line carrier communication network
CN103795557A (en) * 2012-10-31 2014-05-14 杭州华三通信技术有限公司 Method, device, and system for synchronizing port modes between devices
CN103312563A (en) * 2013-06-24 2013-09-18 深圳市金正方科技股份有限公司 Automatic information collection method and system based on power line carrier communication
CN206135946U (en) * 2016-10-31 2017-04-26 国家电网公司 Resolver is monitored to transformer substation's communication message
CN208607657U (en) * 2018-08-17 2019-03-15 广东蓄能发电有限公司 The storage station LCU both-way communication message grabbing device of multiplex roles serial communication

Also Published As

Publication number Publication date
CN110442096B (en) 2023-07-21

Similar Documents

Publication Publication Date Title
CN102354175B (en) Remote I/O (input/output) control system of Modbus fieldbus DI-16-route monitor
CN106597901B (en) Distributed Integration managing power consumption and analysis method and system based on cloud service
CN102053935A (en) MODBUS serial communication protocol-based communication method
CN103051055A (en) Convergence controller
CN104881008A (en) Remote monitoring system based on Internet-of-Things
CN205563260U (en) Multi -functional data collection station and collection system based on wisdom mill
CN202150868U (en) Multi-protocol data acquisition gateway
CN101424721A (en) Telemetry link on-line detecting system of scheduling automated system
CN106685782B (en) Profibus active terminal resistance device with DP bus data acquisition function
CN105720690A (en) Intelligent circuit breaker communication networking system
CN108490251A (en) A kind of digital electric energy metering device meeting 3/2 wiring
CN206077426U (en) Single-chip microcomputer LAN control system based on MODBUS RTU communications protocol
CN205845285U (en) A kind of bluetooth kilowatt meter recorder
CN115801915B (en) Automatic data communication protocol adapting interface between digital sensor and host
CN110442096A (en) A kind of data acquisition control work station and its data transmission method
CN101662369A (en) Universal network adapter
CN213399965U (en) Infrared intelligent network acquisition terminal
CN205899366U (en) A data acquisition and network device for intelligent manufacturing system
CN113420079A (en) Data management method, system, terminal and storage medium of environment-friendly monitoring platform
CN207835500U (en) A kind of detecting system monitoring communication module based on cloud
CN208656503U (en) A kind of three-phase intelligent PDU
CN202230360U (en) Remote I/O control system for Modbus fieldbus DI-16-path monitor
CN202583748U (en) Communication module based on serial bus
CN109682015A (en) A kind of air-conditioning internal serial protocol interface Combining soft control system
CN202677153U (en) Remote monitoring system of electromechanical device status based on GSM (global system for mobile communication) short messages

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant