CN115107381A - Label printing data generation method and device - Google Patents

Label printing data generation method and device Download PDF

Info

Publication number
CN115107381A
CN115107381A CN202110302654.XA CN202110302654A CN115107381A CN 115107381 A CN115107381 A CN 115107381A CN 202110302654 A CN202110302654 A CN 202110302654A CN 115107381 A CN115107381 A CN 115107381A
Authority
CN
China
Prior art keywords
information
label
printing
target item
value
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.)
Pending
Application number
CN202110302654.XA
Other languages
Chinese (zh)
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to CN202110302654.XA priority Critical patent/CN115107381A/en
Publication of CN115107381A publication Critical patent/CN115107381A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J3/00Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed
    • B41J3/407Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed for marking on special material
    • B41J3/4075Tape printers; Label printers
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J29/00Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
    • B41J29/38Drives, motors, controls or automatic cut-off devices for the entire printing mechanism
    • B41J29/393Devices for controlling or analysing the entire machine ; Controlling or analysing mechanical parameters involving printing of test patterns

Abstract

The embodiment of the application provides a method and a device for generating label printing data, wherein the method is used for generating the printing data for printing on a label, and comprises the following steps: acquiring 1 st information, the 1 st information being composed of a plurality of items and values corresponding to the items; determining a target item as a print; extracting a value corresponding to the target item from the 1 st information as an output value for printing; and generating print data including the extracted output value.

Description

