CN110320853A - A kind of plc data capturing analysis method and system - Google Patents

A kind of plc data capturing analysis method and system Download PDF

Info

Publication number
CN110320853A
CN110320853A CN201910692154.4A CN201910692154A CN110320853A CN 110320853 A CN110320853 A CN 110320853A CN 201910692154 A CN201910692154 A CN 201910692154A CN 110320853 A CN110320853 A CN 110320853A
Authority
CN
China
Prior art keywords
plc
data
remote server
plc device
module
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.)
Pending
Application number
CN201910692154.4A
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.)
Wing Stone Electronic Ltd By Share Ltd
Original Assignee
Wing Stone Electronic Ltd By Share 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 Wing Stone Electronic Ltd By Share Ltd filed Critical Wing Stone Electronic Ltd By Share Ltd
Priority to CN201910692154.4A priority Critical patent/CN110320853A/en
Publication of CN110320853A publication Critical patent/CN110320853A/en
Pending legal-status Critical Current

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/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/054Input/output
    • 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/10Plc systems
    • G05B2219/11Plc I-O input output
    • G05B2219/1103Special, intelligent I-O processor, also plc can only access via processor

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention relates to a kind of plc data capturing analysis method and systems, and wherein for method the following steps are included: providing plc data capture card, plc data capture card includes multiple PLC communication interfaces, at least one communication module, CPU and storage equipment;Automatic identification is connected to the PLC device of PLC communication interface and acquires PLC device data;Data save, the data that the data currently acquired are acquired with upper a cycle are compared, if data unanimously if do not save, if the inconsistent encrypting storing of data to store equipment in;Warning information uploads, and the data currently acquired and the threshold value table of setting are compared, if the information beyond threshold value table setting, by communication module active reporting to remote server;Storing data uploads, when the data for storing equipment storage reach setting value, whether request remote server is uploaded into data, uploads data if current remote server free, whether timing request remote server is idle if current remote server is busy, until having uploaded data.

Description

