CN112365360B - Material consumption statistical calculation method for cigarette production line - Google Patents

Material consumption statistical calculation method for cigarette production line Download PDF

Info

Publication number
CN112365360B
CN112365360B CN202011157452.2A CN202011157452A CN112365360B CN 112365360 B CN112365360 B CN 112365360B CN 202011157452 A CN202011157452 A CN 202011157452A CN 112365360 B CN112365360 B CN 112365360B
Authority
CN
China
Prior art keywords
client
server
material consumption
program
data
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
CN202011157452.2A
Other languages
Chinese (zh)
Other versions
CN112365360A (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.)
Hongyun Honghe Tobacco Group Co Ltd
Original Assignee
Hongyun Honghe Tobacco Group 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 Hongyun Honghe Tobacco Group Co Ltd filed Critical Hongyun Honghe Tobacco Group Co Ltd
Priority to CN202011157452.2A priority Critical patent/CN112365360B/en
Publication of CN112365360A publication Critical patent/CN112365360A/en
Application granted granted Critical
Publication of CN112365360B publication Critical patent/CN112365360B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/04Manufacturing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • 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/30Computing systems specially adapted for manufacturing

Abstract

The invention discloses a material consumption statistical calculation method for a cigarette production line, which comprises the following steps: establishing communication connection between a service end and a plurality of clients; starting at least one client; importing first material consumption data filled in at least one client side to a server side, or manually inputting second material consumption data corresponding to the client side in the server side; and the server calculates the first material consumption data and/or the second material consumption data corresponding to each client to obtain a material consumption statistical calculation result. According to the material consumption statistical calculation method for the cigarette production line, provided by the invention, the service end which is in communication connection with a plurality of clients is utilized to calculate the material consumption data corresponding to each client to obtain the material consumption statistical calculation result, and the material consumption statistical calculation of the cigarette production line can be automatically performed, so that the material consumption statistical calculation flow of the cigarette production line can be simplified, the data input efficiency, the accuracy of data calculation and the convenience of data analysis are improved, and the working efficiency is greatly improved.

Description