Label printing data generation method and device
Technical Field
The embodiment of the application relates to a label printing data generation technology.
Background
In the conventional art, in order to print a plurality of labels, it is necessary to print the labels by a plurality of operators. Reference is made specifically to japanese patent laid-open No. 2005-145590 of patent document 1.
Disclosure of Invention
In the conventional technique, since a plurality of operators perform respective jobs, there is a possibility that a problem such as a printing error may occur.
The embodiment of the application provides a method and a device for generating label printing data, which can avoid the problem of printing errors and reduce the burden of operators.
According to a first aspect of embodiments of the present application, there is provided a label print data generation apparatus that generates print data for printing on a label, wherein the apparatus includes:
an acquisition unit configured to acquire 1 st information, the 1 st information being composed of a plurality of items and values corresponding to the items;
a determination section for determining a target item as a print;
an extracting section for extracting a value corresponding to the target item from the 1 st information as an output value for printing; and
a generating section for generating print data including the extracted output value.
According to a second aspect of embodiments of the present application, there is provided a label print data generation method that generates print data for printing on a label, wherein the method includes:
acquiring 1 st information, the 1 st information being composed of a plurality of items and values corresponding to the items;
determining a target item as a print;
extracting a value corresponding to the target item from the 1 st information as an output value for printing; and
print data including the extracted output value is generated.
The embodiment of the application has the advantages that the output value for printing is extracted from the file of a production plan and the like, and the output value can be made into printing data, so that the problem of printing errors can be avoided, and the burden of operators is reduced.
Specific embodiments of the present application are disclosed in detail with reference to the following description and drawings, indicating the manner in which the principles of the application may be employed. It should be understood that the embodiments of the present application are not so limited in scope. The embodiments of the application include many variations, modifications and equivalents within the spirit and scope of the appended claims.
Features that are described and/or illustrated with respect to one embodiment may be used in the same way or in a similar way in one or more other embodiments, in combination with or instead of the features of the other embodiments.
It should be emphasized that the term "comprises/comprising" when used herein, is taken to specify the presence of stated features, integers, steps or components but does not preclude the presence or addition of one or more other features, integers, steps or components.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate preferred embodiments of the application and together with the description serve to explain the principles of the application and in which like elements are referenced throughout by like numerals.
In the drawings:
FIG. 1 is a schematic diagram of a label printing data generation method in an embodiment of the present application;
FIG. 2 is a schematic view of a tag structure in an embodiment of the present application;
FIG. 3 is a schematic diagram of a method for extracting a value from a range in an embodiment of the present application;
FIG. 4 is a schematic diagram showing the construction of a label print data generating apparatus according to an embodiment of the present application;
FIG. 5 is a schematic view showing the constitution of a label print data generating apparatus in the embodiment of the present application;
fig. 6 is a schematic diagram of the configuration of a label print data generation system in the embodiment of the present application.
Detailed Description
The foregoing and other features of the present application will become apparent from the following description with reference to the accompanying drawings. In the description and drawings, particular embodiments of the application are disclosed in detail as being indicative of some of the embodiments in which the principles of the application may be employed, it being understood that the application is not limited to the described embodiments, but, on the contrary, is intended to cover all modifications, variations, and equivalents falling within the scope of the appended claims.
In the embodiments of the present application, the terms "first", "second", and the like are used for distinguishing different elements by reference, but do not denote a spatial arrangement, a temporal order, or the like of the elements, and the elements should not be limited by the terms. The term "and/or" includes any and all combinations of one or more of the associated listed terms. The terms "comprising," "including," "having," and the like, refer to the presence of stated features, elements, components, and do not preclude the presence or addition of one or more other features, elements, components, and elements.
In a factory that produces various kinds of devices and parts, labels having various kinds of related information are attached to mass-produced devices and parts for convenience of management, and in order to print such labels, it is necessary for an operator to open a label file one by one, and print after inputting related information into the label file.
According to the embodiment of the application, the output value for printing is extracted from the file of the production plan and the like, and the output value can be made into the printing data, so that the problem of printing errors can be avoided, the burden of operators is reduced, and the labor cost is reduced.
The following description is given with reference to examples.
Embodiments of the first aspect
An embodiment of a first aspect of the present application provides a method for generating label printing data, where the label printing data is generated for printing on a label, and fig. 1 is a schematic diagram of the method for generating label printing data according to the embodiment of the present application, and as shown in fig. 1, the method includes:
101, obtaining 1 st information, wherein the 1 st information is composed of a plurality of items and values corresponding to the items;
102, determining a target item as printing;
103 extracting a value corresponding to the target item from the 1 st information as an output value for printing;
and 104, generating the printing data including the extracted output value.
It should be noted that fig. 1 above only illustrates the embodiment of the present application, but the present application is not limited thereto. For example, the order of execution of the various operations may be appropriately modified, and additional or fewer operations may be added or subtracted. Those skilled in the art can appropriately modify the above description without being limited to the description of fig. 1.
In some embodiments, the 1 st information is composed of a plurality of items and values corresponding to the items, the 1 st information may be a production plan prepared before production of the Product, the production plan stores a Product identifier (Material) and a production Quantity (QTY) of the Product to be produced, and may further include at least one of a Product Description (Description), a production date (Product start date), and a serial number (S/N), and the plurality of items in the 1 st information correspond to the Product identifier and the production quantity in the production plan and may further include at least one of the Product Description, the production date, and the serial number. When the item is a product identifier, the corresponding value (i.e. the value of the product identifier) of the item is 1, which is used to uniquely identify the product type, and the value may be composed of a plurality of numbers; when the item is a product description, the value corresponding to the item (i.e. the value of the product description) is 1, which is used for performing supplementary description on the product, and the value may be a character string composed of numbers and/or letters and/or symbols; when a project is production volume, the value corresponding to the project (i.e. the value corresponding to the production volume) is 1, which is used to represent the quantity of production of a product, and the value may be composed of a plurality of numbers; when the item is a production date, the value corresponding to the item (i.e. the value corresponding to the production date) is 1, which is used for indicating the production year, month and day of the product, and the value can be a character string consisting of numbers and symbols or numbers and characters; when the item is a serial number, the value corresponding to the item (i.e., the value corresponding to the serial number) is at least two, for example, the value corresponding to the item may be a range (the upper and lower limits of the value may be used to represent the range), which is used to represent the production serial number of the product, and the value may be a character string composed of numbers and/or letters and/or symbols.
In some embodiments, the 1 st information (e.g., the production plan) may be represented as a table consisting of a plurality of items and values corresponding to the items, where each column of the table represents one item (or each row represents one item, which is not limited in this application). Table 1 is a schematic table of the 1 st information, and as shown in table 1, the 1 st information includes 5 item types, such as product identifiers, product descriptions, production volumes, production dates, serial numbers, and values corresponding to each item are 46471514,823 cn OEL230,176, 2018/7/9, AL87017878a0-AL87018053a0, which are merely exemplary and are not limited in this embodiment of the present application.
TABLE 1
Figure BDA0002986873570000041
Each item and its value in the 1 st information are merely illustrated as an example, and embodiments of the present application are not limited thereto, and the item in the 1 st information is not limited to the item in the above example, and may also include other items, and the value corresponding to the item is also not limited to the number and the representation manner of the above example, which is not illustrated here, and the 1 st information may be stored in an Excel file (stored in a database), but the present application is not limited thereto.
In some embodiments, the 1 st information (e.g., the production plan) may be 1 st information of a product to be produced, which is obtained from a production management system, but the embodiment of the present application is not limited thereto, for example, the 1 st information may also be separately prepared by a producer before production, which is not illustrated here.
In some embodiments, since the print data is formed on the label, where the label includes related information of the product, the related information includes changed information and fixed information, where the changed information is determined according to the 1 st information, and the fixed information is not changed and does not need to be determined according to the 1 st information, for example, the fixed information may also be formed on the label in advance, or may be stored in association with the label in advance, which is not limited in this embodiment of the application. Fig. 2 is a label diagram, as shown in fig. 2, in which a solid frame portion belongs to fixed information and a dashed frame portion belongs to changed information.
In some embodiments, in 102, the target item as printing may be determined from the changed information; for example, a label to be printed is fixed, the label includes information of three changes, namely a product identifier, a serial number and a production date, and the target item to be printed is an item corresponding to the information of the changes, namely the target item includes three items, namely the product identifier, the serial number and the production date.
In some embodiments, for the product a to be produced, multiple types of labels are required to be printed and respectively pasted on a product body, an outer package, a certificate, and the like, that is, the labels to be printed are corresponding to (associated with) the product to be produced, rather than being fixed, in this case, a label template may be determined according to the product type and the 2 nd information, and the target item may be determined according to the determined label template and the 3 rd information, where the 2 nd information is correspondence information between the product type and the label template type, and the 3 rd information is correspondence information between the label template and the print item included in the label template.
In some embodiments, the 2 nd information and the 3 rd information may be preset and stored in a database, where the 2 nd information may be information indicating a type of a label template to be printed for each type of product, the 2 nd information describes a correspondence between a product type and a type of the label template, the 3 rd information may indicate contents included in each type of label template, the 3 rd information describes a correspondence between the label template and a print item included in the label template, and the 2 nd information and the 3 rd information may be described in a label print instruction book. Optionally, the 2 nd information may also include the use of each label template, for example, the label template may be used on a product, or on an outer package of the product, or on a specification of the product, etc., which are not illustrated herein.
In some embodiments, the 2 nd information may be represented as a table of product types and label template types, the 3 rd information may be represented as a table of label templates and print items contained in the label templates, and the 2 nd information and the 3 rd information may be stored in an Excel file, but the application is not limited thereto.
For example, a label template corresponding to the product type of the product to be produced is searched in the 2 nd information, so as to determine the type and the number of labels to be printed, then for each searched label template, a printing item in the 3 rd information is searched, and information of change in the printing item is determined, and information of three changes is used as a target item for printing. For example, for a product a to be produced, the label template corresponding to the product a is found in the 2 nd information as a label a (pasted on the product a), a label b (pasted on the outer package of the product a), and then the printing item (product identifier, serial number) contained in the label a and the printing item (product identifier, production date) contained in the label b are found in the 3 rd information. The printing item is changed information, the printing target item is an item corresponding to the changed information, namely the target item of the label a comprises a product identifier and a serial number, and the target item of the label b comprises a product identifier and a production date.
In some embodiments, in 103, a value corresponding to the target item is extracted from the 1 st information, and the value corresponding to the target item is taken as an output value for printing; in the following description, variables may be set for each piece of changed information (or may be fixed information) in the tag template, and values corresponding to each target item in the 1 st information are automatically read through the variables.
The variable SN: extracting an item-serial number and a corresponding value (for example, a column where the serial number is located in table 1) in the 1 st information;
the data pattern of the extracted value (variable value) of the variable may be composed of upper and lower limits of a range, which are composed of letters and numbers (and may have symbols) without spaces, in the same format, and a connection symbol ("-" or "-"), which connects the upper and lower limits, for example, an upper limit is an end sequence number, a lower limit is a start sequence number, the start sequence number and the end sequence number are in the same format, the start sequence number and the end sequence number are connected by "-", and the start sequence number and the end sequence number include letter intervals and/or number intervals (the letter intervals and/or number intervals may have one or more, and include at least one change interval). For example, "AL 87018656A2-AL87018703A 2", or "49F 2-116333-49F 2-116380", or "C71T 07803583-C71T 07803638";
variable Print Count: extracting the item-production capacity and the corresponding value (for example, the column of the production capacity in the table 1) in the 1 st information;
the data type of the value (variable value) extracted by the variable is constituted by a number;
variable Desc: extracting the item-product description and the corresponding value in the 1 st information (for example, the column in which the product description is located in table 1);
the data type of the value (variable value) extracted by the variable is composed of numbers, letters and symbols (spaces may be provided as well);
variable PS date: extracting the item in the 1 st information, the production day and the corresponding value (for example, the column of the production day in table 1);
the data type of the value (variable value) extracted from the variable is composed of a number and a symbol;
variable Mat ID: extracting the item-product identification and the corresponding value in the 1 st information (for example, the column of the product identification in table 1);
the data type of the value (variable value) extracted by the variable is constituted by a number;
variable Serial No: generating a sequence number based on the range calculation for the variable SN 1;
the data type of the value extracted by the variable is the same as the format of the upper or lower limit of the aforementioned range;
while the above description has been made on the variables set in the variable information, alternatively, the variables may be set in fixed information, for example:
the variable Colon: outputting fixed characters (other fixed character strings are possible, and the examples are not repeated here)
The types of the variables (operations corresponding to the variables) may include:
1) reading the value (OrderJobData) corresponding to the item in the 1 st information, outputting all the labels corresponding to the label template in the same way, and respectively outputting the item name (character string) and the value corresponding to the item when outputting;
2) generating fixed information (Const), and outputting the same fixed information character string to all the tags corresponding to the class of tag templates, wherein the character string is, for example, ": "or as a manufacturer name, etc.;
3) the method includes the steps of generating a value (Sn) corresponding to each tag according to a range of values, generating a sequence number according to a range of sequence numbers, generating and outputting one sequence number according to each tag (number) (the format is the same as the upper limit or the lower limit of the previous range), for example, in the case of a sequence number range AL87018656A2-AL87018703A2, generating sequence numbers 1 to 48, and generating the following sequence numbers:
1 st: AL87018656A2
The 2 nd: AL87018657A2
...
At 48 th: AL87018703A2
Table 2 below is a definition table of each variable described above, and table 2 shows each variable and a type corresponding to the variable, and a description.
TABLE 2
Name of variable Variable type Description of the invention
SN OrderJobData S/N
Print Count OrderJobData QTY
Desc OrderJobData Description
MatID OrderJobData Material
PS date OrderJobData Product start date
Serial No Sn SN
Colon Const
Table 2 may be set in advance and stored in the database.
In addition, in order to flexibly extract the value corresponding to each item from the 1 st information, a number can be added after each variable, wherein 0 represents that all the values (the cells in which the values are located) are obtained; 1 indicates line 1 where the value (cell) is taken; 2 indicates line 2, etc. where the value (cell) is taken, which is not illustrated here.
As described above, the above variables are set for each piece of changed/fixed information in the tag template, and thus, the above 3 rd information for one tag template can be expressed as shown in the following table 3:
TABLE 3
Print item Variable type Description of the invention
SN1 OrderJobData S/N
SN2 OrderJobData S/N
Colon Const
Print Count OrderJobData QTY
MatID OrderJobData Material
In some embodiments, in 102 and 103, after determining a product to be produced, a label template used by the product may be determined according to the 2 nd information, for each label template, according to the 3 rd information, a print item in the label template is taken as an object item (for example, a variable name that has been set is taken in the 3 rd information as shown in table 3, and an operation corresponding to each variable may be determined), and a value corresponding to the object item is extracted from the 1 st information, and a value corresponding to the object item is taken as an output value for printing (for example, a variable value corresponding to each variable name is extracted from the 1 st information as shown in table 1 according to the variable and the corresponding operation), wherein, in the case where the value corresponding to the object item is one, the value is extracted as the output value for printing; in the case where there are at least two values corresponding to the target item, one of the at least two values is extracted as an output value for printing, and for example, when the value corresponding to the target item (serial number) is a serial number range, 1 serial number within the range is extracted as an output value for printing.
The following takes the sequence number as an example to illustrate how to extract one value from the range (i.e. how to extract 1 sequence number from the sequence number range).
Fig. 3 is a schematic diagram of the extraction method (which can also be regarded as a method for processing Serial No variables), as shown in fig. 3, the method includes:
301, determining that the value corresponding to the target item is a range;
for example, the value corresponding to the target item sequence number is a range, e.g.
AL87017878A0-AL87018053A0;
302, determining the upper and lower limits of the range;
for example, the upper and lower limits are a start sequence number and an end sequence number, AL87017878a0 and AL87018053a0, respectively;
303, analyzing the upper limit and the lower limit, and splitting the upper limit and the lower limit into a digital part and a non-digital part;
for example, the start sequence number and the end sequence number are split into 4 intervals:
Figure BDA0002986873570000091
304, analyzing the splitting result, and extracting a change interval;
for example, the variation interval is 87017878, 87088053, i.e. interval 2 is the variation interval;
305, calculating the nth number according to the change interval, wherein n is a serial number and can also be regarded as a label serial number (n is an integer larger than 1);
for example, the nth number 87017878+ n-1 is obtained by taking the 2 nd section of the start sequence number as the start number and further adding information n-1 indicating the sequence order, for example, the 10 th (n ═ 10) number is 87017887;
an nth value is generated based on the nth number as the one value extracted from the range 306.
For example, the nth number corresponding to the 2 nd interval and the intervals (the 1 st interval AL, the 3 rd interval a, and the 4 th interval 0) before and after the nth number are further spliced together to generate the nth serial number as the one value, for example, the 10 th tag has a serial number AL87017887a0, in other words, the 10 th serial number is extracted from the range as the one value, and the 10 th serial number is AL87017887a 0.
In some embodiments, print data including the extracted output value is generated at 104. In the case where the number of the target items determined in 102 is 1, the value extracted from the 1 target item is used as the output value for printing, and print data including the output value is generated, and in the case where there are at least two target items determined, the print data is generated by combining at least two values corresponding to the at least two target items as the output values for printing.
For example, the at least two target items are the product id, product description, serial number, the value of the product id variable extracted from the 1 st information, which results in 4671514, and the value of the product description variable extracted from the 1 st information, which results in 823C n OEL 230. A range of serial numbers is obtained from the 1 st information, and a value is extracted from the range using the method in fig. 3, resulting in AL8701 xxxxxa 0(XXXX is 7878+ (n-1)), and the above-extracted values are combined to generate print data, for example, 4671514823 Cn OEL230 AL8701XXXX (XXXX is 7878+ (n-1)) on the nth label.
In some embodiments, optionally, when the label template further includes fixed information, the fixed information is also included in the print data, for example, a Colon variable is included in the label template, and the Colon variable value is: then the print data generated on the nth label further includes ": ".
In some embodiments, when the target item determined in 102 has an error or is insufficient, a warning notification is generated, wherein when the plurality of items of the 1 st information do not include a print item in the label template or do not match the print item in the label template, it indicates that the determined target item has an error or is insufficient, for example, when the print item in the label template further includes quality testing personnel but the target item of the quality testing personnel is not included in the 1 st information, the warning notification is generated. In order to avoid a printing error, when the target item has an error or is insufficient, the print data may be generated so that a value corresponding to the target item is not extracted from the 1 st information, or the print data may be generated in a predetermined manner so that the print data is generated so as not to have an error, and the predetermined manner may be that a value corresponding to the erroneous or insufficient target item is set to "none" by default. For example, if the print item in the label template further includes a quality inspector, but the 1 st information does not include the target item of the quality inspector, it is not necessary to extract a value corresponding to the target item of the quality inspector from the 1 st information, and the corresponding value is used as an output value for printing, that is, the print data does not include the content of the quality inspector, or a value corresponding to the target item of the quality inspector is "none" as an output value for printing, which is not illustrated here.
In some embodiments, the method may further comprise (not shown, optional): the printing of the label is performed using a printer.
In some embodiments, the aforementioned information No. 3 may describe, in addition to the correspondence between the label template and the print items included in the label template, the correspondence between the label template, the print items included in the label template, and the print positions of the respective print items, the print positions may be represented by coordinate values on the label printing medium, and the print data may include, in addition to the output values (and the fixed information) of the respective target items, the print positions of the respective output values (and the fixed information).
In some embodiments, the layout of the print data on the label may be determined by label printing software, for example, the existing label printing software may be used to receive the print data, when printing the label, the label printing software selects a label template to be printed, where the layout of each output value in the print data on the label template is predefined, and when printing the label, the print data will be printed on a label medium according to the predefined layout; in addition, the label printing software may further set the number of printed labels and the like during printing, which may specifically refer to the prior art and is not described herein again.
As is clear from the above-described embodiment, since the output value for printing is extracted from the file of the production plan or the like and can be created as the print data, the problem of occurrence of a print error can be avoided, the burden on the operator can be reduced, and the labor cost can be reduced.
Embodiments of the second aspect
An embodiment of a second aspect of the present application provides a label print data generating method that generates print data for printing on a label, which is different from the embodiment of the first aspect in that: the embodiment also sets a variable Result for the label newly, and the determination 102 of the target item as printing includes: and determining a variable Result associated with the label template according to the label template, and determining the printing item associated with the variable Result as a target item. The same points as those of the embodiment of the first aspect will not be described herein.
The variable Result will be explained below.
The Result variable is the combination of the outputs of at least two variables in the embodiments of the first aspect, for example, the outputs of the Mat ID variable, the Colon variable, the Serial No variable; alternatively, the outputs of the Mat ID variable, Desc variable, Colon variable, and Serial No variable may be combined, which is not illustrated here.
In the embodiment of the first aspect, after a product to be produced is determined, a label template used by the product may be determined according to the 2 nd information, and for each label template, a print item in the label template may be obtained as a target item according to the 3 rd information (for example, an already set variable name may be obtained in the 3 rd information shown in table 3, and an operation corresponding to each variable may be determined).
In some embodiments, the Result variable is in the form of: the variable name 1, the variable name 2, the variable name k, and the like, which are combined in the Result variable corresponding to the one tag, namely the variable name associated with the variable Result, may be predefined in the database in a table form, and the Result variable predefined by each tag template may also be predefined in the database in a table form, which is not limited in the embodiments of the present application.
In some embodiments, the type of the variable (the operation to which the variable corresponds) is: and (4) associating the output values extracted from all variables in the Result variables (namely the variable values corresponding to all the variables), and performing the same output on all the labels corresponding to the label template.
For example, for a product a to be produced, the label template corresponding to the product a is found in the 2 nd information as a label a (pasted on the product a), the variable name defined by the label a is Result, a Print item (variable name) associated with the variable Result can be obtained in the database as a target item, for example, if the Result variable is defined as Mat ID, Print Count, Desc, and S/N, then Mat ID, Print Count, Desc, and S/N are determined as target items, a Mat ID variable value is extracted from the 1 st information, and as a Result, 4671514, a Desc variable value is extracted from the 1 st information, and as a Result, 823C N OEL 230. The Print Count variable value is obtained from the 1 st information, and as a Result 176, the S/N variable value (which is a range) is obtained from the 1 st information, and a value is extracted from the range by the method shown in fig. 3, and as a Result AL8701 xxxxxa 0(XXXX is 7878+ (N-1)), the Result variable associates (combines) the variable values (output results) extracted by the respective variables, and Print data is generated, for example, 4671514823 Cn OEL230 AL8701XXXX (XXXX is 7878+ (N-1)) on the nth label.
In some embodiments, optionally, when the Result variable further includes a variable Colon, the print data further includes variable values of the variable Colon as: then the print data generated on the nth label further includes ": ".
As is clear from the above-described embodiment, since the output value for printing is extracted from the file of the production plan or the like and can be created as the print data, the problem of occurrence of a print error can be avoided, the burden on the operator can be reduced, and the labor cost can be reduced. In addition, by defining a Result variable for the label, print data can be generated more conveniently.
Examples of the third aspect
Embodiments of the third aspect of the present application provide a label printing data generating apparatus, which generates printing data for printing on a label, and since the principle of solving the problem of the apparatus is similar to the embodiments of the first to second aspects, the specific implementation thereof can refer to the embodiments of the first to second aspects, and the description thereof is not repeated where the contents are the same.
Fig. 4 is a schematic diagram of the configuration of the label print data generating apparatus, which includes, as shown in fig. 4:
an acquisition unit 401 for acquiring 1 st information, the 1 st information being composed of a plurality of items and values corresponding to the items;
a determination section 402 for determining a target item as a print;
an extraction section 403 for extracting a value corresponding to the target item from the 1 st information as an output value for printing; and
a generating unit 404 for generating print data including the extracted output value.
In some embodiments, the obtaining portion 401, the determining portion 402, the extracting portion 403, and the generating portion 404 may refer to 101-104 of the first aspect or the second aspect, and repeated descriptions are omitted here.
In some embodiments, the plurality of items in the 1 st information include: the product identification and the production volume, and optionally, the plurality of items may further include at least one of a product description, a date of manufacture, and a serial number.
In some embodiments, the determination section 402 determines the tag template from the product type and the 2 nd information, the 2 nd information being correspondence information of the product type and the tag template kind; and determining the target item according to the determined label template and the 3 rd information, wherein the 3 rd information is the corresponding relation information of the label template and the printing item contained in the label template.
In some embodiments, in the case that there are at least two values corresponding to the target item, the extracting section 403 extracts one of the at least two values.
In some embodiments, in the case where there are at least two target items, the generating section 404 generates the print data by combining at least two values corresponding to the at least two target items as output values for printing.
In some embodiments, the apparatus may further comprise (not shown, optional):
and an alarm unit for generating an alarm notification when the determination unit 402 determines that the target item has an error or is insufficient.
In some embodiments, when the target item has an error or is insufficient, the extracting portion 403 does not extract the value corresponding to the target item from the 1 st information, and the generating portion 404 generates the print data in such a manner that the value corresponding to the target item is not extracted from the 1 st information, or generates the print data in a predetermined manner.
The embodiment of the application also provides a label printing data generation device, which can be, for example, a computer, a server, a workstation, a laptop computer, a smart phone, a printer and the like; the embodiments of the present application are not limited thereto.
Fig. 5 is a schematic diagram of a label print data generation apparatus according to an embodiment of the present application, and as shown in fig. 5, a label print data generation apparatus 500 according to an embodiment of the present application may include: at least one interface (not shown in fig. 5), a processor (e.g., a Central Processing Unit (CPU))501, a memory 502; a memory 502 is coupled to the processor 501. The memory 502 may store various types of information stored in the aforementioned database, such as the 1 st information, the 2 nd information, the 3 rd information, and the like; a labeling print data generation program 503 is also stored, and the program 503 is executed under the control of the processor 501.
In one embodiment, the functions of the label printing data generation apparatus 400 described in the embodiment of the third aspect may be integrated into the processor 501, and the label printing data generation method described in the embodiment of the first to second aspects is implemented, for example, the processor 501 may be configured to: acquiring 1 st information, the 1 st information being composed of a plurality of items and values corresponding to the items; determining a target item as a print; extracting a value corresponding to the target item from the 1 st information as an output value for printing; and generating print data including the extracted output value.
In some embodiments, reference may also be made to the embodiments of the first aspect to the second aspect in the implementation of the processor 501, and details are not described here.
In another embodiment, the label printing data generating apparatus 400 according to the embodiment of the third aspect may be configured separately from the processor 501, for example, the label printing data generating apparatus 400 may be configured as a chip connected to the processor 501, and the function of the label printing data generating apparatus 400 is realized by the control of the processor 501.
It is noted that the label-printing-data generating device 500 may also include a display 505 and an I/O device 504, or not necessarily all of the components shown in fig. 5; in addition, the label printing data generating apparatus 500 may further include a component not shown in fig. 5, which may refer to the related art, for example, when the label printing data generating apparatus 500 is a printer, the apparatus may further include a printing portion (not shown), and the like, which is not illustrated here.
In the present embodiment, the processor 501, also sometimes referred to as a controller or operational control, may comprise a microprocessor or other processor device and/or logic device, and the processor 501 receives input and controls the operation of the various components of the label print data generating apparatus 500.
In the present embodiment, the memory 502 may be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable devices. Various information may be stored, and programs for executing the information may be stored. And the processor 501 may execute the program stored in the memory 502 to realize information storage or processing, or the like. The functions of other parts are similar to the prior art and are not described in detail here. The various components of the data processing device 500 may be implemented in dedicated hardware, firmware, software, or combinations thereof, without departing from the scope of the present application.
An embodiment of the present application provides a label printing data generating system, fig. 6 is a schematic diagram of the system, and as shown in fig. 6, the system at least includes a label printing data generating device 500, and the system may further include: the printer 601 (for example, when the label printing data generating device 500 is not a printer, the system may include a printer, and when the label printing data generating device 500 is a printer, the system may not include a printer), where an embodiment of the printer 601 may refer to an existing printer capable of printing a label, and details thereof are not described here.
In some embodiments, various types of information, such as the 1 st information, the 2 nd information, the 3 rd information, the label and the corresponding Result variable, the type parameter corresponding to each variable, and the like, may be preset in the label print data generation apparatus 500 and stored in the database in the memory of the generation apparatus 500, and the processor of the label print data generation apparatus 500 obtains the 1 st information for the product to be produced, the 1 st information being composed of a plurality of items and values corresponding to the items; determining a target item as a print; extracting a value corresponding to the target item from the 1 st information as an output value for printing; and generates print data including the extracted output value, optionally, the label print data generating device 500 (e.g., a memory) may also be pre-installed with label printing software (program) and execute the label printing software (program) under the control of a processor, wherein the label printing software (program) receives the print data generated by the processor of the label print data generating device 500, and notifies the printer 601 of label printing on a corresponding label medium.
An embodiment of the present application also provides a computer-readable program, wherein when the program is executed in label print data generation, the program causes the label print data generation to execute the label print data generation method according to the first to second aspects of the embodiment.
An embodiment of the present application further provides a storage medium storing a computer-readable program, where the computer-readable program causes a label print data generation apparatus to execute the label print data generation method according to the first aspect to the second aspect of the embodiment.
As is clear from the above-described embodiment, since the output value for printing is extracted from the file of the production plan or the like and can be created as the print data, the problem of occurrence of a print error can be avoided, the burden on the operator can be reduced, and the labor cost can be reduced.
The label printing data generating apparatus described in connection with the embodiments of the present application may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. For example, one or more of the functional block diagrams and/or one or more combinations of the functional block diagrams illustrated in fig. 4-5 may correspond to individual software modules of a computer program flow or individual hardware modules. These software modules may correspond to the steps shown in fig. 1 and 3, respectively. These hardware modules may be implemented, for example, by solidifying these software modules using a Field Programmable Gate Array (FPGA).
A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. A storage medium may be coupled to the processor such that the processor can read information from, and write information to, the storage medium; or the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The software module may be stored in the memory of the label print data generating apparatus or in a memory card that can be inserted into the label print data generating apparatus.
One or more of the functional block diagrams and/or one or more combinations of the functional block diagrams described with respect to fig. 4-5 may be implemented as a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any suitable combination thereof designed to perform the functions described herein. One or more of the functional block diagrams and/or one or more combinations of the functional block diagrams described with respect to fig. 4-5 may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP communication, or any other such configuration.
The present application has been described in conjunction with specific embodiments, but it should be understood by those skilled in the art that these descriptions are intended to be illustrative, and not limiting. Various modifications and adaptations of the present application may occur to those skilled in the art based on the spirit and principles of the application and are within the scope of the application.

