CN116224901B - PLC controller communication method and system based on Ethernet - Google Patents

PLC controller communication method and system based on Ethernet Download PDF

Info

Publication number
CN116224901B
CN116224901B CN202310516641.1A CN202310516641A CN116224901B CN 116224901 B CN116224901 B CN 116224901B CN 202310516641 A CN202310516641 A CN 202310516641A CN 116224901 B CN116224901 B CN 116224901B
Authority
CN
China
Prior art keywords
data
classification module
module
configuration
production line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310516641.1A
Other languages
Chinese (zh)
Other versions
CN116224901A (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.)
Shenzhen Huichen Automation Technology Co ltd
Original Assignee
Shenzhen Huichen Automation Technology 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 Shenzhen Huichen Automation Technology Co ltd filed Critical Shenzhen Huichen Automation Technology Co ltd
Priority to CN202310516641.1A priority Critical patent/CN116224901B/en
Publication of CN116224901A publication Critical patent/CN116224901A/en
Application granted granted Critical
Publication of CN116224901B publication Critical patent/CN116224901B/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/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
    • 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

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • General Factory Administration (AREA)
  • Programmable Controllers (AREA)

Abstract

The invention provides a communication method and a communication system of a PLC (programmable logic controller) based on Ethernet, wherein the method comprises the following steps: a data allocation module connected with a data classification module corresponding to each PLC controller on the same production line is configured; configuring a data classification module connected with each PLC controller; the data classification module is used for preprocessing and classifying the first data of each PLC controller after configuration is completed to form in-line data and first uploading data; and the data allocation module allocates the online data of each data classification module after the configuration is completed, and integrates the online data to form second uploading data. According to the PLC communication method based on the Ethernet, the data classification module and the data allocation module are configured on the production line site, and allocation and transmission of data in the production line are realized based on the data classification module and the data allocation module, so that the data transmission and data processing pressure of a server are reduced.

Description

