Marking method, marking device and computer readable storage medium

文档序号:1584564 发布日期:2020-02-04 浏览:14次 中文

阅读说明:本技术 打标方法、打标装置及计算机可读存储介质 (Marking method, marking device and computer readable storage medium ) 是由 刘伟 杨志林 周红林 王双 张凯 吴华安 于 2019-10-12 设计创作,主要内容包括:本发明提供了一种打标方法、打标装置及计算机可读存储介质。本发明提供的打标方法包括以下步骤:读取打标参数;根据读取的所述打标参数生成打标图形;接收到触发打标操作的指令后,根据所述打标图形进行打标。通过在读取打标参数和进行打标操作的步骤之间,设置触发启动打标操作的装置,将读取打标参数和进行打标操作分隔开,便于生产过程中对各流程的分步控制,防止出现现需出错不能纠正的问题,提高了打标的准确率以及打标操作的灵活可控性。(The invention provides a marking method, a marking device and a computer readable storage medium. The marking method provided by the invention comprises the following steps: reading marking parameters; generating a marking graph according to the read marking parameters; and marking according to the marking graph after receiving an instruction for triggering marking operation. Through between the step of marking the operation of marking is beaten in reading the mark parameter and carrying out, set up the device that triggers and start the mark operation, will read the mark parameter and beat the mark operation and separate, be convenient for in the production process to the fractional control of each flow, prevent to appear and need making mistakes now and can not correct the problem, improved the rate of accuracy of beating the mark and beat the nimble controllability of marking operation.)

1. A marking method, characterized in that it comprises the following steps:

reading marking parameters;

generating a marking graph according to the read marking parameters;

and marking according to the marking graph after receiving an instruction for triggering marking operation.

2. The marking method as claimed in claim 1, further comprising, after the step of marking according to the marking pattern:

and after marking is finished, returning to the step of reading the marking parameters.

3. The marking method as claimed in claim 2, further comprising, after the step of marking according to the marking pattern:

after marking is finished, the marking parameters are sent to a target system, wherein the marking parameters are read through the target system;

and returning to the step of reading the marking parameters after the command of continuing the marking operation is received.

4. Marking method according to claim 3, wherein after the step of sending the marking parameters to a target system, further comprising:

and if an instruction for stopping marking operation is received, the marking process is exited.

5. Marking method according to claim 3, wherein after the step of sending the marking parameters to a target system, further comprising:

and if the uploading of the marking parameters fails, outputting a first alarm signal and exiting the marking process.

6. Marking method according to claim 4, characterized in that it further comprises, after said step of outputting a first alarm signal:

and after the first alarm signal is released, the step of sending the marking parameters to the target system is executed again.

7. Marking method according to claim 1, characterized in that it further comprises, after the step of reading marking parameters:

if the marking parameters are read successfully, executing the step of generating marking graphs according to the read marking parameters;

and if the marking parameter reading fails, outputting a second alarm signal and exiting the marking process.

8. The marking method of claim 7, wherein after the step of outputting a second alarm signal and exiting the marking process, further comprising:

and after the second alarm signal is released, the step of reading the marking parameters is executed again.

9. Marking device, characterized in that the marking device comprises a memory, a processor and a control program of the marking method stored on the memory and executable on the processor, the control program of the marking method when executed by the processor implementing the steps of the marking method as claimed in any one of claims 1 to 8.

10. A computer-readable storage medium, in which a control program of a marking method is stored, which, when being executed by a processor, carries out the steps of the marking method according to any one of claims 1 to 8.

Technical Field

The present invention relates to the field of laser marking technology, and in particular, to a marking method, a marking device, and a computer-readable storage medium.

Background

Laser marking is a technique for marking one-dimensional codes, two-dimensional codes, characters, symbols or figures on the surface of an object by laser. Most of the current laser marking technologies utilize a full-manual marking system or a full-automatic marking system. The full-manual marking system has very low efficiency, and the control precision of the marking process has defects; the full-automatic marking system is generally applied to the condition determined by the requirement, and parameters cannot be regulated and controlled at any time in the marking process, so that the marking operation is inflexible.

Disclosure of Invention

The invention mainly aims to provide a marking method, and aims to solve the problem that the marking operation cannot be flexibly controlled by only utilizing a full-automatic or full-manual marking system at present.

In order to achieve the above object, the present invention provides a marking method, comprising the steps of:

reading marking parameters;

generating a marking graph according to the read marking parameters;

and marking according to the marking graph after receiving an instruction for triggering marking operation.

