Intelligent gateway control system and method

文档序号:1345014 发布日期:2020-07-21 浏览:7次 中文

阅读说明:本技术 一种智能网关控制系统及方法 (Intelligent gateway control system and method ) 是由 马文涛 蒋雪峰 张颐 于 2019-01-15 设计创作,主要内容包括:本发明提供一种智能网关控制系统及方法,涉及工业控制领域,所述系统包括用于PLC设备组信息、驱动协议、报警条件、变量组和变量信息配置的后台管理系统,用于PLC设备组网通讯的智能网关,用于数据存储和处理的云端服务器。本发明能够实现与PLC设备进行数据的实时双向通讯,并针对通讯协议进行转换通讯,实现不同厂家通讯协议的转换读取及控制,并通过屏幕展示工业设备运行状态、异常信号报警、用户移动设备预警及监控功能。(the invention provides an intelligent gateway control system and a method, which relate to the field of industrial control, wherein the system comprises a background management system for configuration of peer-to-Peer (PLC) equipment group information, a driving protocol, an alarm condition, a variable group and variable information, an intelligent gateway for networking communication of PLC equipment, and a cloud server for data storage and processing.)

1. the intelligent gateway control system is characterized by comprising a background management system, an intelligent gateway and a cloud server, wherein the background management system is used for configuration of peer-to-Peer (PLC) equipment group information, a driving protocol, an alarm condition, a variable group and variable information, the intelligent gateway is used for networking communication of the PLC equipment, and the cloud server is used for data storage and processing.

2. the intelligent gateway control system of claim 1, wherein the intelligent gateway performs networking communication with the PLC device through a TCP/IP or RS485 communication mode.

3. An intelligent gateway control method, characterized in that the method comprises the following steps:

step 1, a background management system configures peer-to-Peer (PLC) equipment group information, a driving protocol, an alarm condition, a variable group and variable information which need to be monitored by an intelligent gateway;

step 2, the intelligent gateway is connected to the peer-to-Peer (PLC) equipment group for networking through a preset communication mode;

step 3, after the intelligent gateway is started, acquiring register variable data of the peer-to-peer (P-L-C) equipment group to be monitored from a background management system;

step 4, the intelligent gateway monitors the state of the peer-to-Peer (PC) device group, automatically stores the data in a memory card of the intelligent gateway when the data change, simultaneously sends the data to a cloud server, the cloud server receives the data and stores the data in a database, and sends the data to a client screen and the mobile device for monitoring;

And 5: when the sending data triggers an alarm condition, alarm display is carried out on a client screen and the mobile equipment;

Step 6: and the cloud server performs modeling processing on the received data to form an operation index.

Technical Field

The invention relates to the field of industrial control, in particular to an intelligent gateway control system and method.

Background

with the development of technology, the pl C devices are miniaturized, labeled, intelligent, and networked, and have increasingly powerful functions, and are widely applied to the fields of electric power, chemical engineering, mechanical manufacturing, automobiles, and the like.

the system structure of the PLC equipment is closed, the hardware systems of various large PLC equipment manufacturers are not compatible with each other, programming languages are greatly different, after one PLC equipment is selected forever, a control rule corresponding to the selected PLC equipment needs to be selected, and meanwhile, corresponding programming languages need to be used for development, so that the limitation of selecting the PLC equipment by a user and higher later development cost are caused, and along with the rise of Internet and cloud computing, the user has higher requirements on timeliness and analysis of data, and the traditional PLC equipment cannot inform the user of the operation state of industrial equipment in time.

Disclosure of Invention

in view of the above drawbacks of the prior art, an object of the present invention is to provide an intelligent gateway control system and method, which can implement real-time bidirectional communication of data with a pl C device, perform conversion communication according to a communication protocol, implement conversion reading and control of communication protocols of different manufacturers, and display the operation state of an industrial device, alarm of an abnormal signal, and early warning and monitoring functions of a user mobile device through a screen.

the invention provides an intelligent gateway control system which comprises a background management system, an intelligent gateway and a cloud server, wherein the background management system is used for configuration of peer-to-Peer (PLC) equipment group information, a driving protocol, an alarm condition, a variable group and variable information, the intelligent gateway is used for networking communication of the PLC equipment, and the cloud server is used for data storage and processing.

furthermore, the intelligent gateway is in networking communication with the PLC equipment in a TCP/IP or RS485 communication mode.

An intelligent gateway control method, the method comprising the steps of:

step 1, a background management system configures peer-to-Peer (PLC) equipment group information, a driving protocol, an alarm condition, a variable group and variable information which need to be monitored by an intelligent gateway;

step 2, the intelligent gateway is connected to the peer-to-Peer (PLC) equipment group for networking through a preset communication mode;

step 3, after the intelligent gateway is started, acquiring register variable data of the peer-to-peer (P-L-C) equipment group to be monitored from a background management system;

step 4, the intelligent gateway monitors the state of the peer-to-Peer (PC) device group, automatically stores the data in a memory card of the intelligent gateway when the data change, simultaneously sends the data to a cloud server, the cloud server receives the data and stores the data in a database, and sends the data to a client screen and the mobile device for monitoring;

And 5: when the sending data triggers an alarm condition, alarm display is carried out on a client screen and the mobile equipment;

Step 6: and the cloud server performs modeling processing on the received data to form an operation index.

As described above, the intelligent gateway control system and method of the present invention have the following beneficial effects:

the method can realize bidirectional communication with the P L C equipment data of each large mainstream manufacturer, carry out conversion communication on the P L C equipment communication protocol of the mainstream manufacturer, such as a Schneider Modbus communication protocol, a Siemens Profibus communication protocol, an ABEthernet IP communication protocol and the like, obtain the P L C equipment data of each mainstream manufacturer, store the data in a cloud server to form large data so as to form various data model indexes, can alarm abnormal equipment information, react on a monitoring graph page in real time, store and analyze historical data, and analyze and prejudge the running track of the P L C equipment through the large data analysis along with the accumulation of the data.