A kind of plc data capturing analysis method and system
Technical field
The invention belongs to intellectualization of factories technical fields, more particularly to a kind of plc data capturing analysis method and system.
Background technique
Existing PLC producer is various, and also disunity, PLC device control and data processing are placed on mostly and operate in PC agreement PLC gateway all only does simple protocol conversion above, and in the market for end or touchscreen configuration software, not by data In the analysis of local end data and back-up processing.This phenomenon will result in if there is many PLC devices want uniform data acquisition point Analysis must rely on remote server and acquire in real time, and if PLC device quantity is more, collection period is slack-off to be caused to lose very much PLC device data, this phenomenon when intellectualized reconstruction does in large-scale type of production factory are especially prominent.
Summary of the invention
The present invention is intended to provide a kind of plc data capturing analysis method and system, to solve the above problems.For this purpose, this hair The specific technical solution of bright use is as follows:
According to an aspect of the present invention, a kind of plc data capturing analysis method is provided, the method includes following steps It is rapid:
Step 1: plc data capture card is provided, the plc data capture card includes multiple PLC communication interfaces, at least one A communication module, CPU and storage equipment;
Step 2: automatic identification is connected to the PLC device of PLC communication interface and acquires PLC device data;
Step 3: data save, and the data that the data currently acquired are acquired with upper a cycle are compared, if data Unanimously, then it does not save, if data are inconsistent, encrypting storing is into storage equipment;
Step 4: warning information uploads, and the data currently acquired and the threshold value table of setting are compared, and threshold value table is used to be associated with The warning value of corresponding register address is specified, if the information beyond threshold value table setting, is given by communication module active reporting Remote server;
Step 5: storing data uploads, and when the data for storing equipment storage reach setting value, will request remote server Whether data are uploaded, if current remote server free, uploads data, if current remote server is busy, timing request is remote Whether journey server is idle, until having uploaded data.
Further, the automatic identification in the step 2 is connected to the detailed process of the PLC device of PLC communication interface Are as follows: whether detection PLC communication interface accesses PLC device, logical according to known PLC device agreement when detecting PLC device access News packet carries out souning out to give out a contract for a project carrying out automatic identification PLC device type, goes out to be connected to if known PLC device protocol packet is unidentified The PLC device of PLC communication interface then updates new PLC by remote server to remote server by communication module active reporting Device protocol communication is wrapped to plc data capture card, then carries out automatic identification.
Further, PLC device data include data register, input register, output register, background register and Timer Register it is data cached.
Further, the communication module includes one of ethernet module, 4G module and optical module or a variety of.
Further, the PLC communication interface includes Ethernet interface and/or RS485 mouthfuls.
Further, the method also includes steps: remote server, which passes through, to send instructions under active to plc data capture card To obtain current PLC device information or control PLC equipment.
According to another aspect of the present invention, a kind of plc data acquisition analysis system is provided, including multiple plc datas are adopted Truck and remote server, the plc data capture card include multiple PLC communication interfaces, communication module, CPU and store equipment, The PLC communication interface is used for and remote server communication connection, the storage for connecting PLC device, the communication module Equipment is for storing PLC device data and PLC device protocol packet collected, and the CPU is for executing plc data acquisition Program is analyzed, the remote server is used to receive the PLC device data of plc data capture card upload, updates PLC device agreement Communication packet obtains current PLC device information and control PLC equipment.
Further, the communication module includes one of ethernet module, 4G module and optical module or a variety of.
Further, the PLC communication interface includes Ethernet interface and/or RS485 mouthfuls.
The present invention by adopting the above technical scheme, has the beneficial effect that the present invention being capable of automatic identification PLC device class Type, in real time acquisition and analysis PLC device data, by localization filtering repeated data and backup, the periodically number that reports that treated Accordingly and active reporting warning information etc. mitigates remote server burden.
Detailed description of the invention
To further illustrate that each embodiment, the present invention are provided with attached drawing.These attached drawings are that the invention discloses one of content Point, mainly to illustrate embodiment, and the associated description of specification can be cooperated to explain the operation principles of embodiment.Cooperation ginseng These contents are examined, those of ordinary skill in the art will be understood that other possible embodiments and advantages of the present invention.In figure Component be not necessarily to scale, and similar component symbol is conventionally used to indicate similar component.
Fig. 1 is the overview flow chart of plc data capturing analysis method of the invention.
Fig. 2 is the frame diagram of plc data acquisition analysis system of the invention.
Specific embodiment
Now in conjunction with the drawings and specific embodiments, the present invention is further described.
Fig. 1 shows the overview flow chart of plc data capturing analysis method of the invention.Fig. 2 shows PLC of the invention The frame diagram of data acquisition and analysis system.Plc data acquisition analysis system may include multiple plc data capture cards 1 and long-range clothes Business device 2.The specific structure of plc data capture card 1 and remote server 2 is described below.
Referring to Fig.1 with 2, plc data capturing analysis method of the invention is described.Wherein, method includes the following steps:
Step S1: plc data capture card 1 is provided.Plc data capture card 1 may include multiple PLC communication interfaces 11, at least One communication module 12, CPU 13 and storage equipment 14 etc..PLC communication interface 11 is for connecting PLC device 3.It can be with Too network interface, RS485 mouthfuls, one of USB port and RS232 mouthfuls etc. or a variety of.Preferably, PLC communication interface 11 includes Ethernet Mouth and two kinds of interfaces of RS485 mouth.It is adaptive that Ethernet interface can be 10/100/1000Mb.Communication module 12 be used for it is long-range 2 communication connection of server can be one of ethernet module, 4G module and optical module or a variety of.Equipment 14 is stored to use In storage program and various data, such as the PLC device data and PLC device protocol packet etc. of acquisition.PLC device agreement is logical News packet generally comprises domestic and international PLC manufacturer common in the market (for example, Siemens, ABB, Omron, Mitsubishi and Schneider etc.) The communications protocol of the PLC device of production.Storage equipment 14 can be integrated memory or external USB flash disk or TIF card etc..CPU 13 for executing plc data collection analysis program, specifically, the following steps S2 to S6.CPU 13 is common small-sized in the market CPU can be ARM9 series or more.
Step S2: automatic identification is connected to the PLC device of PLC communication interface and acquires PLC device data.Specifically, it examines Survey whether PLC communication interface 11 accesses PLC device 3.It is logical according to known PLC device agreement when detecting that PLC device 3 accesses News packet carries out souning out to give out a contract for a project carrying out automatic identification PLC device type.Specifically, according to PLC device protocol the package list sequence PLC device protocol packet is successively sent to the PLC communication interface 11, when the PLC device protocol packet of transmission and access should When the PLC device successful match of PLC communication interface 11, issues identification success signal and stop sending PLC device protocol packet. In general, PLC device protocol the package list sequence is arranged according to occupation rate of market.Certainly, user can also basis Actual conditions are configured, and to improve equipment recognition speed, reduce the holding time of the identification process.If known PLC device association View communication packet is unidentified to be gone out to be connected to the PLC device of the PLC communication interface, then by 12 active reporting of communication module to long-range clothes It is engaged in device 2, new PLC device protocol packet is updated to plc data capture card 1 by remote server 2, then carry out automatic identification.? After completing PLC device identification, PLC device data acquisition can be carried out.Wherein, PLC device data may include data register, it is defeated Enter the data cached of register, output register, background register and Timer Register etc..
Step S3: data save.The data that the data currently acquired are acquired with upper a cycle are compared, if data Unanimously, then it does not save, if data are inconsistent, encrypting storing is into storage equipment 14.Encryption Algorithm can use Encryption Algorithm 3DES encryption can be used, code key length is 24.This data save mode, which can substantially reduce, to be stored and is uploaded Data volume saves memory space, and can be improved data extraction rate, reduces the burden of remote server.
Step S4: warning information uploads.The data currently acquired and the threshold value table of setting are compared, the threshold value table of setting is used To be associated with the warning value for specifying corresponding register address.Such as data register address D 0=1 indicates that operation troubles, data are posted Storage address D 200=0x30 indicates to illustrate A phase current overload etc. when collected data are more than the value.If exceeding threshold value table The information of setting, then by 12 active reporting of communication module to remote server 2.Therefore, remote server can receive in time The fault message of live PLC device is conducive to the maintenance of PLC device.
Step S5: storing data uploads.When the data for storing the storage of equipment 14 reach setting value, remote service will be requested Whether device 2 uploads data, if current remote server 2 is idle, uploads data, if current remote server 2 is busy, periodically asks Ask remote server 2 whether idle, until having uploaded data.This data, which upload mode, can lower remote server Burden.Preferably, data, which upload, has breakpoint transmission function.
If wanting to obtain currently in addition, plc data capturing analysis method of the invention may further comprise the step of: remote server PLC device information or control PLC equipment can forward PLC device to this system by sending instructions under active, and then obtain current PLC information or control PLC equipment.
Using plc data capturing analysis method of the invention, can automatic identification PLC device type, acquisition in real time and point PLC device data are analysed, by localization filtering repeated data and backup, periodically the data that report that treated and active reporting are accused Alert information etc. mitigates remote server burden.
Although specifically showing and describing the present invention in conjunction with preferred embodiment, those skilled in the art should be bright It is white, it is not departing from the spirit and scope of the present invention defined by the appended claims, it in the form and details can be right The present invention makes a variety of changes, and is protection scope of the present invention.

