CN109240626A - label printing method and system - Google Patents

label printing method and system Download PDF

Info

Publication number
CN109240626A
CN109240626A CN201811078282.1A CN201811078282A CN109240626A CN 109240626 A CN109240626 A CN 109240626A CN 201811078282 A CN201811078282 A CN 201811078282A CN 109240626 A CN109240626 A CN 109240626A
Authority
CN
China
Prior art keywords
mes
label
information
label printing
request
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
CN201811078282.1A
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.)
Beijing Apollo Ding Rong Solar Technology Co Ltd
Original Assignee
Beijing Apollo Ding Rong Solar Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Apollo Ding Rong Solar Technology Co Ltd filed Critical Beijing Apollo Ding Rong Solar Technology Co Ltd
Priority to CN201811078282.1A priority Critical patent/CN109240626A/en
Publication of CN109240626A publication Critical patent/CN109240626A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1204Improving or facilitating administration, e.g. print management resulting in reduced user or operator actions, e.g. presetting, automatic actions, using hardware token storing data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/121Facilitating exception or error detection and recovery, e.g. fault, media or consumables depleted
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management

Abstract

The present invention provides a kind of label printing method and systems, are related to label technique field, wherein the label printing method is applied to IPC computer, the product IDs sent first by receiving label printing apparatus;It is then based on product IDs and executes the corresponding label printing content of management system MES acquisition product IDs from production;Last abstract factory printing device print label prints content.Therefore, technical solution provided in an embodiment of the present invention, it interacts to obtain label printing content with the communication of MES by IPC computer, existing label printing method can be alleviated and there is a problem of that at high cost, low efficiency, reliability are low by artificial mode, it can reduce manpower and time cost, improve working efficiency, improve the reliability that production information is collected, artificial bring error is avoided simultaneously, is advantageously implemented automation.

Description

