Disclosure of Invention
The present invention is directed to a method, system, apparatus, and medium for managing ceramic production parameters, which solve one or more of the technical problems of the prior art, and at least provide a beneficial choice or creation condition.
In a first aspect, there is provided a method of managing ceramic production parameters, the method comprising:
Performing polling access on each ceramic production device according to a preset polling period, and executing production process data updating operation when each ceramic production device is accessed;
the production process data updating operation comprises the following steps:
identifying the currently accessed ceramic production equipment, reading the first production process data of the currently accessed ceramic production equipment, and calling the second production process data corresponding to the ceramic production equipment;
Judging whether the first production process data and the second production process data are consistent;
if the first production process data is inconsistent, writing the second production process data into the currently accessed ceramic production equipment, and replacing the original first production process data by using the second production process data;
If so, ending accessing the current ceramic production equipment.
Further, the performing polling access on each ceramic production device according to a preset polling period includes:
And configuring corresponding transmission channels for each ceramic production device based on the transmission channel information, and carrying out polling access on each ceramic production device through the corresponding transmission channels of each ceramic production device according to the access sequence indicated by the polling period.
Further, the identifying the currently accessed ceramic production equipment, reading the first production process data of the currently accessed ceramic production equipment, and retrieving the second production process data corresponding to the ceramic production equipment, including:
identifying currently accessed ceramic production equipment based on a transmission channel configured to the ceramic production equipment, and calling second production process data according to the identification result;
And sending a reading instruction to an internal storage area of the ceramic production equipment through the transmission channel, and reading the first production process data in the internal storage area.
Further, the determining whether the first production process data and the second production process data are consistent includes:
Storing the first production process data read from the ceramic production equipment into a first storage area, and storing the fetched second production process data into a second storage area, so that the data address of the first process data stored in the first storage area corresponds to the data address of the second process data stored in the second storage area;
And comparing the local process data in the corresponding data addresses in the first storage area and the second storage area to determine whether the first production process data and the second production process data are consistent.
Further, the method further comprises:
Acquiring second production process data from the MES system and/or the ERP system;
The MES system and/or the ERP system also send second production process data to the cloud server.
Further, when the first production process data of the currently accessed ceramic production equipment is read or the second production process data is written into the currently accessed ceramic production equipment fails, polling access is suspended and alarming is carried out.
In a second aspect, there is provided a ceramic production parameter management system, the system comprising a controller and a ceramic production device, the controller comprising a data reading unit, a judging unit and an executing unit;
The controller is configured to perform polling access to each ceramic production device according to a preset polling period, and perform production process data updating operation each time the ceramic production device is accessed;
the production process data updating operation comprises the following steps:
The data reading unit is configured to identify the currently accessed ceramic production equipment, read the first production process data of the currently accessed ceramic production equipment and call the second production process data corresponding to the ceramic production equipment;
the judging unit is configured to judge whether the first production process data and the second production process data are consistent;
The execution unit is configured to write the second production process data to the currently accessed ceramic production equipment when the second production process data is judged to be inconsistent, replace the original first production process data with the second production process data, and finish accessing the current ceramic production equipment when the second production process data is judged to be inconsistent.
Further, the system also comprises an upper computer which is in communication connection with the controller;
The upper computer is configured to acquire second production process data and transmit the second production process data to the controller, or receive the second production process data uploaded by the controller and store the second production process data.
In a third aspect, there is provided a computer device comprising:
a memory storing a computer program;
a processor which when executing the computer program implements the ceramic production parameter management method as described in the first aspect.
In a fourth aspect, there is provided a computer storage medium having stored thereon a computer program which, when executed by a processor, implements the ceramic production parameter management method according to the first aspect.
The invention has the beneficial effects that through polling access to ceramic production equipment, one main station serial port can be connected with more ceramic production equipment, the use quantity of the main stations is reduced, and the accuracy and the efficiency of data updating are improved by adopting a comparison-before-write updating mode process parameter.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more clear, the present invention will be further described with reference to the embodiments and the accompanying drawings.
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
According to a first aspect of the present invention, a method of managing ceramic production parameters is provided.
Referring to fig. 1, fig. 1 is a flow chart illustrating a method for managing ceramic production parameters according to an embodiment. As shown in fig. 1, the method includes the following steps S100 to S500.
And S100, carrying out polling access on each ceramic production device according to a preset polling period, and executing production process data updating operation when each ceramic production device is accessed.
In the field of industrial automation, communication protocols are generally divided into two types, namely a balanced transmission protocol in which both parties can initiate message transmission, and an unbalanced transmission protocol in which one party in communication uses a sequential inquiry (call) to control data transmission. Under an unbalanced transmission protocol, one party initiating a message transmission is called a requesting station (master station), and the other party is called a slave station (slave station, or slave station device), which can only start transmission when the master station initiates a query (summoning). Modbus, IEC60870-5-103, profibus-DP and like protocols are typical unbalanced transmission protocols.
The ceramic production parameter management method of the embodiment executes production process data updating operation based on an unbalanced transmission protocol, ceramic production equipment serves as a slave station, response and data transmission are performed when the master station initiates inquiry, and the master station performs polling access on each ceramic production equipment according to a preset polling period. Illustratively, in a polling period, the master station initiates a query to a first ceramic production device in the polling period (when the master station does not communicate with other ceramic production devices), after the master station successfully establishes a connection with the first ceramic production device by initiating the query, the master station performs a production process data updating operation within a unit time range of communication, after completion, the master station initiates a query to a second ceramic production device in the polling period, performs a production process data updating operation after successfully establishing the connection, and so on until the master station establishes a connection with a last ceramic production device in the polling period and completes the production process data updating operation.
Alternatively, the master station may be a PLC controller and a human-machine interface HMI, and any control terminal capable of implementing polling access to the ceramic production device may be used as the master station, which is not limited in the present invention.
Specifically, the production process data updating operation described in the present embodiment includes:
Step S200, identifying the currently accessed ceramic production equipment, reading the first production process data of the currently accessed ceramic production equipment, and calling the second production process data corresponding to the ceramic production equipment.
The master station and the ceramic production equipment can be connected through serial ports, at most 256 ceramic production equipment can be connected simultaneously, the master station accesses the ceramic production equipment through serial ports, and reads first production process parameters from the ceramic production equipment, wherein the first production process data and the second production process data are all production process parameters for setting the ceramic production equipment, the first production process data represent the production process parameters which are written into the ceramic production equipment last time, and the second production process data represent the production process parameters which are to be written into the ceramic production equipment through current polling communication.
Alternatively, the local storage space of the master station may store the second production process data in advance, and the master station directly retrieves the second production process data from the local storage space of the master station, or the master station obtains the second production process data from the outside through a network and then retrieves the second production process data.
And S300, judging whether the first production process data and the second production process data are consistent. If not, step S400 is performed, and if so, step S500 is performed.
And S400, writing the second production process data into the currently accessed ceramic production equipment, and replacing the original first production process data with the second production process data.
And S500, finishing accessing the current ceramic production equipment.
The master station determines whether the production process parameters of the currently accessed ceramic production equipment need to be modified by judging whether the first production process data and the second production process data are consistent, if the first production process data sent to the master station by the currently accessed ceramic production equipment are different from the second production process data called by the master station, the master station judges that the first production process data and the second production process data are inconsistent, the master station writes the second production process data into the currently accessed ceramic production equipment, the written second production process data replace the original first production process data, and the written second production process data are defined as new first production process data.
In combination with the above embodiment, in some optional embodiments, the performing polling access on each ceramic production device according to a preset polling period includes:
And configuring corresponding transmission channels for each ceramic production device based on the transmission channel information, and carrying out polling access on each ceramic production device through the corresponding transmission channels of each ceramic production device according to the access sequence indicated by the polling period.
In this embodiment, the master station configures a corresponding transmission channel for each ceramic production device, determines the ceramic production device to be communicated according to the transmission channel information, and triggers the corresponding transmission channel according to a preset polling period to communicate with the corresponding ceramic production device. The number of the main stations can be multiple, each main station configures transmission channels for multiple different ceramic production devices, and when the production process parameters need to be updated, each main station performs polling access on the ceramic production devices configured according to the respective polling periods.
In combination with the above embodiment, in some optional embodiments, the identifying the currently accessed ceramic production equipment, reading the first production process data of the currently accessed ceramic production equipment, and retrieving the second production process data corresponding to the ceramic production equipment includes:
And sending a reading instruction to an internal storage area of the ceramic production equipment through the transmission channel to read the first production process data in the internal storage area.
In this embodiment, when the master station accesses the ceramic production device, interaction with the control system of the ceramic production device is skipped, and a reading instruction is directly sent to the internal storage area of the ceramic production device, so as to read the first production process data in the internal storage area.
In combination with the above embodiment, in some optional embodiments, the determining whether the first production process data and the second production process data are consistent includes:
And storing the first production process data read from the ceramic production equipment into a first storage area, and storing the fetched second production process data into a second storage area, so that the data address stored in the first storage area by the first process data and the data address stored in the second storage area by the second process data correspond to each other.
And comparing the local process data in the corresponding data addresses in the first storage area and the second storage area to determine whether the first production process data and the second production process data are consistent.
In this embodiment, the master station is provided with a first storage area and a second storage area, the data structure of the first production process data and the data structure of the second production process data are the same, the master station obtains the first production process data and the second production process data and stores the first production process data and the second production process data into data addresses corresponding to each other in the first storage area and the second storage area, and further, item-by-item comparison is performed on the first production process data and the second production process data, and when a difference exists between the first production process data and the second production process data, it is determined that the first production process data and the second production process data are inconsistent.
Alternatively, after the master station determines that the first production process data and the second production process data are inconsistent, the master station may summarize the inconsistent data and then transmit the summarized data to the ceramic production equipment to perform corresponding local replacement, or may terminate the comparison when the inconsistent local data are found for the first time and transmit all the second production process data to the currently communicating ceramic production equipment.
In combination with the above embodiment, in some alternative embodiments, the second production process data is obtained from an MES system and/or an ERP system, wherein the MES system and/or the ERP system further send the second production process data to the cloud server.
In combination with the above embodiment, in some alternative embodiments, the polling access is suspended and the alarm is given when the reading of the first production process data of the currently accessed ceramic production equipment or the writing of the second production process data to the currently accessed ceramic production equipment fails.
Referring to fig. 2, fig. 2 is a block diagram illustrating a ceramic production parameter management system according to an embodiment. As shown in fig. 2, the system includes a controller 100 and a ceramic production apparatus 200, the controller 100 including a data reading unit 110, a judging unit 120, and an executing unit 130;
The controller 100 is configured to perform polling access to each ceramic production equipment 200 according to a preset polling period, and perform a production process data update operation each time the ceramic production equipment 200 is accessed;
the production process data updating operation comprises the following steps:
The data reading unit 110 is configured to identify the currently accessed ceramic production equipment 200, read the first production process data of the currently accessed ceramic production equipment 200, and retrieve the second production process data corresponding to the ceramic production equipment 200;
the judging unit 120 is configured to judge whether the first production process data and the second production process data are identical;
The execution unit 130 is configured to write the second production process data to the currently accessed ceramic production equipment 200 when it is determined that the second production process data is inconsistent, replace the original first production process data with the second production process data, and end access to the current ceramic production equipment 200 when it is determined that the second production process data is inconsistent.
In this embodiment, the controller 100 serves as a master station and the ceramic production facility 200 serves as a slave station.
In combination with the above embodiment, in some optional embodiments, the system further includes a host computer 300, where the host computer 300 is communicatively connected to the controller 100, and the host computer 300 is configured to acquire the second production process data and transmit the second production process data to the controller 100, or receive and store the second production process data uploaded by the controller 100.
In combination with the above embodiment, in some alternative embodiments, the controller 100 is configured to configure respective transmission channels for each ceramic production apparatus 200 based on the transmission channel information, and to perform polling access to each ceramic production apparatus 200 through the respective transmission channels of each ceramic production apparatus 200 according to the access order indicated by the polling period.
In combination with the above embodiment, in some alternative embodiments, the controller 100 is configured to identify the currently accessed ceramic production facility 200 based on the transmission channel configured to the ceramic production facility 200, retrieve the second production process data based on the identification result, and send a read instruction to the internal storage area of the ceramic production facility 200 through the transmission channel to read the first production process data in the internal storage area.
In connection with the above embodiment, in some alternative embodiments, the controller 100 is configured to store the first production process data read from the ceramic production apparatus 200 to the first storage area, store the retrieved second production process data to the second storage area, make the data address where the first process data is stored in the first storage area and the data address where the second process data is stored in the second storage area correspond to each other, and compare the local process data in the respective mutually corresponding data addresses in the first storage area and the second storage area to determine whether the first production process data and the second production process data are identical.
In combination with the above embodiment, in some alternative embodiments, the controller 100 is configured to obtain the second production process data from an MES system and/or an ERP system that also sends the second production process data to the cloud server.
The ceramic production parameter management system performs the ceramic production parameter management method of the first aspect, and the specific limitation of the ceramic production parameter management system may be referred to the limitation of the ceramic production parameter management method hereinabove, and will not be described herein.
The various modules in the ceramic production parameter management system described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
According to a third aspect of the present invention, a computer device is provided.
Referring to fig. 3, fig. 3 is an internal structural diagram of a computer device according to an embodiment. As shown in fig. 3, the computer device includes a processor, a memory, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The computer program is executed by a processor to implement a ceramic production parameter management method according to the first aspect.
The memory and the processor are electrically connected with each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The processor is used for processing the measurement data and outputting the calculation result, and comprises at least one software functional module which can be stored in a memory in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the server. The processor is configured to execute the executable modules stored in the memory.
The Memory may be random access Memory (Random Access Memory, RAM), read Only Memory (ROM), programmable Read Only Memory (Programmable Read-Only Memory, PROM), erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc. The memory is used for storing programs and voice data, and the processor executes the programs after receiving the execution instructions.
The processor may be an integrated circuit chip having signal processing capabilities. The processor may be a general-purpose processor including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. The disclosed methods, steps, and logic blocks in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The processor couples various input/output devices to the processor and to the memory. In some embodiments, the processor and the memory may be implemented in a single chip. In other examples, they may be implemented by separate chips.
A peripheral interface couples various input/output devices to the processor and to the memory. In some embodiments, the peripheral interface, processor, and memory may be implemented in a single chip. In other examples, they may be implemented by separate chips.
According to a fourth aspect of the present invention, there is also provided a computer storage medium having a computer program stored therein, the computer storage medium may be a magnetic random access memory, a read only memory, a programmable read only memory, an erasable programmable read only memory, an electrically erasable programmable read only memory, a flash memory, a magnetic surface memory, an optical disk, or a read only optical disk, etc., or may be various devices including one or any combination of the above, such as a mobile phone, a computer, a tablet device, a personal digital assistant, etc. The computer program, when executed by a processor, implements a ceramic production parameter management method according to the first aspect.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
In this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a list of elements is included, and may include other elements not expressly listed.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.