Claims (9)

1. a kind of plc data capturing analysis method, which is characterized in that the method includes the following steps:
Step 1: providing plc data capture card, and the plc data capture card includes multiple PLC communication interfaces, at least one is logical Interrogate module, CPU and storage equipment;
Step 2: automatic identification is connected to the PLC device of PLC communication interface and acquires PLC device data;
Step 3: data save, and the data that the data currently acquired are acquired with upper a cycle are compared, if data one It causes, does not then save, if data are inconsistent, encrypting storing is into storage equipment;
Step 4: warning information uploads, and the data currently acquired and the threshold value table of setting are compared, and threshold value table is used to be associated with specified The warning value of corresponding register address, if the information beyond threshold value table setting, by communication module active reporting to long-range Server;
Step 5: storing data uploads, and when the data for storing equipment storage reach setting value, whether will request remote server Data are uploaded, if current remote server free, uploads data, if current remote server is busy, timing request is remotely taken Whether business device is idle, until having uploaded data.
2. plc data capturing analysis method as described in claim 1, which is characterized in that the automatic identification in the step 2 It is connected to the detailed process of the PLC device of PLC communication interface are as follows: whether detection PLC communication interface accesses PLC device, works as detection To when PLC device access, sound out according to known PLC device protocol packet and give out a contract for a project come automatic identification PLC device type, if Known PLC device protocol packet is unidentified to be gone out to be connected to the PLC device of PLC communication interface, then by communication module active Remote server is offered, new PLC device protocol packet is updated to plc data capture card by remote server, then is carried out automatic Identification.
3. plc data capturing analysis method as described in claim 1, which is characterized in that PLC device data include data register Device, input register, output register, background register and Timer Register it is data cached.
4. plc data capturing analysis method as described in claim 1, which is characterized in that the communication module includes Ethernet One of module, 4G module and optical module are a variety of.
5. plc data capturing analysis method as described in claim 1, which is characterized in that the PLC communication interface includes ether Network interface and/or RS485 mouthfuls.
6. plc data capturing analysis method as described in claim 1, which is characterized in that the method also includes steps: long-range Server obtains current PLC device information and control PLC equipment by being sent instructions under active to plc data capture card.
7. a kind of plc data acquisition analysis system, which is characterized in that including multiple plc data capture cards and remote server, institute Stating plc data capture card includes multiple PLC communication interfaces, at least one communication module, CPU and storage equipment, the PLC communication Interface is used to be used to store with remote server communication connection, the storage equipment for connecting PLC device, the communication module PLC device data and PLC device protocol packet collected, the CPU is for executing plc data collection analysis program, institute Remote server is stated for receiving the PLC device data of plc data capture card upload, updating PLC device protocol packet, acquisition Current PLC device information and control PLC equipment.
8. plc data acquisition analysis system as claimed in claim 7, which is characterized in that the communication module includes Ethernet One of module, 4G module and optical module are a variety of.
9. plc data acquisition analysis system as claimed in claim 7, which is characterized in that the PLC communication interface includes ether Network interface and/or RS485 mouthfuls.
CN201910692154.4A 2019-07-30 2019-07-30 A kind of plc data capturing analysis method and system Pending CN110320853A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910692154.4A CN110320853A (en) 2019-07-30 2019-07-30 A kind of plc data capturing analysis method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910692154.4A CN110320853A (en) 2019-07-30 2019-07-30 A kind of plc data capturing analysis method and system

