Marking control method and device, nonvolatile storage medium and processor

文档序号:1875836 发布日期:2021-11-23 浏览:15次 中文

阅读说明:本技术 打标控制方法、装置、非易失性存储介质及处理器 (Marking control method and device, nonvolatile storage medium and processor ) 是由 程文晶 时会萍 周冠鸿 宋佳庆 詹高城 孟萌 于 2021-08-16 设计创作,主要内容包括:本发明公开了一种打标控制方法、装置、非易失性存储介质及处理器,打标控制方法包括:接收文本标识信息;响应于文本标识信息,获取打标模板的目标文本对象的文本内容,目标文本对象为与文本标识信息对应的文本对象;接收更新信息;响应于更新信息,控制对目标文本对象的文本内容进行更新。本发明的打标控制方法解决了相关技术中在打标过程中对打标模板编辑不方便的问题。(The invention discloses a marking control method, a marking control device, a nonvolatile storage medium and a processor, wherein the marking control method comprises the following steps: receiving text identification information; responding to the text identification information, acquiring text content of a target text object of the marking template, wherein the target text object is a text object corresponding to the text identification information; receiving the updating information; and controlling the text content of the target text object to be updated in response to the updating information. The marking control method solves the problem that the marking template is inconvenient to edit in the marking process in the related technology.)

1. A marking control method, comprising:

receiving text identification information;

responding to the text identification information, and acquiring text content of a target text object of the marking template, wherein the target text object is a text object corresponding to the text identification information;

receiving the updating information;

and controlling the text content of the target text object to be updated in response to the updating information.

2. The marking control method as claimed in claim 1, wherein the marking template includes a plurality of sub-templates distributed in an array; the text identification information comprises template number information; responding to the text identification information, acquiring text contents of a target text object of the marking template, wherein the text contents comprise:

determining at least part of the sub-templates in the plurality of sub-templates as target sub-templates according to the template number information;

and acquiring the text content of the target text object of the target sub-template.

3. The marking control method as claimed in claim 2, wherein each of the sub-templates includes a plurality of text objects; the text identification information comprises object number information; acquiring the text content of the target text object of the target sub-template, wherein the text content comprises the following steps:

determining the text object of the target sub-template corresponding to the object number information as the target text object according to the object number information;

and acquiring the text content of the target text object.

4. Marking control method according to any of the claims 1 to 3, wherein after controlling the updating of the text content of the target text object, the marking control method further comprises:

and controlling to store the updated marking template.

5. Marking control method according to any of the claims 1 to 3, wherein after controlling the updating of the text content of the target text object, the marking control method further comprises:

and controlling display equipment to display corresponding marking content images according to the updated marking template.

6. A marking control device, comprising:

a first receiving unit for receiving text identification information;

the acquiring unit is used for responding to the text identification information and acquiring the text content of a target text object of the marking template, wherein the target text object is a text object corresponding to the text identification information;

a second receiving unit for receiving the update information;

and the first control unit is used for responding to the updating information and controlling the updating of the text content of the target text object.

7. The marking control device of claim 6, wherein the marking template comprises a plurality of sub-templates distributed in an array, each sub-template comprising a plurality of text objects; the text identification information comprises template number information and object number information; the acquisition unit comprises a determining module and an acquisition module, wherein the determining module is used for determining at least part of the sub-templates in the plurality of sub-templates as target sub-templates according to the template number information; the acquisition module is used for acquiring the text content of the target text object of the target sub-template; the acquisition module comprises:

the determining submodule is used for determining the text object corresponding to the object number information of the target sub-template as the target text object according to the object number information;

and the obtaining submodule is used for obtaining the text content of the target text object.

8. A non-volatile storage medium, comprising a stored program, wherein the program, when executed, controls a device on which the non-volatile storage medium is located to perform the marking control method according to any one of claims 1 to 5.

9. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to execute the marking control method according to any one of claims 1 to 5 when running.

10. Marking control 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 marking control method according to any one of claims 1 to 5 when executing the computer program.

Technical Field