PLC controller communication method and system based on Ethernet
Technical Field
The invention relates to the technical field of communication of PLC controllers, in particular to a communication method and a communication system of a PLC controller based on Ethernet.
Background
Currently, with the development of industrial automation, a plurality of devices are generally used in one production line of a production line, and each device generally has a PLC controller. In order to monitor production data and monitor equipment states, a PLC controller is generally directly connected to a server through an ethernet network, and the data are uploaded to the server, so that an enterprise generally has a plurality of production lines, and the equipment is very many, and the server performs general control processing, so that the following problems exist in the data communication mode: the first one has the disadvantage of heavy load and heavy load of the server because the data transmission line between the server and the first one is busy and blocked.
Disclosure of Invention
The invention aims to provide a communication method of a PLC (programmable logic controller) based on Ethernet, which is characterized in that a data classification module and a data allocation module are configured on site of a production line, and allocation and transmission of data in the production line are realized based on the data classification module and the data allocation module, so that the data transmission and data processing pressure of a server are reduced.
The embodiment of the invention provides a communication method of a PLC controller based on Ethernet, which comprises the following steps: a data allocation module connected with a data classification module corresponding to each PLC controller on the same production line is configured;
configuring a data classification module connected with each PLC controller;
the data classification module is used for preprocessing and classifying the first data of each PLC controller after configuration is completed to form in-line data and first uploading data; the data classification module directly uploads the first uploading data to the server through the Ethernet;
the data allocation module allocates the online data of each data classification module after the allocation is completed, and integrates the online data to form second uploading data; the data allocation module uploads the second uploading data to the server through the Ethernet.
Preferably, a data allocating module connected with a data classifying module corresponding to each PLC controller on the same production line is configured, including:
acquiring a first equipment identification code corresponding to a data classification module connected with a data allocation module through the data allocation module;
determining a second equipment identification code of the PLC controller corresponding to the association of the data classification module based on the first equipment identification code;
determining equipment information of equipment corresponding to the PLC based on the second equipment identification code;
constructing a production line characteristic set corresponding to the data allocation module based on the equipment information;
based on the fact that the production line feature set is matched with a standard feature set in a preset first configuration library, a first configuration rule and first configuration data which are associated with the standard feature set matched with the production line feature set are called;
and configuring the data allocation module based on the first configuration rule and the first configuration data.
Preferably, a data classification module connected to each PLC controller is configured, including:
acquiring a third equipment identification code of a data allocation module connected with the data classification module through the data classification module;
based on the third equipment identification code, a production line equipment ordering table and a configuration record sent by a corresponding data allocation module are called;
based on the configuration record, a preset second configuration library corresponding to the first configuration rule is called;
based on the production line equipment sorting table, calling a second configuration rule and second configuration data from a second configuration library;
the data classification module is configured based on the second configuration rule and the second configuration data.
Preferably, the data allocating module allocates the in-line data of each data classifying module after the allocation is completed and integrates the in-line data to form second uploading data, which includes:
when a data acquisition request of a data classification module is received, positioning a first position of equipment corresponding to a PLC controller connected with the data classification module in a production line equipment sequencing table;
extracting in-line data uploaded by a data classification module connected with a PLC (programmable logic controller) of equipment corresponding to a second position associated with the first position and sending the in-line data to a data classification module corresponding to a data acquisition request;
and/or the number of the groups of groups,
when a data acquisition request of the data classification module is received, the data acquisition request is analyzed, and a product identification code of a corresponding production product is determined;
based on the product identification code, inquiring a production product tracking table, and determining a data classification module of a data acquisition request of a production product corresponding to the product identification code requested at the previous time as a data sender;
and extracting the online data uploaded by the data sender and sending the online data to a data classification module corresponding to the data acquisition request.
Preferably, the data deployment module further performs the following operations:
when tracking of the production products in the production product tracking table is finished, integrating the online data of the corresponding production products sent by each data classification module to form second uploading data;
configuring corresponding tracking timing parameters for each production product in a production product tracking table in advance;
when a data acquisition request of a data classification module on a production line for production products is received, tracking a timing parameter to be zero and timing;
when the uploaded online data corresponding to the data acquisition request is received, stopping timing of the tracking timing parameters and comparing the current value of the tracking timing parameters with a preset parameter threshold corresponding to the data classification module; when the parameter threshold value is larger than the parameter threshold value, outputting an alarm;
when the value of the tracking timing parameter is larger than a preset warning threshold value, the tracking information of the generated product corresponding to the tracking timing parameter in the production product tracking table and the in-line data are moved to a data temporary storage area for temporary storage.
Preferably, the step of constructing the production line equipment sorting table by the data allocation module is as follows:
outputting test operation prompt information;
receiving test run trigger information uploaded by each data classification module when each test run product in the test run process passes through a production line;
and constructing a production line equipment sequencing table based on the uploading time of the test run trigger information and a preset production line equipment sequencing template.
Preferably, the step of constructing the production product tracking table by the data allocation module is as follows:
when the product identification code of the product is analyzed from the in-line data for the first time, determining whether a data classification module for uploading the in-line data is a data classification module corresponding to the first-echelon equipment in the production line equipment sequencing table;
if yes, generating a template based on preset tracking information, and generating tracking items of the produced products;
if not, extracting tracking information corresponding to the product identification code from the data temporary storage area to generate a tracking item of the produced product;
the data allocation module also obtains ordering information of the products generated on the production line through the product ordering modules arranged at all preset positions of the production line, and orders all tracking items of the production product tracking table based on the ordering information.
The invention also provides a PLC controller communication system based on the Ethernet, which comprises:
the first configuration module is used for configuring a data allocation module connected with the data classification module corresponding to each PLC controller on the same production line;
the second configuration module is used for configuring the data classification module connected with each PLC controller;
the data classification module is used for preprocessing and classifying the first data of each PLC controller after configuration is completed to form in-line data and first uploading data; the data classification module directly uploads the first uploading data to the server through the Ethernet;
the data allocation module allocates the online data of each data classification module after the allocation is completed, and integrates the online data to form second uploading data; the data allocation module uploads the second uploading data to the server through the Ethernet.
Preferably, the first configuration module configures a data allocation module connected with a data classification module corresponding to each PLC controller on the same production line, and performs the following operations:
acquiring a first equipment identification code corresponding to a data classification module connected with a data allocation module through the data allocation module;
determining a second equipment identification code of the PLC controller corresponding to the association of the data classification module based on the first equipment identification code;
determining equipment information of equipment corresponding to the PLC based on the second equipment identification code;
constructing a production line characteristic set corresponding to the data allocation module based on the equipment information;
based on the fact that the production line feature set is matched with a standard feature set in a preset first configuration library, a first configuration rule and first configuration data which are associated with the standard feature set matched with the production line feature set are called;
and configuring the data allocation module based on the first configuration rule and the first configuration data.
Preferably, the second configuration module configures a data classification module connected to each PLC controller, and performs the following operations:
acquiring a third equipment identification code of a data allocation module connected with the data classification module through the data classification module;
based on the third equipment identification code, a production line equipment ordering table and a configuration record sent by a corresponding data allocation module are called;
based on the configuration record, a preset second configuration library corresponding to the first configuration rule is called;
based on the production line equipment sorting table, calling a second configuration rule and second configuration data from a second configuration library;
the data classification module is configured based on the second configuration rule and the second configuration data.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
The technical scheme of the invention is further described in detail through the drawings and the embodiments.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention. In the drawings:
fig. 1 is a schematic diagram of a communication method of a PLC controller based on ethernet in an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating a configuration procedure of a data allocation module according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a PLC controller communication system based on ethernet in an embodiment of the present invention.
Description of the embodiments
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings, it being understood that the preferred embodiments described herein are for illustration and explanation of the present invention only, and are not intended to limit the present invention.
The embodiment of the invention provides a communication method of a PLC controller based on Ethernet, as shown in figure 1, comprising the following steps:
step S1: a data allocation module connected with a data classification module corresponding to each PLC controller on the same production line is configured;
step S2: configuring a data classification module connected with each PLC controller;
the data classification module is used for preprocessing and classifying the first data of each PLC controller after configuration is completed to form in-line data and first uploading data; the data classification module directly uploads the first uploading data to the server through the Ethernet;
the data allocation module allocates the online data of each data classification module after the allocation is completed, and integrates the online data to form second uploading data; the data allocation module uploads the second uploading data to the server through the Ethernet.
The working principle and the beneficial effects of the technical scheme are as follows:
connecting a data classification module to a PLC controller of each device of the production line, and then connecting the data classification modules of the same production line to a data allocation module; the data allocation module is arranged for one production line, and the data classification module and the data allocation module are respectively connected to the server through Ethernet; during actual production operation, the data classification module samples and classifies the data of the PLC controller of each device into in-line data and first uploading data; the first upload data mainly includes: status data of the device, for example: monitoring data of each sensor, etc.; the in-line data mainly includes data corresponding to the production of the product on the production line, for example: monitoring data of the produced products, whether the produced products are marked as defective products or not, and the like; taking SMT production as an example, a plurality of produced products form a plate of input equipment during the treatment of the produced products, when one of the products is marked as defective products in the previous process, and the PLC controller of the next process obtains the mark as defective products from the PLC controller corresponding to the previous process, the product can not be treated, the waste of raw materials is avoided, and the production efficiency is improved. After the production of the production product is completed through the production line, the data allocation module integrates the online data corresponding to the production product to form second uploading data, and the second uploading data is uploaded to the server, so that enterprises can trace and check conveniently.
According to the PLC communication method based on the Ethernet, the data classification module and the data allocation module are configured on the production line site, and allocation and transmission of data in the production line are realized based on the data classification module and the data allocation module, so that the data transmission and data processing pressure of a server are reduced.
In order to implement configuration of the data deployment module, in one embodiment, as shown in fig. 2, the data deployment module connected to the data classification module corresponding to each PLC controller on the same production line is configured, including:
step S11: acquiring a first equipment identification code corresponding to a data classification module connected with a data allocation module through the data allocation module;
step S12: determining a second equipment identification code of the PLC controller corresponding to the association of the data classification module based on the first equipment identification code;
step S13: determining equipment information of equipment corresponding to the PLC based on the second equipment identification code;
step S14: constructing a production line characteristic set corresponding to the data allocation module based on the equipment information;
step S15: based on the fact that the production line feature set is matched with a standard feature set in a preset first configuration library, a first configuration rule and first configuration data which are associated with the standard feature set matched with the production line feature set are called;
step S16: and configuring the data allocation module based on the first configuration rule and the first configuration data.
The working principle and the beneficial effects of the technical scheme are as follows:
when the server is used for allocating the data allocation module, first, a first equipment identification code of a data classification module connected with the server is acquired through communication with the server, namely, the connection relation of the data allocation module is determined, then the server is in communication connection with the data classification module according to the first equipment identification code, a second equipment identification code of a PLC (programmable logic controller) connected with the server is acquired through communication connection with the data classification module, then equipment information in a pre-built equipment information storage library is inquired through the second equipment identification code, and equipment information of equipment is determined; the device information includes: device type, device model, etc.; classifying and summarizing the equipment information to construct a production line feature set, and judging the structure of the production line and what kind of product is manufactured through the production line feature set; and further, specific information of in-line data transmitted in the production line can be determined; then, correspondingly configuring by adopting a corresponding first configuration rule and first configuration data in a first configuration library; the data allocation module can be configured to realize the analysis processing of the online data.
To achieve the configuration of the data classification module, in one embodiment, configuring the data classification module connected to each PLC controller includes:
acquiring a third equipment identification code of a data allocation module connected with the data classification module through the data classification module;
based on the third equipment identification code, a production line equipment ordering table and a configuration record sent by a corresponding data allocation module are called;
based on the configuration record, a preset second configuration library corresponding to the first configuration rule is called;
based on the production line equipment sorting table, calling a second configuration rule and second configuration data from a second configuration library;
the data classification module is configured based on the second configuration rule and the second configuration data.
The working principle and the beneficial effects of the technical scheme are as follows:
when the server configures the data classification module, the server firstly communicates with the data classification module to acquire the configuration condition of the data allocation module connected with the data classification module and a production line equipment sorting table determined through trial operation, the second configuration library is acquired through configuration records, the position of equipment corresponding to the data classification module in a production line is determined through the production line equipment sorting table, and further second configuration data and second configuration rules are acquired from the second configuration library so as to realize the configuration of the data classification module, after the configuration of the data classification module is completed, the data classification module can sample data from the PLC controller, and uploading and in-line transmission tasks are respectively completed by distinguishing the in-line data and the directly uploaded first uploading data.
In order to implement the deployment of the in-line data and the integration of the in-line data, the data deployment module deploys the in-line data of each data classification module after the deployment is completed and integrates the in-line data to form second uploading data, including:
when a data acquisition request of a data classification module is received, positioning a first position of equipment corresponding to a PLC controller connected with the data classification module in a production line equipment sequencing table;
extracting in-line data uploaded by a data classification module connected with a PLC (programmable logic controller) of equipment corresponding to a second position associated with the first position and sending the in-line data to a data classification module corresponding to a data acquisition request;
and/or the number of the groups of groups,
when a data acquisition request of the data classification module is received, the data acquisition request is analyzed, and a product identification code of a corresponding production product is determined;
based on the product identification code, inquiring a production product tracking table, and determining a data classification module of a data acquisition request of a production product corresponding to the product identification code requested at the previous time as a data sender;
and extracting the online data uploaded by the data sender and sending the online data to a data classification module corresponding to the data acquisition request.
The working principle and the beneficial effects of the technical scheme are as follows:
according to the production line equipment sorting table and/or the production product tracking table, ordered transmission of the in-line data is realized, and effective allocation of the in-line data is ensured.
In one embodiment, the data orchestration module further performs the following:
when tracking of the production products in the production product tracking table is finished, integrating the online data of the corresponding production products sent by each data classification module to form second uploading data;
configuring corresponding tracking timing parameters for each production product in a production product tracking table in advance;
when a data acquisition request of a data classification module on a production line for production products is received, tracking a timing parameter to be zero and timing;
when the uploaded online data corresponding to the data acquisition request is received, stopping timing of the tracking timing parameters and comparing the current value of the tracking timing parameters with a preset parameter threshold corresponding to the data classification module; when the parameter threshold value is larger than the parameter threshold value, outputting an alarm;
when the value of the tracking timing parameter is larger than a preset warning threshold value, the tracking information of the generated product corresponding to the tracking timing parameter in the production product tracking table and the in-line data are moved to a data temporary storage area for temporary storage.
The working principle and the beneficial effects of the technical scheme are as follows:
the data allocation module also determines the integration trigger of the second uploading data according to the production product tracking table so as to ensure the generation of the second uploading data, and in addition, the processing time of each link is tracked and monitored by configuring the tracking timing parameters in the production product tracking table so as to ensure the normal operation of the production line, and whether equipment in the production line is failed can be indirectly found by tracking the timing parameters so as to provide alarm output.
In one implementation, the data deployment module builds the production line equipment ranking table as follows:
outputting test operation prompt information;
receiving test run trigger information uploaded by each data classification module when each test run product in the test run process passes through a production line;
and constructing a production line equipment sequencing table based on the uploading time of the test run trigger information and a preset production line equipment sequencing template.
The working principle and the beneficial effects of the technical scheme are as follows:
after the configuration of the data allocation module is completed, outputting test operation prompt information; or after receiving the pressing of the corresponding key on the data allocation module by the staff, outputting test operation prompt information; after a worker sees the test operation prompt information, sequentially placing a plurality of test operation products at the initial position of the production line; after the test run product sequentially passes through each device, the data classification module corresponding to the device uploads the trigger information of the test run product trigger device to the data allocation module, so that the sequence of each device is determined through the preset production line device sequencing template; the production line device ordered list may be constructed as a topology map between devices.
In order to implement the retrieval multiplexing of the information of the temporary storage area, in one embodiment, the data deployment module constructs the following steps of the production product tracking table:
when the product identification code of the product is analyzed from the in-line data for the first time, determining whether a data classification module for uploading the in-line data is a data classification module corresponding to the first-echelon equipment in the production line equipment sequencing table;
if yes, generating a template based on preset tracking information, and generating tracking items of the produced products;
if not, extracting tracking information corresponding to the product identification code from the data temporary storage area to generate a tracking item of the produced product;
the data allocation module also obtains ordering information of the products generated on the production line through the product ordering modules arranged at all preset positions of the production line, and orders all tracking items of the production product tracking table based on the ordering information. Wherein the preset position is the only connection point between the production steps; for example, a production line has a plurality of equipment for process A, but only one equipment for process B, so that the outlet ends of all equipment for process A are connected to the inlet ends of process B; the inlet end of the apparatus of the process step B can be determined as a preset position.
The invention also provides a PLC controller communication system based on the Ethernet, which comprises:
the first configuration module is used for configuring a data allocation module connected with the data classification module corresponding to each PLC controller on the same production line;
the second configuration module is used for configuring the data classification module connected with each PLC controller;
the data classification module is used for preprocessing and classifying the first data of each PLC controller after configuration is completed to form in-line data and first uploading data; the data classification module directly uploads the first uploading data to the server through the Ethernet;
the data allocation module allocates the online data of each data classification module after the allocation is completed, and integrates the online data to form second uploading data; the data allocation module uploads the second uploading data to the server through the Ethernet.
Preferably, the first configuration module configures a data allocation module connected with a data classification module corresponding to each PLC controller on the same production line, and performs the following operations:
acquiring a first equipment identification code corresponding to a data classification module connected with a data allocation module through the data allocation module;
determining a second equipment identification code of the PLC controller corresponding to the association of the data classification module based on the first equipment identification code;
determining equipment information of equipment corresponding to the PLC based on the second equipment identification code;
constructing a production line characteristic set corresponding to the data allocation module based on the equipment information;
based on the fact that the production line feature set is matched with a standard feature set in a preset first configuration library, a first configuration rule and first configuration data which are associated with the standard feature set matched with the production line feature set are called;
and configuring the data allocation module based on the first configuration rule and the first configuration data.
Preferably, the second configuration module configures a data classification module connected to each PLC controller, and performs the following operations:
acquiring a third equipment identification code of a data allocation module connected with the data classification module through the data classification module;
based on the third equipment identification code, a production line equipment ordering table and a configuration record sent by a corresponding data allocation module are called;
based on the configuration record, a preset second configuration library corresponding to the first configuration rule is called;
based on the production line equipment sorting table, calling a second configuration rule and second configuration data from a second configuration library;
the data classification module is configured based on the second configuration rule and the second configuration data.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (5)

