Label printing data generation method and apparatus
The method and apparatus for generating print data by extracting output values from production planning documents solve the problems of labor costs and errors in label printing, and achieve efficient print data generation.
Patent Information
- Application Number
- CN202110302654.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-22
- Publication Date
- 2026-02-13
- Estimated Expiration
- 2041-03-22
AI Technical Summary
In existing technologies, the separate operations of multiple personnel can easily lead to errors in label printing, increasing labor costs and burdens.
The invention relates to a method and apparatus for generating print data by extracting output values from documents such as production plans, including obtaining and determining target items, extracting corresponding values, and generating print data.
This avoids printing errors, reduces the burden on operators, and lowers labor costs.
Smart Images

Figure CN115107381B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to a label print data generation technique. BACKGROUND
[0002] In the past technique, in order to print a plurality of labels, a plurality of operators are required to perform the printing of the labels. See, for example, Patent Literature 1 Japanese Patent Application Laid-Open No. 2005-145590. SUMMARY
[0003] In the past technique, since a plurality of operators perform the operation individually, there is a possibility that a printing error or the like occurs.
[0004] Embodiments of the present application provide a label print data generation method and apparatus, which can avoid the occurrence of a printing error and reduce the burden on the operator.
[0005] 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:
[0006] an acquisition section that acquires first information constituted by a plurality of items and values corresponding to the items;
[0007] a determination section that determines a target item as a target of printing;
[0008] an extraction section that extracts a value corresponding to the target item from the first information as an output value for printing; and
[0009] a generation section that generates print data including the extracted output value.
[0010] 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:
[0011] acquiring first information constituted by a plurality of items and values corresponding to the items;
[0012] determining a target item as a target of printing;
[0013] extracting a value corresponding to the target item from the first information as an output value for printing; and
[0014] generating print data including the extracted output value.
[0015] Embodiments of the present application have the advantageous effect that an output value for printing is extracted from a document such as a production plan, and print data can be created, so that a printing error can be avoided and the burden on the operator can be reduced.
[0016] The particular implementations of the application described in detail herein are illustrative only and not intended to limit the scope of the application as defined by the appended claims. For the purpose of explanation, specific details are set forth in order to provide a thorough understanding of the implementation. It will be apparent to one skilled in the art that implementations of the application can be practiced without these specific details. In other instances, well known methods, procedures, components, and circuits have not been described in detail so as not to unnecessarily obscure aspects of the implementations.
[0017] Features described and / or illustrated with respect to one implementation can be used in one or more other implementations in the same or similar manner, in combination with or in place of features in other implementations, or in combination with or in place of a method, procedure, component, and / or circuit described and / or illustrated with respect to another implementation.
[0018] It is emphasized that the term "comprises / comprising" when used in this specification 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, components, or groups thereof. BRIEF DESCRIPTION OF DRAWINGS
[0019] The accompanying drawings are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the principles of the application, wherein like reference numerals refer to like elements throughout.
[0020] In the drawings:
[0021] Figure 1 is a schematic diagram of a label printing data generation method in an embodiment of the application;
[0022] Figure 2 is a schematic diagram of a label structure in an embodiment of the application;
[0023] Figure 3 is a schematic diagram of a method of extracting one value in a range in an embodiment of the application;
[0024] Figure 4 is a schematic diagram of a label printing data generation apparatus structure in an embodiment of the application;
[0025] Figure 5 is a schematic diagram of a label printing data generation device structure in an embodiment of the application;
[0026] Figure 6 is a schematic diagram of a label printing data generation system structure in an embodiment of the application. DETAILED DESCRIPTION
[0027] The foregoing and other features of the present application will become apparent to those skilled in the art upon consideration of the following description of the application taken in conjunction with the accompanying drawings. In the drawings, specific embodiments of the application are disclosed in detail. As will be apparent, however, the application is not limited to the embodiments described, but instead, includes all modifications, variations, and equivalents that fall within the scope of the appended claims.
[0028] In the embodiments of the present application, the terms "first", "second", etc. are used to distinguish different elements from the point of view, but do not indicate the spatial arrangement or time sequence of the elements, and the elements should not be limited by these terms. The term "and / or" includes any one and all combinations of the associated listed terms. The terms "include", "comprise", "have" and the like mean the presence of the stated features, elements, elements or components, but do not exclude the presence or addition of one or more other features, elements, elements or components.
[0029] At present, in the factory producing various equipment / parts, in order to facilitate management, a label with various related information will be attached to the mass-produced equipment / parts. In order to print such a label, an operator needs to open the label file one by one, enter the related information in the label file, and then print. Since the printing quantity is large, multiple operators need to be configured, so that printing errors are prone to occur, and the labor cost is high.
[0030] The embodiments of the present application can avoid the problem of printing errors by extracting the output value for printing from the file of production plan, etc., and can make the printing data, thereby reducing the burden of the operator and reducing the labor cost.
[0031] The following is described in conjunction with the embodiments.
[0032] Embodiments of the first aspect
[0033] The embodiments of the first aspect of the present application provide a label printing data generation method for generating printing data for printing on a label, Figure 1 is a schematic diagram of the label printing data generation method of the embodiments of the present application, as Figure 1 shown, the method comprises:
[0034] 101, obtaining first information, the first information is composed of a plurality of items and values corresponding to the items;
[0035] 102, determining a target item as a printing target;
[0036] 103, extracting the value corresponding to the target item from the first information as an output value for printing;
[0037] 104, generating print data including the extracted output value.
[0038] It is to be noted that the above-mentioned Figure 1 The embodiments of the present application are only illustrative but not limiting. For example, the execution order between the operations can be adjusted as appropriate, and some operations can be added or removed. Those skilled in the art can make appropriate modifications based on the above description, and the modifications are not limited to the above-mentioned Figure 1
[0039] In some embodiments, the first information is constituted by a plurality of items and values corresponding to the items, the first information can be a production plan prepared before production of products, the production plan stores product identification (Material) and production quantity (QTY) of products intended to be produced, and can further include at least one of product description, production date, and serial number (S / N), the plurality of items in the first information correspond to the product identification and production quantity in the production plan, and can further include at least one of the product description, production date, and serial number. When the item is the product identification, the value corresponding to the item (i.e., the value of the product identification) is one, which is used to uniquely identify the product type, and the value can be constituted by a plurality of digits; when the item is the product description, the value corresponding to the item (i.e., the value of the product description) is one, which is used to supplement the product, and the value can be a string constituted by digits and / or letters and / or symbols; when the item is the production quantity, the value corresponding to the item (i.e., the value corresponding to the production quantity) is one, which is used to indicate the number of products produced, and the value can be constituted by a plurality of digits; when the item is the production date, the value corresponding to the item (i.e., the value corresponding to the production date) is one, which is used to indicate the production date of the product, and the value can be a string constituted by digits and symbols or digits and characters; when the item is the 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 can be a range (which can be indicated by the upper and lower limits of the value), which is used to indicate the production serial number of the product, and the value can be a string constituted by digits and / or letters and / or symbols.
[0040] In some embodiments, the first information (e.g., production plan) can be represented as a table with multiple items and values corresponding to the items, each column of the table representing an item (each row can also represent an item, which is not limited in the present application). Table 1 is a schematic table of the first information, as shown in Table 1, the first information includes five item types, such as product identification, product description, production quantity, production date, and serial number, and the values corresponding to each item are 46471514, 823C nOEL 230, 176, 2018 / 7 / 9, AL87017878A0-AL87018053A0, which are only examples and are not limited in the embodiments of the present application.
[0041] Table 1
[0042]
[0043] The items and values in the above first information are only examples and are not limited in the embodiments of the present application, the items in the first information are not limited to the above examples, and can also include other items, and the values corresponding to the above items are not limited to the above examples in terms of quantity and representation, which will not be listed one by one here. The first information can be stored in an Excel file (in a database), but this is not limited in the present application.
[0044] In some embodiments, the above first information (e.g., production plan) can be first information of products intended to be produced from a production management system, but the embodiments of the present application are not limited thereto, for example, the first information can also be separately prepared by the producer before production, which will not be listed one by one here.
[0045] In some embodiments, the print data is formed on a label, wherein the label contains relevant information of the product, including variable information and fixed information, wherein the variable information is determined according to the first information, and the fixed information is unchangeable and does not need to be determined according to the first information, for example, the fixed information can also be pre-formed on the label or pre-stored in association with the label, which is not limited in the embodiments of the present application. Figure 2 A schematic diagram of a label is shown in FIG. 1, wherein the solid line box part belongs to the fixed information, and the dashed line box part belongs to the variable information. Figure 2
[0046] In some embodiments, in 102, the target items for printing can be determined according to the variable information; for example, the label to be printed is fixed, and the label contains three variable information of product identification, serial number, and production date, and the target items for printing are the items corresponding to the above variable information, i.e., the target items include product identification, serial number, and production date.
[0047] In some embodiments, for a product A to be produced, a plurality of types of labels need to be printed and attached to the product body, the outer package, the warranty, etc., that is, the labels to be printed are corresponding to the product to be produced (associated), rather than fixed, at this time, the label template can be determined according to the product type and the second information, and the target item can be determined according to the determined label template and the third information, wherein the second information is the corresponding relationship information of the product type and the label template type, and the third information is the corresponding relationship information of the label template and the printing item contained in the label template.
[0048] In some embodiments, the second information and the third information can be set in advance and stored in a database, wherein the second information can be information indicating the label template type that needs to be printed for each type of product, the second information records the corresponding relationship between the product type and the label template type, the third information can indicate the content contained in each type of label template, the third information records the corresponding relationship between the label template and the printing item contained in the label template, and the second information and the third information can be recorded in the label printing instruction. Optionally, the second information can also include the use of each label template, for example, the label template can be used on the product, or on the outer package of the product, or on the instruction manual of the product, etc., which will not be exemplified one by one here.
[0049] In some embodiments, the second information can be represented as a table composed of product types and label template types, and the third information can be represented as a table composed of label templates and printing items contained in the label templates, and the second information and the third information can be stored in an Excel file, but the present application is not limited thereto.
[0050] For example, in the second information, the label template corresponding to the product type of the product to be produced is found, so as to determine the label type and the quantity to be printed, and then for each label template found, the printing item in the label template is found in the third information, the changed information in the printing item is determined, and the three changed information is taken as the 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 second information, which is label a (attached to the product A) and label b (attached to the outer package of the product A), and then the printing item contained in the label a (product identification, serial number) and the printing item contained in the label b (product identification, production date) are found in the third information. The above printing item is the changed information, and the target item for printing corresponding to the above changed information is the item, that is, the target item of the label a includes two items of product identification and serial number, and the target item of the label b includes product identification and production date.
[0051] In some embodiments, in 103, the value corresponding to the target item is extracted from the first information, and the value corresponding to the target item is taken as the output value for printing; wherein a variable can be set for each variable information (or fixed information) in the label template, and the value corresponding to each target item in the first information is automatically read through the variable. The variables are described below.
[0052] Variable SN: extract the item-serial number and the corresponding value in the first information (for example, the column where the serial number in Table 1 is located);
[0053] The data pattern of the extracted value (variable value) of the variable can be composed of the upper and lower limits of the range and the connection symbol (“-” or “~”), wherein the upper and lower limits of the range are composed of letters and numbers (and can also have symbols) (excluding spaces), the upper and lower limits have the same format, the upper and lower limits are connected by the connection symbol, for example, the upper limit is the end serial number, the lower limit is the start serial number, the start serial number and the end serial number have the same format, the start serial number and the end serial number are connected by “-”, and the start serial number and the end serial number include letter intervals and / or number intervals (the letter intervals and / or number intervals can have one or more, and at least one variable interval). For example, “AL87018656A2-AL87018703A2”, or “49F2-116333-49F2-116380”, or “C71T07803583-C71T07803638”;
[0054] Variable Print Count: extract the item-production quantity and the corresponding value in the first information (for example, the column where the production quantity in Table 1 is located);
[0055] The data type of the extracted value (variable value) of the variable is composed of numbers;
[0056] Variable Desc: extract the item-product description and the corresponding value in the first information (for example, the column where the product description in Table 1 is located);
[0057] The data type of the extracted value (variable value) of the variable is composed of numbers, letters, and symbols (and can also have spaces);
[0058] Variable PS date: extract the item-production date and the corresponding value in the first information (for example, the column where the production date in Table 1 is located);
[0059] The data type of the extracted value (variable value) of the variable is composed of numbers and symbols;
[0060] Variable Mat ID: extract the item-product identification and the corresponding value in the first information (for example, the column where the product identification in Table 1 is located);
[0061] The data type of the value extracted from the variable (variable value) is composed of numbers;
[0062] Variable Serial No: generates a serial number according to the range calculation result of variable SN1;
[0063] The data type of the value extracted from the variable is the same as the upper limit or lower limit format of the aforementioned range;
[0064] The variable set for each changed information is described above, and optionally, a variable can also be set for fixed information, for example:
[0065] Variable Colon: outputs a fixed character (or other fixed string, which will not be listed here)
[0066] The type of each variable (variable corresponding operation) can include:
[0067] 1) Read the value corresponding to the item in the first information (OrderJobData), and perform the same output for all labels corresponding to this type of label template. When outputting, output the item name (string) and the value corresponding to the item respectively;
[0068] 2) Generate fixed information (Const), and output the same fixed information string for all labels corresponding to this type of label template, for example, the string is ":" or the manufacturer's name, etc.;
[0069] 3) Generate a value corresponding to each label according to the range of the value (Sn), generate a serial number according to the serial number range, generate a serial number according to each label (number), and output (the format is the same as the upper limit or lower limit format of the aforementioned range), for example, in the case of the serial number range AL87018656A2-AL87018703A2, generate serial numbers 1 to 48, and generate the following serial numbers:
[0070] First: AL87018656A2
[0071] Second: AL87018657A2 ...
[0073] 48th: AL87018703A2
[0074] Table 2 below is a definition table of each variable described above, which shows each variable and the type corresponding to the variable, and an explanation.
[0075] Table 2
[0076] Variable Name Variable Type Description 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 :
[0077] The above Table 2 can be set in advance and stored in a database.
[0078] In addition, in order to extract the value corresponding to each item from the first information flexibly, a number can be added to each variable, wherein 0 represents obtaining all of the value (the cell where the value is located); 1 represents obtaining the first row of the value (the cell where the value is located); 2 represents obtaining the second row of the value (the cell where the value is located); and so on. Here, no further examples are given.
[0079] As described above, the above variable is set for each variable information / fixed information in the label template, and therefore, the above third information for one label template can be represented as shown in Table 3 below:
[0080] Table 3
[0081] Print Count Variable Type Description SN1 OrderJobData S / N SN2 OrderJobData S / N Colon Const : Print Count OrderJobData QTY MatID OrderJobData Material
[0082] In some embodiments, after determining the product to be produced in 102 and 103, the label template used by the product can be determined according to the second information, for each label template, the target item in the label template is obtained as a target item according to the third information (for example, the variable name set in the third information as shown in Table 3 is obtained, and the operation corresponding to each variable can be determined), and the value corresponding to the target item is extracted from the first information as an output value for printing (for example, the variable value corresponding to each variable name is extracted in the first information as shown in Table 1 according to the variable and the corresponding operation), wherein, in the case that the value corresponding to the target item is one, the one value is extracted as the output value for printing; in the case that the value corresponding to the target item is at least two, one of the at least two values is extracted as the output value for printing, for example, in the case that the value corresponding to the target item (serial number) is a serial number range, one serial number in the range is extracted as the output value for printing.
[0083] The following takes the serial number as an example to illustrate how to extract one value from a range (i.e., how to extract one serial number from a serial number range).
[0084] Figure 3 is a schematic diagram of the extraction method (which can also be regarded as a processing method for the Serial No variable), as shown in Figure 3 the method comprises:
[0085] 301, determining that the value corresponding to the target item is a range;
[0086] For example, the value corresponding to the target item serial number is a range, such as
[0087] AL87017878A0-AL87018053A0;
[0088] 302, determine the upper and lower limits of the range;
[0089] For example, the upper and lower limits are the start sequence number and the end sequence number, which are AL87017878A0 and AL87018053A0 respectively;
[0090] 303, analyze the upper and lower limits and split them into numerical parts and non-numerical parts;
[0091] For example, the start sequence number and the end sequence number are split into 4 intervals:
[0092]
[0093] 304, analyze the split results and extract the change interval;
[0094] For example, the change interval is 87017878, 87088053, i.e. the 2nd interval is the change interval;
[0095] 305, calculate the nth number according to the change interval, where n is the sequence number, which can also be regarded as the label sequence number (n is an integer greater than 1);
[0096] For example, the 2nd interval of the start sequence number is taken as the start number, and further added with the information n-1 representing the sequence order to obtain the nth number 87017878+n-1, for example, the 10th (n=10) number is 87017887;
[0097] 306, generate the nth value as the one value extracted from the range according to the nth number;
[0098] For example, by concatenating the nth number corresponding to the 2nd interval and the intervals (1st interval AL, 3rd interval A, 4th interval 0) before and after it that do not change, the nth sequence number is generated as the one value, for example, the sequence number of the 10th label is AL87017887A0, in other words, the 10th sequence number is extracted from the range as the one value, which is AL87017887A0.
[0099] In some embodiments, in 104, print data including the extracted output value is generated. Where the target item determined in 102 is 1, the value extracted from the 1 target item is taken as the output value for printing, and the print data including the output value is generated, and 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.
[0100] For example, the at least two target items are product identification, product description, serial number, the product identification variable value is extracted from the first information, the result is 4671514, the product description variable value is extracted from the first information, the result is 823CnOEL230, the serial number range is extracted from the first information, and a value is extracted from the range by using the method in Figure 3 , the result is AL8701XXXXA0 (XXXX is 7878+(n-1)), the extracted values are combined to generate the print data, for example, the print data generated on the nth label is 4671514 823CnOEL230AL8701XXXX (XXXX is 7878+(n-1)).
[0101] In some embodiments, when the label template further includes fixed information, the print data further includes the fixed information, for example, the label template includes the Colon variable, the Colon variable value is “:”, and the print data generated on the nth label further includes “:”.
[0102] In some embodiments, when the target items determined in 102 are incorrect or insufficient, a warning notification is generated, wherein when the print items in the label template are not included in or do not match the items in the first information, it indicates that the determined target items are incorrect or insufficient, for example, when the print items in the label template further include the quality inspector, but the first information does not include the quality inspector as a target item, a warning notification is generated. In addition, in order to avoid printing errors, when the target items are incorrect or insufficient, the print data can be generated in a manner that the value corresponding to the target item is not extracted from the first information, or the print data is generated in a predetermined manner to achieve the generation of the print data in a correct manner, and the predetermined manner can be to default the value corresponding to the incorrect or insufficient target item as “none”. For example, when the print items in the label template further include the quality inspector, but the first information does not include the quality inspector as a target item, the value corresponding to the quality inspector is not extracted from the first information, and the corresponding value is used as the output value for printing, i.e., the quality inspector is not included in the print data, or the value corresponding to the quality inspector as a target item is “none” as the output value for printing, and hereinafter, examples are not repeated one by one.
[0103] In some embodiments, the method can further include (not shown, optional): printing the label using a printer.
[0104] In some embodiments, the aforementioned third information, in addition to recording the correspondence between the label template and the print items contained in the label template, can also record the correspondence between the label template, the print items contained in the label template, and the print positions of each print item, which can be represented by coordinate values on the label printing medium. The print data includes not only the output values of each target item (and fixed information), but also the print positions of each output value (and fixed information).
[0105] In some embodiments, the layout of the aforementioned print data on the label can be determined by the label printing software. For example, the aforementioned print data can be received by using existing label printing software, and the label printing software can select a label template to be printed when printing the label, where the layout of each output value in the print data on the label template is predefined. When printing the label, the print data can be printed on the label medium according to the predefined layout. In addition, the label printing software can also set the number of printed labels and the like when printing. For details, please refer to the prior art, which will not be described here.
[0106] As can be seen from the above embodiments, the output values for printing are extracted from the files such as production plans, and the print data can be generated, thereby avoiding printing errors, reducing the burden on the operators, and reducing labor costs.
[0107] Embodiments of the second aspect
[0108] The embodiments of the second aspect of the present application provide a label printing data generation method for generating print data for printing on a label. The difference between the embodiments of the second aspect and the embodiments of the first aspect is that the embodiments of the second aspect further newly set a variable Result for the label, and in 102, determining the target items for printing includes: determining the print items associated with the variable Result as the target items according to the label template. For the same parts as the embodiments of the first aspect, they will not be described here.
[0109] First, the variable Result will be described below.
[0110] The Result variable is a combination of the outputs of at least two variables in the embodiments of the first aspect, for example, a combination of the outputs of the MatID variable, the Colon variable, and the Serial No variable, or a combination of the outputs of the Mat ID variable, the Desc variable, the Colon variable, and the Serial No variable. Here, they will not be exemplified one by one.
[0111] In an embodiment of the first aspect, after the product to be produced is determined, the label template used by the product can be determined according to the second information, and for each label template, the print item in the label template is taken as the target item according to the third information (for example, the variable name set in the third information shown in Table 3 is taken, and the operation corresponding to each variable can be determined). The difference between this embodiment and the embodiment of the first aspect is that in this embodiment, a Result variable is defined for each label template in advance, and therefore, for each label template, the target item does not need to be taken by taking each set variable name in the third information, but the print item (variable name) associated with the variable Result can be determined as the target item according to the Result variable.
[0112] In some embodiments, the data form of the Result variable is: variable name 1, variable name 2,..., variable name k,..., where the variable name 1, 2,..., k (k is an integer greater than 1 and less than or equal to the number of items) in the Result variable corresponding to the one label are combined, i.e., the variable name associated with the variable Result. Each variable name in the Result variable can be defined in a table in the database in advance, and in addition, the Result variable defined for each label template can also be defined in a table in the database in advance. The embodiments of the present application are not limited in this way.
[0113] In some embodiments, the type of the variable (the operation corresponding to the variable) is: the output values (i.e., the variable values corresponding to each variable) extracted from each variable in the Result variable are associated, and the same output is performed on all labels corresponding to the label template.
[0114] For example, for the product A to be produced, the label template corresponding to the product A is found in the second information as label a (to be pasted on the product A), and the variable name defined for the label a is Result. The print item (variable name) associated with the variable Result can be taken as the target item in the database, for example, the Result variable is defined as Mat ID, Print Count, Desc, and S / N. Mat ID, Print Count, Desc, and S / N are determined as the target items, the Mat ID variable value is extracted from the first information, the result is 4671514, the Desc variable value is extracted from the first information, the result is 823C n OEL230, the Print Count variable value is extracted from the first information, the result is 176, the S / N variable value (a range) is extracted from the first information, and the variable values are associated to obtain the output value of the variable Result, and the output value of the variable Result is printed on the label a. Figure 3The method in the above embodiment extracts a value from the range, and the result is AL8701XXXXA0 (XXXX is 7878 + (n-1)), and the Result variable associates (combines) the variable values extracted by the above variables (output result) to generate print data, for example, the print data generated on the nth label is 4671514 823Cn OEL 230 AL8701XXXX (XXXX is 7878 + (n-1)).
[0115] In some embodiments, when the Result variable further includes the variable Colon, the variable value of the variable Colon in the print data is ":", and the print data generated on the nth label further includes ":".
[0116] As can be seen from the above embodiments, the output value for printing is extracted from the file of production plan and the like, and the print data can be generated, so that the problem of printing error can be avoided, the burden of the operator can be reduced, and the labor cost can be reduced. In addition, by defining the Result variable for the label, the print data can be generated more conveniently.
[0117] Embodiment of the third aspect
[0118] The embodiment of the third aspect of the present application provides a label print data generation device for generating print data for printing on a label. Since the principle of solving the problem of the device is similar to that of the embodiments of the first to second aspects, the specific implementation can refer to the embodiments of the first to second aspects, and the same content will not be repeated.
[0119] Figure 4 is a schematic diagram of the label print data generation device, as shown in Figure 4 The device includes:
[0120] The acquisition unit 401 is configured to acquire first information composed of a plurality of items and values corresponding to the items;
[0121] The determination unit 402 is configured to determine a target item as a target for printing;
[0122] The extraction unit 403 is configured to extract a value corresponding to the target item from the first information as an output value for printing; and
[0123] The generation unit 404 is configured to generate print data including the extracted output value.
[0124] In some embodiments, the implementation of the acquisition unit 401, the determination unit 402, the extraction unit 403, and the generation unit 404 can refer to 101-104 of the first aspect or the second aspect, and the repeated parts will not be repeated.
[0125] In some embodiments, the multiple items in the first information include: product identification and production quantity; optionally, the multiple items may also include at least one of product description, production date, and serial number.
[0126] In some embodiments, the determining unit 402 determines a label template based on the product type and second information, the second information being correspondence information between product type and label template type; and determines the target item based on the determined label template and third information, the third information being correspondence information between the label template and the printing items contained in the label template.
[0127] In some embodiments, when there are at least two values corresponding to the target item, the extraction unit 403 extracts one of the at least two values.
[0128] In some embodiments, when there are at least two target items, the generation unit 404 generates the print data by combining at least two values corresponding to the at least two target items as output values for printing.
[0129] In some embodiments, the device may further include (not shown, optional):
[0130] The alarm unit is used to generate a warning notification when the determination unit 402 determines that there is an error or a shortage of target items.
[0131] In some embodiments, when there is an error in the target item or the target item is insufficient, the extraction unit 403 does not extract the value corresponding to the target item from the first information, and the generation unit 404 generates the print data in a manner that does not extract the value corresponding to the target item from the first information, or generates the print data in a predetermined manner.
[0132] This application also provides a label printing data generation device, which may be, for example, a computer, server, workstation, laptop computer, smartphone, printer, etc.; however, this application is not limited to this.
[0133] Figure 5 This is a schematic diagram of a label printing data generation device according to an embodiment of this application, such as... Figure 5 As shown, the label printing data generation device 500 of this application embodiment may include: at least one interface ( Figure 5The label print data generation device 500 includes all the components shown in FIG. 5, and further includes a processor (for example, a central processing unit (CPU)) 501, a memory 502. The memory 502 is coupled to the processor 501. The memory 502 can store various types of information stored in the aforementioned database, such as the first information, the second information, the third information, and the like. In addition, the memory 502 stores a label print data generation program 503, and executes the program 503 under the control of the processor 501.
[0134] In one embodiment, the function of the label print data generation device 400 described in the embodiments of the third aspect can be integrated into the processor 501 to implement the label print data generation method described in the embodiments of the first to second aspects. For example, the processor 501 can be configured to: acquire the first information constituted by a plurality of items and values corresponding to the items; determine a target item as a printing target; extract a value corresponding to the target item from the first information as an output value for printing; and generate print data including the extracted output value.
[0135] In some embodiments, the implementation of the processor 501 can also refer to the embodiments of the first to second aspects, which will not be described here.
[0136] In another embodiment, the label print data generation device 400 described in the embodiments of the third aspect can be configured separately from the processor 501. For example, the label print data generation device 400 can be configured as a chip connected to the processor 501 to implement the function of the label print data generation device 400 under the control of the processor 501.
[0137] It is worth noting that the label print data generation device 500 can also include a display 505 and an I / O device 504, or can not necessarily include Figure 5 all the components shown in FIG. 5. In addition, the label print data generation device 500 can also include Figure 5 components not shown in FIG. 5, which can refer to related technologies. For example, when the label print data generation device 500 is a printer, the device can also include a printing unit (not shown), and the like, which will not be exemplified one by one here.
[0138] In the embodiments of the present application, the processor 501 is also sometimes referred to as a controller or an operation control, which can include a microprocessor or other processor device and / or a logic device. The processor 501 receives input and controls the operation of various components of the label print data generation device 500.
[0139] In the embodiments of the present application, the memory 502 may, for example, be one or more of a cache, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. Various information may be stored, and in addition, programs related to the information may be stored. The processor 501 may execute the programs stored in the memory 502 to achieve information storage or processing, and the like. The functions of other components are similar to the prior art, and will not be described here. The components of the data processing device 500 may be implemented by dedicated hardware, firmware, software, or a combination thereof, without departing from the scope of the present application.
[0140] The embodiments of the present application provide a label printing data generation system, Figure 6 is a schematic diagram of the system, as Figure 6 indicated, the system at least includes a label printing data generation device 500, and the system may further include a printer 601 (for example, when the label printing data generation device 500 is not a printer, the system may include a printer, and when the label printing data generation device 500 is a printer, the system may not include a printer), wherein the embodiments of the printer 601 may refer to the prior art printers capable of printing labels, and will not be described here.
[0141] In some embodiments, various types of information may be pre-set in the label printing data generation device 500, for example, the first information, the second information, the third information, labels, and corresponding Result variables, type parameters corresponding to each variable, and the like, and the above information is stored in a database and saved in the memory of the generation device 500. The processor of the label printing data generation device 500 obtains the first information for the product to be produced, the first information is composed of a plurality of items and values corresponding to the items; determines a target item as a printing target; extracts a value corresponding to the target item from the first information as an output value for printing; and generates printing data including the extracted output value. Optionally, the label printing data generation device 500 (for example, the memory) may also be pre-installed with label printing software (programs), and execute the label printing software (programs) under the control of the processor, wherein the label printing software (programs) receives the printing data generated by the processor of the label printing data generation device 500, and notifies the printer 601 to perform label printing on the corresponding label medium.
[0142] The embodiments of the present application also provide a computer readable program, wherein when the program is executed in the label printing data generation, the program causes the label printing data generation to execute the label printing data generation method described in the first to second aspects of the embodiments.
[0143] The embodiment of the present application also provides a storage medium storing a computer readable program, wherein the computer readable program causes a label printing data generation device to execute the label printing data generation method according to the first to second aspects of the embodiment.
[0144] As can be seen from the above embodiment, the output value for printing is extracted from a file such as a production plan, and the label printing data can be generated, so that the problem of printing error can be avoided, the burden of the operator can be reduced, and the labor cost can be reduced.
[0145] The label printing data generation apparatus described in combination with the embodiment of the present application can be directly embodied as hardware, a software module executed by a processor, or a combination of both. For example, Figure 4-5 One or more of the functional blocks in the functional block diagram shown in FIG. 3 and / or a combination of one or more of the functional blocks can correspond to each software module of the computer program flow, or can correspond to each hardware module. The software modules can correspond to each step shown in FIG. 3, respectively. The hardware modules can be implemented by, for example, fixing the software modules using a field programmable gate array (FPGA). Figure 1
[0146] The software modules can be located in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a mobile disk, a CD-ROM, or any other form of storage medium known in the art. One storage medium can be coupled to the processor, so that the processor can read information from the storage medium and write information to the storage medium; or the storage medium can be an integral part of the processor. The processor and the storage medium can be located in an ASIC. The software modules can be stored in a memory of the label printing data generation apparatus, or in a memory card that can be inserted into the label printing data generation apparatus.
[0147] One or more of the functional blocks in the functional block diagram described with reference to Figure 4-5 One or more of the functional blocks in the functional block diagram described with reference to Figure 4-5 One or more of the functional blocks in the functional block diagram described with reference to
[0148] The present application is described above with reference to specific embodiments. Those skilled in the art will understand that the description is illustrative only and is not intended to be limiting on the scope of the present application. Various modifications and changes can be made by those skilled in the art which fall within the scope of the present application as defined by the appended claims.
Claims
1. A label print data generation method of generating print data for printing on a label, characterized by, The method includes: acquiring first information constituted by a plurality of items and values corresponding to the items; determining a target item for printing; extracting a value corresponding to the target item from the first information as an output value for printing; and generating print data including the extracted output value; wherein the extraction of the value corresponding to the target item includes, in a case where the value corresponding to the target item determined has at least two values, extracting one of the at least two values, including: determining that the value corresponding to the target item is a range, determining an upper limit value and a lower limit value of the range, analyzing the upper limit value and the lower limit value, splitting the upper limit value and the lower limit value into a numerical part and a non-numerical part, analyzing the split result, extracting a variation interval of the numerical part, calculating an nth numerical value based on the variation interval, where n is a label serial number, generating an nth value based on the nth numerical value as one value extracted from the range.
2. The method according to claim 1, wherein in a case where the target item has at least two, 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, wherein, The method further includes: generating a warning notification in a case where the target item determined has an error or is insufficient.
4. The method according to claim 1, wherein in a case where the target item determined has an error or is insufficient, the print data is generated without extracting the value corresponding to the target item from the first information, or the print data is generated in a predetermined manner.
5. The method of claim 1, wherein, The plurality of items at least includes a product identification and a production amount.
6. The method of claim 1, wherein, The determination of the target item for printing includes: determining a label template based on a product type and second information, the second information being correspondence information of product types and label template types; determining the target item based on the label template determined and third information, the third information being correspondence information of label templates and print items included in the label templates.
7. A label print data generating apparatus which generates print data for printing on a label, characterized by The apparatus includes: an acquisition unit configured to acquire first information constituted by a plurality of items and values corresponding to the items; a determination unit configured to determine a target item for printing; an extraction unit configured to extract a value corresponding to the target item from the first information as an output value for printing; and a generation unit configured to generate print data including the extracted output value; wherein the extraction of the value corresponding to the target item includes, in a case where the value corresponding to the target item determined has at least two values, extracting one of the at least two values, including: determining that the value corresponding to the target item is a range, determining an upper limit value and a lower limit value of the range, analyzing the upper limit value and the lower limit value, splitting the upper limit value and the lower limit value into a numerical part and a non-numerical part, analyzing the split result, extracting a variation interval of the numerical part, calculating an nth numerical value based on the variation interval, where n is a label serial number, generating an nth value based on the nth numerical value as one value extracted from the range. The value corresponding to the target item is determined to be a range, an upper limit value and a lower limit value of the range are determined, the upper limit value and the lower limit value are analyzed, the upper limit value and the lower limit value are split into a numerical part and a non-numerical part, the split result is analyzed, a variation interval of the numerical part is extracted, an nth number is calculated according to the variation interval, where n is a label serial number, an nth value is generated according to the nth number, and the nth value is extracted as one value from the range.
8. The apparatus according to claim 7, wherein, In a case where there are at least two determined target items, the generation unit generates the print data by combining at least two values corresponding to the at least two target items as output values for printing.
Citation Information
Patent Citations
Label issuing system
JP2005145590A
Label data generation method and device
CN108596291A
Control device, print system, print device, print control method and program
US20130201499A1