Material consumption statistical calculation method for cigarette production line
Technical Field
The invention relates to the technical field of material consumption statistical analysis in a cigarette production process, in particular to a material consumption statistical calculation method for a cigarette production line.
Background
The main materials used in the cigarette production line comprise tobacco shreds, cigarette paper, tipping paper, lining paper, paperboard, trademark paper and the like, and when the use condition of the unit materials of the cigarette production line is checked, single-box material consumption is often used as a comparison basis, and the calculation method is that the ratio of the number of single materials actually used to the output is calculated. Among the data that are needed in calculating the actual non-tobacco material used are: the data needed for calculating the actual consumption of tobacco shreds are as follows: the quality control method comprises the steps of removing the tobacco shred quantity of unqualified products in a class, the tobacco shred quantity of defective products caused by the start and stop of a class cigarette machine or abnormality, the tobacco powder quantity generated by class equipment, the tobacco shred quantity in class oil-impregnated cigarettes, the tobacco shred stalk quantity removed in class, the tobacco shred quantity of defective products removed by class packaging machine, the tobacco shred quantity in products with quality problems found in class and class yield. The method for acquiring the non-tobacco material related data comprises the steps of filling a bill of materials by a crew member at the end of production; the method for acquiring the non-tobacco stem related data in the tobacco shreds is that a designated worker carries out actual weighing on the rejected products in different reject barrels, the tobacco stem quantity is acquired by measuring the tobacco stem quantity through fixed yield, and the result is calculated according to the ratio.
For the processing of the above data, currently, a statistics operator usually creates a function table according to a calculation formula, and performs calculation after inputting the data. Because of the large number of brands, the calculation process requires a plurality of numerical unit conversions and intermediate value calculations, different brands correspond to different tables, and a plurality of tables need to be made by a statistically significant number of people, which clearly increases the probability of calculation errors. In addition, because of the numerous units, the workload of the statistics staff for inputting data is also great, and the probability of data input errors is increased. Further, there are many inconveniences in data analysis of the calculated result due to the numerous tables. Therefore, the traditional cigarette production line has the defects of complex material consumption calculation flow, lower efficiency and higher error rate.
Therefore, a method for calculating the material consumption statistics of the cigarette production line is needed.
Disclosure of Invention
The invention aims to provide a material consumption statistical calculation method for a cigarette production line, which aims to solve the problems in the prior art, simplify the flow of material consumption statistical calculation, improve the accuracy of data and improve the convenience of data analysis.
The invention provides a material consumption statistical calculation method for a cigarette production line, which comprises the following steps of:
establishing communication connection between a service end and a plurality of clients;
starting at least one client;
importing first material consumption data filled in at least one client to the server, or manually inputting second material consumption data corresponding to at least one client in the server;
and the server calculates the first material consumption data and/or the second material consumption data corresponding to each client to obtain a material consumption statistical calculation result.
The method for calculating the material consumption statistics of the cigarette production line, as described above, preferably, establishes communication connection between a service end and a plurality of clients, and specifically includes:
installing a server program on a server computer corresponding to the server, and installing a client program on a client industrial computer corresponding to the client;
configuring a server address in a client communication module corresponding to the client program, and configuring a client address in a server communication module corresponding to the server;
and connecting the server side and each client side by using a network cable.
The method for calculating the material consumption statistics of the cigarette production line as described above, wherein preferably, the starting at least one client comprises:
starting the client program;
the client program judges whether the client communication configuration file is empty or not;
if the client communication configuration file is not empty, the client program reads the client communication configuration file;
if the client communication configuration file is empty, the client program prompts the information of communication unconfiguration to the user so as to prompt the user to carry out communication configuration;
if the user confirms that the communication configuration is not carried out, closing the client program;
and if the user performs communication configuration, the client program opens a client communication configuration module corresponding to the client program to perform communication configuration.
The method for calculating the material consumption statistics of the cigarette production line as described above, wherein preferably, the starting at least one client further includes:
after the client program successfully reads the client communication configuration file, information containing the client address is sent to the server program;
after receiving the information containing the client address, the server program sends feedback information to the client program;
after receiving the feedback information, the client program enters an operating state;
if the client program does not receive the feedback information, the client program sends out an information prompt that communication is not established with the server and enters a standby state;
when the client program is in a standby state, the information containing the client address is sent to the server program at preset time intervals;
after receiving the feedback information from the server program, the client program enters an operating state.
In the method for calculating the material consumption statistics of the cigarette production line, preferably, the first material consumption data filled in at least one client is imported to the server, or second material consumption data corresponding to at least one client is manually entered in the server, which specifically includes:
under the condition that the server program starts a manual mode, the server program is opened to manually input second material consumption data;
filling first material consumption data on at least one client under the condition that the server program starts an automatic mode;
judging whether the communication configuration file of the server is empty or not;
if the service side communication configuration file is empty, the service side program prompts information of communication unconfiguration to a statistics person so as to prompt the statistics person to carry out communication configuration;
if the statistics person confirms that the communication configuration is not carried out, the server program is closed;
if the communication configuration is carried out by the statistics staff, the server program opens a server communication configuration module corresponding to the server program to carry out the communication configuration;
if the server communication configuration file is not empty, the server program reads the server communication configuration file, and after the server program successfully reads the server communication configuration file, the server program receives the first material consumption data sent from the client program, and if the server program does not receive the first material consumption data, the server program is in a waiting state.
The method for calculating the material consumption statistics of the cigarette production line as described above, preferably, the server program receives the first material consumption data sent from the client program, and specifically includes:
filling the first material consumption data in the client program, wherein the first material consumption data at least comprises the quantity of materials;
after the first material consumption data is filled, carrying out overview on the current filled information, and judging whether the information needing to be modified exists in the current filled information;
if the information needing to be modified exists in the current filled information, the client program returns to the material quantity filling interface;
if the information needing to be modified does not exist in the current filled information, the client program sends the first material consumption data to the server program;
and under the condition that the client program transmits the first material consumption data to the server program, the client program receives the transmission result feedback information transmitted by the server.
In the method for calculating the material consumption statistics of the cigarette production line, preferably, if there is no information to be modified in the current filled information, the client program sends the first material consumption data to the server program, and specifically includes:
when the information needing to be modified does not exist in the current filled information, the client program sends the first material consumption data to the server program, and in the data sending process, the client program judges whether the data information of the first material consumption data is empty;
if the data information is empty, the client program prompts the user that the data cannot be empty, and the client program stops sending the information;
and if the data information is not all empty, allowing the client program to send the first material consumption data.
The method for calculating the material consumption statistics of the cigarette production line, as described above, preferably, the client program receives feedback information of a sending result sent by the server, and specifically includes:
after the client program transmits the first material consumption data to the server program, waiting for feedback information of a transmission result after the data transmitted by the server program are transmitted;
if the client program receives the feedback information of the sending result within the preset time, the client program sends successful information to the user prompt information;
if the waiting time exceeds the preset time, the client program prompts the user for information of failure sending.
In the method for calculating the material consumption statistics of the cigarette production line, preferably, the server calculates the first material consumption data and/or the second material consumption data corresponding to each client to obtain the material consumption statistical calculation result, and the method specifically includes:
after receiving the first material consumption data, the server program sends feedback information of successful information sending to the client program, and meanwhile, a data receiving record is generated in a history record file;
the server program preprocesses the first material consumption data and/or the second material consumption data to determine current material data of the current date of the current machine number calculated by the server program;
the server program judges whether all the data acquired currently meet the calculation requirement;
if all the data acquired at present meet the calculation requirement, the server program calculates a final result and stores the final result and the acquired data into a database;
if all the data acquired at present do not meet the calculation requirement, the server program stores the data acquired at present into a database.
In the method for calculating the material consumption statistics of the cigarette production line, preferably, the server calculates the first material consumption data and/or the second material consumption data corresponding to each client to obtain a material consumption statistical calculation result, and further includes:
before the final result and the acquired data or the currently acquired data are stored in a database, the server program reads the database to judge whether the database stores the data record of the current material of the current machine with the current date;
if the data record exists, the server program carries out data modification operation on the database;
and if the data record does not exist, the server program performs the addition operation of the new data record on the database.
The invention provides a material consumption statistical calculation method of a cigarette production line, which utilizes a server end which is in communication connection with a plurality of clients to calculate material consumption data corresponding to each client to obtain a material consumption statistical calculation result, and can automatically perform material consumption statistical calculation of the cigarette production line, so that the material consumption statistical calculation flow of the cigarette production line can be simplified, the data input efficiency, the accuracy of data calculation and the convenience of data analysis are improved, and the working efficiency is greatly improved.
Drawings
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described with reference to the accompanying drawings, in which:
FIG. 1 is a flow chart of an embodiment of a method for calculating statistics of material consumption of a cigarette production line;
fig. 2 is an algorithm flow chart of a client program of an embodiment of a method for calculating the material consumption statistics of a cigarette production line according to the present invention
Fig. 3 is an algorithm flow chart of a server program of an embodiment of a method for calculating the material consumption statistics of a cigarette production line provided by the invention.
Detailed Description
Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. The description of the exemplary embodiments is merely illustrative, and is in no way intended to limit the disclosure, its application, or uses. The present disclosure may be embodied in many different forms and is not limited to the embodiments described herein. These embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art. It should be noted that: the relative arrangement of parts and steps, the composition of materials, numerical expressions and numerical values set forth in these embodiments should be construed as exemplary only and not limiting unless otherwise specifically stated.
"first", "second", as used in this disclosure: and similar words are not to be interpreted in any order, quantity, or importance, but rather are used to distinguish between different sections. The word "comprising" or "comprises" and the like means that elements preceding the word encompass the elements recited after the word, and not exclude the possibility of also encompassing other elements. "upper", "lower", etc. are used merely to denote relative positional relationships, which may also change accordingly when the absolute position of the object to be described changes.
In this disclosure, when a particular element is described as being located between a first element and a second element, there may or may not be intervening elements between the particular element and the first element or the second element. When it is described that a specific component is connected to other components, the specific component may be directly connected to the other components without intervening components, or may be directly connected to the other components without intervening components.
All terms (including technical or scientific terms) used in this disclosure have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs, unless specifically defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, the techniques, methods, and apparatus should be considered part of the specification.
As shown in fig. 1 to 3, the method for calculating the material consumption statistics of the cigarette production line provided in this embodiment specifically includes the following steps in the actual implementation process:
and step S1, establishing communication connection between a service end and a plurality of clients.
The user of the server is a statistics person, and the user of the client is an operator of the cigarette production line. The number of clients connected to one server is not particularly limited in the present invention. In one embodiment of the method for calculating the material consumption statistics of the cigarette production line of the present invention, the step S1 may specifically include:
step S11, installing a server program on a server computer corresponding to the server, and installing a client program on a client industrial computer corresponding to the client.
Step S12, a server address is configured in a client communication module corresponding to the client program, and the client address is configured in a server communication module corresponding to the server.
And S13, connecting the server side and each client side by using a network cable.
And S2, starting at least one client.
In one embodiment of the method for calculating the material consumption statistics of the cigarette production line of the present invention, the step S2 may specifically include:
step S21, starting the client program.
Step S22, the client program judges whether the client communication configuration file is empty.
Step S23, if the client communication configuration file is not empty, the client program reads the client communication configuration file.
And step S24, if the client communication configuration file is empty, the client program prompts the user with information that communication is not configured so as to prompt the user to carry out communication configuration.
And S25, if the user confirms that the communication configuration is not performed, closing the client program.
Step S26, if the user performs communication configuration, the client program opens a client communication configuration module corresponding to the client program to perform communication configuration.
After the client program is started, the client program firstly judges whether the communication configuration file is empty, if so, the client program prompts the user to' communication unconfigured! And if the user confirms that the configuration is not performed, the client program is closed, and if the user needs to perform the configuration, the program opens the client program communication configuration module.
Further, in one embodiment of the method for calculating the material consumption statistics of the cigarette production line of the present invention, the step S2 may further include:
step S27, after the client program successfully reads the client communication configuration file, information containing the client address is sent to the server program;
step S28, after receiving the information containing the client address, the server program sends feedback information to the client program;
step S29, after receiving the feedback information, the client program enters an operation state;
step S210, if the client program does not receive the feedback information, the client program sends out an information reminder that communication is not established with the server, and enters a standby state;
step S211, when the client program is in a standby state, the information containing the client address is sent to the server program at preset time intervals;
step S212, after receiving the feedback information from the server program, the client program enters an operation state.
After the client program successfully reads the communication configuration file, the client program reports to the server program, namely, sends information containing the address of the client to the server program, the server program feeds back 'start information received' to the client program after receiving the information, the client program enters an operation state after receiving the feedback information, and if the feedback information is not received, the client program sends an information reminder of 'not establishing communication with the server' and enters a standby state. When the client program is in a standby state, information is sent to the server program at intervals, and once feedback from the server program is received, the client program enters an operation state.
Step S3, importing first material consumption data filled in at least one client to the server, or manually inputting second material consumption data corresponding to at least one client in the server;
in one embodiment of the method for calculating the material consumption statistics of the cigarette production line of the present invention, the step S3 may specifically include: the method specifically comprises the following steps:
step S31, under the condition that the server program starts a manual mode, the server program is opened to manually input second material consumption data;
after the administrator correctly inputs the account number and the password, the administrator selects the material consumption data input module, and then the administrator can enter a page for manually inputting data.
Step S32, under the condition that the server program starts an automatic mode, filling first material consumption data on at least one client;
step S33, judging whether the communication configuration file of the server is empty or not;
step S34, if the service side communication configuration file is empty, the service side program prompts the information of unconfigured communication to the statistics person so as to prompt the statistics person to carry out communication configuration;
step S35, if the statistics personnel confirm that the communication configuration is not performed, the server program is closed;
step S36, if the communication configuration is carried out by the statistics staff, the server program opens a server communication configuration module corresponding to the server program to carry out the communication configuration;
step S37, if the server communication configuration file is not empty, the server program reads the server communication configuration file, and after the server program successfully reads the server communication configuration file, the server program receives the first material consumption data sent from the client program, and if the server program does not receive the first material consumption data, the server program is in a waiting state.
The server program has a manual mode and an automatic mode, and data can be directly input after the server program is opened in the manual mode. After the automatic mode is started, the server program firstly judges whether the communication configuration file is empty, if so, the user is prompted to perform configuration, if the user does not perform configuration now, the program is closed, and if the user configures, the program opens the communication configuration module of the server program to perform communication configuration. After the server program successfully reads the communication configuration file, if the server program does not receive the data, the server program is in a waiting state.
In one embodiment of the method for calculating the material consumption statistics of the cigarette production line of the present invention, the receiving, by the server program in step S37, the first material consumption data sent from the client program may specifically include:
step S37-1, filling the first material consumption data in the client program, wherein the first material consumption data at least comprises the quantity of materials;
the filling the first material consumption data in the client program specifically includes:
step S37-1-1, selecting a device type;
step S37-1-2, filling in corresponding material quantity;
step S37-1-3, selecting the date of the data to be reported.
By clicking the client program on the client industrial calculation, firstly selecting the equipment type on the cigarette production line, filling in the corresponding material quantity, and then selecting the date of the data to be reported, wherein the date default value is the current day.
And S37-2, after the first material consumption data is filled, carrying out overview on the current filled information, and judging whether the information needing to be modified exists in the current filled information.
Step S37-3, if the information needing to be modified exists in the current filled information, the client program returns to the material quantity filling interface.
Step S37-4, if there is no information to be modified in the current filled information, the client program sends the first material consumption data to the server program.
After the data is filled, clicking the data for reporting, the program pops up an overview dialog box for the currently filled information, and if the information needs to be modified, clicking for canceling, the program returns to the material quantity filling interface; if the information does not need to be modified, the click determines to send.
In one embodiment of the method for calculating the material consumption statistics of the cigarette production line of the present invention, the step S37-4 may specifically include:
step S37-4-1, the client program sends the first material consumption data to the server program when no information needing to be modified exists in the current filled information, and in the data sending process, the client program judges whether the data information of the first material consumption data is empty.
And step S37-4-2, if the data information is empty, the client program prompts the user that the data cannot be empty, and the client program stops sending the information.
Step S37-4-3, if the data information is not all empty, the client program allows the first material consumption data to be sent.
In the data transmission process, the client program judges whether the data information is empty or not, if so, the client program pops up a prompt box of 'data cannot be empty', and stops information transmission; if not, the client program will allow the data to be sent and data information will be transferred to the server program.
Step S37-5, when the client program sends the first material consumption data to the server program, the client program receives the sending result feedback information sent by the server.
In one embodiment of the method for calculating the material consumption statistics of the cigarette production line of the present invention, the step S37-5 may specifically include:
step S37-5-1, after the client program transmits the first material consumption data to the server program, waiting for feedback information of a transmission result after the data transmitted by the server program are transmitted;
step S37-5-2, if the client program receives the feedback information of the sending result within the preset time, the client program sends successful information to the user prompt information;
and step S37-5-3, if the waiting time exceeds the preset time, the client program sends failure information to the user prompt information.
After the client program transmits the first material consumption data to the server program, waiting for feedback of a transmission result after data transmission; if waiting for a timeout, the client program will display the "information transmission failure-! The result of "; if receiving the information from the server program, the information is successfully sent-! "information feedback, client program feedback information status shows" information has been successfully sent-! ".
And S4, the server calculates the first material consumption data and/or the second material consumption data corresponding to each client to obtain a material consumption statistical calculation result.
In one embodiment of the method for calculating the material consumption statistics of the cigarette production line of the present invention, the step S4 may specifically include:
step S41, after receiving the first material consumption data, the server program sends feedback information of successful information sending to the client program, and meanwhile, a data receiving record is generated in a history file;
step S42, the server program preprocesses the first material consumption data and/or the second material consumption data to determine current material data of the current date of the current machine number calculated by the server program;
step S43, the server program judges whether all the data acquired currently meet the calculation requirement;
the judging standard of whether the data meets the calculation requirement is whether the data required by a calculation formula for calculating a certain material consumption statistics is comprehensive or not. Taking the statistics of material consumption of the non-tobacco materials actually used as an example, the data required in the calculation formula are as follows: the last team residual material, the present work incoming material, the present work returning material, the present work residual material and the present work output. Therefore, as long as the currently acquired data includes the data, the server program calculates the calculation result of the material consumption statistics of the non-tobacco materials. In operation, the server program is refreshing data all the time and performs cyclic scanning calculation, and as long as the server program obtains all data required for calculating a certain material consumption statistic, the calculation result of the material consumption statistic is obtained by calculation. Therefore, calculation is not needed one by one, the middle process is omitted, the calculation time can be greatly saved, the material consumption statistical calculation process of the cigarette production line is simplified, the data input efficiency is improved, the data calculation is accurate, the data analysis is convenient, and the working efficiency is greatly improved.
Step S44, if all the data acquired currently meet the calculation requirement, the server program calculates a final result and stores the final result and the acquired data together into a database;
step S45, if all the data acquired at present do not meet the calculation requirement, the server program stores the data acquired at present into a database.
After receiving the information, the server side will first send the information successful transmission-! The method comprises the steps of generating text information of a piece of data receiving record in a history record file, processing the information, determining a machine number calculated by a server according to the machine number corresponding to a production line in the information, determining the date of the machine number of the data to be calculated by the server according to the date in the information, determining current material data of the current date of the current machine number to be calculated by the server according to material data in the information, judging whether all data acquired at present meet calculation requirements or not by the server, if so, calculating a final result by the server, and storing the result and the acquired data into a database file; if the calculation requirement is not met, the server program only stores the currently acquired data into the database file.
Further, in one embodiment of the method for calculating the statistics of the material consumption of the cigarette production line of the present invention, the step S4 may further include:
step S46, before storing the final result and the acquired data or the currently acquired data in a database, the server program performs a reading operation on the database to determine whether a data record of the current material of the current machine with the current date exists in the database;
step S47, if the data record exists, the server program carries out data modification operation on the database;
and step S48, if no data record exists, the server program performs the addition operation of the new data record on the database.
Before the server accesses the data, the server reads the database in the server computer, judges whether the database stores the data record of the current material of the current machine with the current date, and if the record exists, the server program modifies the data of the database; if the record does not exist, the server program performs the addition operation of the new data record to the database. When the server program inputs data manually, after an administrator inputs an account number and a password correctly, selecting a material consumption data input module to enter a page for inputting data manually, wherein the default date of the page is the same day, the default machine set is number 1, if the data under the current screening condition exists in a database, the material data corresponding to the current page can be displayed directly, and the administrator can perform adding and modifying operations on the data.
Further, in one embodiment of the method for calculating the statistics of the material consumption of the cigarette production line of the present invention, the step S4 may further include:
and step S49, counting the data in the database.
The server program comprises a data statistics module, and after entering the module, all data records entering the database are displayed in the forms of a list, a graph, a line graph, a table and the like, and the display form is visual, so that data comparison is convenient. The data record of the database comprises specific data of each material used by each unit for producing different brands of products under different recorded dates; for records for which the calculation has been completed, the server program will display the calculated values in a list.
Step S410, screening the data in the database.
The server program data statistics module also has a data screening function, can select to independently check data of a certain day or a plurality of continuous days, the screening condition can also be a certain unit or a certain brand, when the screening condition is set, the data can be changed in real time according to the screening condition, the bar graph button in the server program data statistics module is clicked, the display effect of the data bar graph after data conversion can be displayed, the copy button on the upper part of the page is clicked, the current bar graph page can be subjected to screenshot, and the screenshot can be stored in the clipboard of the server computer, and the contents of the clipboard can be directly pasted to picture processing software or office software.
Step S411, exporting the data in the database.
The data statistics module in the server program also has a data export function, clicking a data export button, the system generates a table file named by integrating the screening conditions of all the data statistics modules when the system executes the data export operation according to the screening conditions set in the data statistics module of the server program, and after the data export is completed, the system pops up a data export success-! "prompt box. And data in the database is exported, a report can be generated under the condition of given screening conditions, and the report is convenient to view.
Step S412, importing the data into the database.
The data statistics module in the server program also has a data importing function, a data importing button is clicked to enter a data importing page, a preview is clicked to preview the data in the data table, after the data in the data table is confirmed to be correct, the clicking is confirmed, and the system can import the data to the correct position in the database according to the date, the machine set, the brand and the material. Under the condition that equipment fails, data can be imported into a database, and the data can be quickly supplemented.
According to the material consumption statistical calculation method for the cigarette production line, provided by the embodiment of the invention, the service end which is in communication connection with the plurality of clients is utilized to calculate the material consumption data corresponding to each client to obtain the material consumption statistical calculation result, and the material consumption statistical calculation of the cigarette production line can be automatically performed, so that the material consumption statistical calculation flow of the cigarette production line can be simplified, the data input efficiency, the accuracy of data calculation and the convenience of data analysis are improved, and the working efficiency is greatly improved.
Thus, various embodiments of the present disclosure have been described in detail. In order to avoid obscuring the concepts of the present disclosure, some details known in the art are not described. How to implement the solutions disclosed herein will be fully apparent to those skilled in the art from the above description.
Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. It will be understood by those skilled in the art that the foregoing embodiments may be modified and equivalents substituted for elements thereof without departing from the scope and spirit of the disclosure. The scope of the present disclosure is defined by the appended claims.