Publications (1)

Publication Number Publication Date
CN110320853A true CN110320853A (en) 2019-10-11

Family

ID=68124824

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910692154.4A Pending CN110320853A (en) 2019-07-30 2019-07-30 A kind of plc data capturing analysis method and system

Country Status (1)

Country Link
CN (1) CN110320853A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111665778A (en) * 2020-05-29 2020-09-15 国电南瑞科技股份有限公司 Method for rapid communication transmission and data processing between PLC and upper computer
CN112069166A (en) * 2020-07-09 2020-12-11 浙江南都电源动力股份有限公司 Power station equipment data acquisition method and system
CN113341832A (en) * 2021-06-22 2021-09-03 天津航通科技有限公司 Operation monitoring and management system for underground well equipment
CN115168477A (en) * 2022-08-04 2022-10-11 东方合智数据科技(广东)有限责任公司 Data integration method and related equipment for packaging industry based on Internet

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101963798A (en) * 2010-06-29 2011-02-02 东华大学 Embedded-type rail transit station equipment information collector and method thereof
CN102591594A (en) * 2012-02-10 2012-07-18 杭州华三通信技术有限公司 Data processing method and equipment
CN103916294A (en) * 2014-04-29 2014-07-09 华为技术有限公司 Identification method and device for protocol type
US8958917B2 (en) * 1998-12-17 2015-02-17 Hach Company Method and system for remote monitoring of fluid quality and treatment
CN104929864A (en) * 2015-02-06 2015-09-23 青岛科技大学 Field programmable gate array (FPGA)-based embedded type operating state monitoring and fault diagnosis system for wind generating set
CN105955893A (en) * 2016-05-05 2016-09-21 捷开通讯(深圳)有限公司 Writing method and reading method of stored data and intelligent terminal
CN107291058A (en) * 2017-08-01 2017-10-24 西安交通大学 A kind of continuous casting production process data acquisition monitoring system
CN206877505U (en) * 2017-06-30 2018-01-12 陕西国际商贸学院 A kind of city intelligent parking system based on NB IOT
CN108469809A (en) * 2018-03-30 2018-08-31 南京理工大学 Plc data acquisition, processing and method for uploading based on embedded computer
CN108897270A (en) * 2018-06-12 2018-11-27 苏州赛腾精密电子股份有限公司 Method for uploading, device, PLC, storage medium and the system of product data
CN109917742A (en) * 2019-03-25 2019-06-21 北京龙鼎源科技股份有限公司 Programmable logic controller (PLC) PLC system, data uploading method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8958917B2 (en) * 1998-12-17 2015-02-17 Hach Company Method and system for remote monitoring of fluid quality and treatment
CN101963798A (en) * 2010-06-29 2011-02-02 东华大学 Embedded-type rail transit station equipment information collector and method thereof
CN102591594A (en) * 2012-02-10 2012-07-18 杭州华三通信技术有限公司 Data processing method and equipment
CN103916294A (en) * 2014-04-29 2014-07-09 华为技术有限公司 Identification method and device for protocol type
CN104929864A (en) * 2015-02-06 2015-09-23 青岛科技大学 Field programmable gate array (FPGA)-based embedded type operating state monitoring and fault diagnosis system for wind generating set
CN105955893A (en) * 2016-05-05 2016-09-21 捷开通讯(深圳)有限公司 Writing method and reading method of stored data and intelligent terminal
CN206877505U (en) * 2017-06-30 2018-01-12 陕西国际商贸学院 A kind of city intelligent parking system based on NB IOT
CN107291058A (en) * 2017-08-01 2017-10-24 西安交通大学 A kind of continuous casting production process data acquisition monitoring system
CN108469809A (en) * 2018-03-30 2018-08-31 南京理工大学 Plc data acquisition, processing and method for uploading based on embedded computer
CN108897270A (en) * 2018-06-12 2018-11-27 苏州赛腾精密电子股份有限公司 Method for uploading, device, PLC, storage medium and the system of product data
CN109917742A (en) * 2019-03-25 2019-06-21 北京龙鼎源科技股份有限公司 Programmable logic controller (PLC) PLC system, data uploading method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111665778A (en) * 2020-05-29 2020-09-15 国电南瑞科技股份有限公司 Method for rapid communication transmission and data processing between PLC and upper computer
CN111665778B (en) * 2020-05-29 2022-05-24 国电南瑞科技股份有限公司 Method for rapid communication transmission and data processing between PLC and upper computer
CN112069166A (en) * 2020-07-09 2020-12-11 浙江南都电源动力股份有限公司 Power station equipment data acquisition method and system
CN113341832A (en) * 2021-06-22 2021-09-03 天津航通科技有限公司 Operation monitoring and management system for underground well equipment
CN115168477A (en) * 2022-08-04 2022-10-11 东方合智数据科技(广东)有限责任公司 Data integration method and related equipment for packaging industry based on Internet
CN115168477B (en) * 2022-08-04 2023-06-27 东方合智数据科技(广东)有限责任公司 Data integration method and related equipment for packaging industry based on Internet

