CN103853121B - A kind of controlled data stream multi-point data acquisition apparatus and method based on PLC - Google Patents

A kind of controlled data stream multi-point data acquisition apparatus and method based on PLC Download PDF

Info

Publication number
CN103853121B
CN103853121B CN201210512299.XA CN201210512299A CN103853121B CN 103853121 B CN103853121 B CN 103853121B CN 201210512299 A CN201210512299 A CN 201210512299A CN 103853121 B CN103853121 B CN 103853121B
Authority
CN
China
Prior art keywords
plc
data
industrial computer
numbering
target
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
Application number
CN201210512299.XA
Other languages
Chinese (zh)
Other versions
CN103853121A (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.)
Shenyang Institute of Automation of CAS
Original Assignee
Shenyang Institute of Automation of CAS
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 Shenyang Institute of Automation of CAS filed Critical Shenyang Institute of Automation of CAS
Priority to CN201210512299.XA priority Critical patent/CN103853121B/en
Publication of CN103853121A publication Critical patent/CN103853121A/en
Application granted granted Critical
Publication of CN103853121B publication Critical patent/CN103853121B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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]

Abstract

The present invention discloses a kind of that can be used for industrial occasions multipoint acquisition data and requires the controlled collecting method of data stream and device.Including an industrial computer, connect at least one PLC by switch, number for each PLC, and numbering is unique, as the mark distinguishing different PLC;Thread pool is opened up, for processing the data communication of different PLC for each PLC;Control the data flow between industrial computer and PLC;At least one PLC, every PLC identify numbering and the numbering of other PLC of oneself, and when communication, numbering is resolved to IP address inside PLC;Every PLC opens two different ports, one as data sending terminal mouth, one as data receiver port.Data flow of the present invention is controlled, has higher motility, can meet the occasion that data collection point distribution regularity is poor.

Description