1. An ethernet-based PLC controller communication method, comprising:
a data allocation module connected with a data classification module corresponding to each PLC controller on the same production line is configured;
configuring a data classification module connected with each PLC controller;
the data classification module is used for preprocessing and classifying the first data of each PLC controller after configuration is completed to form in-line data and first uploading data; the data classification module directly uploads the first uploading data to a server through an Ethernet;
the data allocation module allocates the online data of each data classification module after the allocation is completed, and integrates the online data to form second uploading data; the data allocation module uploads the second uploading data to the server through the Ethernet;
the configuration of the data allocation module connected with the data classification module corresponding to each PLC controller on the same production line comprises the following steps:
acquiring a first equipment identification code corresponding to a data classification module connected with the data allocation module through the data allocation module;
determining a second device identification code of the PLC controller corresponding to the association of the data classification module based on the first device identification code;
determining equipment information of equipment corresponding to the PLC based on the second equipment identification code;
constructing a production line feature set corresponding to the data allocation module based on the equipment information;
based on the fact that the production line feature set is matched with a standard feature set in a preset first configuration library, a first configuration rule and first configuration data which are associated with the standard feature set matched with the production line feature set are called;
configuring the data allocation module based on the first configuration rule and the first configuration data;
the data classification module connected with each PLC is configured, and the data classification module comprises:
acquiring a third equipment identification code of the data allocation module connected with the data classification module through the data classification module;
based on the third equipment identification code, a production line equipment ordering table and a configuration record sent by the corresponding data allocation module are called;
based on the configuration record, a preset second configuration library corresponding to the first configuration rule is called;
based on the production line equipment sorting table, calling a second configuration rule and second configuration data from a second configuration library;
configuring the data classification module based on the second configuration rule and second configuration data;
the data allocating module allocates the online data of each data classifying module after the allocation is completed and integrates the online data to form second uploading data, and the method comprises the following steps:
when a data acquisition request of the data classification module is received, locating a first position of equipment corresponding to a PLC controller connected with the data classification module in a production line equipment ordering table;
extracting in-line data uploaded by a data classification module connected with a PLC (programmable logic controller) of equipment corresponding to a second position associated with the first position and sending the in-line data to the data classification module corresponding to the data acquisition request;
and/or the number of the groups of groups,
when a data acquisition request of the data classification module is received, the data acquisition request is analyzed, and a product identification code of a corresponding production product is determined;
based on the product identification code, inquiring a production product tracking table, and determining a data classification module of a data acquisition request of a production product corresponding to the product identification code from the previous request to be a data sender;
and extracting the online data uploaded by the data sender and sending the online data to a data classification module corresponding to the data acquisition request.
2. The ethernet-based PLC controller communication method according to claim 1, wherein the data deployment module further performs the following operations:
when tracking of the production products in the production product tracking table is finished, integrating in-line data corresponding to the production products sent by each data classification module to form second uploading data;
configuring corresponding tracking timing parameters for each production product in a production product tracking table in advance;
when receiving a data acquisition request of the data classification module on a production line for the produced product, tracking a timing parameter to be zero and timing;
stopping timing of the tracking timing parameters and comparing the current value of the tracking timing parameters with a preset parameter threshold corresponding to the data classification module when the uploaded online data corresponding to the data acquisition request is received; when the parameter threshold value is larger than the parameter threshold value, outputting an alarm;
and when the value of the tracking timing parameter is larger than a preset warning threshold value, moving the tracking information of the generated product corresponding to the tracking timing parameter in the production product tracking table and the in-line data to a data temporary storage area for temporary storage.
3. The method for communicating with an ethernet-based PLC controller according to claim 1, wherein the step of constructing the production line device ordering table by the data allocation module comprises the steps of:
outputting test operation prompt information;
receiving test run trigger information uploaded by each data classification module when each test run product in the test run process passes through a production line;
and constructing the production line equipment sequencing table based on the uploading time of the test run trigger information and a preset production line equipment sequencing template.
4. The method for communicating with an ethernet-based PLC controller according to claim 1, wherein the step of constructing the production product tracking table by the data deployment module is as follows:
when the product identification code of the product is analyzed from the in-line data for the first time, determining whether a data classification module for uploading the in-line data is a data classification module corresponding to the first-echelon equipment in the production line equipment sequencing table;
if yes, generating a template based on preset tracking information, and generating tracking items of the produced products;
if not, extracting tracking information corresponding to the product identification code from the data temporary storage area to generate a tracking item of the produced product;
the data allocation module is further used for acquiring ordering information of products generated on the production line through the product ordering modules arranged at preset positions of the production line, and ordering each tracking item of the production product tracking table based on the ordering information.
5. An ethernet-based PLC controller communication system, comprising:
the first configuration module is used for configuring a data allocation module connected with the data classification module corresponding to each PLC controller on the same production line;
the second configuration module is used for configuring the data classification module connected with each PLC controller;
the data classification module is used for preprocessing and classifying the first data of each PLC controller after configuration is completed to form in-line data and first uploading data; the data classification module directly uploads the first uploading data to a server through an Ethernet;
the data allocation module allocates the online data of each data classification module after the allocation is completed, and integrates the online data to form second uploading data; the data allocation module uploads the second uploading data to the server through the Ethernet;
the first configuration module configures a data allocation module connected with the data classification module corresponding to each PLC controller on the same production line, and performs the following operations:
acquiring a first equipment identification code corresponding to a data classification module connected with the data allocation module through the data allocation module;
determining a second device identification code of the PLC controller corresponding to the association of the data classification module based on the first device identification code;
determining equipment information of equipment corresponding to the PLC based on the second equipment identification code;
constructing a production line feature set corresponding to the data allocation module based on the equipment information;
based on the fact that the production line feature set is matched with a standard feature set in a preset first configuration library, a first configuration rule and first configuration data which are associated with the standard feature set matched with the production line feature set are called;
configuring the data allocation module based on the first configuration rule and the first configuration data;
the second configuration module configures a data classification module connected with each PLC controller, and performs the following operations:
acquiring a third equipment identification code of the data allocation module connected with the data classification module through the data classification module;
based on the third equipment identification code, a production line equipment ordering table and a configuration record sent by the corresponding data allocation module are called;
based on the configuration record, a preset second configuration library corresponding to the first configuration rule is called;
based on the production line equipment sorting table, calling a second configuration rule and second configuration data from a second configuration library;
configuring the data classification module based on the second configuration rule and second configuration data;
the data allocating module allocates the online data of each data classifying module after the allocation is completed and integrates the online data to form second uploading data, and the method comprises the following steps:
when a data acquisition request of the data classification module is received, locating a first position of equipment corresponding to a PLC controller connected with the data classification module in a production line equipment ordering table;
extracting in-line data uploaded by a data classification module connected with a PLC (programmable logic controller) of equipment corresponding to a second position associated with the first position and sending the in-line data to the data classification module corresponding to the data acquisition request;
and/or the number of the groups of groups,
when a data acquisition request of the data classification module is received, the data acquisition request is analyzed, and a product identification code of a corresponding production product is determined;
based on the product identification code, inquiring a production product tracking table, and determining a data classification module of a data acquisition request of a production product corresponding to the product identification code from the previous request to be a data sender;
and extracting the online data uploaded by the data sender and sending the online data to a data classification module corresponding to the data acquisition request.
CN202310516641.1A 2023-05-09 2023-05-09 PLC controller communication method and system based on Ethernet Active CN116224901B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310516641.1A CN116224901B (en) 2023-05-09 2023-05-09 PLC controller communication method and system based on Ethernet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310516641.1A CN116224901B (en) 2023-05-09 2023-05-09 PLC controller communication method and system based on Ethernet