Label printing method and system
Technical field
The present invention relates to label technique fields, more particularly, to a kind of label printing method and system.
Background technique
In modern enterprise automatic assembly line process of producing product, label printing is an important module.
Production related data (such as test data) is mainly manually transferred to electricity by the label printing on production line at present On brain, then manually determine that label layout and label print content.Above-mentioned Label print method have the disadvantage in that by Then manual operation needs to occupy a large amount of manpower and time cost;Further, since uncertainty existing for manual operation, often Can often there be artificial maloperation, the reliability for causing information to be collected reduces.
To sum up, existing label printing method has that at high cost, low efficiency, reliability are low.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of label printing method and system, to alleviate in the prior art The low problem of existing at high cost, low efficiency, reliability.
In a first aspect, it is applied to IPC computer the embodiment of the invention provides a kind of label printing method, this method comprises: Receive the product IDs that label printing apparatus is sent;It is corresponding from production execution management system MES acquisition product IDs based on product IDs Label prints content;Abstract factory printing device print label prints content.
With reference to first aspect, the embodiment of the invention provides the first possible embodiments of first aspect, wherein should Method further include: obtain the corresponding label layout of product IDs from MES based on product IDs;Abstract factory printing device printing mark Label printing content, comprising: be based on the corresponding label layout of product IDs, abstract factory printing device print label printing in Hold.
The possible embodiment of with reference to first aspect the first, the embodiment of the invention provides second of first aspect Possible embodiment, wherein obtain the corresponding label layout of product IDs from MES based on product IDs, comprising: send out to MES The first request is sent, the first request is for obtaining label layout;Wherein, the first request includes: the first solicited message code, product ID, the first solicited message code are to be generated by IPC computer according to presupposed information create-rule;Receive the first feedback that MES is sent Information;First feedback information includes: the first reply message code and label layout information corresponding with product IDs, and first Reply message code is to be generated by MES according to presupposed information create-rule;First reply message code is with the first solicited message code Correspondingly;Based on label layout information, the corresponding label layout of product IDs is determined.
The possible embodiment of with reference to first aspect the first, the embodiment of the invention provides the third of first aspect Possible embodiment, wherein obtain the corresponding label of product IDs from MES based on product IDs and print content, comprising: sent out to MES The second request is sent, the second request is for obtaining label printing content;Wherein, the second request includes: the second solicited message code, product ID, label layout, the second solicited message code are to be generated by IPC computer according to presupposed information create-rule;Receive MES hair The second feedback information sent, wherein the second feedback information includes: in the corresponding label printing of the second reply message code, product IDs Hold;Second reply message code is to be generated by MES according to presupposed information create-rule;It extracts and is marked from the second feedback information Label printing content.
The third possible embodiment with reference to first aspect, the embodiment of the invention provides the 4th kind of first aspect Possible embodiment, wherein the second feedback information further includes the second feedback result, the second feedback result be positive feedback result or Negative-feedback result;When the second feedback result is positive feedback result, then label printing content is sent to label printing apparatus, so that Label printing apparatus is printed;When the second feedback result is negative feedback result, then label printing content is not in parameter Detection parameters in threshold range are marked.
The possible embodiment of second with reference to first aspect, the embodiment of the invention provides the 5th kind of first aspect Possible embodiment, wherein this method further include: obtain presupposed information create-rule;Wherein presupposed information create-rule packet Include information type create-rule, message identification create-rule, information group create-rule, sequence number create-rule;According to info class Type create-rule, message identification create-rule, information group create-rule, sequence number create-rule generate the first solicited message respectively Type, the first solicited message mark, the first solicited message group, the first request serial number;Wherein the first solicited message type is used for Indicate information flow direction;First solicited message is identified for indicating Meaning of Information;First solicited message group is for indicating treatment process Mark;First request serial number includes production date and the first request number, and the first request number is for identifying product Uniqueness;It is raw based on the first solicited message type, the first solicited message mark, the first solicited message group, the first request serial number At the first solicited message code;The first request is generated based on the first solicited message code and product IDs.
Second aspect, the embodiment of the present invention also provide a kind of label printing method, are applied to production and execute management system MES, this method comprises: receiving the second request that industrial personal computer IPC computer is sent, the second request is for obtaining label printing content; Wherein, the second request includes: the second solicited message code, product IDs, and the second solicited message code is by IPC computer according to presupposed information What create-rule generated;The second feedback information is generated according to the second request;Wherein, the second feedback information includes: the second answer letter It ceases the corresponding label of code, product IDs and prints content;Second reply message code is to be generated by MES according to presupposed information create-rule 's;The second feedback information is sent to IPC computer.
In conjunction with second aspect, the embodiment of the invention provides the first possible embodiments of second aspect, wherein should Method further include: receive the first request that IPC computer is sent, the first request is for obtaining label layout;Wherein, it first asks Asking includes: the first solicited message code, product IDs, and the first solicited message code is raw according to presupposed information create-rule by IPC computer At;The first feedback information is generated according to the first request;Wherein, the first feedback information include: the first reply message code and with The corresponding label layout information of product IDs, the first reply message code are to be generated by MES according to presupposed information create-rule 's;The first feedback information is sent to IPC computer.
In conjunction with second aspect, the embodiment of the invention provides second of possible embodiments of second aspect, wherein the Two feedback informations further include the second feedback result, this method further include: by label printing content detection parameters with it is corresponding Parameter threshold range is compared, to generate the second feedback result according to comparison result;When detection parameters are in parameter threshold model When enclosing interior, the second feedback result is positive feedback result;When detection parameters are not within the scope of parameter threshold, the second feedback result Be negative feedback result.
The third aspect, the embodiment of the invention provides a kind of label printing systems characterized by comprising label printing Equipment, IPC computer, production execute management system MES, and label printing apparatus is connected with IPC computer, and IPC computer and MES are communicated Connection;Product IDs are sent to IPC computer for obtaining product IDs by label printing apparatus;IPC computer is used to be based on product IDs Communication interaction is carried out with MES, to obtain label layout and label printing content;It will be in label layout and label printing Appearance is sent to label printing apparatus;Label printing apparatus is also used to receive the label layout of IPC computer transmission and label is beaten It prints content and carries out label printing.
The embodiment of the present invention bring it is following the utility model has the advantages that label printing method provided in an embodiment of the present invention and system, Wherein, the label printing method is applied to IPC computer, the product IDs sent first by receiving label printing apparatus;Then base Management system MES, which is executed, from production in product IDs obtains the corresponding label printing content of product IDs;Last abstract factory printing is set Standby print label prints content.Therefore, technical solution provided in an embodiment of the present invention is handed over by the communication of IPC computer and MES Mutually, label printing content is obtained, can alleviating existing label printing method, there are at high cost, efficiency by artificial mode Problem low, reliability is low can reduce manpower and time cost, improve working efficiency, while avoiding artificial bring error Greatly, reliability is improved, automation is advantageously implemented.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention are in specification, claims And specifically noted structure is achieved and obtained in attached drawing.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of first pass figure of label printing method provided in an embodiment of the present invention;
Fig. 2 is a kind of second flow chart of label printing method provided in an embodiment of the present invention;
Fig. 3 is the generation logic relation picture of presupposed information create-rule;
Fig. 4 is the flow chart of another label printing method provided in an embodiment of the present invention;
Fig. 5 is a kind of structure chart of label printing system provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Production related data (such as test data) is mainly manually transferred to electricity by the label printing on production line at present On brain, then manually determine that label layout and label print content.Above-mentioned Label print method have the disadvantage in that by Then manual operation needs to occupy a large amount of manpower and time cost;Further, since uncertainty existing for manual operation, often Can often there be artificial maloperation, the reliability for causing information to be collected reduces, i.e., there are at high cost, effects for existing label printing method The problem that rate is low, reliability is low is based on this, and a kind of label printing method provided in an embodiment of the present invention and system can be alleviated Existing label printing method has that at high cost, low efficiency, reliability are low by artificial mode, can reduce manpower And time cost, working efficiency is improved, improves the reliability that production information is collected, while avoiding artificial bring error, favorably It is automated in realizing.
For convenient for understanding the present embodiment, first to a kind of label printing method disclosed in the embodiment of the present invention into Row is discussed in detail.
Here the term referred in the present invention is briefly described first:
MES (Manufacturing Execution System), which is produced, executes management system, is a set of Facing to Manufacturing The production information management system of Workshop execution level.MES system can be provided for enterprise including Manufacturing Data Management, plan Scheduled production management, Production scheduling management, stock control, quality management, human resource management, work centre/equipment management, tool work Tubulature reason, purchasing management, cost management, project kanban system, production process control, bottom data integrated analysis, upper layer data The management modules such as integrated decomposition make a sturdy, reliable, comprehensive, feasible manufacture cooperating management platform for enterprise.
IPC (Industrial Personal Computer) i.e. industrial personal computer, also known as industrial computer, is a kind of reinforcing Enhanced personal computer, it can be used as industrial control unit (ICU) reliability service in industrial environment.
The embodiment of the invention provides a kind of label printing methods, can be applied to label printing field, are particularly suitable for certainly The label of dynamic metaplasia producing line (abbreviation transfer matic) prints field.Certain this method can be applicable to other and be related to label printing Industrial circle is executed by the corresponding IPC computer in corresponding field.
The embodiment of the present invention is mentioned for including the label printing system of MES, IPC computer and label printing apparatus below The label printing method of confession is described, and wherein MES is connect with IPC dataphone, and IPC computer is connected with label printing apparatus It connects, IPC computer is printed for abstract factory printing device;Here label printing apparatus can be laser marking machine or The printing devices such as label machine.
As shown in Figure 1, this method is executed by IPC computer, comprising the following steps:
Step S101, IPC computer receives the product IDs that label printing apparatus is sent;
Step S102, IPC computer is based on product IDs and beats from the corresponding label of production execution management system MES acquisition product IDs Print content;
Wherein, label printing content is corresponding with product IDs, and can be stored in advance in MES data library, with Convenient for MES acquisition.Above-mentioned label printing content includes the label layout and detection parameters of product, and detection parameters can be by Detection device detects acquisition in advance, and the detection parameters that will test by detection device are sent to IPC computer together with product IDs, By IPC computer by product IDs it is corresponding with detection parameters association;
It should be noted that the label layout for belonging to a collection of product of the same client is known, and deposit in advance In MES data library, the product IDs of this batch of product are corresponding with each product of production for storage, that is to say, that label prints lattice Formula is also associated with product IDs;The corresponding label layout of product IDs can be acquired by product IDs.
In one embodiment, IPC computer receives product IDs, carries out communication interaction based on the product IDs and MES, from The corresponding label printing content of the product IDs is acquired at MES;Specifically, IPC computer, which is based on product IDs, sends request to MES Content is printed to obtain label, MES receives the request and obtains pre-stored presupposed information generation rule from MES data library first Then the request is decrypted to obtain product IDs, scans for (lookup) from MES data library and obtain the label printing of the product IDs Format and detection parameters will test the parameter column to be filled of parameter filling label layout, generate label and print content, and Label printing content is sent to IPC computer.
Step S103, IPC computer abstract factory printing device print label prints content.
Specifically, sending it to label printing apparatus after IPC computer receives label printing content, label printing is set It is standby that label printing content is printed.
Label printing method provided in an embodiment of the present invention is applied to IPC computer, first by receiving label printing apparatus The product IDs of transmission;It is then based on the product IDs and obtains label layout from MES.Therefore, provided in an embodiment of the present invention Technical solution is interacted by IPC computer with the communication of MES, is obtained label printing content, can be alleviated existing label printing side Method has that at high cost, low efficiency, reliability are low by artificial mode, can reduce manpower and time cost, improves Working efficiency, while avoiding artificial bring error big, reliability is improved, automation is advantageously implemented.
As shown in Fig. 2, being applied to IPC computer, this method packet the embodiment of the invention provides another label printing method It includes:
Step S101, IPC computer receives the product IDs that label printing apparatus is sent;
Wherein, above-mentioned product IDs are generated by the laser carving equipment of transfer matic in advance;Transfer matic start produce product when by Laser carving equipment generates at random, and the product IDs of laser carving will be uploaded to MES;Here the product IDs of laser carving can be laser carving in the group of product It, can also be with laser carving on finished product on part (such as on the substrate of photovoltaic products);It is beaten when product flows to label by transfer matic Printing apparatus is scanned by label printing apparatus and obtains product IDs and be uploaded to IPC computer;Specifically, the laser carving equipment can be radium Carve printer;The product IDs can be bar code;The label printing apparatus includes: code reader and the PLC that is connected with code reader Controller, code reader obtain product IDs for scanning, and PLC controller with IPC computer for being communicated;On label printing apparatus Code reader the product IDs scanned are uploaded to the PLC controller of label printing apparatus, PLC controller again passes the product IDs It is defeated on IPC computer, received by IPC computer.
It should be noted that laser carving equipment can be interacted with MES is uploaded to MES for the product IDs of laser carving, i.e. laser carving is set Standby passive upload mode, the passive upload mode of the product IDs are realized especially by following steps:
MES first sends ID acquisition request to laser carving equipment with default interactive data format;Above-mentioned ID acquisition request is used for Obtain product IDs;Wherein the ID acquisition request includes: to obtain information code, obtain product IDs identification information;Above-mentioned acquisition information code It is to be generated by above-mentioned MES according to presupposed information create-rule.
Laser carving equipment sends return information to MES with above-mentioned default interactive data format, and above-mentioned return information includes: feedback Information code, the said goods ID;Wherein above-mentioned feedback information code is by laser carving equipment according to above-mentioned presupposed information create-rule It generates;It should be pointed out that the return information can also include the print time of product IDs;Product IDs can be multiple, example Such as photovoltaic industry, a possible product component uses multiple substrates, and it is multiple and different out to distinguish laser carving on multiple substrates Product IDs;
The content of above-mentioned ID acquisition request and the information of return information are shown by Tables 1 and 2 respectively.
The information table for the ID acquisition request that 1 MES of table is sent
Information String System automatically generated one unique code (MLQ)
Product IDs String First piece of substrate ID
The information table of the return information of 2 laser carving equipment of table feedback
Information String System automatically generated one unique code (LMR)
Substrate _ ID1 String First piece of substrate ID
Time tag 1 String yyyymmdd hh24:nn:ss
Substrate _ ID2 String Second piece of substrate ID
Time tag 2 String yyyymmdd hh24:nn:ss
Specifically, the default interactive data format mentioned in the present embodiment is JSON format.
The embodiment of the present invention exchanges data using JSON format;A kind of data of JSON format are shown below:
{
"Message":"MLQ0012010022800000002",
"Substrate_ID1":"2100226000123456100",
"Time_Stamp1":"20150101 13:55:04"
}
Wherein, Message indicates solicited message code;Substrate_ID1 indicates product IDs, and being here too can electricity with film Laser carving goes out ID to indicate product IDs on the substrate of pond component;Time_Stamp1 indicates time tag.
The presupposed information create-rule (Message ID rule) that the embodiment of the present invention refers to includes information type (Message Type) create-rule, message identification (Message Flag) create-rule, information group (Message Group) are raw At rule, sequence number (Serial number) create-rule.Correspondingly, the information code generated includes information type, information mark Know, information group, sequence number, information type indicates that information flow direction, i.e., the transmitting and receiving relationship between equipment, such as LM indicate laser Marking machine (Laser Marker) sends information to MES;ML then indicates that MES sends information to laser marking machine;Message identification is used Indicate that request, R indicate that answer (or feedback), A indicate that Active (activation), B indicate label lattice in expression Meaning of Information, such as Q Formula information, C indicate that tag format replies, D indicates label substance information, and E indicates that label substance is replied;Information group is at expression Reason process/technical process mark, such as 001 expression ID labeling process mark, 002 indicates BMS technical process mark;003 indicates Label print procedure mark;Sequence number (the serial number in Serial number, Fig. 3) includes the production date (YYYYMMDD, wherein YYYY indicates year, and MM indicates that the moon, DD indicate day) and number (the serial number in Fig. 3), number For identifying the uniqueness of product, sequence number resets update daily;Here information code includes request (request) information code (such as obtaining information code, the first solicited message code, the second solicited message code) and answer (response) information code (such as feed back Information code, the first reply message code, second reply message code etc.), wherein solicited message code and reply message code are request modes (question mode) and the unique code generated in mode (response mode) is replied, and reply message code is and asks Ask information code corresponding;And it is identical that the sequence code in reply message code, which is sequence number in corresponding solicited message code, , in order to the corresponding reply message of machine recognition and request.The generation logic that Fig. 3 shows presupposed information create-rule is closed System's figure, and issued and requested to BMS (BATTERY MANAGEMENT SYSTEM, battery management system) system with MES in Fig. 3 Information code MBQ0012010022800000002 for the explanation that carries out.
It should be pointed out that the product IDs that laser carving goes out can also be directly uploaded to MES, i.e. laser carving equipment master by laser carving equipment Dynamic upload mode.
Step S201, IPC computer is based on product IDs and obtains the corresponding label layout of product IDs from MES;
That is, IPC computer is based on the said goods ID and above-mentioned MES carries out communication interaction, to be obtained according to interaction results To label layout;Wherein, above-mentioned label layout include label questions record and it is corresponding with above-mentioned label questions record to Pad parameter;Label questions record is used for identification (RFID) tag meaning, such as label questions record can be time tag, product IDs label etc.;On Stating parameter to be filled includes detection parameters, time etc.;Parameter to be filled is replaced using preset characters, and preset characters for example can be The characters such as space, text, letter, symbol (such as XXX, ###, * * *) replace multiple and different parameters to be filled.
When specific implementation, step S201 is realized by following steps:
A, IPC computer sends the first request to MES;
IPC computer sends the first request to MES with default interactive data format, and above-mentioned first request is beaten for obtaining label Grid printing formula, so that MES generates the first feedback information according to the first request;Wherein, first request include: the first solicited message code, Product IDs, the first solicited message code are to be generated by IPC computer according to above-mentioned presupposed information create-rule;
Specifically, step A includes:
A1, IPC computer obtain presupposed information create-rule;
IPC computer obtains pre-stored presupposed information create-rule from its its memory;
A2, IPC computer are according to above- mentioned information type create-rule, message identification create-rule, information group create-rule, sequence Row number create-rule generates the first solicited message type, the first solicited message mark, the first solicited message group, the first request respectively Sequence number;Wherein the first solicited message type is for indicating information flow direction;First solicited message is identified for indicating Meaning of Information; First solicited message group is for indicating treatment process mark;First request serial number includes that production date and the first request are compiled Number, the uniqueness for identifying product is numbered in the first request;
A3, IPC computer are based on above-mentioned first solicited message type, the first solicited message mark, the first solicited message group, the One request serial number generates the first solicited message code;
Specifically, IPC computer is according to the first solicited message type, the first solicited message mark, the first solicited message group, The sequence of one request serial number, which is combined, generates the first solicited message code.
A4, IPC computer are based on the first solicited message code and product IDs generate the first request.
When implementing, IPC computer is raw with above-mentioned default interactive data format based on the first solicited message code and product IDs At the first request;Certain first request can also include the sending time for generating time or the first request of the first request.
Then, MES system generates the first feedback information according to the first request from IPC computer;First feedback information packet Include: the first reply message code and label layout information corresponding with product IDs, the first reply message code be by The MES is generated according to above-mentioned presupposed information create-rule;The first reply message code and the first solicited message code It is one-to-one;Realize when, MES first according to IPC computer sends first request in the first solicited message code and Pre-stored presupposed information create-rule in MES data library generates the first reply message corresponding with the first solicited message code Code;Then the product IDs in the first request that MES is sent according to IPC computer obtain tag format printing letter corresponding with product IDs Breath;Wherein label layout information includes that label layout, the first feedback result (can be positive feedback result or negative-feedback As a result);Last MES is based on the first reply message code, tag format type information generates the first feedback information.
Specifically, MES according to IPC computer send first request in the first solicited message code and MES data library in Pre-stored presupposed information create-rule generate the first reply message code corresponding with the first solicited message code the step of wrap It includes :) MES obtains above-mentioned presupposed information create-rule;2) MES is based on the presupposed information create-rule to the first solicited message code It is decoded, obtains the first solicited message type, the first solicited message mark, the first solicited message group, the first request serial number; 3) MES generates the first reply message type according to above- mentioned information type create-rule or the first solicited message type;4) MES according to Above- mentioned information identify create-rule or the first solicited message mark generates the first reply message mark;5) MES is according to above- mentioned information Group create-rule or the first solicited message group generate the first reply message group;6) MES is according to above-mentioned sequence number create-rule or One request serial number generates first and replies sequence number;7) MES is based on the first reply message type, the first reply message mark, the One reply message group, first reply sequence number and generate the first reply message code.Therefore the first reply message code is and the first request Information code is one-to-one, it is ensured that the safe and orderly progress of data transmission.
The product IDs in the first request that above-mentioned MES is sent according to IPC computer obtain label lattice corresponding with product IDs The step of formula type information, can realize that MES is previously stored with product IDs and mark by search by following steps when being executed It signs and is searched in the MES data library of layout, to obtain label layout information corresponding with product IDs;Specifically , when finding label layout corresponding with product IDs, the label layout information of generation includes that product IDs are corresponding Label layout;In such cases, label layout information can also include positive feedback result;When not finding and produce When the corresponding label layout of product ID, at this point, the label layout information generated only includes negative-feedback result;And then first Feedback information includes positive feedback result or negative-feedback result.
B, IPC computer receives the first feedback information that MES is sent;
C, it is based on above-mentioned label layout information, determines the corresponding label layout of product IDs.
Expansion explanation is carried out to step S201 below with reference to practical application scene:
Scene one:
When the not stored Product labelling format of IPC computer, step S201 is specifically included: 1, IPC computer to MES with JASON format sends the first request;2, the first feedback information that MES is fed back with JASON format is received;D is from the first feedback information Middle extraction obtains label layout.
Scene two:
When IPC computer is previously stored with a Product labelling format, such as when MES receives ERP (Enterprise Resource Planning, Enterprise Resources Plan) a product order information issuing of system, which includes But customer information (including customer name, such as company A, B company), product requirement, client's tag format are not limited to (in the case of this That is Product labelling format), client's tag format here refers to the tag format of customer requirement;By taking photovoltaic products as an example, client Tag format for example can be the first row product IDs, since the second row be successively following detection parameters at least one: it is specified Power P mpp, short circuit current Isc, open-circuit voltage Voc, maximum operating currenbt Impp, maximum working voltage Vmpp, product weight Deng;MES will be stored after all the elements (such as customer information, product requirement, client's tag format etc.) association in order information In MES data library, so as to MES calling;Client's tag format is sent to IPC computer by MES in advance, so that IPC computer carries out Storage, i.e., client's tag format is stored as Product labelling format by IPC computer;To sum up, client's tag format is that ERP system is sent To MES, stored by MES;And Product labelling format is that client's tag format is sent to IPC computer by MES, by IPC electricity Brain storage;Client's tag format, Product labelling format are merely to equipment locating for care label and operation stage;Here fixed Justice two is for ease of description hereafter to compare the tag format in the tag format and IPC computer in MES.At this point, Obtaining label layout from MES based on product IDs can follow the steps below to implement:
(1) the first request is sent with JASON format to MES;Under this scene, which can also include Product labelling Format so that MES according to first request generate the first feedback information, the first feedback information include the first reply message code and with The corresponding label layout of product IDs;Above-mentioned first feedback information further includes the first feedback result, and the first feedback result is Positive feedback result or negative-feedback are as a result, the first feedback result is comparison of the MES based on Product labelling format and client's tag format As a result it generates;In other words, whether the first feedback result is correctly exported based on the comparison of label layout, for reacting The consistency of label layout judges output, so that IPC executes Different Strategies according to the comparing result;When Product labelling format Match with client's tag format, MES then generates positive feedback result;When Product labelling format and client's tag format mismatch, MES then generates negative-feedback result.
Specifically, MES receive information, the MES such as the product IDs in the first request that IPC computer transmits can be according to product IDs Removal search is stored in advance in the detection parameters of the product corresponding with the product IDs in MES data library, according to what is searched Detection parameters obtain the customer information to match with detection parameters and (can be wanted by will test parameter with the product in order information Ask and matched, obtain matched customer information), client's tag format corresponding with the customer information is then transferred, it will be objective The Product labelling format that family tag format and IPC computer send over compares, that is, judges client's tag format and Product labelling lattice Whether two tag format of formula is identical.If two tag formats are identical, it includes positive feedback that MES, which is sent with JASON format to IPC computer, As a result the first feedback information (indicated with PASS);If two tag formats are different, MES is sent with JASON format to IPC computer The first feedback information including negative-feedback result (being indicated with CHANGE).
It is only one in view of Product labelling format, therefore Product labelling format and client's tag format are consistent, so The label layout of output is this Product labelling format that IPC computer prestores, the first feedback information must be include positive and negative Feedback is as a result, the case where being not present negative-feedback result.
It should be noted that above-mentioned detection parameters are corresponding with the said goods ID, above-mentioned detection parameters are tested by detection device It obtains, above-mentioned detection device is connected with MES, and above-mentioned detection parameters and the said goods ID are sent to by above-mentioned detection device together Above-mentioned detection parameters and the said goods ID are associated by MES, MES;Above-mentioned client's tag format is to be obtained by MES based on product IDs With detection parameters corresponding to the said goods ID, the customer information for meeting product requirement is searched according to detection parameters, then by visitor Family information obtains corresponding Product labelling format, and above-mentioned first feedback result (i.e. tag format feedback result) is based on by MES The comparison result generation of the said goods tag format, above-mentioned client's tag format;
(2) above-mentioned first feedback information that MES is sent with JASON format is received;
(3) it is extracted from the first feedback information and obtains label layout.
It should be pointed out that order information can also include the contents such as product quantity, delivery time;Furthermore in view of only one A Product labelling format, therefore the label layout of Product labelling format, client's tag format and feedback is consistent.Institute With in other embodiments, the acquisition modes that step S201 is also referred to scene one obtain label layout.
Scene three:
When IPC computer is previously stored with multiple Product labelling formats, multiple Product labelling formats and multiple clients one are a pair of It answers;Such as MES receives multiple product order informations that ERP system issues, each order information includes that customer information, product are wanted It asks, client's tag format, MES is by all the elements (such as customer information, product requirement, client's tag format) in order information After association, it is contemplated that the resources of production for the workshop transfer matic that MES is connected are limited, and product order information is generally 2-3, i.e., objective Family tag format is 2-3, MES by client's tag format according to preset order (such as order sending time sequencing or Product delivery time sequencing) it is sent to IPC computer in advance, so that IPC computer is stored, i.e., client's tag format is on time Between sequentially arrangement be stored on IPC computer, above-mentioned multiple client's tag formats are stored as multiple by IPC computer sequentially in time Product labelling format, such as the first Product labelling format, the second Product labelling format, third Product labelling format ...;At this point, Step S102 is referred to two step of scene and obtains label layout;Difference with scene two is, if two label lattice Formula is different, and MES sends the first feedback information including negative-feedback result (indicating with CHANGE) to IPC computer with JASON format; IPC computer can send again the including next Product labelling format based on the negative-feedback result in above-mentioned first feedback information One request continues to be confirmed with MES, until Product labelling format is identical as client's tag format, i.e., from Product labelling format Select label layout;It should be noted that the first solicited message code sent when the first request again can be with the last time It is identical, can also be different, the present embodiment is not especially limited.
In order to make it easy to understand, being said so that Product labelling format is two as an example to the execution step of step S201 below It is bright:
A IPC computer sends the first request of JASON format to MES, and the first request is for confirming label layout;The One request includes the first solicited message code, product IDs, the first Product labelling format;
Specifically, MES receive information, the MES such as the product IDs in the first request that IPC computer transmits can be according to product IDs Removal search is stored in advance in the detection parameters of the product corresponding with the product IDs in MES data library, according to what is searched Detection parameters obtain the customer information to match with detection parameters and (can be wanted by will test parameter with the product in order information Ask and matched, obtain matched customer information), client's tag format corresponding with the customer information is then transferred, it will be objective The first Product labelling format that family tag format and IPC computer send over compares, that is, judges that client's tag format and first produces Whether two tag format of product tag format is identical.
If two tag formats are identical, it includes positive feedback result (with PASS table that MES, which is sent with JASON format to IPC computer, Show) the first feedback information;
If two tag formats are different, it includes negative-feedback result (with CHANGE that MES, which is sent with JASON format to IPC computer, Indicate) the first feedback information;It includes second that IPC computer can be sent again based on the negative-feedback result in the first feedback information The first of Product labelling format requests continuation to be confirmed with MES, second that client's tag format and IPC computer are sended over The comparison of Product labelling format, that is, judge whether client's tag format and the second Product labelling format are identical.
In view of only there are two Product labelling format, client's tag format is identical with the second Product labelling format at this time, Both MES judgements are consistent, and it includes the first anti-of positive feedback result (being indicated with PASS) that MES, which is sent with JASON format to IPC computer, Feedforward information completes tag format confirmation.
It should be noted that in other embodiments, there are two only, the first Product labelling is not, then the second product Tag format must be, at this point, MES can also be using the second Product labelling format as label layout active transmission to IPC Computer;Label layout is selected from Product labelling format.
B receives the first feedback information that MES is sent;
C obtains label layout from the first drawing Feedback Information.
To sum up, when Product labelling format is one, client's tag format must be matched with Product labelling format, and first is anti- Feedback result is positive feedback result, and label layout is Product labelling format/client's tag format;When Product labelling format is more It when a, then needs to compare, until obtaining obtaining the Product labelling format to match with client's tag format, by the matched product Tag format feeds back to IPC computer as label layout.
It should be noted that the product that detection parameters do not meet product requirement can be excluded in advance transfer matic, i.e., will not It flows into label and prints link.
Step S102, IPC computer is based on product IDs and beats from the corresponding label of production execution management system MES acquisition product IDs Print content;
In other words, communication interaction is carried out based on product IDs and MES, to obtain label printing content according to interaction results. Wherein, above-mentioned label printing content includes above-mentioned label questions record and corresponding with above-mentioned label questions record has been filled with parameter.This is Pad parameter be it is corresponding with parameter to be filled, it includes detection parameters that this, which has been filled with parameter,;It certainly can also include joining the time Number etc., above-mentioned time parameter can be one kind of production deadline, detection time.
Step S102 the following steps are included:
A, IPC computer sends the second request to the MES, and the second request is for obtaining label printing content;Wherein second Request includes: the second solicited message code, product IDs, above-mentioned label layout, the second solicited message code be by IPC computer according to What presupposed information create-rule generated;
Specifically, IPC computer sends the second request for obtaining label printing content to MES with JASON format, so that MES is based on the second request and generates the second feedback information;Wherein, the second request includes: the second solicited message code, product IDs, label Layout, the second solicited message code are to be generated by IPC computer according to above-mentioned presupposed information create-rule;Second feedback letter Breath includes: the second reply message code, the said goods ID, label printing content;Second reply message code is by MES according to above-mentioned What presupposed information create-rule generated;It should be noted that the generating process of the second feedback information may refer to the first feedback letter The generating process of breath, is described again here.
Here label printing content is the corresponding parameter position to be filled of label questions record in label layout (wait fill out Fill parameter column) insert what parameter obtained.
B, IPC computer receives the second feedback information that the MES is sent;
C, IPC computer is extracted from second feedback information obtains the label printing content.
Further, second feedback information further includes the second feedback result, and the second feedback result is positive feedback result Or negative-feedback result;Second feedback result is MES by the way that label to be printed to the detection parameters having been filled in parameter and phase of content What corresponding parameter threshold range obtained after being compared;When having been filled with parameter includes multiple detection parameters, then with it is corresponding Detection parameters threshold value compares one by one;When it is above-mentioned have been filled with parameter and be in above-mentioned parameter threshold range when, the second feedback result is Positive feedback result;When the above-mentioned detection parameters having been filled in parameter are not in above-mentioned parameter threshold range, the second feedback knot Fruit is negative feedback result;At this point, this method further include:
When second feedback result is positive feedback result, then IPC computer plays the label according to the positive feedback result Print content is sent to label printing apparatus, so that the label printing apparatus is printed;Alternatively, in other embodiments, when Above-mentioned second feedback result is positive feedback result, then generates label based on above-mentioned label printing content and the said goods ID, such as Label is printed after content and the said goods ID carry out Automatic Typesetting according to default typesetting format and generates label;Above-mentioned label is sent out It send to label printing apparatus, so that above-mentioned label printing apparatus is printed.
When second feedback result is negative feedback result, then being not in label printing content by IPC computer Detection parameters within the scope of parameter threshold are marked.Specifically, being not in label printing content within the scope of parameter threshold The detection parameters having been filled in parameter as anomaly parameter, anomaly parameter is marked with color mark, with the shape of color Formula prompt technical staff is handled.
It should be noted that the request referred in the present embodiment, including acquisition request, the first request, the second request can be with It is sent in the form of information table;Correspondingly, the feedback information referred in the present embodiment is also to be fed back in the form of information table.
Step S202, IPC computer is based on the corresponding label layout of product IDs, abstract factory printing device print label Print content.
The embodiment of the invention provides the third label printing methods, are applied to MES, the laser carving in above-mentioned MES and workshop Equipment, detection device, IPC computer pass through Ethernet in workshop (producing line local area network) connection;Above-mentioned IPC computer and label print Equipment is connected, which is printed for abstract factory printing device;
As shown in figure 4, this method comprises:
Step S401, MES receive the first request that IPC computer is sent;
Specifically, MES receives IPC computer to preset the first request that interactive data format is sent;The application refers to pre- If interactive data format each means JSON format.
Step S402, MES generate the first feedback information according to upper first request;
Specifically, the step includes:
1MES is generated and the first solicited message code corresponding first according to the first solicited message code, presupposed information create-rule Reply message code;
In the present embodiment, which is realized by following steps:
1-1MES obtains presupposed information create-rule;
1-2MES is based on presupposed information create-rule and is decoded to the first solicited message code, obtains the first solicited message class Type, the first solicited message mark, the first solicited message group, the first request serial number;
1-3MES generates the first reply message type according to information type create-rule or the first solicited message type;
1-4MES generates the first reply message mark according to message identification create-rule or the first solicited message mark;
1-5MES generates the first reply message group according to information group create-rule or the first solicited message group;
1-6MES generates first according to sequence number create-rule or the first request serial number and replies sequence number;
1-7MES is based on the first reply message type, the first reply message mark, the first reply message group, the first answer sequence Row number generates the first reply message code.
2MES obtains tag format type information corresponding with product IDs according to product IDs;
3MES is based on the first reply message code, tag format type information generates the first feedback information.
Step S403, MES send the first feedback information to IPC computer;
Specifically, the first feedback information is sent to IPC computer with JSON format, so that IPC computer is from the first feedback information Middle determination obtains label layout.
The label layout that IPC computer is interacted with MES is realized through the above steps, in order to describe simplicity, specifically Acquisition process and scene are referred to content above-mentioned, and details are not described herein again.
Step S404, MES receive the second request that industrial personal computer IPC computer is sent;
It is requested specifically, MES receives IPC computer with second for obtaining label printing content that JSON format is sent; Wherein, the second request includes: the second solicited message code, the said goods ID;The second request can also include anti-from first herein Feedforward information determines obtained above-mentioned label layout, and above-mentioned second solicited message code is to be preset by IPC computer according to above-mentioned What creating info rules generated;
Step S405, MES generate the second feedback information according to the second request;
Wherein, the second feedback information includes: the second reply message code, product IDs, the corresponding label printing content of product IDs; Above-mentioned second reply message code is to be generated by MES according to presupposed information create-rule;
In the present embodiment, step S405 includes:
1, MES is generated corresponding with the second solicited message code according to above-mentioned second solicited message code, presupposed information create-rule The second reply message code;
Specifically, the step includes:
1.1MES obtains presupposed information create-rule;
1.2MES is based on presupposed information create-rule and is decoded to the second solicited message code, obtains the second solicited message class Type, the second solicited message mark, the second solicited message group, the second request serial number;
1.3MES generates the second reply message type according to information type create-rule or the second solicited message type;
1.4MES generates the second reply message mark according to message identification create-rule or the second solicited message mark;
1.5MES generates the second reply message group according to information group create-rule or the second solicited message group;
1.6MES generates second according to sequence number create-rule or the second request serial number and replies sequence number;
1.7MES is based on the second reply message type, the second reply message mark, the second reply message group, the second answer sequence Row number generates the second reply message code.
2, MES obtains label corresponding with product IDs according to product IDs and prints content;
3, MES is based on the second reply message code, label printing content generates the second feedback information.
Step S406, MES send the second feedback information to IPC computer.
MES sends the second feedback information to IPC computer with JSON format, so that IPC computer is mentioned from the second feedback information Obtain label printing content.
Realize that the label that IPC computer is interacted with MES prints content by step S404- step S406.
Further, the second feedback information may also include the second feedback result, this method further include:
The detection parameters of label printing content are compared by MES with corresponding parameter threshold range, with according to comparing As a result, generating the second feedback result;Specifically, the second feedback result is positive when detection parameters are within the scope of parameter threshold Feedback result;When detection parameters are not within the scope of parameter threshold, the second feedback result is negative feedback result.
The embodiment of the invention provides a kind of label printing systems, as shown in figure 5, the label printing system includes: label Printing device 100, IPC computer 200, MES300, label printing apparatus are connected with IPC computer, and IPC computer is connected with MES;
Specifically, label printing apparatus and IPC computer are set in workshop, label printing apparatus is set to IPC computer Pass through wired connection in workshop;MES is set to computer room, and IPC computer is connect with MES by Local network communication in workshop;
Wherein, label printing apparatus is for obtaining product IDs, and product IDs are sent to IPC computer;
IPC computer is used to carry out communication interaction based on product IDs and MES, to obtain in label layout and label printing Hold;And label layout and label printing content are sent to label printing apparatus;
Label printing apparatus is also used to receive the label layout of IPC computer transmission and label printing content carries out label Printing.In other words, IPC computer abstract factory printing device carries out label printing.
Further, label printing system further include: the laser carving equipment 400 being connected with MES, laser carving equipment are used for radium Undercut product IDs;And product IDs are directly uploaded to MES by local area network in workshop.
Further, the label printing system further include: the detection device 500 being connected with MES, detection device for pair The product with product IDs produced is detected, and product IDs and detection parameters are obtained;Specifically, detection device also includes sweeping Code device obtains product IDs for scanning;By taking photovoltaic products as an example, detection parameters include rated power Pmpp, short circuit current Isc, At least one of open-circuit voltage Voc, maximum operating currenbt Impp, maximum working voltage Vmpp, product weight.
Label printing system provided in an embodiment of the present invention has identical with label printing method provided by the above embodiment Technical characteristic reach identical technical effect so also can solve identical technical problem.
The technical effect and preceding method embodiment phase of system provided by the embodiment of the present invention, realization principle and generation Together, to briefly describe, system embodiment part does not refer to place, can refer to corresponding contents in preceding method embodiment.
The embodiment of the invention also provides a kind of data interactive methods, can be used for thin film solar product component production neck Domain is particularly suitable for label printing, is executed by MES, the above method includes:
1, MES receives the Product labelling format that ERP system issues;
The said goods tag format includes but is not limited to label questions record and corresponding to be filled with above-mentioned label questions record Parameter;Parameter to be filled includes detection parameters etc.;
2, MES receives the detection parameters and product IDs that detection device is sent;
Wherein the said goods ID is generated by the laser carving equipment of transfer matic in advance;Specifically it can be directly uploaded to by laser carving equipment MES is interacted to obtain by MES with laser carving equipment.
Specifically, detected when the product for stamping product IDs through laser carving equipment on transfer matic is flowed into detection device, Detection device scans to obtain product IDs and then test to obtain detection parameters, and product IDs and detection parameters are sent to MES together, Received product IDs and detection parameters are associated by MES, and are stored into MES data library.
3, MES is based on the said goods tag format, product IDs, detection parameters, generates label information;
4, MES receives IPC computer to preset the label information acquisition request that interactive data format is sent, and label information obtains Request includes that label obtains information code, product IDs for obtaining label information, label information acquisition request;Wherein, label obtains Information code is to be generated by IPC computer according to above-mentioned presupposed information create-rule;Product IDs are obtained by label printing apparatus After be sent to IPC computer;IPC computer is based on product IDs and sends label information acquisition request;
5, MES sends label information feedback information to IPC computer, and above-mentioned label information feedback information includes return information code And label information corresponding with the said goods ID;
It should be pointed out that in other embodiments, the label information of generation can also be sent directly to IPC electricity by MES Brain is printed, i.e. the active transmission mode of MES by IPC computer abstract factory printing device.
The embodiment of the invention also provides another data interactive methods, can be used for thin film solar product component production neck Domain is applied to MES, comprising the following steps:
1, order is received
MES receives the order information that ERP system issues;The order information includes: customer information (including customer name), produces Product quantity, product requirement (A class, such as 100-120W, B class 80-100W) and tag format;
It should be noted that the tag format in order information can also be sent to IPC computer by MES, so that the IPC Computer is stored;It should be noted that MES can be by client's tag format in order information when receiving order information It is sent to the IPC computer being connected with label printing apparatus, so that client's tag format is stored as Product labelling lattice by IPC computer Formula.Generally client is different, and client's tag format is not also identical.That is, the tag format in the received order information of MES Referred to as client's tag format, MES are sent to client's tag format of IPC computer, are known as producing by the tag format that IPC computer stores Product tag format;Only the title in distinct device is different;Therefore unify to be indicated with one word of tag format here.
2, production
2-1MES carries out production according to the above order information tissue production equipment, is had so that production equipment produces There is the photovoltaic products component of product IDs, above-mentioned production equipment includes laser carving equipment, filming equipment, cutting equipment, and above-mentioned laser carving is set It is ready for use on substrate that radium carves product IDs (bar code generated at random, daily resetting update) (on former material base plate glass), on Filming equipment is stated for executing plated film (CIGS, copper indium gallium selenide) technique on the above-mentioned substrate with product IDs;Above-mentioned cutting is set It is ready for use on and product component is obtained to the product execution scribing technique after coating process;
2-2MES receives the product IDs that production equipment is sent;Here product IDs can be used for the product IDs to detection device It is verified, is maliciously replaced to prevent product.
3, properties of product detect
3-1MES sends detection instruction to detection device, so that above-mentioned detection device carries out performance inspection to the said goods component It surveys, obtains detection data, above-mentioned detection data includes rated power, short circuit current, open-circuit voltage, maximum operating currenbt, maximum Operating voltage, at least one of product weight;Detection device has the code reader of fixed height, obtains product for scanning ID;Such as weight detection equipment sense weight, product IDs are first scanned, then measurement obtains weight, and weight and product IDs are issued MES, it is similar that current detecting equipment detects electric current;It should be noted that if current detecting equipment want obtain weight if need with MES obtain from MES;
3-2MES receives the detection data that detection device is sent, and above-mentioned detection data includes product IDs and detection parameters;When So, detection data can also include detection time.
3-3MES is based on above-mentioned detection data and establishes mapping table;Specifically, the said goods ID and above-mentioned detection are joined Number is corresponded to, and mapping table is established;
MES stores above-mentioned mapping table to MES data library;
It further, further include being sentenced based on above-mentioned detection parameters to the said goods component in properties of product detecting step It is disconnected, judge whether product is defective products, flows out to the said goods not from production line if so, MES then controls transfer matic PLC terminal Non-defective unit set-down location.
4, label prints
When product component by transfer matic reach label printing apparatus, above-mentioned label printing apparatus by IPC computer with it is upper MES is stated to be communicated;Specifically, above-mentioned label printing apparatus includes: code reader and the PLC being connected with above-mentioned code reader control Device, above-mentioned PLC controller are connected with above-mentioned IPC computer;Above-mentioned IPC computer is connected with the background server of above-mentioned MES; It (is communicated specifically, IPC computer equally passes through the local area network (producing line local area network) in workshop with MES, IPC computer and MES are logical The bridge of news is web service.
Web service is briefly described below: using web service carry out MES (production executive system) with Information exchange between different such as equipment (Devices in Workshop, such as detection device, IPC computer etc.);The ginseng of web service Number need to be arranged according to equipment, such as the setting of IP address and port need to be arranged according to equipment.Such as the parameter of web service can To be provided that the address web service: http: // 192.168.1.1:50000/Websvice/Service.asmx;web Service agreement is HTTP;Web Service host IP address is 192.168.1.1;The port web Service is 50000.
Fixation code reader on above-mentioned label printing apparatus is scanned the product IDs on the substrate of product component, with To the said goods ID of the said goods component, the said goods ID is sent to by fixed code reader to be connected with above-mentioned fixed code reader Label printing apparatus PLC controller, by label printing apparatus PLC controller by the said goods ID be sent to and PLC control The IPC computer that device processed is connected;So that above-mentioned IPC computer is based on the said goods ID and generates and sends confirmation request, above-mentioned confirmation Request includes tag format confirmation request (the i.e. first request) and label substance confirmation request (the i.e. second request)
4-1MES receives the first request that IPC computer is sent;
4-2MES generates and sends the first feedback information corresponding with the first request according to the first request;
For 4-3 when the first feedback information includes positive feedback result, MES receives the second request that IPC computer is sent;
4-4MES generates and sends the second feedback information corresponding with the second request according to the second request;
When the second feedback information includes positive feedback result, IPC computer generates and sends 4-5 according to above-mentioned positive and negative feedforward information Label information to label printing apparatus is printed.
When specific implementation, step 4 is the following steps are included: MES receives the first request that IPC computer is sent, the first request packet Include first information code (request code), product IDs, Product labelling format, the first feedback result;According to product IDs lookup and product The corresponding detection parameters of ID;The customer information to match with detection parameters is searched based on detection parameters;It transfers and customer information phase Corresponding client's tag format;Judge whether client's tag format is consistent with Product labelling format;If consistent, generate and send Including positive feedback result, the first reply message code (response code) the first feedback information to IPC computer so that IPC computer The second request is sent based on the first feedback information;MES receives the second request that IPC computer is sent, and the second request is asked including second Ask information code, product IDs, label questions record and corresponding detection parameters to be filled, the second feedback result;Second request can be with Including time tag, product type, packaging products in boxes information etc.;MES searches detection parameters corresponding with product IDs according to product IDs; MES will test parameter and be filled the second feedback information of generation according to label questions record;Second feedback information is sent to IPC by MES Computer, so that IPC computer is based on the second feedback information and generates label information, specifically, second in MES exclusion feedback information is asked Information code and the second feedback result are asked, obtains label information, and label information is sent to label printing apparatus and is printed.
It should be noted that if it is inconsistent, then generate the first feedback information including negative-feedback result;When the first feedback letter When breath includes negative-feedback result, IPC computer can send again new tag format based on the negative-feedback result of the first feedback information Confirmed, until selecting corresponding tag format.
Second feedback result is MES by judging whether detection parameters are in parameter threshold corresponding with the detection parameters Range obtains;When being not in the corresponding parameter threshold range of the detection parameters there are detection parameters, the second feedback knot Fruit is negative feedback result, and MES generates and sends the second feedback information including negative-feedback result to IPC computer, so that IPC computer Second negative-feedback information is stored, but is not printed, is confirmed by technical staff.I.e. when the second feedback information is negative feedback result When, which can be marked storage by IPC computer, to prompt technical staff to handle.
In order to make it easy to understand, being applied to the MES bottom number of vaporation-type CIGS glass substrate with the method for interchanging data below It is illustrated according to the application scenarios of exchange:
1. receiving order
The ERP system of headquarters office (such as BJ) receives order, and order includes that the client product quantity, the product that need are wanted (A class, it is desirable that power 100W) and tag format (such as bar code, measured power, time) are asked, order is sent to production The MES of factory (such as HF), MES include MES server and the database server that is connected with MES server;
2. production
The MES can store the product requirement and tag format of each client;
MES starts to produce product, when beginning on the former material base plate glass of product can laser carving bar code (ID), laser carving Id information will be uploaded to MES, and product becomes product component after the techniques such as plated film, scribing.
3. properties of product detect
Product component will tested equipment detection (such as the content of detection such as the following table 3), the HMI of detection device is (man-machine Interface) it is connect with MES server by local area network in workshop.Detection device will test parameter and product IDs are sent to MES, Product IDs are mapped with detection parameters and are stored in MES data library by MES, to facilitate subsequent reading;
The detection parameters table of 3 detection device of table
Pmpp String Rated power
Isc String Short circuit current
Voc String Open-circuit voltage
Impp String Maximum operating currenbt
Vmpp String Maximum working voltage
Weight String Weight
4. label prints
4-1 scans ID
It (is printed for example including laser marking machine or label when the product component flows to label printing apparatus by transfer matic Machine), the product IDs data scanned can be uploaded to the PLC of label printing apparatus by the fixation code reader on label printing apparatus, Data (such as product IDs) are transferred on IPC computer by PLC again.
4-2 IPC computer abstract factory printer
IPC computer is the brain of label machine, both abstract factory printer, is also responsible for label machine and external communication Function.Technical staff can operate IPC and go that label machine is allowed to print specific content.IPC computer equally pass through producing line local area network with MES is communicated, and the bridge of IPC computer and MES communication is web service.
4-3 IPC computer is by communicating confirmation tag format with MES
Usual client is different, and tag format is also different.
Step 1: tag format can be sent to IPC computer after receiving tag format by MES, IPC computer can store label Format.
Step 2: IPC computer can send the first request to MES, the first request confirms tag format with the information table of table 4:
The information table that table 4 first is requested
Information String IPC computer automatically generates a unique code (PMB)
Substrate _ ID String Substrate ID
Tag format String Tag format
MES feedback result String NULL
It infuses, illustrates the content needed in table in the form of preset characters.
Step 3: MES receives the information such as the product IDs that IPC computer transmits, MES can be according to product IDs removal search MES number According to the product testing data stored in library, judge that parameter is to meet the product of which kind of client to want according to the data searched It asks, then transfers the tag format that the tag format for meeting the product requirement of client and IPC computer send over and compare.
If two tag formats are identical, first feedback information of the MES feedback including positive feedback result PASS to IPC computer;
If two tag formats are different, MES can feed back the first feedback letter including negative-feedback result CHANGE to IPC computer Breath;Be understood that but, when an only tag format be not present CHANGE.Table 5 shows the letter of the first feedback information Cease table.
IPC computer receives to will continue to after CHANGE information to send new tag format to be confirmed with MES;Until selecting Corresponding tag format.It should be noted that tag format general 2-3.
The information table of 5 first feedback information of table
Information String MES automatically generates a unique code (MPC)
Substrate _ ID String Substrate ID
Tag format String
MES feedback result String MES feeds back tag format: " PASS " or " CHANGE "
Note: in view of tag format content according to actually detected content and related to the demand of client, therefore in upper table not The specific format of tag format is shown;
4-4 IPC computer obtains label printing content by communicating with MES
After the completion of format confirmation, IPC computer will communicate confirmation label with MES and print content.
Specifically, IPC computer can be requested to MES second, the second request confirms tag format with the information table of table 6:
The information table that table 6 second is requested
Information String IPC computer automatically generates a unique code (PMD)
Substrate _ ID String Substrate ID
Time tag String yyyymmdd hh24:nn:ss
Type String Product type
Bin String This product can be boxed in the chest of dress xx product type
Pmpp String Rated power
Isc String Short circuit current
Voc String Open-circuit voltage
Impp String Maximum operating currenbt
Vmpp String Maximum working voltage
Weight String Weight
MES feedback result String NULL
After MES receives the information for the second request that IPC computer is sent, MES can be according to product IDs removal search MES number therein The corresponding product testing data (i.e. detection parameters) of the product IDs detected according to the detection device stored in library, then will test The second feedback information, which is generated, after parameter filling feeds back to IPC computer.The information table of second feedback information is as follows:
The information table of 7 second feedback information of table
Information String System automatically generated one unique code (MPE)
Substrate _ ID String Substrate ID
Time tag String The production deadline: yyyymmdd hh24:nn:ss
Type String Product type
Bin String This product can be boxed in the chest of dress xx product type
Pmpp String MES confirms Pmpp according to product testing data
Isc String MES confirms Isc according to product testing data
Voc String MES confirms Voc according to product testing data
Impp String MES confirms Impp according to product testing data
Vmpp String MES confirms Vmpp according to product testing data
Weight String MES confirms Pmpp according to product testing data
MES feedback result String MES feeds back " PASS " or " CHANGE "
Tag format and label substance are sent to the PLC of label printing apparatus by 4-5IPC computer, label printing apparatus The printing of PLC abstract factory printing device.
It should be noted that IPC computer can be used as the core brain of label printing apparatus, confirmation is interacted with MES Label layout and label print content, and then realize label print procedure.
Photovoltaic products field there are aiming at the problem that, such as (1) complicated using the photovoltaic products production technology of CIGS technique, Product is difficult to accomplish identical quality;(2) it needs by manually by the rated power of product, short circuit current and open-circuit voltage Equal core parameters print on Product labelling.(3) core parameter of different product tested out all can some differences.The present invention is real Apply example provide a kind of data interactive method by the data that all detection devices being connected with MES test out be uploaded to MES (by MES processing, such as association, storage, judgement etc.), communication friendship is then carried out by the IPC computer of abstract factory printing device and MES Mutually confirmation label layout and label substance.Artificial operation mode, i.e. matter are relied on compared to existing label printing method The product quality data that amount detection device is measured are by being manually transferred to label machine, then by artificial according to the data measured Confirm that the format of label printing and the content of label printing, the data interactive method have the advantage that 1, mitigate cost of labor; 2, production efficiency is improved;3, the reliability that production information is collected is improved.
Finally, it should be noted that embodiment described above, only a specific embodiment of the invention, to illustrate the present invention Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair It is bright to be described in detail, those skilled in the art should understand that: anyone skilled in the art In the technical scope disclosed by the present invention, it can still modify to technical solution documented by previous embodiment or can be light It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover in protection of the invention Within the scope of.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. a kind of label printing method, which is characterized in that be applied to industrial personal computer IPC computer, which comprises
Receive the product IDs that label printing apparatus is sent;
Management system MES, which is executed, from production based on the product IDs obtains the corresponding label printing content of the product IDs;
It controls the label printing apparatus and prints the label printing content.
2. the method according to claim 1, wherein the method also includes:
The corresponding label layout of the product IDs is obtained from MES based on the product IDs;
The control label printing apparatus prints the label and prints content, comprising:
Based on the corresponding label layout of the product IDs, controls the label printing apparatus and print in the label printing Hold.
3. according to the method described in claim 2, it is characterized in that, described obtain the product from MES based on the product IDs The corresponding label layout of ID, comprising:
The first request is sent to the MES, first request is for obtaining label layout;Wherein, first request It include: the first solicited message code, the product IDs, the first solicited message code is by the IPC computer according to presupposed information What create-rule generated;
Receive the first feedback information that the MES is sent;First feedback information include: the first reply message code and with institute The corresponding label layout information of product IDs is stated, the first reply message code is by the MES according to the default letter Cease what create-rule generated;The first reply message code is one-to-one with the first solicited message code;
Based on the label layout information, the corresponding label layout of the product IDs is determined.
4. according to the method described in claim 2, it is characterized in that, described obtain the product from MES based on the product IDs The corresponding label of ID prints content, comprising:
The second request is sent to the MES, second request is for obtaining label printing content;Wherein, second request It include: the second solicited message code, the product IDs, the label layout, the second solicited message code is by the IPC Computer is generated according to presupposed information create-rule;
Receive the second feedback information that the MES is sent, wherein second feedback information includes: the second reply message code, institute State the corresponding label printing content of product IDs;The second reply message code is by the MES according to the presupposed information What create-rule generated;
It is extracted from second feedback information and obtains the label printing content.
5. according to the method described in claim 4, it is characterized in that, second feedback information further includes the second feedback result, Second feedback result is positive feedback result or negative-feedback result;
When second feedback result is positive feedback result, then label printing content is sent to label printing apparatus, with Print the label printing apparatus;
When second feedback result is negative feedback result, then being not in label printing content within the scope of parameter threshold Detection parameters be marked.
6. according to the method described in claim 3, it is characterized in that, the method also includes:
Obtain the presupposed information create-rule;Wherein the presupposed information create-rule includes information type create-rule, letter Breath mark create-rule, information group create-rule, sequence number create-rule;
According to the information type create-rule, the message identification create-rule, the information group create-rule, the sequence Number create-rule generates the first solicited message type, the first solicited message mark, the first solicited message group, the first request sequence respectively Row number;Wherein the first solicited message type is for indicating information flow direction;The first solicited message mark is for indicating letter Cease meaning;The first solicited message group is for indicating treatment process mark;First request serial number includes production The uniqueness for identifying product is numbered in date and the first request number, first request;
Based on the first solicited message type, first solicited message mark, the first solicited message group, described first Request serial number generates the first solicited message code;
The first request is generated based on the first solicited message code and the product IDs.
7. a kind of label printing method, which is characterized in that be applied to production and execute management system MES, which comprises
The second request that industrial personal computer IPC computer is sent is received, second request is for obtaining label printing content;Wherein, institute Stating the second request includes: the second solicited message code, product IDs, and the second solicited message code is by the IPC computer according to pre- What if creating info rules generated;
The second feedback information is generated according to second request;Wherein, second feedback information includes: the second reply message The corresponding label of code, the product IDs prints content;The second reply message code is by the MES according to described default What creating info rules generated;
Second feedback information is sent to the IPC computer.
8. the method according to the description of claim 7 is characterized in that the method also includes:
The first request that IPC computer is sent is received, first request is for obtaining label layout;Wherein, described first Request includes: the first solicited message code, product IDs, and the first solicited message code is by the IPC computer according to presupposed information What create-rule generated;
The first feedback information is generated according to first request;Wherein, first feedback information includes: the first reply message code And label layout information corresponding with the product IDs, the first reply message code are by the MES according to institute State the generation of presupposed information create-rule;
First feedback information is sent to the IPC computer.
9. the method according to the description of claim 7 is characterized in that second feedback information further includes the second feedback result, The method also includes:
The detection parameters of label printing content are compared with corresponding parameter threshold range, according to comparison result, life At the second feedback result;
When the detection parameters are within the scope of the parameter threshold, second feedback result is positive feedback result;
When the detection parameters are not within the scope of the parameter threshold, second feedback result is negative feedback result.
10. a kind of label printing system characterized by comprising label printing apparatus, IPC computer, production execute management system MES, the label printing apparatus are connected with the IPC computer, the IPC computer and the MES communication connection;
The product IDs are sent to the IPC computer for obtaining product IDs by the label printing apparatus;
The IPC computer is used to carry out communication interaction based on the product IDs and the MES, to obtain label layout and mark Label printing content;The label layout and label printing content are sent to the label printing apparatus;
The label printing apparatus is also used to receive the label layout that the IPC computer is sent and label printing content carries out Label printing.
CN201811078282.1A 2018-09-14 2018-09-14 label printing method and system Pending CN109240626A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811078282.1A CN109240626A (en) 2018-09-14 2018-09-14 label printing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811078282.1A CN109240626A (en) 2018-09-14 2018-09-14 label printing method and system

Publications (1)

Publication Number Publication Date
CN109240626A true CN109240626A (en) 2019-01-18

Family

ID=65058962

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811078282.1A Pending CN109240626A (en) 2018-09-14 2018-09-14 label printing method and system

Country Status (1)

Country Link
CN (1) CN109240626A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377247A (en) * 2019-07-24 2019-10-25 深圳市凯木金科技有限公司 Identification processing method, device, computer equipment and computer readable storage medium
CN110427163A (en) * 2019-07-30 2019-11-08 Oppo(重庆)智能科技有限公司 Product identification Method of printing and relevant device
CN110517022A (en) * 2019-08-29 2019-11-29 甬矽电子(宁波)股份有限公司 Product Mark approaches to IM, device and server
CN110929813A (en) * 2019-11-20 2020-03-27 紫光展讯通信(惠州)有限公司 Label printing method and system, industrial personal computer and computer readable storage medium
CN111061441A (en) * 2019-12-16 2020-04-24 江苏晟驰微电子有限公司 Novel label batch printing method
CN112255977A (en) * 2020-09-29 2021-01-22 重庆机电智能制造有限公司 Label production line data acquisition system
CN113619291A (en) * 2021-06-30 2021-11-09 苏州浪潮智能科技有限公司 Online label printing system and printing method thereof
CN114077406A (en) * 2020-08-21 2022-02-22 神讯电脑(昆山)有限公司 Automatic printing method and system for Bluetooth address

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204845165U (en) * 2015-06-29 2015-12-09 国网山东省电力公司济南供电公司 Intelligent label printing device
US20180174003A1 (en) * 2016-12-15 2018-06-21 Datamax-O'neil Corporation Auto-adjusted print location on center-tracked printers
CN108215521A (en) * 2017-12-18 2018-06-29 深圳市双翼科技股份有限公司 The online Method of printing of label, apparatus and system
CN207731313U (en) * 2018-01-19 2018-08-14 珠海新天地科技有限公司 A kind of online printing and detecting system based on RFID tag

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204845165U (en) * 2015-06-29 2015-12-09 国网山东省电力公司济南供电公司 Intelligent label printing device
US20180174003A1 (en) * 2016-12-15 2018-06-21 Datamax-O'neil Corporation Auto-adjusted print location on center-tracked printers
CN108215521A (en) * 2017-12-18 2018-06-29 深圳市双翼科技股份有限公司 The online Method of printing of label, apparatus and system
CN207731313U (en) * 2018-01-19 2018-08-14 珠海新天地科技有限公司 A kind of online printing and detecting system based on RFID tag

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377247A (en) * 2019-07-24 2019-10-25 深圳市凯木金科技有限公司 Identification processing method, device, computer equipment and computer readable storage medium
CN110427163A (en) * 2019-07-30 2019-11-08 Oppo(重庆)智能科技有限公司 Product identification Method of printing and relevant device
CN110427163B (en) * 2019-07-30 2023-05-26 Oppo(重庆)智能科技有限公司 Product identification printing method and related equipment
CN110517022A (en) * 2019-08-29 2019-11-29 甬矽电子(宁波)股份有限公司 Product Mark approaches to IM, device and server
CN110929813A (en) * 2019-11-20 2020-03-27 紫光展讯通信(惠州)有限公司 Label printing method and system, industrial personal computer and computer readable storage medium
CN110929813B (en) * 2019-11-20 2022-08-26 紫光展讯通信(惠州)有限公司 Label printing method and system, industrial personal computer and computer readable storage medium
CN111061441A (en) * 2019-12-16 2020-04-24 江苏晟驰微电子有限公司 Novel label batch printing method
CN114077406A (en) * 2020-08-21 2022-02-22 神讯电脑(昆山)有限公司 Automatic printing method and system for Bluetooth address
CN112255977A (en) * 2020-09-29 2021-01-22 重庆机电智能制造有限公司 Label production line data acquisition system
CN113619291A (en) * 2021-06-30 2021-11-09 苏州浪潮智能科技有限公司 Online label printing system and printing method thereof

Similar Documents

Publication Publication Date Title
CN109240626A (en) label printing method and system
CN106372777A (en) Product production information and process management control method
CN108256872B (en) Collaborative tracing method for batch assembly information of automobile parts
CN109884996A (en) Production control system, method and production management system
CN109344719A (en) Substation equipment information query method based on augmented reality and intelligent glasses
CN103679416A (en) Lean supply chain logistics system and method
CN109676280A (en) Auto-body manufacturing generalization system and Auto-body manufacturing generalization intelligent plant system
CN102687130A (en) System and method for the management and design of complex production processes
CN107516137B (en) Intelligent ammeter manufacturing data acquisition system
CN112053082A (en) Material management system based on cloud computing
CN108335027A (en) A kind of wisdom interconnection manufacture execution managing and control system
CN106371416A (en) Assembly control method and assembly control system for assembly line
CN108090843A (en) Production line assemble flow monitoring method
CN106485406A (en) A kind of intelligent substation inspection system and method for inspecting
CN109636142A (en) A kind of technique head detecting method and device based on MES
CN110489648A (en) Education resource dynamic pushing method and system
CN104200339A (en) Information management method and system for photovoltaic module
CN110097383A (en) A kind of pre-packaged product traceability information monitoring system of wisdom and method
CN203825181U (en) Electric-energy-meter production test system
CN103825956B (en) The implementation method of the remote control and regulation technology based on agency service
CN111242578A (en) Method, device and system for distributing operation program
CN112948902B (en) Asset information confirmation method, system and medium
CN207020712U (en) Intelligent electric meter quality of production managing and control system
CN106846091A (en) A kind of environmental protection company quickly inquiry system
CN112434972A (en) Bar code management system and method based on WEB

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
AD01 Patent right deemed abandoned
AD01 Patent right deemed abandoned

Effective date of abandoning: 20200825