A kind of controlled data stream multi-point data acquisition apparatus and method based on PLC
Technical field
The present invention discloses a kind of that can be used for industrial occasions multipoint acquisition data and requires the controlled data of data stream Acquisition method and device.
Background technology
PLC is the commonly used equipment of industrial circle data acquisition, and PLC has the spies such as able to programme, good stability Point.Data acquisition unit based on PLC or method are the most of common occurrence.But these method or apparatus are often It is that data flow is fixed, such as the master control upper computer of traffic organising room, in the case of there is no host computer, often Flow to certain the high PLC of importance, then data are uniformly processed by this host computer or PLC.This tradition Mode data flow uncontrollable, lack motility, it is impossible to adapt to new industrial occasions data acquisition the most multiple Miscellaneous demand.
Summary of the invention
For above-mentioned weak point present in prior art, the technical problem to be solved in the present invention is to provide one Plant the controlled data stream multi-point data acquisition apparatus and method that data flow based on PLC is controlled.
The technical scheme is that a kind of controlled data stream based on PLC of the present invention Multi-point data acquisition device, including
One industrial computer, connects at least one PLC by switch, numbers for each PLC, and numbering Uniquely, as the mark distinguishing different PLC;Thread pool is opened up for each PLC, different for processing The data communication of PLC;Control the data flow between industrial computer and PLC;
At least one PLC, every PLC identifies numbering and the numbering of other PLC of oneself, when communication Numbering is resolved to IP address inside PLC;Every PLC opens two different ports, a conduct Data sending terminal mouth, one as data receiver port.
The difference of principal and subordinate is not had between described PLC.
Whether described industrial computer shows the communication state of each PLC and breaks down and fault type.
Described industrial computer shows the data value of all PLC in real time.
A kind of controlled data stream multi-point data acquisition method based on PLC, comprises the following steps:
In industrial computer, input needs to read the Data Source PLC numbering of data, address, data sintering, inclined Shifting amount and target PLC numbering;
Industrial computer sends communication command according to the information of input to data source PLC and target PLC;
Target PLC reads the data sintering of data source PLC to skew by the read method of tcp/ip agreement Data in amount.
Described industrial computer sends communication command to data source PLC and target PLC, specifically according to the information of input For:
Industrial computer will need the PLC numbering reading data corresponding with the IP address of this PLC;
Industrial computer sends the numbering of target PLC to data source PLC by the method for ethernet communication.
Described target PLC reads the data sintering of data source PLC extremely by the read method of tcp/ip agreement Data in side-play amount, particularly as follows:
The method that data source PLC comprises justice by resolving ethernet communication method data obtains data to be read and rises Beginning address area and side-play amount;
Industrial computer specifies data initial address district to flow to target to the data in side-play amount from data source PLC PLC;
Industrial computer and target PLC are attempted setting up and are connected;If successful connection, then industrial computer is sent out to target PLC Sending data stream control command, if connecting unsuccessful, reattempting to connection;
Target PLC reads the data sintering of data source PLC to skew by the read method of tcp/ip agreement Data in amount.
The invention have the advantages that
1. data flow is controlled, has higher motility, can meet data collection point distribution regularity poor Occasion;
2. industrial computer can show the real time data of all terminal units, facilitates observer to grasp each point data at any time Collection situation and data value;
3. can gather ethernet type data, serial ports categorical data etc., various types of sensor can be connected, Disclosure satisfy that most of data acquisition request.
Accompanying drawing explanation
Fig. 1 is apparatus of the present invention circuit theory diagrams;
Fig. 2 is method of data flow control.
Detailed description of the invention
Below in conjunction with the accompanying drawings and embodiment the present invention is described in further detail.
As shown in Figure 1-2, a kind of controlled data stream multi-point data acquisition device based on PLC of the present invention, bag Include: an industrial computer and some PLC, PLC mounting digital quantity input module, Analog input mModule, Counter module, pulse generator module, RS232 module, RS485 module.Number for each PLC, And numbering is unique, opens up thread pool for processing the data of different PLC for each PLC in industrial computer Communication, using these number record mark as the different PLC of differentiation in industrial computer.Every PLC identifies The numbering of oneself and the numbering of other PLC, when communication, numbering is resolved to IP address inside PLC. Every PLC opens two different ports, one as data sending terminal mouth, one as data receiver Mouthful.Every PLC status is identical, does not has the difference of principal and subordinate, in order to the data between different PLC pass mutually.Work Control machine shows as the state of communication and controls equipment, can show the communication state and whether of each PLC Break down and fault type etc., it is also possible to control data flow by industrial computer, such as the PLC need of A point During B point data to be read, it is possible to be controlled by industrial computer, make A point data to B point, industry control Machine can also show in real time data value a little.
D.C. regulated power supply selects the WYJ600 D.C. regulated power supply of Shanghai Wen Hua power-supply device company limited.
Industrial computer selects Siemens's SIMATIC IPC847C industrial computer, and SIMATIC IPC847C is a The Industrial PC of firm and great autgmentability, uses the design (4HM) of 19 inches.It has prominent length Phase availability, therefore can provide protection with high investment, especially may insure that in severe industrial environment (example As having high dust concentration, high temperature and the environment of high impact load) in reliable operation.
Netting twine uses common double end RJ45 netting twine, and length of mesh wire is less than 100 meters.
The network switch selects Cisco's Express500 switch, Cisco Catalyst Express500 switch Offer double-layer network manages, and can manage Fast Ethernet and gigabit Ethernet, it is provided that choke free linear speed performance And one aim at data, wireless communication with IP and the secure network platform that optimizes.Cisco Catalyst Express 500 additionally provide multiple POE (PoE) option, help to reduce cost and the complexity of IP communication Degree, and support the new application of Ethernet.
PLC selects WAGO fieldbus controller, and this fieldbus controller is suitable for 10/100Mbits/s Message transmission rate, meet IEC61131-3 program standard.This controller offer 512KB program internal memory, 256KB datarams and 24KB keep internal memory.32 bit CPUs have multitasking function and backup battery Real-time clock.This controller provide multiple different application protocol, for data collection and control (MODBUS, ETHERNET/IP) or for system administration and diagnosis (HTTP, BootP, DHCP, DNS, SNTP, FTP, SNMP and SMTP).PLC fieldbus controller needs to mount data function module, defeated including analog quantity Enter module, digital quantity input module, RS232 communication module, RS485 module.
Concrete connection is as follows:
Siemens industrial computer IPC847C and Cisco's Express500 switch are linked by double end RJ45 netting twine, Switch is connected with the PLC of far-end by netting twine, and PLC includes controller 750-881, analog quantity Input module 750-476, digital quantity input module 750-400, counter module 750-638, pulse generator Module 750-635, RS232 communication module 750-650, RS485 communication module 750-653, terminal module 750-600, above-mentioned each module once connects.These modules connect various kinds of sensors respectively, gather desired data. Digital quantity input module 750-400 can detect the rising edge voltage of 24VDC, by itself and temperature alarm connection, Temperature alarm sends warning when temperature reaches preset temperature;Analog input mModule 750-476 can gather mould Analog quantity input signal, connects piezometer, and pressure value is converted into the output of 0 ~ 10VDC voltage by piezometer;Meter Number device module 750-638 linkage counter, pulse generator module 750-635 connects pulse generator, RS232 Communication module 750-650 connects the serial communication equipment of RS232 type, RS485 communication module 750-653 Connect the communication apparatus of RS485 type.
Control data stream jointly to be realized by industrial computer and PLC.First in industrial computer, input needs to read The PLC numbering fetched data, address, data sintering, side-play amount, target PLC numbering.Input this write information After, industrial computer sends communication command, target PLC according to the information of input to data source PLC and target PLC Read according to the data in sintering to side-play amount by the read method of tcp/ip agreement, complete data flow con-trol. Data flow con-trol can also regularly be transmitted to another by the data of certain PLC of control of timer period PLC。
The method of data flow control of the present invention: by corresponding with IP address for PLC numbering in industrial computer;Specify number Number according to source PLC;Specify initial address and the side-play amount of data source PLC data to be read;Specify data stream To target PLC;Industrial computer and target PLC are attempted setting up and are connected;If successful connection, then industrial computer is to mesh Mark PLC sends data stream control command, if connecting unsuccessful, reattempts to connection;Target PLC is passed through The read method of tcp/ip agreement reads data;Resume waiting for data stream control command.