Publications (2)

Publication Number Publication Date
CN116224901A CN116224901A (en) 2023-06-06
CN116224901B true CN116224901B (en) 2023-07-21

Family

ID=86580990

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310516641.1A Active CN116224901B (en) 2023-05-09 2023-05-09 PLC controller communication method and system based on Ethernet

Country Status (1)

Country Link
CN (1) CN116224901B (en)

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7313453B2 (en) * 2004-09-27 2007-12-25 Rockwell Automation Technologies, Inc. Automated systems and methods employing attribute-based binding and configurable rules for selection of run time equipment
US10409270B2 (en) * 2015-04-09 2019-09-10 Honeywell International Inc. Methods for on-process migration from one type of process control device to different type of process control device
CN106656822A (en) * 2017-02-13 2017-05-10 北京邮电大学 Method and apparatus for updating software defined network flow table
CN107168284B (en) * 2017-05-23 2020-04-28 深圳市汇辰自动化技术有限公司 Device and method for automatically calibrating PLC analog output module
CN109978598A (en) * 2019-01-24 2019-07-05 博拉网络股份有限公司 Based on big data analysis sales data algorithm
CN109782722A (en) * 2019-01-31 2019-05-21 吕梁市军民融合协同创新研究院 One kind is towards the quick processing system of industrial scene large-scale production line multidimensional data
CN110263046A (en) * 2019-06-26 2019-09-20 鄂尔多斯市君正能源化工有限公司 It is a kind of applied to the production data processing method of mineral hot furnace, device and storage medium
CN111144725A (en) * 2019-12-18 2020-05-12 贵州工投智造科技有限公司 Auxiliary decision making system based on parallel processing of industrial Internet of things multi-path data
CN113315720B (en) * 2021-04-23 2023-02-28 深圳震有科技股份有限公司 Data flow control method, system and equipment
CN113239093A (en) * 2021-05-20 2021-08-10 深圳中商产业研究院有限公司 Data analysis method based on block chain
CN113676526A (en) * 2021-08-09 2021-11-19 武汉卓尔信息科技有限公司 Industrial data access management system and method
CN114721736B (en) * 2022-03-07 2024-02-02 华中科技大学 Data management method and system based on soft PLC
CN114915634A (en) * 2022-06-10 2022-08-16 北京国控天成科技有限公司 Industrial data acquisition and storage system and method based on data lake
CN217605150U (en) * 2022-07-13 2022-10-18 深圳市汇辰自动化技术有限公司 Disconnection diagnosis system of thermal resistor
CN115480542A (en) * 2022-08-01 2022-12-16 上海纯青智能科技有限公司 Production line running state and related process data acquisition system
CN116016579A (en) * 2022-11-25 2023-04-25 田立宝 Data acquisition system of automatic equipment