Claims (6)

1. A material consumption statistical calculation method for a cigarette production line is characterized by comprising the following steps:
establishing communication connection between a service end and a plurality of clients;
starting at least one client;
importing first material consumption data filled in at least one client to the server, or manually inputting second material consumption data corresponding to at least one client in the server;
the server calculates the first material consumption data and/or the second material consumption data corresponding to each client to obtain a material consumption statistical calculation result,
the establishing a communication connection between a server and a plurality of clients specifically includes:
installing a server program on a server computer corresponding to the server, and installing a client program on a client industrial computer corresponding to the client;
configuring a server address in a client communication module corresponding to the client program, and configuring a client address in a server communication module corresponding to the server;
the server and each client are connected by a network cable,
the starting at least one client specifically comprises the following steps:
starting the client program;
the client program judges whether the client communication configuration file is empty or not;
if the client communication configuration file is not empty, the client program reads the client communication configuration file;
if the client communication configuration file is empty, the client program prompts the information of communication unconfiguration to the user so as to prompt the user to carry out communication configuration;
if the user confirms that the communication configuration is not carried out, closing the client program;
if the user performs communication configuration, the client program opens a client communication configuration module corresponding to the client program to perform communication configuration;
after the client program successfully reads the client communication configuration file, information containing the client address is sent to the server program;
after receiving the information containing the client address, the server program sends feedback information to the client program;
after receiving the feedback information, the client program enters an operating state;
if the client program does not receive the feedback information, the client program sends out an information prompt that communication is not established with the server and enters a standby state;
when the client program is in a standby state, the information containing the client address is sent to the server program at preset time intervals;
after receiving the feedback information from the server program, the client program enters an operating state,
the importing the first material consumption data filled in at least one client to the server, or manually inputting second material consumption data corresponding to at least one client in the server, specifically including:
under the condition that the server program starts a manual mode, the server program is opened to manually input second material consumption data;
filling first material consumption data on at least one client under the condition that the server program starts an automatic mode;
judging whether the communication configuration file of the server is empty or not;
if the service side communication configuration file is empty, the service side program prompts information of communication unconfiguration to a statistics person so as to prompt the statistics person to carry out communication configuration;
if the statistics person confirms that the communication configuration is not carried out, the server program is closed;
if the communication configuration is carried out by the statistics staff, the server program opens a server communication configuration module corresponding to the server program to carry out the communication configuration;
if the server communication configuration file is not empty, the server program reads the server communication configuration file, and after the server program successfully reads the server communication configuration file, the server program receives the first material consumption data sent from the client program, and if the server program does not receive the first material consumption data, the server program is in a waiting state.
2. The method for calculating the material consumption statistics of the cigarette production line according to claim 1, wherein the server program receives the first material consumption data sent from the client program, specifically comprising:
filling the first material consumption data in the client program, wherein the first material consumption data at least comprises the quantity of materials;
after the first material consumption data is filled, carrying out overview on the current filled information, and judging whether the information needing to be modified exists in the current filled information;
if the information needing to be modified exists in the current filled information, the client program returns to the material quantity filling interface;
if the information needing to be modified does not exist in the current filled information, the client program sends the first material consumption data to the server program;
and under the condition that the client program transmits the first material consumption data to the server program, the client program receives the transmission result feedback information transmitted by the server.
3. The method for calculating the statistics of the material consumption of the cigarette production line according to claim 2, wherein if there is no information to be modified in the current filled information, the client program sends the first material consumption data to the server program, specifically including:
when the information needing to be modified does not exist in the current filled information, the client program sends the first material consumption data to the server program, and in the data sending process, the client program judges whether the data information of the first material consumption data is empty;
if the data information is empty, the client program prompts the user that the data cannot be empty, and the client program stops sending the information;
and if the data information is not all empty, allowing the client program to send the first material consumption data.
4. The method for calculating the material consumption statistics of the cigarette production line according to claim 2, wherein the client program receives the feedback information of the sending result sent by the server, and specifically includes:
after the client program transmits the first material consumption data to the server program, waiting for feedback information of a transmission result after the data transmitted by the server program are transmitted;
if the client program receives the feedback information of the sending result within the preset time, the client program sends successful information to the user prompt information;
if the waiting time exceeds the preset time, the client program prompts the user for information of failure sending.
5. The method for calculating the material consumption statistics of the cigarette production line according to claim 4, wherein the server calculates the first material consumption data and/or the second material consumption data corresponding to each client to obtain a material consumption statistical calculation result, and specifically comprises:
after receiving the first material consumption data, the server program sends feedback information of successful information sending to the client program, and meanwhile, a data receiving record is generated in a history record file;
the server program preprocesses the first material consumption data and/or the second material consumption data to determine current material data of the current date of the current machine number calculated by the server program;
the server program judges whether all the data acquired currently meet the calculation requirement;
if all the data acquired at present meet the calculation requirement, the server program calculates a final result and stores the final result and the acquired data into a database;
if all the data acquired at present do not meet the calculation requirement, the server program stores the data acquired at present into a database.
6. The method for calculating the material consumption statistics of the cigarette production line according to claim 5, wherein the server calculates the first material consumption data and/or the second material consumption data corresponding to each client to obtain a material consumption statistical calculation result, and further comprises:
before the final result and the acquired data or the currently acquired data are stored in a database, the server program reads the database to judge whether the database stores the data record of the current material of the current machine with the current date;
if the data record exists, the server program carries out data modification operation on the database;
and if the data record does not exist, the server program performs the addition operation of the new data record on the database.
CN202011157452.2A 2020-10-26 2020-10-26 Material consumption statistical calculation method for cigarette production line Active CN112365360B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011157452.2A CN112365360B (en) 2020-10-26 2020-10-26 Material consumption statistical calculation method for cigarette production line

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011157452.2A CN112365360B (en) 2020-10-26 2020-10-26 Material consumption statistical calculation method for cigarette production line

