CN108255946B - Code management method and device of laser etching equipment, equipment and storage medium - Google Patents

Code management method and device of laser etching equipment, equipment and storage medium Download PDF

Info

Publication number
CN108255946B
CN108255946B CN201711326596.4A CN201711326596A CN108255946B CN 108255946 B CN108255946 B CN 108255946B CN 201711326596 A CN201711326596 A CN 201711326596A CN 108255946 B CN108255946 B CN 108255946B
Authority
CN
China
Prior art keywords
code
serial number
database
laser etching
new
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
CN201711326596.4A
Other languages
Chinese (zh)
Other versions
CN108255946A (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.)
Dongguan Aohai Technology Co ltd
Original Assignee
Dongguan Aohai Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongguan Aohai Technology Co ltd filed Critical Dongguan Aohai Technology Co ltd
Priority to CN201711326596.4A priority Critical patent/CN108255946B/en
Publication of CN108255946A publication Critical patent/CN108255946A/en
Application granted granted Critical
Publication of CN108255946B publication Critical patent/CN108255946B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • 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
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Educational Administration (AREA)
  • Development Economics (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Game Theory and Decision Science (AREA)
  • Operations Research (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Numerical Control (AREA)
  • Laser Beam Processing (AREA)

Abstract

The invention provides a code management method, a device, equipment and a storage medium of laser etching equipment; acquiring coding request information and coding format information of laser etching equipment; judging whether the coding format information accords with a preset coding format, if not, returning error information to the laser etching equipment; if so, searching the maximum serial number code which accords with the preset code format in a database, and coding the maximum serial number code according to a preset coding rule to obtain a new code; writing a new serial number code into the database by taking the serial number as a main key, and sending the new code to the laser etching equipment when the new serial number code is successfully written into the database; the method can write the product codes of the laser engraving equipment into the database uniquely, and manage the product codes uniformly, so that the code errors and repeated codes are avoided being manually distributed.

Description

Code management method and device of laser etching equipment, equipment and storage medium
Technical Field
The invention relates to the field of manufacturing equipment management, in particular to a code management method, a code management device, code management equipment and a storage medium for laser etching equipment.
Background
The laser engraving machine engraves permanent marks on the surface of a substance or in a transparent substance by using a laser beam, and is widely applied to a production line of large-scale production in the manufacturing industry for marking product codes. Typically, each product requires a unique code for ease of management and traceability. Generally, during production and processing, the laser engraving machines are dispersed in each workshop and are respectively independently coded, the initial codes and the final codes of each laser engraving machine are manually distributed, and the codes of laser engraving products of the laser engraving machines are not uniformly managed; when a plurality of workshops produce the same product at the same time, the number of the produced products is large, and artificial code distribution errors can occur, so that the chaotic condition of repeated coding of the laser carving machine is caused.
Disclosure of Invention
The invention aims to solve the technical problem of providing a code management method and a device of laser etching equipment aiming at the defects of code management of the laser etching machine.
The method is realized in such a way, and a first aspect of the invention provides a code management method for laser etching equipment, which comprises the following steps:
a, acquiring coding request information and coding format information of laser etching equipment;
b, judging that the coding format information accords with a preset coding format, if not, executing the step C, and if yes, executing the step D;
c, returning error information to the laser etching equipment;
step D, searching the maximum serial number code which accords with the preset code format in a database, and coding the maximum serial number code according to a preset coding rule to obtain a new serial number code;
and E, writing the new serial number code into the database by taking the serial number as a main key, and sending the new code to the laser etching equipment when the new serial number code is successfully written into the database.
Further, step E is followed by:
f, when the database writing is unsuccessful, recording the number of unsuccessful writing times;
g, recoding the serial number code which is not successfully written according to a preset coding rule, and writing the recoded serial number code into a database;
and H, when the recoded serial number code is successfully written into the database, sending the recoded serial number code to the laser etching equipment.
And step I, when the recoded serial number code is not successfully written into the database, returning to the step F for execution.
Further, step F is followed by:
step J, when the number of unsuccessful writing-in records does not reach the preset number, returning to the step G to start execution; and when the number of unsuccessful writing-in times reaches a preset number, prompting the laser etching equipment that the coding fails.
Further, step a further comprises: acquiring the work order quantity information of the laser etching equipment;
the step D is followed by: and E, judging whether the new serial number codes exceed the number of the work orders, if so, executing the step E, and if not, executing the step E.
Further, step a further comprises: acquiring additional information of the laser etching equipment;
the step E comprises the following steps: writing the new serial number code into the database by taking the serial number as a main key, and correspondingly writing the additional information into the database at the same time; and when the data is written into the database successfully, sending the new code to the laser etching equipment.
Further, step a further comprises: acquiring serial number system information of the laser etching equipment;
the step D comprises the following steps:
searching the maximum serial number code conforming to the preset code format in a database, converting the maximum serial number code into the default system when the system information is judged not to be the default system, coding the converted maximum serial number code according to a preset coding rule to obtain a new serial number code, and converting the new code into the code conforming to the serial number system.
Further, step a further comprises: acquiring characters to be removed in the serial number of the laser etching equipment;
in step D, converting the new code into a code conforming to the serial number system further includes:
and removing the codes containing the characters to be removed according to the characters to be removed in the serial number.
The second aspect of the present invention further provides a code management apparatus for a laser etching device, including:
the laser etching equipment module is used for sending coding request information and coding format information;
the application server module judges whether the coding format information accords with a preset coding format, and if not, returns error information to the laser etching equipment; if yes, searching the maximum serial number code which accords with the preset code format in a database, and coding the maximum serial number code according to a preset coding rule to obtain a new code; writing a new serial number code into the database by taking the serial number as a main key, and sending the new code to the laser etching equipment when the new serial number code is successfully written into the database;
the database module is used for receiving the request of the application server and writing the new code into the database; and returning the information of whether the new codes are written successfully to the application server.
A third aspect of the present invention provides a terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method according to the first aspect of the present invention when executing the computer program.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, performs the steps of the method according to the first aspect of the present invention.
The invention provides a code management method, a device, equipment and a storage medium of laser etching equipment; acquiring coding request information and coding format information of laser etching equipment; judging whether the coding format information accords with a preset coding format, if not, returning error information to the laser etching equipment; if so, searching the maximum serial number code which accords with the preset code format in a database, and coding the maximum serial number code according to a preset coding rule to obtain a new code; writing a new serial number code into the database by taking the serial number as a main key, and sending the new code to the laser etching equipment when the new serial number code is successfully written into the database; the method can write the product codes of the laser engraving equipment into the database uniquely, and manage the product codes uniformly, so that the code errors and repeated codes are avoided being manually distributed.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of steps of a code management method of a laser etching apparatus applied in embodiment 1 of the present invention;
fig. 2 is a flowchart of steps of a code management method for a laser etching apparatus applied in embodiment 2 of the present invention;
fig. 3 is a flowchart of steps of a code management method of a laser etching apparatus applied in embodiment 3 of the present invention;
fig. 4 is a flowchart of steps of a code management method of a laser etching apparatus applied in embodiment 4 of the present invention;
fig. 5 is a flowchart illustrating steps of a code management method for a laser etching apparatus according to embodiment 5 of the present invention;
fig. 6 is a flowchart illustrating steps of a code management method for a laser etching apparatus according to embodiment 6 of the present invention;
fig. 7 is a flowchart illustrating steps of a code management method for a laser etching apparatus according to embodiment 7 of the present invention;
fig. 8 is a schematic diagram of a structure of an encoding management apparatus of a laser etching apparatus applied in embodiment 8 of the present invention;
fig. 9 is a schematic structural diagram of a terminal device provided in embodiment 9 of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Example 1
An embodiment of the present invention provides a code management method for a laser etching apparatus, and please refer to fig. 1 for easy understanding.
The embodiment of the invention provides a code management method of laser etching equipment, which comprises the following steps:
step S10: acquiring coding request information and coding format information of the laser etching equipment;
in step S10, the laser etching apparatus provides the application server with the encoding request information to encode the application server, and provides the application server with the encoding format information to return the code conforming to the encoding format information; for example, when the coding request of the laser etching device 1 is obtained, and the laser etching device is obtained at the same time, a coding format is provided as follows: ABC (5)123, where "ABC" represents a fixed prefix, "5" represents a 5-bit serial number, a numeric value range of the serial number is 1-99999, the serial number is a 10-system default, 0 is supplemented to a leading bit when a default numerical digit is less than 5 bits, "123" is a fixed suffix, the encoding request of the laser etching device 2 is obtained, and another encoding format provided by the laser etching device is obtained as follows: 101, (5) D, wherein "101" is a fixed prefix, "(5)" represents a 5-bit serial number, the value range is 1-99999, the default is 10-system, 0 is added to the previous bit when the 5-bit numerical digit is insufficient, and "D" represents a 6-bit date.
Step S20: if the encoding format information conforms to the preset encoding format, if not, executing the step S30, and if yes, executing the step S40;
in step S20, the preset encoding format may be an encoding format pre-stored in the application server by the user, for example, the preset encoding format is set as follows: judging the acquired coding format which must include the serial number digit with brackets, if the coding format information does not include the serial number digit, executing step S30, and if the coding format information does not include the serial number digit, executing step S40;
step S30: returning error information to the laser etching equipment; waiting for the next encoding request.
In step S30, for example, the encoding format information does not conform to the preset encoding format: "number of running water digits with brackets" shall be included; and the format provided by the laser etching equipment does not have a serial number digit with brackets, and the error information returned to the laser etching equipment at the moment is as follows: the number of bits of the pipeline number is undefined.
Step S40: searching the maximum serial number code which accords with the preset code format in a database, and coding the maximum serial number code according to a preset coding rule to obtain a new serial number code;
in step S40, if the code format is satisfied, searching the maximum serial number code satisfying the prefix, serial number digit number and suffix in the database according to the preset coding rule; for example, the preset encoding format is: the number of serial numbers with brackets must be included, the format ABC (5)123 provided by the laser engraving device 1 conforms to a preset coding rule, and the code of the coding rule of the maximum serial number is found in the database as ABC00365123 according to the coding format provided by the laser engraving device 1; the coding format 101(5) D provided by the laser etching equipment 2 also conforms to the preset coding format, and the code of the coding rule of the maximum serial number is found to be 10100565171201 according to the coding format provided by the laser etching equipment 2; on the basis of the found maximum serial number code, presetting default new coding rules as follows: the prefix and the suffix are unchanged, 1 is added on the basis of the last serial number, and the obtained new serial number codes are ABC00366123 and 10100566171201 respectively.
Step S50: and writing a new serial number code into the database by taking the serial number as a main key, and sending the new code to the laser etching equipment when the new serial number code is successfully written into the database.
In step S50, ABC00366123 and 10100566171201 are written in the database with the serial number as the primary key, and when a new code is written, the serial number of the new code is automatically checked, and the new code is not allowed to be duplicated with the serial numbers of other codes; after the database successfully writes the new codes, the codes ABC00366123 and 10100566171201 are sent to the laser etching devices which respectively request the codes; the laser etching equipment receives the new code and starts to etch the product; and after the laser etching is finished, sending the coding request and the coding rule to the application server again, and performing circular operation.
According to the code management method for the laser etching equipment, code request information and code format information of the laser etching equipment are obtained; judging whether the coding format information accords with a preset coding format, if not, returning error information to the laser etching equipment; if so, searching the maximum serial number code which accords with the preset code format in a database, and coding the maximum serial number code according to a preset coding rule to obtain a new code; writing a new serial number code into the database by taking the serial number as a main key, and sending the new code to the laser etching equipment when the new serial number code is successfully written into the database; the method can write the product codes of the laser engraving equipment into the database uniquely, and manage the product codes uniformly, so that the code errors and repeated codes are avoided being manually distributed.
Example 2
In embodiment 1, when a plurality of laser etching apparatuses simultaneously produce the same product, a plurality of laser etching apparatuses may initiate an encoding request and provide the same encoding rule; for example, 3 multiple laser engraving devices producing the same product simultaneously initiate a coding request, and the application server runs 3 threads to search the maximum code meeting the coding rule in the database as ABC 00365123; the next new code calculated is ABC00366123, and all 3 threads run by the application server request the database to write the new code ABC00366123, but only one thread can request the writing to be successful, so that the case that the application server request the writing to the database is unsuccessful when a plurality of laser engraving devices request codes simultaneously needs to be considered.
For easy understanding, please refer to fig. 2, on the basis of the above embodiment 1, the encoding management method further includes:
s60, when the database writing is unsuccessful, recording the number of unsuccessful writing times;
in S60, when multiple threads simultaneously request the database to write the new code ABC00366123, only one thread succeeds in writing; when the code has been written to the database, resulting in an unsuccessful write, the number of unsuccessful writes is recorded.
S70, recoding the serial number code which is not successfully written according to a preset coding rule, and writing the recoded serial number code into a database;
in S70, the next new code ABC00367123 is calculated again according to the encoding rule based on the new code calculated last time, and the writing to the database is requested again.
And S80, when the recoded serial number code is successfully written into the database, sending the recoded serial number code to the laser etching equipment.
In S80, if the code ABC00367123 request that the database be written to is successful, the code ABC00367123 is sent to the laser engraving apparatus that issued the code request.
S90, when the recoded serial number code is unsuccessfully written into the database, returning to the step S60 for execution;
in step S90. when the writing of ABC00367123 to the database is unsuccessful, return to step S60: recording the number of times of unsuccessful writing as 2; then S70 is executed for recoding to ABC00368123 and the data is written into the database; then S80 is executed, and if ABC00368123 succeeds in writing the database successfully, a new code is sent to the laser etching equipment; if the ABC00368123 is unsuccessful in writing the database this time, the method returns to the step S60 again to be executed again, and the loop is executed until the encoding is successful.
In this embodiment, the steps are as follows: when the writing into the database is unsuccessful, recording the number of times of unsuccessful writing; recoding the serial number code which is not successfully written according to a preset coding rule, and writing the recoded serial number code into a database; when the recoded serial number code is successfully written into the database, the recoded serial number code is sent to the laser etching equipment; when the recoded serial number code is not successfully written into the database, returning to the step S60 for execution; namely, after one coding request fails, the request is repeated, and the coding method is repeated on the basis of the last coding, so that the problem that the database is not successfully written when a plurality of laser engraving devices simultaneously initiate coding requests is solved.
Example 3
For ease of understanding, please refer to fig. 3.
After step S60, step S100 is further included, and on the basis of the foregoing embodiment 1, the coding management method further includes.
Step S100, when the number of unsuccessful recording and writing times does not reach the preset number of times, the step S70 is started to execute; and when the number of unsuccessful writing-in times reaches a preset number, prompting the laser etching equipment that the coding fails.
Step S100: when step S60 is executed, ABC00366123 does not successfully write to the database, and when the number of unsuccessful recorded writes is 1 and does not exceed the preset number of times 100, S70 is executed: on the basis of ABC00366123, coding ABC00367123 again according to the coding rule, and writing the data into the database again; if the rewriting is unsuccessful, the step S60 is executed again, the number of unsuccessful times is 2, the preset number of times is not exceeded 100, and the step S70 is executed again: coding ABC00368123 again according to the coding rule, and requesting to write in the database again; until the new code ABC00368123 of the execution S80 is successfully written into the database; if the new code is not successfully written to the database, the loop will be repeated until the new code is successfully written to the database.
In step S100, when the number of times that the writing is unsuccessful is recorded as 101, and the new code ABC00465123 cannot be successfully written into the database beyond the preset number of times 100, there is a possibility that the database cannot be successfully written due to other reasons, such as a network anomaly, the database is in a shutdown state, and the like, and the new code cannot be written even if the request is repeated; at this time, the application server prompts the reason of failure and quits the coding request.
In this embodiment, by adding the step of determining whether the number of unsuccessful writing times reaches the preset number, a situation that the application server continuously requests a new code and the database cannot write the new code successfully is avoided; the method can timely eliminate the failure of writing in the database caused by the simultaneous request of a plurality of laser engravers, thereby specifically analyzing the reason of the failure of writing in the database and eliminating the failure.
Example 4
For ease of understanding, refer to FIG. 4.
On the basis of the embodiment 1, the step S10 further includes acquiring the work order number information of the laser etching apparatus, and after the step S40, determining whether the new serial number code exceeds the work order number, if yes, executing step S30, and if not, executing the step S50.
If ABC (5)123QT30000 indicates that the total work order is 30000, the serial number in the new code ABC00366123 is 366, and the new code is not exceeded by the total amount 30000, the new code is written into the database ABC00366123QT 30000.
Assuming that the new code calculated by the application server is ABC30001123 and is exceeded compared with the total order amount 30000 after the production lasts for a period of time, an error message of "total order amount exceeded" is returned to the laser etching device to wait for the next coding request.
The embodiment effectively prevents the excess production by adding the step of comparing the coded serial number with the total amount of the work orders.
Example 5
For ease of understanding, please refer to fig. 5.
On the basis of embodiment 1, step S10 further includes: acquiring additional information of the laser etching equipment;
step S50 further includes: writing the new serial number code into the database by taking the serial number as a main key, and correspondingly writing the additional information into the database at the same time; and when the data is successfully written into the database, sending the new code to the laser etching equipment.
After the laser etching product is finished, the information of work orders, batches, total amount, sales places, customers and the like of the product sometimes need to be traced, and only the number is not enough to record the information; when the laser etching equipment sends a coding request to the application server, additional information such as work order numbers, batches, total amount and the like of the ERP system can be provided at the same time.
As an embodiment, the additional information provided by the laser etching device may be located in the encoding format information; for example, the coding format information is ABC (5)123@ GD222, which indicates that the product belongs to the work order GD222, and the maximum serial number code ABC00365123 which accords with the coding rule is searched in the database; and acquiring a new code ABC00366123, and writing the additional information and the new code into the ABC00365123@ GD222 correspondingly when the new code is written into the database. Therefore, the current production quantity condition of any order can be inquired through the database at any time, and the product can be conveniently known to belong to the batch of order through coding.
In the embodiment, through the step of correspondingly storing the additional information in the database, a statistical function can be provided for the post-stage work order data, and the tracing information is provided for the product.
Example 6
For ease of understanding, refer to FIG. 6.
On the basis of the embodiment 1, the step S10 further includes acquiring serial number system information of the laser etching apparatus;
step S40 specifically includes:
searching the maximum serial number code conforming to the preset code format in a database, converting the maximum serial number code into the default system when the system information is judged not to be the default system, coding the converted maximum serial number code according to a preset coding rule to obtain a new serial number code, and converting the new code into the code conforming to the serial number system.
In step S10, as an embodiment, the serial number scale information provided by the laser etching apparatus may be located in the encoding format information, for example, when the encoding format provided by the laser etching apparatus is ABC (5)123{36}, where {36} is the serial number scale information, that is, the adopted 36 of the serial number is obtained from {36 }; finding the maximum code conforming to the code format ABC (5)123{36} in the database as ABC0000K123, judging that the system is not the default system, converting the maximum serial number code into the default 10 system
And the ABC00020123 acquires the next code as ABC00021123, converts the next code into a 36-system ABC0000L123, writes the next code into the database by taking the serial number as a main key, and sends the new code to the laser engraving equipment when the new code is successfully written into the database.
The embodiment can meet different requirements on the serial number scale through the steps of judging the scale and converting the scale.
Example 7
For ease of understanding, please refer to fig. 7.
On the basis of embodiment 6, the step of S10 further includes: and acquiring characters to be removed in the serial number of the laser etching equipment.
In step S40, converting the new code into a code conforming to the serial number system further includes:
and removing the codes containing the characters to be removed according to the characters to be removed in the serial number.
As an implementation manner, the serial number system information provided by the laser etching device further includes characters to be removed, when the coding format provided by the laser etching device is ABC (5)123{36-O }, where "O" is the character to be removed in the serial number, the maximum code found in the database is ABC0000N123, it is determined that the system is not the default system, the serial number is newly coded as ABC0000O123 according to the preset coding rule, and the character is removed because "O" is the character to be removed in the serial number; as an embodiment, the next character may be used in a sequential manner on the basis of the english character, for example, the next code is used in a sequential manner as ABC0000P 123; the character "O" can also be excluded by a regular expression, such as "Number Like" [ A-Z ] ' and Number Like ' ^ O ' ", to get the next code ABC0000P 123; and writing the new code into the database by taking the serial number as a main key, and sending the new code to the laser etching equipment when the new code is successfully written into the database.
The present embodiment is applied to the situation that the part of serial number characters in the code needs to be removed by easily confusing the number "0" and the letter "O", the number "1" and the letter "I" in the serial number characters, or the part of serial number characters in the code needs to be removed in other situations.
Example 8
This embodiment provides an encoding management apparatus for a laser etching device, as shown in fig. 8, including:
the laser etching equipment module is used for sending coding request information and coding format information to the application server module;
the application server module judges that the coding format information sent by the laser etching equipment module conforms to a preset coding format, and if not, returns error information to the laser etching equipment; if yes, searching the maximum serial number code which accords with the preset code format in a database, and coding the maximum serial number code according to a preset coding rule to obtain a new code; writing a new serial number code into the database by taking the serial number as a main key, and sending the new code to the laser etching equipment when the new serial number code is successfully written into the database;
the database module is used for receiving the request of the application server and writing the new code into the database; and returning the information of whether the new codes are written successfully to the application server.
The laser etching equipment module can comprise a plurality of laser etching equipment distributed in different workshops of a factory, the laser etching equipment is connected with an application server, the current laser etching equipment technology can meet the requirements of adopting Socket sockets and a multithreading programming technology, and TCP/IP is used for realizing communication; the application server module can comprise a plurality of server ends and is connected with the laser etching equipment and the database server; the database module may use a SQL Server 2008 version or more servers that can meet the requirement of quick response at the billion data levels.
The specific working process of the modules in the apparatus may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Example 9
Another embodiment of the present application provides a computer-readable storage medium, where computer-readable instructions are stored on the computer-readable storage medium, and when the computer-readable instructions are executed by a processor, the method for code management of a laser etching apparatus in the foregoing embodiments is implemented, and details are not repeated here to avoid repetition. Or, the computer readable instructions, when executed by the processor, implement the functions of each module/unit in the coding management apparatus of the laser etching device in the above embodiments, and are not described herein again to avoid repetition.
Fig. 9 is a schematic diagram of the terminal device in the present embodiment. As shown in fig. 9, the terminal device 6 includes a processor 60, a memory 61, and computer readable instructions 62 stored in the memory 61 and executable on the processor 60. The processor 60, when executing the computer readable instructions 62, implements the steps of the code management method of the laser etching apparatus in the above embodiments, such as the steps S10, S20, S30, S40, and S50 shown in fig. 1. Alternatively, the processor 60 executes the computer readable instructions 62 to implement the functions of the modules/units of the code management apparatus of the laser etching device in the above embodiments, such as the functions of the laser etching device module, the application server module, and the database module shown in fig. 8.
Illustratively, the computer readable instructions 62 may be divided into one or more modules/units, which are stored in the memory 61 and executed by the processor 60 to perform the data processing procedures of the present application. One or more of the modules/units may be a series of computer-readable instruction segments capable of performing certain functions, which are used to describe the execution of the computer-readable instructions 62 in the terminal device 6. For example, the computer readable instructions 62 may be partitioned into a laser engraving device module, an application server module, and a database module.
The terminal device 6 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 60, a memory 61. Those skilled in the art will appreciate that fig. 9 is merely an example of a terminal device 6 and does not constitute a limitation of terminal device 6 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the terminal device may also include input output devices, network access devices, buses, etc.
The Processor 60 may be a Central Processing Unit (CPU), other general purpose Processor, 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, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 61 may be an internal storage unit of the terminal device 6, such as a hard disk or a memory of the terminal device 6. The memory 61 may also be an external storage device of the terminal device 6, such as a plug-in hard disk provided on the terminal device 6, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 61 may also include both an internal storage unit of the terminal device 6 and an external storage device. The memory 61 is used to store computer readable instructions and other programs and data required by the terminal device. The memory 61 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by the present application, and can also be realized by hardware related to computer readable instructions, which can be stored in a computer readable storage medium, and when the computer readable instructions are executed by a processor, the steps of the above described method embodiments can be realized. Wherein the computer readable instructions comprise computer readable instruction code which may be in source code form, object code form, an executable file or some intermediate form, and the like. The computer-readable medium may include: any entity or device capable of carrying the computer-readable instruction code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer memory, Read-only memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A code management method of laser etching equipment is characterized by comprising the following steps:
a, acquiring coding request information and coding format information of laser etching equipment;
b, judging that the coding format information accords with a preset coding format, if not, executing the step C, and if yes, executing the step D;
c, returning error information to the laser etching equipment;
step D, searching the maximum serial number code which accords with the coding format information in a database, and coding the maximum serial number code according to a preset coding rule to obtain a new serial number code;
and E, writing the new serial number code into the database by taking the serial number as a main key, and sending the new code to the laser etching equipment when the new serial number code is successfully written into the database.
2. The encoding management method according to claim 1, wherein said step E is followed by further comprising:
f, when the database writing is unsuccessful, recording the number of unsuccessful writing times;
g, recoding the serial number code which is not successfully written according to a preset coding rule, and writing the recoded serial number code into a database;
step H, when the recoded serial number code is successfully written into the database, the recoded serial number code is sent to the laser etching equipment;
and step I, when the recoded serial number code is not successfully written into the database, returning to the step F for execution.
3. The encoding management method according to claim 2, further comprising, after said step F:
step J, when the number of unsuccessful writing-in records does not reach the preset number, returning to the step G to start execution; and when the number of unsuccessful writing-in times reaches a preset number, prompting the laser etching equipment that the coding fails.
4. The encoding management method according to claim 1, wherein the step a further comprises: acquiring the work order quantity information of the laser etching equipment;
the step D is followed by:
and E, judging whether the new serial number codes exceed the number of the work orders, if so, executing the step E, and if not, executing the step C.
5. The encoding management method according to claim 1, wherein the step a further comprises: acquiring additional information of the laser etching equipment;
the step E comprises the following steps:
writing the new serial number code into the database by taking the serial number as a main key, and correspondingly writing the additional information into the database at the same time; and when the data is written into the database successfully, sending the new code to the laser etching equipment.
6. The encoding management method according to claim 1, wherein the step a further comprises: acquiring serial number system information of the laser etching equipment;
the step D comprises the following steps:
searching the maximum serial number code according with the code format information in a database, converting the maximum serial number code into a default system when the system information is judged not to be the default system, coding the converted maximum serial number code according to a preset coding rule to obtain a new serial number code, and converting the new code into the code according with the serial number system.
7. The encoding management method according to claim 6, wherein the step A further comprises: acquiring characters to be removed in the serial number of the laser etching equipment;
in step D, converting the new code into a code conforming to the serial number system further includes:
and removing the codes containing the characters to be removed according to the characters to be removed in the serial number.
8. The coding management device of the laser etching equipment is characterized by comprising the following modules:
the laser etching equipment module is used for sending coding request information and coding format information;
the application server module judges whether the coding format information accords with a preset coding format, and if not, returns error information to the laser etching equipment; if so, searching the maximum serial number code which accords with the coding format information in a database, and coding the maximum serial number code according to a preset coding rule to acquire a new code; writing a new serial number code into the database by taking the serial number as a main key, and sending the new code to the laser etching equipment when the new serial number code is successfully written into the database;
the database module is used for receiving the request of the application server and writing the new code into the database; and returning the information of whether the new codes are written successfully to the application server.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN201711326596.4A 2017-12-13 2017-12-13 Code management method and device of laser etching equipment, equipment and storage medium Active CN108255946B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711326596.4A CN108255946B (en) 2017-12-13 2017-12-13 Code management method and device of laser etching equipment, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711326596.4A CN108255946B (en) 2017-12-13 2017-12-13 Code management method and device of laser etching equipment, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108255946A CN108255946A (en) 2018-07-06
CN108255946B true CN108255946B (en) 2020-08-14

Family

ID=62722673

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711326596.4A Active CN108255946B (en) 2017-12-13 2017-12-13 Code management method and device of laser etching equipment, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108255946B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111985185A (en) * 2019-05-21 2020-11-24 广州汽车集团股份有限公司 Circuit board code generation method and device, computer equipment and storage medium
CN113723915A (en) * 2021-08-19 2021-11-30 中核武汉核电运行技术股份有限公司 Nuclear power plant business form encoding method, device, equipment and readable storage medium
CN113642938B (en) * 2021-10-13 2021-12-10 江苏宽程装备科技有限公司 Intelligent production management method and system

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101226609A (en) * 2007-01-18 2008-07-23 中国科学院自动化研究所 Multi-information segmenting electronic encoding method
CN101047715A (en) * 2007-01-18 2007-10-03 宝丽雅智能***(深圳)有限公司 Data communication coding method
CN101414351A (en) * 2008-11-03 2009-04-22 章毅 Fingerprint recognition system and control method
CN101826087B (en) * 2009-03-02 2012-12-19 中兴通讯股份有限公司 Configuration device and method of coding information data
CN101795342B (en) * 2010-02-23 2013-01-23 深圳市公共防伪技术与物联网应用研究院 Screen coding anti-counterfeiting method
CN101950305A (en) * 2010-09-30 2011-01-19 浙江工商大学 Method and system for organizing business demonstration data of supply chain network
CN102098175B (en) * 2011-01-26 2015-07-01 浪潮通信信息***有限公司 Alarm association rule obtaining method of mobile internet
CN102279847B (en) * 2011-08-17 2013-06-19 瑞斯康达科技发展股份有限公司 Method and device for internationalizing software system
US8720790B2 (en) * 2011-10-06 2014-05-13 AI Cure Technologies, Inc. Method and apparatus for fractal identification
CN102602127B (en) * 2012-03-09 2014-04-09 方平 Blue-violet laser carving system and engraving method thereof
US20160351508A1 (en) * 2015-05-27 2016-12-01 Texas Instruments Incorporated Creating Unique Device Identification For Semiconductor Devices
CN106274070B (en) * 2015-05-29 2018-02-02 大族激光科技产业集团股份有限公司 A kind of device and method marked using laser technology to glass feeding bottle
CN105183794B (en) * 2015-08-24 2018-12-14 用友网络科技股份有限公司 Business serial number generating means and method
CN105894182A (en) * 2016-03-29 2016-08-24 信码互通(北京)科技有限公司 Method for detecting identification code tagging quality of large-breadth printing material
CN107426591A (en) * 2017-07-11 2017-12-01 深圳前海茂佳软件科技有限公司 Video management method, TV and computer-readable recording medium

Also Published As

Publication number Publication date
CN108255946A (en) 2018-07-06

Similar Documents

Publication Publication Date Title
CN108255946B (en) Code management method and device of laser etching equipment, equipment and storage medium
CN110704398B (en) Database migration method and device from MySQL to Oracle and computer equipment
CN108376171B (en) Method and device for quickly importing big data, terminal equipment and storage medium
CN111639066A (en) Data cleaning method and device
CN109933645B (en) Information query method, device, computer equipment and storage medium
CN113434674A (en) Data analysis method and device, electronic equipment and readable storage medium
US20180341843A1 (en) Method and device for initializing two-dimensional code
CN112328275A (en) Data updating method and device for nuclear power plant, terminal equipment and storage medium
CN109241042B (en) Data processing method and device and electronic equipment
CN107885781B (en) Version management method and system
CN112948380A (en) Data storage method and device based on big data, electronic equipment and storage medium
CN115329759B (en) Information processing method, device, equipment and storage medium
CN112256472A (en) Distributed data calling method and device, electronic equipment and storage medium
CN114461672A (en) Data retrieval method and device, computer equipment and storage medium
CN110264383B (en) Electronic contract filing method and device, readable storage medium and server
CN109739876B (en) Data query method and device for database based on Sqltoy-orm framework
CN105095513A (en) Method and apparatus for cracking password of Oracle database account
CN111324614A (en) Table configuration method and device, terminal equipment and storage medium
CN107341136B (en) Method and device for generating sequence index number and storage medium
CN110653400A (en) Two-dimensional code processing method, processing device and computer storage medium
CN117473941B (en) Drawing processing method and device, electronic equipment and storage medium
CN115828977B (en) Industrial Internet label coding method, device, medium and electronic equipment
CN116644071A (en) Material coding management method, device, computer equipment and storage medium
CN113434359B (en) Data traceability system construction method and device, electronic device and readable storage medium
CN115658968A (en) Service data number making method and device, electronic equipment and readable storage medium

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