The invention relates to the field of product marking, in particular to a marking control method, a marking control device, a nonvolatile storage medium and a processor.

Background

In the related art, in the process of marking a product, a loaded marking template often needs to be modified according to the marking operation condition, so that an operator needs to frequently open marking editing software for editing, the operation process is complex, and the marking efficiency is affected.

In view of the above problems, no effective solution has been proposed.

The above information disclosed in the background section is only for enhancement of understanding of the background of the technology described herein. The background art may therefore contain certain information that does not form the known prior art to those skilled in the art.

Disclosure of Invention

The embodiment of the invention provides a marking control method, a marking control device, a nonvolatile storage medium and a processor, which are used for at least solving the problem that a marking template is inconvenient to edit in a marking process in the related technology.

In order to achieve the above object, according to a first aspect of embodiments of the present invention, there is provided a marking control method including: receiving text identification information; responding to the text identification information, acquiring text content of a target text object of the marking template, wherein the target text object is a text object corresponding to the text identification information; receiving the updating information; and controlling the text content of the target text object to be updated in response to the updating information.

Further, the marking template comprises a plurality of sub-templates distributed in an array mode; the text identification information comprises template number information; responding to the text identification information, acquiring the text content of the target text object of the marking template, wherein the text content comprises the following steps: determining at least part of the sub-templates in the plurality of sub-templates as target sub-templates according to the template number information; and acquiring the text content of the target text object of the target sub-template.

Further, each sub-template comprises a plurality of text objects; the text identification information includes object number information; acquiring the text content of the target text object of the target sub-template, wherein the text content comprises the following steps: determining a text object of the target sub-template corresponding to the object number information as a target text object according to the object number information; and acquiring the text content of the target text object.

Further, after controlling to update the text content of the target text object, the marking control method further includes: and controlling to store the updated marking template.

Further, after controlling to update the text content of the target text object, the marking control method further includes: and controlling the display equipment to display the corresponding marking content image according to the updated marking template.

According to a second aspect of the embodiments of the present invention, there is provided a marking control apparatus including: a first receiving unit for receiving text identification information; the acquiring unit is used for responding to the text identification information and acquiring the text content of a target text object of the marking template, wherein the target text object is a text object corresponding to the text identification information; a second receiving unit for receiving the update information; and the first control unit is used for responding to the updating information and controlling the updating of the text content of the target text object.

Furthermore, the marking template comprises a plurality of sub-templates distributed in an array mode, and each sub-template comprises a plurality of text objects; the text identification information comprises template number information and object number information; the acquisition unit comprises a determining module and an acquisition module, wherein the determining module is used for determining at least part of the sub-templates in the plurality of sub-templates as target sub-templates according to the template number information; the acquisition module is used for acquiring the text content of the target text object of the target sub-template; the acquisition module comprises: the determining submodule is used for determining a text object of the target sub-template corresponding to the object number information as a target text object according to the object number information; and the obtaining submodule is used for obtaining the text content of the target text object.

According to a third aspect of the embodiments of the present invention, there is provided a nonvolatile storage medium including a stored program, wherein a device in which the nonvolatile storage medium is controlled to execute the marking control method described above when the program is executed.

According to a fourth aspect of the embodiments of the present invention, there is provided a processor for executing a program, wherein the program executes the marking control method.

According to a fifth aspect of the embodiments of the present invention, there is provided a marking control device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein the processor implements the marking control method when executing the computer program.

The marking control method applying the technical scheme of the invention comprises the following steps: receiving text identification information; responding to the text identification information, acquiring text content of a target text object of the marking template, wherein the target text object is a text object corresponding to the text identification information; receiving the updating information; and controlling the text content of the target text object to be updated in response to the updating information. The text content of the target text object in the marking template is acquired according to the received acquisition signal, and the text content of the target text object is updated according to the received update signal, so that the marking template can be directly updated without opening template editing software for editing, the flexibility of marking control is effectively improved, and the problem that the marking template is inconvenient to update in the prior art is solved.

Drawings