Publications (2)

Publication Number Publication Date
CN112365360A CN112365360A (en) 2021-02-12
CN112365360B true CN112365360B (en) 2023-04-28

Family

ID=74510474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011157452.2A Active CN112365360B (en) 2020-10-26 2020-10-26 Material consumption statistical calculation method for cigarette production line

Country Status (1)

Country Link
CN (1) CN112365360B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220224A (en) * 2021-04-01 2021-08-06 海天塑机集团有限公司 Statistical system and method for production data of injection molding machine
CN113421031B (en) * 2021-07-21 2022-11-04 红云红河烟草(集团)有限责任公司 Warning method and system for additional device of cigarette production line
CN113955185B (en) * 2021-10-26 2023-03-21 浙江中烟工业有限责任公司 Method for representing tobacco shred loss in rolling procedure through equipment operation parameters

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255895A (en) * 2011-06-29 2011-11-23 北京思创银联科技股份有限公司 Method and system for data communication between client and server
WO2018109742A1 (en) * 2016-12-16 2018-06-21 Bsg Wireless Limited Systems and methods for building and updating a wireless node database service
JP2019040507A (en) * 2017-08-28 2019-03-14 キッコーマン株式会社 Wine generation system and wine information providing system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793749A (en) * 2014-02-27 2014-05-14 四川物联恒安安全技术研究有限公司 Safety production comprehensive supervisory platform data transmission method
CN108111589A (en) * 2017-12-15 2018-06-01 广东工业大学 Collecting method, device, equipment and computer readable storage medium
JP7063781B2 (en) * 2018-09-12 2022-05-09 株式会社日立製作所 Parallel distributed processing control system, program, and parallel distributed processing control method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255895A (en) * 2011-06-29 2011-11-23 北京思创银联科技股份有限公司 Method and system for data communication between client and server
WO2018109742A1 (en) * 2016-12-16 2018-06-21 Bsg Wireless Limited Systems and methods for building and updating a wireless node database service
JP2019040507A (en) * 2017-08-28 2019-03-14 キッコーマン株式会社 Wine generation system and wine information providing system