Claims (10)

1. A label print data generating method that generates print data for printing on a label, characterized by comprising:
acquiring 1 st information, the 1 st information being composed of a plurality of items and values corresponding to the items;
determining a target item as a print;
extracting a value corresponding to the target item from the 1 st information as an output value for printing; and
generating print data including the extracted output value.
2. The method of claim 1,
in the case where there are at least two target items, the print data is generated by combining at least two values corresponding to the at least two target items as output values for printing.
3. The method of claim 1 or 2, wherein extracting a value corresponding to the target item comprises: and extracting one value of at least two values under the condition that at least two values corresponding to the determined target item exist.
4. The method of claim 1, further comprising:
generating a warning notice when the determined target item has an error or is insufficient.
5. The method of claim 1,
and when the determined target item has errors or is insufficient, generating the printing data in a mode of not extracting a value corresponding to the target item from the 1 st information or generating the printing data according to a preset mode.
6. The method of claim 1, wherein the plurality of items comprises at least: product identification and production volume.
7. The method of claim 1, wherein determining the target item as a print comprises:
determining a label template according to the product type and the 2 nd information, wherein the 2 nd information is the corresponding relation information of the product type and the label template type;
and determining the target item according to the determined label template and the 3 rd information, wherein the 3 rd information is the corresponding relation information of the label template and the printing item contained in the label template.
8. A label print data generating apparatus that generates print data for printing on a label, the apparatus comprising:
an acquisition unit configured to acquire 1 st information, the 1 st information being composed of a plurality of items and values corresponding to the items;
a determination section for determining a target item as a print;
an extraction section for extracting a value corresponding to the target item from the 1 st information as an output value for printing; and
a generating section for generating print data including the extracted output value.
9. The apparatus of claim 8,
in the case where there are at least two identified target items, the generating section generates the print data by combining at least two values corresponding to the at least two target items as output values for printing.
10. The apparatus according to claim 8 or 9, wherein the extracting section extracts one of at least two values in a case where the determined values corresponding to the target item are at least two.
CN202110302654.XA 2021-03-22 2021-03-22 Label printing data generation method and device Pending CN115107381A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110302654.XA CN115107381A (en) 2021-03-22 2021-03-22 Label printing data generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110302654.XA CN115107381A (en) 2021-03-22 2021-03-22 Label printing data generation method and device