The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:

FIG. 1 is a schematic flow diagram of an alternative embodiment of a marking control method in accordance with the present invention;

FIG. 2 is a schematic view of an alternative embodiment of a marking control device according to the present invention.

Detailed Description

It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.

In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the 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 the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.

It will be understood that when an element such as a layer, film, region, or substrate is referred to as being "on" another element, it can be directly on the other element or intervening elements may also be present. Also, in the specification and claims, when an element is described as being "connected" to another element, the element may be "directly connected" to the other element or "connected" to the other element through a third element.

Fig. 1 is a marking control method according to an embodiment of the present invention, as shown in fig. 1, the method including the steps of:

step S102, receiving text identification information;

step S104, responding to the text identification information, and acquiring the text content of a target text object of the marking template, wherein the target text object is a text object corresponding to the text identification information;

step S106, receiving the updating information;

and step S108, responding to the updating information, and controlling to update the text content of the target text object.

The marking control method adopting the scheme comprises the following steps: receiving text identification information; responding to the text identification information, acquiring text content of a target text object of the marking template, wherein the target text object is a text object corresponding to the text identification information; receiving the updating information; and controlling the text content of the target text object to be updated in response to the updating information. The text content of the target text object in the marking template is acquired according to the received acquisition signal, and the text content of the target text object is updated according to the received update signal, so that the marking template can be directly updated without opening template editing software for editing, the flexibility of marking control is effectively improved, and the problem that the marking template is inconvenient to update in the prior art is solved.

In this embodiment, the marking template includes a plurality of sub-templates distributed in an array manner; the text identification information comprises template number information; responding to the text identification information, acquiring the text content of the target text object of the marking template, wherein the text content comprises the following steps: determining at least part of the sub-templates in the plurality of sub-templates as target sub-templates according to the template number information; and acquiring the text content of the target text object of the target sub-template.

The marking template comprises a plurality of sub-templates distributed in an array mode, namely, the marking template is divided into a plurality of areas, each area is a sub-template, so that one marking template can cover a plurality of products, marking arrangement of the products is achieved, the sub-templates distributed in the array mode can be two or more sub-templates, and the array direction can be flexibly selected. When the text content of the target object of the marking template is obtained, the corresponding sub-template is determined as the target sub-template according to the template number information, so that the text content of the target text object of the corresponding target sub-template can be pertinently or pointedly modified, and the targeted content modification is realized. Compared with the mode that in the related technology, the operator manually opens the editing software to edit one by one, the method effectively facilitates the editing operation and improves the editing efficiency of the marking template.

Specifically, each sub-template comprises a plurality of text objects; the text identification information includes object number information; acquiring the text content of the target text object of the target sub-template, wherein the text content comprises the following steps: determining a text object of the target sub-template corresponding to the object number information as a target text object according to the object number information; and acquiring the text content of the target text object.

That is to say, each sub-template includes a plurality of text objects, so that different contents can be displayed, in the marking process, editing of different text objects may be involved, and the text identification information includes object number information, and determines that a corresponding text object is a target text object according to the object number information, so that the text content of the target text object is obtained in a targeted manner, and targeted editing operation of different text objects is realized.

After controlling to update the text content of the target text object, the marking control method further includes: and controlling to store the updated marking template. The operation of controlling the storage of the updated marking template can be triggered automatically or triggered according to a corresponding command, so that the updated marking template is stored and is convenient to use next time. In this embodiment, controlling the updated marking template to be saved includes: receiving and storing information; and responding to the storage information, and controlling to store the updated marking template.

After controlling to update the text content of the target text object, the marking control method further includes: and controlling the display equipment to display the corresponding marking content image according to the updated marking template. Therefore, the marking content image corresponding to the updated marking template can be displayed, so that the preview of the marking content can be realized, an operator can clearly and clearly master the marking condition, and the marking operation is convenient to carry out.