Also Published As

Publication number Publication date
CN112365360A (en) 2021-02-12

Similar Documents

Publication Publication Date Title
CN112365360B (en) Material consumption statistical calculation method for cigarette production line
US11403696B2 (en) Client centric viewer
CN104484730A (en) Batching monitoring and tracing method and system
CN111026798A (en) Electromechanical equipment database system and control method thereof
CN105447681B (en) Physical and chemical detection control and information management system
CN105956987A (en) Road traffic engineering test detection data acquisition and evaluation system
EP2682868A2 (en) Remote notification and action system
CN111127180A (en) System and method for intelligently auditing financial documents
CN106100931A (en) A kind of automobile factory intelligent maintaining maintenance system
CN108010576A (en) A key generation method and system for medical instrument failure classes adverse events report
CN107833147A (en) A kind of electronic billboard system, data processing method and device
US20110313810A1 (en) Service tracking system
JP2004145715A (en) Maintenance system and maintenance method for computer
US20070073432A1 (en) System and method for capturing manufacturing data automatically
US20190138921A1 (en) Interactive guidance system for selecting thermodynamics methods in process simulations
CN115019922A (en) Feedback method, device and equipment for recording and auditing and storage medium
CN110910003B (en) Transmission shaft part production and manufacturing management system
US20220051109A1 (en) System of intelligence learning agents leveraging expertise capture for work heuristics management
CN114037397A (en) Power plant production report generating and sending system
CN112131131A (en) Automatic interface testing framework system for pre-constructed domain name and request body
CN111489000A (en) Two-dimensional code central data management system
JP4805983B2 (en) Terminal security system for maintenance service support system
CN110399412B (en) Measurement data system and monitoring method thereof
CN114741412B (en) User behavior self-help analysis system
CN112261073A (en) Scheme for data persistence of intelligent electronic scale

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