Claims (7)

1. a controlled data stream multi-point data acquisition device based on PLC, it is characterised in that include
One industrial computer, connects at least one PLC by switch, numbers for each PLC, and numbering Uniquely, as the mark distinguishing different PLC;Thread pool is opened up for each PLC, different for processing The data communication of PLC;Control the data flow between different PLC;
At least two PLC, every PLC identifies numbering and the numbering of other PLC of oneself, when communication Numbering is resolved to IP address inside PLC;Every PLC opens two different ports, a conduct Data sending terminal mouth, one as data receiver port.
A kind of controlled data stream multi-point data acquisition device based on PLC the most according to claim 1, its feature It is between described PLC, there is no the difference of principal and subordinate.
A kind of controlled data stream multi-point data acquisition device based on PLC the most according to claim 1, its feature Being, whether described industrial computer shows the communication state of each PLC and breaks down and fault type.
A kind of controlled data stream multi-point data acquisition device based on PLC the most according to claim 1, it is special Levying and be, described industrial computer shows the data value of all PLC in real time.
5. a controlled data stream multi-point data acquisition method based on PLC, it is characterised in that comprise the following steps:
In industrial computer, input needs to read the Data Source PLC numbering of data, address, data sintering, inclined Shifting amount and target PLC numbering;
Industrial computer sends communication command according to the information of input to data source PLC and target PLC;
Target PLC reads the data sintering of data source PLC to skew by the read method of tcp/ip agreement Data in amount.
A kind of controlled data stream multi-point data acquisition method based on PLC the most according to claim 5, it is special Levying and be, described industrial computer sends communication command according to the information of input to data source PLC and target PLC, Particularly as follows:
Industrial computer will need the PLC numbering reading data corresponding with the IP address of this PLC;
Industrial computer sends the numbering of target PLC to data source PLC by the method for ethernet communication.
A kind of controlled data stream multi-point data acquisition method based on PLC the most according to claim 5, it is special Levying and be, the data that described target PLC reads data source PLC by the read method of tcp/ip agreement initiate District to the data in side-play amount, particularly as follows:
The method that data source PLC comprises justice by resolving ethernet communication method data obtains data to be read and rises Beginning address area and side-play amount;
Industrial computer specifies data initial address district to flow to target to the data in side-play amount from data source PLC PLC;
Industrial computer and target PLC are attempted setting up and are connected;If successful connection, then industrial computer is sent out to target PLC Sending data stream control command, if connecting unsuccessful, reattempting to connection;
Target PLC reads the data sintering of data source PLC to skew by the read method of tcp/ip agreement Data in amount.
CN201210512299.XA 2012-11-30 2012-11-30 A kind of controlled data stream multi-point data acquisition apparatus and method based on PLC Expired - Fee Related CN103853121B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210512299.XA CN103853121B (en) 2012-11-30 2012-11-30 A kind of controlled data stream multi-point data acquisition apparatus and method based on PLC

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210512299.XA CN103853121B (en) 2012-11-30 2012-11-30 A kind of controlled data stream multi-point data acquisition apparatus and method based on PLC

Publications (2)

Publication Number Publication Date
CN103853121A CN103853121A (en) 2014-06-11
CN103853121B true CN103853121B (en) 2016-08-17

