Disclosure of Invention
The invention aims to overcome the defects in the prior art and provides a network-based cable code spraying control method, a network-based cable code spraying control system and a network-based cable code spraying control storage medium, wherein the efficiency of code spraying content and code spraying format input can be improved, and the storage capacity of the number of code spraying content can be improved.
The purpose of the invention is realized by the following technical scheme:
a network-based cable code spraying control method comprises the following steps:
s101, establishing a plurality of product codes, simultaneously writing a plurality of pre-processing code-spraying data, and respectively binding each product code and each pre-processing code-spraying data in a one-to-one correspondence manner to generate a plurality of code-spraying management items;
s102, generating a code spraying information table according to each code spraying management item;
s103, sending the code spraying information table to a database for storage;
s104, respectively reading each code spraying management item in the code spraying information table according to the code spraying information table in the database, and generating a plurality of code spraying management items to be processed;
and S105, generating a code spraying information data packet aiming at each code spraying management item to be processed, and sending the code spraying information data packet to a code spraying machine through a local area network.
In one embodiment, after the step of generating the code spraying information packet for each code spraying management entry to be processed and sending the code spraying information packet to the code spraying machine through the local area network, the method further includes the following steps:
receiving a plurality of to-be-processed code spraying data sent by the code spraying machine, establishing a plurality of product labels, and respectively binding each product label with each to-be-processed code spraying data in a one-to-one correspondence manner to generate a plurality of code spraying information items;
generating a jet printing information table according to each jet printing information item;
and sending the jet printing information table to a database.
In one embodiment, after the code spraying information data packet is generated for each to-be-processed code spraying management entry, and the code spraying information data packet is sent to a code spraying machine through a local area network, the method further includes the following steps:
and generating a starting-up instruction, and sending the starting-up instruction to the ink-jet printer.
In one embodiment, after the step of generating the start-up instruction and sending the start-up instruction to the inkjet printer, the method further includes the following steps:
and generating a shutdown instruction, and sending the shutdown instruction to the ink jet printer.
In one embodiment, after the step of establishing a plurality of product codes, writing a plurality of pre-processed code-spraying data, binding each product code with each pre-processed code-spraying data in a one-to-one correspondence manner, and generating a plurality of code-spraying management entries, the method further includes the following steps:
collecting a plurality of items of operation data, generating an information record table from each item of operation data, and sending the information record table to the database for storage.
A network-based cable code spraying control system comprises:
a marking module for establishing a plurality of product codes;
the writing module is used for writing a plurality of preprocessed code spraying data;
the matching module is used for respectively binding the product codes and the preprocessed code spraying data in a one-to-one correspondence manner to generate a plurality of code spraying management items;
the code spraying management system comprises a generating module, a code spraying information management module and a code spraying information processing module, wherein the generating module is used for generating a code spraying information table according to each code spraying management item, reading each code spraying management item in the code spraying information table respectively according to the code spraying information table to generate a plurality of code spraying management items to be processed, and meanwhile, the generating module is also used for generating a code spraying information data packet aiming at each code spraying management item to be processed;
the output module is used for sending the code spraying information table to a database for storage; the output module is also used for sending the code spraying information data packet to a code spraying machine through a local area network.
In one embodiment, the system further comprises a receiving module, and the receiving module is used for receiving the multiple to-be-processed code spraying data sent by the code spraying machine.
In one embodiment, the system further comprises an instruction module, wherein the instruction module is used for generating a starting-up instruction and sending the starting-up instruction to the inkjet printer; the instruction module is further used for generating a shutdown instruction and sending the shutdown instruction to the inkjet printer.
In one embodiment, the system further comprises an acquisition module, wherein the acquisition module is used for acquiring a plurality of items of operation data and generating an information record table from each item of operation data.
A network-based cable inkjet printing control storage medium, comprising: the storage medium stores a plurality of medium instructions, and the instructions are suitable for being loaded by a processor to execute the steps in any network-based cable code spraying control method provided in the implementation of the present invention.
Compared with the prior art, the invention has the following advantages and beneficial effects:
the invention relates to a network-based cable code spraying control method, a network-based cable code spraying control system and a network-based cable code spraying storage medium, wherein a plurality of product codes are established in advance at a PC terminal, and a plurality of preprocessed code spraying data are written in, so that the traditional mode of inputting and setting the preprocessed code spraying data through a code spraying keyboard and a touch display screen is abandoned, and the efficiency of inputting the preprocessed code spraying data is effectively improved; meanwhile, the database is established, the number storage of the code spraying management items can be greatly improved, and the problem that the original code spraying management items are covered due to the fact that the number of the code spraying management items is limited in the ink jet printer is solved.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Preferred embodiments of the present invention are shown in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
It will be understood that when an element is referred to as being "secured to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. The terms "vertical," "horizontal," "left," "right," and the like as used herein are for illustrative purposes only and do not represent the only embodiments.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
In one embodiment, a network-based cable code spraying control method includes the following steps: establishing a plurality of product codes, simultaneously writing a plurality of pre-processing code-spraying data, and binding each product code and each pre-processing code-spraying data in a one-to-one correspondence manner to generate a plurality of code-spraying management items; generating a code spraying information table according to the code spraying management items; sending the code spraying information table to a database for storage; according to the code spraying information table in the database, reading each code spraying management item in the code spraying information table respectively to generate a plurality of code spraying management items to be processed; and generating code spraying information data packets aiming at the code spraying management items to be processed, and sending the code spraying information data packets to a code spraying machine through a local area network. A network-based cable code spraying control system comprises: a marking module for establishing a plurality of product codes; the writing module is used for writing a plurality of preprocessed code spraying data; the matching module is used for respectively binding the product codes and the preprocessed code spraying data in a one-to-one correspondence manner to generate a plurality of code spraying management items; the code spraying management system comprises a generating module, a code spraying information management module and a code spraying information processing module, wherein the generating module is used for generating a code spraying information table according to each code spraying management item, reading each code spraying management item in the code spraying information table respectively according to the code spraying information table to generate a plurality of code spraying management items to be processed, and meanwhile, the generating module is also used for generating a code spraying information data packet aiming at each code spraying management item to be processed; the output module is used for sending the code spraying information table to a database for storage; the output module is also used for sending the code spraying information data packet to a code spraying machine through a local area network. According to the method and the device, a plurality of product codes are established in advance at the PC terminal, and a plurality of pre-processed code-spraying data are written in, so that the traditional mode of inputting and setting the pre-processed code-spraying data through a code-spraying keyboard and a touch display screen is abandoned, and the efficiency of inputting the pre-processed code-spraying data is effectively improved; meanwhile, the database is established, the number storage of the code spraying management items can be greatly improved, and the problem that the original code spraying management items are covered due to the fact that the number of the code spraying management items is limited in the ink jet printer is solved.
In order to better explain the network-based cable code spraying control method and to better understand the concept of the network-based cable code spraying control method, please refer to fig. 1, a network-based cable code spraying control method includes the following steps:
step S101, establishing a plurality of product codes, simultaneously writing a plurality of pre-processing code spraying data, respectively binding each product code and each pre-processing code spraying data in a one-to-one correspondence manner, and generating a plurality of code spraying management items.
And S102, generating a code spraying information table according to each code spraying management item.
It should be noted that, in a preprocessed code-spraying data, the content of the code-spraying and the code-spraying format are included, where the code-spraying format refers to the dot matrix size, the height difference size, and the like of the cable. Further, firstly, a worker establishes an Excel form or other forms at a PC (personal computer) end or other mobile terminals, the preprocessed code-spraying data and the product codes are recorded into the forms one by one, and each product code corresponds to one preprocessed code-spraying data one by one; and then, performing one-to-one corresponding binding on each product code and each preprocessed code spraying data through software processing in the PC terminal to generate a plurality of code spraying management items, and simultaneously generating a code spraying information table according to the plurality of code spraying management items. It should be further noted that the code spraying management entry includes a product code and the corresponding preprocessed code spraying data.
And step S103, sending the code spraying information table to a database for storage.
It should be noted that two external databases are established in the application, one of the databases is used for storing the code spraying format information in the pre-processed code spraying data, and the other database is used for storing the code spraying content and the product code in the pre-processed code spraying data. Because the memory capacity of the database is far higher than the memory capacity of the internal memory module of the code spraying machine, the number storage of the code spraying management items is greatly improved, and the management of the code spraying management items is convenient for workers to call the code spraying management items in the later period, wherein the number of the code spraying management items refers to the number of the code spraying contents and the number of the code spraying formats.
And step S104, respectively reading each code spraying management item in the code spraying information table according to the code spraying information table in the database, and generating a plurality of code spraying management items to be processed.
And S105, generating a code spraying information data packet aiming at each code spraying management item to be processed, and sending the code spraying information data packet to a code spraying machine through a local area network.
It should be noted that, according to the content of the cable to be subjected to spray printing, the staff can find out the corresponding to-be-processed code spraying management items according to the product codes through the software at the PC end, and package each to-be-processed code spraying management item to generate a code spraying information data packet, and send the code spraying information data packet to the code spraying machine through the local area network. The sprayed code content is sprayed and printed on the cable, so that the cable is very convenient and fast. It should be further noted that the PC terminal, the database and the inkjet printer are all connected to the same internal lan, and of course, the PC terminal, the database and the inkjet printer may also be connected to a wireless network to achieve the same operation effect.
Further, after the code spraying information packet is generated aiming at each code spraying management item to be processed and sent to the code spraying machine through the local area network in the step, the method also comprises the following steps:
receiving a plurality of to-be-processed code spraying data sent by a code spraying machine, establishing a plurality of product labels, and respectively binding each product label with each to-be-processed code spraying data in a one-to-one correspondence manner to generate a plurality of code spraying information items;
generating a jet printing information table according to each jet printing information item;
and sending the jet printing information table to a database.
It should be noted that, the staff may manually input the code spraying data to be processed through the code spraying machine, where the code spraying data to be processed also includes the code spraying content and the code spraying format, and then the code spraying data to be processed is sent to software in the PC end through the internal local area network, and is sent to the database by the PC end software for storage. It should be further noted that this method can be used in the case of temporarily increasing the content and format of the code.
Further, after code spraying information data packets are generated aiming at each code spraying management item to be processed and sent to the code spraying machine through the local area network, the method also comprises the following steps:
and generating a starting-up instruction, and sending the starting-up instruction to the ink-jet printer.
Specifically, after the step of generating the start-up command and sending the start-up command to the inkjet printer, the method further includes the following steps:
and generating a shutdown instruction, and sending the shutdown instruction to the ink-jet printer.
It should be noted that the PC end may control the start and stop of the inkjet printer by sending an instruction.
Further, after the steps of establishing a plurality of product codes, writing a plurality of pre-processing code-spraying data, binding each product code and each pre-processing code-spraying data in a one-to-one correspondence manner, and generating a plurality of code-spraying management items, the method further comprises the following steps:
and collecting a plurality of operation data, generating an information recording table from each operation data, and sending the information recording table to a database for storage.
It should be noted that the software in the PC is provided with an operation log database, and the operation log database is used for recording all operation records and contents, so as to facilitate later inspection.
Therefore, according to the network-based cable code spraying control method, the traditional mode of inputting and setting the pre-processed code spraying data through the code spraying keyboard and the touch display screen is abandoned by establishing a plurality of product codes at the PC terminal in advance and writing a plurality of pre-processed code spraying data in, and the efficiency of inputting the pre-processed code spraying data is effectively improved; meanwhile, the database is established, the number storage of the code spraying management items can be greatly improved, and the problem that the original code spraying management items are covered due to the fact that the number of the code spraying management items is limited in the ink jet printer is solved.
A network-based cable spray code control system 10, comprising: a marking module 100, a writing module 200, a matching module 300, a generating module 400 and an output module 500.
The marking module 100 is used to establish a plurality of product codes; the writing module 200 is configured to write a plurality of preprocessed code-spraying data; the matching module 300 is configured to perform one-to-one corresponding binding on each product code and each preprocessed code-spraying data, and generate a plurality of code-spraying management entries; the generating module 400 is configured to generate a code spraying information table according to each code spraying management entry, the generating module 400 is further configured to read each code spraying management entry in the code spraying information table according to the code spraying information table, and generate a plurality of code spraying management entries to be processed, and meanwhile, the generating module 400 is further configured to generate a code spraying information data packet for each code spraying management entry to be processed; the output module 500 is configured to send the code spraying information table to a database for storage; the output module 500 is further configured to send the inkjet printing information data packet to an inkjet printer through a local area network.
Further, the network-based cable inkjet printing control system 10 further includes a receiving module, where the receiving module is configured to receive the multiple to-be-processed inkjet printing data sent by the inkjet printing machine.
Further, the network-based cable code spraying control system 10 further includes an instruction module, where the instruction module is configured to generate a start-up instruction and send the start-up instruction to the code spraying machine; the instruction module is also used for generating a shutdown instruction and sending the shutdown instruction to the ink-jet printer.
Further, the network-based cable inkjet printing control system 10 further includes an acquisition module, and the acquisition module is configured to acquire a plurality of operation data and generate an information record table from each operation data.
Thus, according to the network-based cable code spraying control system 10, the traditional mode of inputting and setting the pre-processed code spraying data through the code spraying keyboard and the touch display screen is abandoned by establishing a plurality of product codes at the PC terminal in advance and writing a plurality of pre-processed code spraying data in, and the efficiency of inputting the pre-processed code spraying data is effectively improved; meanwhile, the database is established, the number storage of the code spraying management items can be greatly improved, and the problem that the original code spraying management items are covered due to the fact that the number of the code spraying management items is limited in the ink jet printer is solved.
A network-based cable inkjet control storage medium, comprising: the storage medium stores a plurality of medium instructions, and the instructions are suitable for being loaded by the processor to execute the steps in any network-based cable code spraying control method provided in the implementation of the present invention.
It should be noted that the storage medium further includes a memory, and the processor executes various functional applications and data by executing software programs and modules stored in the memory.
It can be understood that when the staff records the preprocessed code-spraying data and the product code in the Excel table or other tables, errors can occur inevitably, and therefore, in the process of spraying and printing by the code-spraying machine, the code-spraying content cannot be sprayed and printed on the cable. Therefore, in the present application, in the step, for each to-be-processed code spraying management entry, a code spraying information data packet is generated, and the code spraying information data packet is sent to the code spraying machine through the local area network, which further includes the following steps: s105a, comparing the to-be-processed code spraying management items in the code spraying information data packet with preset format parameters one by one, if the to-be-processed code spraying management items are not matched with the preset format parameters, generating the error correction instruction, and sending the error correction instruction to the code spraying machine through a local area network. It should be noted that the preset format parameters are used for checking whether the number of character bits and the sequence of characters of the code spraying management item to be processed are disordered, when the code spraying management item to be processed does not accord with the preset format parameters, a generated error correction instruction is directly sent to the code spraying machine through the local area network, and a worker can directly correct the code spraying content of the code spraying management item to be processed in the code spraying machine, then send the code spraying content to the PC end, and send the code spraying content to the database through the PC end for storage. Therefore, the content of the code spraying management items to be processed can be corrected in time, and the normal execution of the code spraying work is ensured.
Further, in another embodiment, in order to prevent the data information stored in the database from being maliciously tampered or leaked, and further cause the code-spraying content to be wrong or deleted, the method further includes the following steps after sending the code-spraying information table to the database for storage in the step: s103a, receiving an input character instruction sent by the database; s103b, responding to the input character command and generating an encrypted character string; s103c, binding the encrypted character string with the code spraying information table to generate an encrypted code spraying information table; s103d, sending the encrypted code spraying information table to the database for storage. It should be noted that after the code spraying information table is sent to the database, the database can correspondingly generate an input character instruction according to the code spraying information table, the input character instruction can be sent to software at the PC end, a worker can input a corresponding encrypted character string according to the input character instruction, after the operation of inputting the encrypted character string is completed, the encrypted character string and the code spraying information table are bound, the encrypted code spraying information table is generated, and the encrypted code spraying information table is sent to the database for storage. When the staff needs to call or modify the code spraying content or the code spraying format in the original encrypted code spraying information table, the staff needs to input the encrypted character string corresponding to the encrypted code spraying information table for modification, and the code spraying content or the code spraying format is effectively prevented from being tampered or deleted.
Compared with the prior art, the invention has the following advantages:
according to the network-based cable code spraying control method, system and storage medium, the mode that the traditional mode that the code spraying data is input and set in a code spraying keyboard and a touch display screen in a preprocessing mode is abandoned by establishing a plurality of product codes at the PC terminal in advance and writing a plurality of preprocessing code spraying data in the PC terminal, and the efficiency of inputting the preprocessing code spraying data is effectively improved; meanwhile, the database is established, the number storage of the code spraying management items can be greatly improved, and the problem that the original code spraying management items are covered due to the fact that the number of the code spraying management items is limited in the ink jet printer is solved.
The above embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.