Publications (1)

Publication Number Publication Date
CN115107381A true CN115107381A (en) 2022-09-27

Family

ID=83323651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110302654.XA Pending CN115107381A (en) 2021-03-22 2021-03-22 Label printing data generation method and device

Country Status (1)

Country Link
CN (1) CN115107381A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117032602A (en) * 2023-10-10 2023-11-10 海通安恒科技股份有限公司 Printing method and system for rapidly realizing label field mapping and label rule configuration

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117032602A (en) * 2023-10-10 2023-11-10 海通安恒科技股份有限公司 Printing method and system for rapidly realizing label field mapping and label rule configuration
CN117032602B (en) * 2023-10-10 2024-01-26 海通安恒科技股份有限公司 Printing method and system for rapidly realizing label field mapping and label rule configuration

Similar Documents

Publication Publication Date Title
US20210073531A1 (en) Multi-page document recognition in document capture
CN102591596A (en) Information processing equipment, and information processing method
US9286526B1 (en) Cohort-based learning from user edits
CN108334484B (en) Data entry method and device
CN113434674A (en) Data analysis method and device, electronic equipment and readable storage medium
CN112036295B (en) Bill image processing method and device, storage medium and electronic equipment
CN108710636B (en) Medical record screening method, terminal equipment and computer readable storage medium
CN112860905A (en) Text information extraction method, device and equipment and readable storage medium
CN112686307A (en) Method, device and storage medium for obtaining invoice based on artificial intelligence
CN115107381A (en) Label printing data generation method and device
CN109002425B (en) Method for acquiring upstream and downstream relations of enterprise, terminal device and medium
CN103514670B (en) Tax control inventory Antiforge system and method
CN116562247A (en) Electronic form content generation method, electronic form content generation device and computer equipment
CN116052848A (en) Data coding method and system for medical imaging quality control
CN111667214B (en) Goods information acquisition method and device based on two-dimensional code and electronic equipment
US20100023517A1 (en) Method and system for extracting data-points from a data file
CN114861614A (en) Method and device for filling data, electronic equipment and medium
CN112434997A (en) Date generation device, control method, and non-transitory computer-readable medium
CN112287828A (en) Financial statement generation method and device based on machine learning
CN112149402A (en) Document comparison method and device, electronic equipment and computer-readable storage medium
JP2007087021A (en) Electronic documentation device for paper document, electronic documentation method for paper document, and electronic documentation program for paper document
CN109446055A (en) Print routine test method, device, computer equipment and storage medium
CN115062584A (en) Document style generation method and device and electronic equipment
JP7110723B2 (en) Data conversion device, image processing device and program
CN114186536A (en) Method, system and storage medium for automatic analysis and generation of data records

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