Next, as shown in fig. 2, an embodiment of the present invention further provides a marking control apparatus, including: a first receiving unit for receiving text identification information; the acquiring unit is used for responding to the text identification information and acquiring the text content of a target text object of the marking template, wherein the target text object is a text object corresponding to the text identification information; a second receiving unit for receiving the update information; and the first control unit is used for responding to the updating information and controlling the updating of the text content of the target text object.

The marking template comprises a plurality of sub-templates distributed in an array mode, and each sub-template comprises a plurality of text objects; the text identification information comprises template number information and object number information; the acquisition unit comprises a determining module and an acquisition module, wherein the determining module is used for determining at least part of the sub-templates in the plurality of sub-templates as target sub-templates according to the template number information; the acquisition module is used for acquiring the text content of the target text object of the target sub-template; the acquisition module comprises: the determining submodule is used for determining a text object of the target sub-template corresponding to the object number information as a target text object according to the object number information; and the obtaining submodule is used for obtaining the text content of the target text object.

After controlling to update the text content of the target text object, the marking control device further comprises a second control unit: the second control unit is used for controlling the updated marking template to be stored.

After controlling to update the text content of the target text object, the marking control device further comprises a third control unit: and the third control unit is used for controlling the display equipment to display the corresponding marking content image according to the updated marking template.

In addition, the embodiment of the invention also provides a nonvolatile storage medium, the nonvolatile storage medium comprises a stored program, and when the program runs, the device where the nonvolatile storage medium is located is controlled to execute the marking control method.

The embodiment of the invention further provides a processor, which is used for running the program, wherein the marking control method is executed when the program runs.

Finally, the embodiment of the invention also provides a marking control device, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the marking control method is realized when the processor executes the computer program.

In the present embodiment, obtaining the text content of the target text object of the marking template, controlling updating the text content of the target text object, controlling storing the updated marking template, and controlling the display device to display the corresponding marking content image are all implemented by a function. The method mainly comprises the following steps:

1. connecting a marking control card: and calling a function library of the laser marking card, and putting MarkEzd.dll under a DeBug path generated by system software. Making a statement definition of # include "markezddll. h" in a header file of a main program, calling a function of a development library of a marking card, and loading a function library m _ hezdll ═ LoadLibrary (_ T ("markezd. dll")) in an initialization function; if (m _ hezdll ═ NULL) { AfxMessageBox (_ T ("Can not find markezd. dll")); and performing initial connection of the marking card. And calling a function library of the marking card to realize the functions of marking, previewing, red light mode and the like of the marking card.

2. Loading the marking template: in the control, the following code is added:

static TCHAR szA2SaveFilter[]=_T("Ezcad file(*.ezd)|*.ezd|");

CFileDialog dlg(TRUE,_T("EZD"),NULL,OFN_HIDEREADONLY,szA2SaveFilter);

if(IDOK==dlg.DoModal()){CString strPath;

m_productSizePara._strMarkPath[0]=dlg.GetPathName();

SetDlgItemText(IDC_EDIT_FIRST_MARK_PATH,m_productSizePara._strMarkPath[0]);}

3. acquiring the text content of the target text object: and calling lmc1_ GetEntityName function to obtain the sub-template corresponding to the template number information and the target text object corresponding to the object number information. And obtaining marking content by calling a GetTextByName () encapsulation function, wherein specific codes are as follows:

CString strText;

CString strName=_T("1");

if(g_jcz.GetTextByName(strName.GetBuffer(0),strText))

{SetDlgItemText(IDC_EDIT_MARK_TEXT_1,strText);}

4. change of text content: calling lmc1_ ChangeTextByName function to update the text content of the target text object;

5. and (3) preservation of the marking template: the lmc1_ SaveEntLibToFile function is called to save the marking template file.

6. And (3) drawing and displaying: and displaying the marking content image corresponding to the updated marking template on the upper computer interface by calling a packaging function fnShowTextBmp () drawing function.

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. Moreover, the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions, and while a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than here.

In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple 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, units or modules, and may be in an electrical 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 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 invention 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 unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. 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 and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.

The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:基于表单的水印生成方法、装置、电子设备和计算机介质

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!