Also Published As

Publication number Publication date
CN116224901A (en) 2023-06-06

Similar Documents

Publication Publication Date Title
CN109079497A (en) Engineering machinery assemble production line online awareness and flexible assembly system
CN110971666A (en) Internet of things management system and communication method thereof
CN106598003A (en) Integrated control system for intelligent LED lamp assembling line
CN102262401A (en) Industrial production line monitoring system
CN107168269A (en) A kind of MES system that detection is assembled for engine sprocket room housing
CN115063118B (en) Intelligent workshop equipment management method and system based on industrial Internet
US20100004774A1 (en) System For Real-Time Surveillance Of Production Facility And Environmental Conditions
CN113561656B (en) Method, system and equipment for monitoring and tracing production process quality of printing workshop
CN103197640A (en) Intelligent management and control system and method of manufacturing technique
CN110597196A (en) Data acquisition system and data acquisition method
CN102809953A (en) Systems and methods for alert capture and transmission
CN115776438B (en) Industrial control data transmission method and system
CN109002021A (en) Semiconductor production remote monitoring system based on OCR image processing techniques
CN116224901B (en) PLC controller communication method and system based on Ethernet
CN108748936A (en) A kind of injection workshop Intelligent Production Management System and its method
CN110175746A (en) Workshop based on Internet of Things is avoided the peak hour product plan
CN214067660U (en) Monitoring system based on Internet of things
CN112818180A (en) Storage and query method of wafer processing historical data and process control system
CN107392434A (en) Industrial big data plateform system framework and control flow
CN110162015B (en) Fault diagnosis method based on public drinking device
CN115266744A (en) Detection system and method for product in production line
CN109408047B (en) Resource management system in integrated circuit test informatization management system
CN112749574A (en) Automatic code scanning inspection terminal and method
CN116260848B (en) Multi-processing equipment data acquisition system and method
CN111768150A (en) Logistics equipment health management platform based on 5G network

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