Drawings

Fig. 1 is a schematic diagram illustrating a relationship connection of an intelligent gateway control method disclosed in the embodiment of the present invention.

Fig. 2 is a flowchart illustrating an intelligent gateway control method disclosed in an embodiment of the present invention.

Detailed Description

The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.

It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the components related to the present invention are only shown in the drawings rather than drawn according to the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.

the invention provides an intelligent gateway control system and a method, wherein the system comprises a background management system for configuration of peer-to-peer (P-L-C) equipment group information, a driving protocol, an alarm condition, a variable group and variable information, an intelligent gateway for networking communication of the P-L-C equipment, and a cloud server for data storage and processing.

furthermore, the intelligent gateway is in networking communication with the PLC equipment in a TCP/IP or RS485 communication mode.

As shown in fig. 1, the method comprises the steps of:

step 1, a background management system configures peer-to-Peer (PLC) equipment group information, a driving protocol, an alarm condition, a variable group and variable information which need to be monitored by an intelligent gateway;

step 2, the intelligent gateway is connected to the peer-to-Peer (PLC) equipment group for networking through a preset communication mode;

step 3, after the intelligent gateway is started, acquiring register variable data of the peer-to-peer (P-L-C) equipment group to be monitored from a background management system;

step 4, the intelligent gateway monitors the state of the peer-to-Peer (PC) device group, automatically stores the data in a memory card of the intelligent gateway when the data change, simultaneously sends the data to a cloud server, the cloud server receives the data and stores the data in a database, and sends the data to a client screen and the mobile device for monitoring;

And 5: when the sending data triggers an alarm condition, alarm display is carried out on a client screen and the mobile equipment;

Step 6: and the cloud server performs modeling processing on the received data to form an operation index.

As shown in fig. 2, the intelligent gateway control method of the present invention specifically includes:

inputting a website http:// XXX. dowaysoft. com/XXX of a background management system in a browser, logging in the background management system after a login page appears, inputting a user name and a password, starting an intelligent gateway setting function, inputting intelligent gateway information comprising an intelligent gateway number, a name, an IP address, a P L C device number corresponding to the device to be controlled, a device name, a device type (for example: Siemens, Schneider, AB and the like), a device number, a communication protocol (TCP/IP or RS485), variables and address mapping corresponding to a P L C device register, starting a condition alarm setting function, and selecting a control variable corresponding to the P L C device to set an alarm condition.

the gateway program of the intelligent gateway is deployed under a disc directory of linux iot equipment, the gateway program is run to a specified directory through a command, and the command is dotnet PltcDateway, api, dll-urls http:// localhost:80, the linux iot equipment starts the gateway program, wherein a port is 80, the linux iot equipment needs to be connected into a local area network through TCP/IP, and the PLC equipment also needs to be connected into the local area network through TCP/IP.

The following connection is exemplified using the schneider modbus communication protocol.

the P L C devices to communicate need to connect to the lan and specify a fixed IP address for each P L C device.

for example, the background management system is provided with two pieces of P L C equipment, wherein one register address in the P L C equipment 1 is 40001 (digital type), two register addresses in the P L C equipment 2 are 40002 (digital type) and 40004 (digital type), respectively, the gateway program stores data into a program memory variable, and simultaneously a TCP/IP port 502 of 192.168.1.10 and 192.168.1.20 is opened by Socket to establish connection.

when the communication protocol is in an RS485 mode, the P L C device does not need an IP address, the P L C device is connected with the linux iot device through an RS485 bus, and the gateway program directly opens a COM1 serial port through a SerialPort to be connected.

after establishing connection with the P-L C device, starting a thread to poll and send byte data (including register address 40001, check code and the like) to a connected port every second, and waiting for receiving a value returned by the register address after successful sending.

And after the returned value is read, comparing the read value with the Data value in the gateway program, if the returned value is changed, recording new Data into a Data directory, naming the new Data into a local file from Data year to month to day, replacing old Data in the memory, and if the old Data is not changed, not recording related Data.

The gateway program starts another thread to read the historical Data under the Data directory every other second, calls the Data in the background management system to be stored in the cloud server, successfully uploads the Data, records the last uploading time and the last Data uploading position, and records the last Data uploading position in the Upload file under the directory, and if the historical Data files before the current day existing under the Data directory are uploaded to the cloud server, the historical Data files before the current day are deleted to relieve the pressure of a Data storage space.

the method comprises the steps that a user opens a peer-to-peer (P-L-C) device monitoring page of a background management system, the monitoring page is displayed in an SVG picture mode, a SignalR client is started after the page is opened, a cloud server is monitored, once data of the cloud server are changed, the data are sent to the SignalR client through the SignalR server, and the client receives the data and then changes the element value state corresponding to the SVG.

The user opens the intelligent gateway monitoring page, the monitoring page calls background management system data every two seconds, the background management system calls an 80-port of an IP address of an intelligent gateway program, CPU, memory, temperature and disk state information of the intelligent gateway is obtained, and the information is displayed in the equipment monitoring page in an icon display mode.

in conclusion, the method can acquire the data of the PLC equipment of each mainstream manufacturer, store the data in the cloud server to form big data so as to form various data model indexes, can alarm abnormal equipment information, reflect the abnormal equipment information on a monitoring graph page in real time, store and analyze historical data, and analyze and prejudge the running track of the equipment through big data analysis along with the accumulation of the data.

The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.

7页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:具有传送驱动机的驱动状态的数据传送机构的装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类