Family

ID=50860914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210512299.XA Expired - Fee Related CN103853121B (en) 2012-11-30 2012-11-30 A kind of controlled data stream multi-point data acquisition apparatus and method based on PLC

Country Status (1)

Country Link
CN (1) CN103853121B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180062967A1 (en) * 2016-08-24 2018-03-01 Epro Gmbh Apparatus and Method for Providing Power to Machine Measurement Devices via Data Communication Network
CN110161950A (en) * 2019-05-22 2019-08-23 北京信息科技大学 A kind of highly reliable high-performance data acquisition system and method based on PLC
CN113612838A (en) * 2021-07-30 2021-11-05 三一汽车制造有限公司 Mixing station control method and device, mixing station, electronic device and medium
CN114397852A (en) * 2022-01-18 2022-04-26 中天钢铁集团(南通)有限公司 Method for detecting downtime of PLC host

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414171A (en) * 2007-10-19 2009-04-22 烟台杰瑞石油装备技术有限公司 Oil field fracturing pumping remote automatic control system
CN101452639A (en) * 2007-11-30 2009-06-10 中国科学院沈阳自动化研究所 Ethernet network data acquisition and transmission method and system
CN202331135U (en) * 2011-01-05 2012-07-11 深圳市赛远自动化系统有限公司 System for monitoring long-distance industrial network based on S-Link and VLAN (Virtual Local Area Network) technology
CN202482049U (en) * 2012-03-08 2012-10-10 罗时金 Quantitative oil delivery system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120316658A1 (en) * 2010-02-15 2012-12-13 Exeloo Limited Web based remote monitoring and control system
KR101214280B1 (en) * 2010-12-27 2012-12-24 주식회사 포스코아이씨티 Automatic System Comprising Apparatus for Communication Interlock

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414171A (en) * 2007-10-19 2009-04-22 烟台杰瑞石油装备技术有限公司 Oil field fracturing pumping remote automatic control system
CN101452639A (en) * 2007-11-30 2009-06-10 中国科学院沈阳自动化研究所 Ethernet network data acquisition and transmission method and system
CN202331135U (en) * 2011-01-05 2012-07-11 深圳市赛远自动化系统有限公司 System for monitoring long-distance industrial network based on S-Link and VLAN (Virtual Local Area Network) technology
CN202482049U (en) * 2012-03-08 2012-10-10 罗时金 Quantitative oil delivery system

Also Published As

Publication number Publication date
CN103853121A (en) 2014-06-11

Similar Documents

Publication Publication Date Title
CN103853121B (en) A kind of controlled data stream multi-point data acquisition apparatus and method based on PLC
CN202956644U (en) Power battery production process information monitoring system based on distributed control system (DCS)
CN101452639A (en) Ethernet network data acquisition and transmission method and system
CN102684943B (en) Textile industrial ethernet monitoring system and method thereof
CN105137928A (en) Full-automatic production line data collection method and system thereof
CN1964363B (en) Configurable I/O module with multiple bus interface
CN103677838A (en) RTU sensor adaptation layer based on virtual sensors and design method of RTU sensor adaptation layer
CN200969044Y (en) Hot-line work tools storeroom intelligent control and management system
CN201134815Y (en) Ethernet data collecting and transmitting system
CN103034220A (en) Power plant integrated controller
CN106707985A (en) Multi-bus data communication system
CN204009531U (en) The monitoring of methane station online data and uploading system
CN206533399U (en) A kind of electric power scheduling automatization system
CN2916718Y (en) Field-bus distributed control system for chemical fiber spinning and drying
CN202939476U (en) PLC-based multi-point data acquisition device with controllable data flow direction
CN102520658A (en) Industrial human-computer interface configuration system and variable monitoring method thereof
CN202230362U (en) Industrial control system
CN207764596U (en) A kind of photovoltaic digital communication supervisor equipment
CN103676790A (en) Photovoltaic pipeline ASI bus control system
CN102095457A (en) Electromagnetic flowmeter with standard Ethernet interface
CN104656604A (en) Power grid security and stability control device and method for realizing man-machine interaction by utilizing MODBUS communication protocol
CN204287957U (en) A kind of scrap prodn. line PROFIBUS PA slave station diagnostic system
CN204373699U (en) Multidrop environment gathers monitoring system
CN207283172U (en) The control of reactive power compensating group network system
CN207611241U (en) A kind of industry optimal control device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
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: 20160817

Termination date: 20191130

CF01 Termination of patent right due to non-payment of annual fee