Optionally, after the step of marking according to the marking pattern, the method further includes:

and after marking is finished, returning to the step of reading the marking parameters.

Optionally, after the step of marking according to the marking pattern, the method further includes:

after marking is finished, the marking parameters are sent to a target system, wherein the marking parameters are read through the target system;

and returning to the step of reading the marking parameters after the command of continuing the marking operation is received.

Optionally, after the step of sending the marking parameter to the target system, the method further includes:

and if an instruction for stopping marking operation is received, the marking process is exited.

Optionally, after the step of sending the marking parameter to the target system, the method further includes:

and if the uploading of the marking parameters fails, outputting a first alarm signal and exiting the marking process.

Optionally, after the step of outputting the first alarm signal, the method further includes:

and after the first alarm signal is released, the step of reading the marking parameters is executed again.

Optionally, after the step of reading the marking parameter, the method further includes:

if the marking parameters are read successfully, executing the step of generating marking graphs according to the read marking parameters;

and if the reading fails, outputting a second alarm signal and exiting the marking process.

Optionally, after the step of outputting the second alarm signal and exiting the marking process, the method further includes:

and after the second alarm signal is released, the step of reading the marking parameters is executed again.

In order to achieve the above object, the present invention further provides a marking device, which includes a memory, a processor, and a control program of the marking method stored in the memory and operable on the processor, wherein the control program of the marking method, when executed by the processor, implements the steps of the marking method as described in any one of the above.

In order to achieve the above object, the present invention further provides a computer readable storage medium, in which a control program of a marking method is stored, and the control program of the marking method, when executed by a processor, implements the steps of the marking method as described in any one of the above.

According to the technical scheme, marking parameters are read, marking patterns are generated according to the read marking parameters, and marking is carried out according to the marking patterns after an instruction for triggering marking operation is received. Between the step of reading and marking parameters and the step of marking operation, a device for triggering and starting the marking operation is arranged, the step-by-step control of each flow in the production process is facilitated, the problem that errors are required at present and cannot be corrected is prevented, and the marking accuracy and the flexibility and controllability of the marking operation are improved.

Drawings

Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;

FIG. 2 is a schematic flow chart of a first embodiment of the marking method of the present invention;

FIG. 3 is a schematic flow chart of a marking method according to a second embodiment of the present invention;

FIG. 4 is a schematic flow chart of a marking method according to a third embodiment of the present invention;

FIG. 5 is a schematic flow chart of a fourth embodiment of the marking method of the present invention;

FIG. 6 is a schematic flow chart of a fifth embodiment of the marking method of the present invention;

fig. 7 is a schematic flow chart of a marking method according to a sixth embodiment of the invention.

The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.

Detailed Description

The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

It should be noted that, if directional indications (such as up, down, left, right, front, and back) are involved in the embodiment of the present invention, the directional indications are only used for explaining the relative positional relationship, the motion situation, and the like between the components in a certain posture, and if the certain posture is changed, the directional indications are changed accordingly.

In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.

It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

The main solution of the embodiment of the invention is as follows: reading marking parameters; generating a marking graph according to the read marking parameters; and marking according to the marking graph after receiving an instruction for triggering marking operation.

In the prior art, the full-manual marking system has very low efficiency, and the control precision of the marking process has defects; the full-automatic marking system is generally applied to the condition determined by the requirement, and parameters cannot be regulated and controlled at any time in the marking process, so that the marking operation is inflexible.

According to the marking method provided by the invention, the device for triggering and starting the marking operation is arranged between the steps of reading the marking parameters and marking operation, so that the marking parameter reading and the marking operation are separated, the step-by-step control of each process in the production process is facilitated, the problem that errors are required at present and cannot be corrected is prevented, and the marking accuracy and the flexibility and controllability of the marking operation are improved.

As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.

The terminal of the embodiment of the invention can be a marking machine and also can be a device with a marking function.

As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.

Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.

As shown in fig. 1, a program of an operating system, a network communication module, and a marking method may be included in a memory 1005, which is a computer-readable storage medium.

In the terminal shown in fig. 1, the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call a program of the marking method stored in the memory 1005 and perform the following operations:

reading marking parameters;

generating a marking graph according to the read marking parameters;

and marking according to the marking graph after receiving an instruction for triggering marking operation.

Further, the processor 1001 may call a program of the marking method stored in the memory 1005, and further perform the following operations:

and after marking is finished, returning to the step of reading the marking parameters.

Further, the processor 1001 may call a program of the marking method stored in the memory 1005, and further perform the following operations:

after marking is finished, the marking parameters are sent to a target system, wherein the marking parameters are read through the target system;

and returning to the step of reading the marking parameters after receiving the command of continuing the marking operation.

Further, the processor 1001 may call a program of the marking method stored in the memory 1005, and further perform the following operations:

and if an instruction for stopping marking operation is received, the marking process is exited.

Further, the processor 1001 may call a program of the marking method stored in the memory 1005, and further perform the following operations:

and if the uploading of the marking parameters fails, outputting a first alarm signal and exiting the marking process.

Further, the processor 1001 may call a program of the marking method stored in the memory 1005, and further perform the following operations:

and after the first alarm signal is released, the step of sending the marking parameters to the target system is executed again.

Further, the processor 1001 may call a program of the marking method stored in the memory 1005, and further perform the following operations:

if the marking parameters are read successfully, executing the step of generating marking graphs according to the read marking parameters;

and if the marking parameter reading fails, outputting a second alarm signal and exiting the marking process. Further, the processor 1001 may call a program of the marking method stored in the memory 1005, and further perform the following operations:

and after the second alarm signal is released, the step of reading the marking parameters is executed again.

Based on the hardware architecture, the embodiment of the control method of the air conditioner is provided.

Referring to fig. 2, fig. 2 is a first embodiment of the marking method of the present invention, which includes the steps of:

step S10, reading marking parameters;

in this embodiment, the marking software installed on the industrial personal computer of the marking device first reads the marking parameters, and the marking parameters may be stored in a manufacturing system capable of interacting with the marking device, such as a agile manufacturing system (CMES), or in the marking software. When the marking parameters are stored in a manufacturing system capable of interacting with the full time after reaching the standard, starting a marking device and the system, and reading the marking parameters from the system by marking software; and when the marking parameters are stored in the marking software, starting the marking device, and automatically calling the marking parameters by the marking software.

In this embodiment, the marking parameters need to be matched with the requirements of the material to be marked at the feeding port, for example, when marking a Printed Circuit Board (PCB), the marking parameters of the PCB model need to be read correspondingly, and the marking requirements of other marking materials correspondingly select related marking parameters, which is not exemplified here.

Step S20, generating a marking graph according to the read marking parameters;

in this embodiment, the marking parameters determine the final marking effect, and various marking patterns, such as one-dimensional codes, two-dimensional codes, characters, symbols, or graphics, can be generated according to the marking parameters.

And step S30, marking according to the marking graph after receiving the command of triggering the marking operation.

In this embodiment, after the marking parameters are acquired, the marking device waits for receiving an instruction for triggering and starting marking operation, the issuing form of the instruction may be to set a trigger function region on an operation panel of the marking device, or to install a start button on the marking device, or to trigger and start marking operation in a remote controller form, and the specific form is not further limited, and after the instruction for starting marking operation is received, marking operation is performed according to the generated marking pattern.

In the embodiment, the device for triggering and starting the marking operation is arranged between the steps of reading the marking parameters and marking the mark, the marking parameters are read and the marking operation is separated, the step-by-step control of each flow in the production process is facilitated, the problem that the current error is required to be corrected is prevented, and the marking accuracy and the flexibility and controllability of the marking operation are improved.

Further, referring to fig. 3, fig. 3 is a second embodiment of the marking method of the present invention, and based on the first embodiment, the marking method further includes:

and step S40, after marking is finished, returning to the step of reading the marking parameters.

In this embodiment, the same batch of material of marking device feed inlet is in once marking operation flow, marks according to the marking parameter of the same and forms the corresponding mark figure of beating, waits to beat a batch to beat that the mark material is whole to accomplish and beats the mark operation after, and the mark device stops to beat the mark operation. New corresponding marking parameters are again obtained according to the new marking requirements, which may be stored on a manufacturing system capable of interacting with a marking device, such as a agile manufacturing system (CMES), or on the marking software. When the marking parameters are stored on a manufacturing system capable of interacting with the marking device, the marking device and the system are started, and marking software reads the marking parameters from the system; and when the marking parameters are stored in the marking software, starting the marking device, and automatically calling the marking parameters by the marking software.

In the embodiment, each set of marking parameters is obtained and corresponds to marking of one batch or one to-be-marked material, so that the system or the marking device can conveniently and effectively monitor and control the marking of the batch materials, and the phenomenon of cross, error and leakage is prevented.

Further, referring to fig. 4, fig. 4 is a third embodiment of the marking method of the present invention, and based on the second embodiment, after step S30, the method further includes:

step S50, after marking, sending the marking parameters to a target system, wherein the marking parameters are read by the target system;

in this embodiment, after the marking is completed, the used marking parameters are transmitted back to the target system, and the target system is informed that the marking of the marking parameters is completed, so that the target system is prevented from not knowing whether the marking of the marking parameters is completed or not under the condition that the marking parameters are issued. Various types of marking parameters are stored in the target system, and after each marking parameter is issued, the marking parameters are transmitted back to the target system, so that the tracking of the target system on the marking parameters is ensured, the marking operation of each batch of materials to be marked can be smoothly completed, and the next standard-reaching process is entered again.

And step S60, receiving the command of continuing marking operation, and returning to the step of reading marking parameters.

In this embodiment, after the target system receives the returned marking parameters, the previous marking process is ended. Waiting for receiving an instruction for triggering whether to continue the operation of the next marking process, wherein the issuing form of the instruction can be that a triggering function area is arranged on an operation panel of the marking device, or a starting button is arranged on the marking device, or the marking operation is triggered and started in a remote controller form, and the specific form is not further limited.

The instruction for continuing the marking operation in this embodiment is different from the instruction for triggering and starting the marking operation in the first embodiment, and in this embodiment, after the marking software installed on the industrial personal computer of the marking device receives the instruction for continuing the marking operation, the marking device is controlled to enter the next marking process, and new marking parameters are read again. The new marking parameters may be stored on a manufacturing system that can interact with the marking device, such as a agile manufacturing system (CMES), or on the marking software. When the marking parameters are stored on a manufacturing system capable of interacting with the marking device, the marking device and the system are started, and marking software reads the marking parameters from the system; and when the marking parameters are stored in the marking software, starting the marking device, and automatically calling the marking parameters by the marking software.

And step S70, if an instruction for stopping marking operation is received, the marking process is exited.

In this embodiment, if the marking software installed on the industrial personal computer of the marking device receives the instruction of stopping marking operation, it indicates that the marking device does not enter the next standard-reaching process any more, and the marking device stops operating and exits the standard-reaching process.

In the embodiment, after marking of a batch of products is finished, whether marking operation of the next marking process is started or not is artificially controlled by setting the function of triggering whether marking operation of the next marking process is continued or not, and controllability of marking operation is further improved.

Further, referring to fig. 5, fig. 5 is a fourth embodiment of the marking method according to the present invention, and based on the third embodiment, after step S50, the method further includes:

and step S51, if the uploading of the marking parameters fails, outputting a second alarm signal and exiting the marking process.

In this embodiment, after the marking is completed, the used marking parameters are transmitted back to the target system to inform the target system that the marking of the marking parameters is completed. However, if an error occurs during uploading of the marking parameters, the target system cannot receive the marking parameters which are marked, the marking device outputs a second alarm signal to prompt that the process of uploading the marking parameters to the target system fails, the target system waits for maintenance and processing, and the marking device automatically exits from the marking process to prevent the machine from further running.

Further, referring to fig. 6, fig. 6 is a fifth embodiment of the marking method of the present invention, and based on the fourth embodiment, after step S51, the method further includes:

and step S52, after the second alarm signal is released, the step of sending the marking parameters to the target system is executed again.

In this embodiment, the marking parameter is prompted to fail to return by setting the second alarm signal, so that the marking process is automatically exited, after the fault is manually processed, the second alarm signal is removed, and at this time, the marking parameter can be normally uploaded to the target system, which indicates that the previous marking operation process is finished, and the next marking operation process can be entered.

Further, referring to fig. 7, fig. 7 is a sixth embodiment of the marking method of the present invention, which is based on the first embodiment, and after step S10, the marking method further includes:

and step S11, if the reading fails, outputting a first alarm signal and exiting the marking process.

In the embodiment, marking software installed on an industrial personal computer of the marking device firstly reads marking parameters, outputs a first alarm signal to prompt reading errors after the parameters are failed to be read, exits from a marking process and waits for manual processing of alarm results.

And step S80, after the first alarm signal is released, the step of reading the marking parameter is executed again.

In this embodiment, beat the mark device trouble through setting up first alarm signal suggestion, and then withdraw from automatically and beat the mark flow, prevent to beat the mark device and beat the mark operation according to wrong parameter, report in time the mistake and can avoid the machine to appear further trouble, seek the trouble reason in the maintenance of being convenient for is handled.

The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.

Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.

The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种写真KT板及其制备方法和应用

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类