Similar Documents

Publication Publication Date Title
CN110320853A (en) A kind of plc data capturing analysis method and system
CN109067618B (en) Distributed real-time data IOT acquisition system and method
CN102244767B (en) Cloud monitoring system and method
CN104267701B (en) The control method and device of smart home newly added equipment
CN110191138A (en) A kind of edge calculations intelligent adapter and implementation method towards industry manufacture
CN103678522B (en) A kind of data acquisition of intelligent substation metering system and conversion method
CN103996276A (en) Remote transmission system and method for data of power plant
CN112087731A (en) Edge processing host, system and method for information acquisition, processing and transmission of Internet of things
CN103369402A (en) Method and system for comparing functional consistency of multiple set top boxes
CN105471958A (en) Data processing system and method of internet of things
CN114167794A (en) Remote data acquisition system and data acquisition method for intelligent electric meter
CN110708239B (en) Industrial Internet of things gateway based on OPC and MQTT
CN209373598U (en) Real time data and external data association process system
CN110362055A (en) A kind of industrial data acquisition system that terminal is expansible and method
CN208459843U (en) The batching data processing unit and monitoring system of manufactruing equipment of automobile
CN103545933A (en) Instation I/O interface protocol of intelligent substation online monitoring system
CN108234192A (en) A kind of EtherCAT network analytical equipment and method
CN101394609A (en) Agricultural short message platform realizing system and method
CN107483629A (en) A kind of high in the clouds monitoring method and its system based on industrial large-sized equipment non-intruding
CN104270432A (en) Real-time data service system and data interaction method based on drilling industry
CN111083047A (en) Gateway based on internet of things multi-protocol communication
CN105653207B (en) A kind of real time parsing method and system of flash interface information
CN209803613U (en) Plastic mechanical equipment monitoring device and system
CN110474949B (en) Method and device for communicating with nuclear power station security level protection system in Windows environment
CN114268642A (en) Multi-protocol wireless data collection device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191011

RJ01 Rejection of invention patent application after publication