[go: up one dir, main page]

CN111125105A - Data writing method and device and computer readable storage medium - Google Patents

Data writing method and device and computer readable storage medium Download PDF

Info

Publication number
CN111125105A
CN111125105A CN201911330315.1A CN201911330315A CN111125105A CN 111125105 A CN111125105 A CN 111125105A CN 201911330315 A CN201911330315 A CN 201911330315A CN 111125105 A CN111125105 A CN 111125105A
Authority
CN
China
Prior art keywords
data
station
target object
writing
creating
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
CN201911330315.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.)
Guangdong Topstar Technology Co Ltd
Original Assignee
Guangdong Topstar 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 Guangdong Topstar Technology Co Ltd filed Critical Guangdong Topstar Technology Co Ltd
Priority to CN201911330315.1A priority Critical patent/CN111125105A/en
Publication of CN111125105A publication Critical patent/CN111125105A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06316Sequencing of tasks or work

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Educational Administration (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Optical Recording Or Reproduction (AREA)

Abstract

The invention provides a data writing method, which comprises the following steps: creating a target object according to the number of stations; each target object creates a corresponding number of data units according to the number of data generated by the stations and forms a data table; and if each station finishes the operation, writing the data generated by the station into the corresponding data unit. The data writing method, the data writing device and the computer readable storage medium can accurately write the data into the corresponding position.

Description

Data writing method and device and computer readable storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data writing method and apparatus, and a computer-readable storage medium.
Background
The manufacture of a single piece of glass into a finished product requires multiple processes, each of which produces data. Only receiving data of a single glass at the same time can not cause the problem of data writing errors, and if receiving data of a plurality of glasses at the same time, the data of which glass can not be determined can be generated, thereby causing the problem of data writing errors.
Disclosure of Invention
The invention aims to provide a data writing method, a data writing device and a computer readable storage medium, which can accurately write data into a corresponding position.
In order to achieve the purpose, the invention adopts the following technical scheme:
in a first aspect, the present invention provides a data writing method, including:
creating a target object according to the number of stations;
each target object creates a corresponding number of data units according to the number of data generated by the stations and forms a data table;
and if each station finishes the operation, writing the data generated by the station into the corresponding data unit.
Further, the target object is created according to the number of the stations, and then the method further comprises the following steps:
each of the target objects creates a time data unit.
Furthermore, the stations are a thickness station, a stress station and a laser code station according to the operation sequence.
Further, each target object creates a corresponding number of data units according to the number of data generated by the workstation, and forms a data table, including:
according to the quantity of data generated by the thickness station, the stress station and the laser code station, creating a corresponding quantity of data units for each target object;
and sequencing the data unit corresponding to the thickness station, the data unit corresponding to the stress station and the data unit corresponding to the radium code station according to the operation sequence, and forming a data table.
Further, writing the data of the workstation into the corresponding data unit includes:
determining a corresponding data unit according to the station;
and writing the data generated by the stations into corresponding data units in sequence.
Further, if each station has completed its operation, the data of the station is written into the corresponding data unit, and then the method further includes:
removing the target object and the data unit corresponding to the last station according to the operation sequence;
and moving the rest target objects to the next station according to the operation sequence, and creating the target objects at the first station.
In a second aspect, the present invention provides a data writing apparatus comprising:
the creating module is used for creating target objects according to the number of the stations, creating data units with corresponding number for each target object according to the number of data generated by the stations, and forming a data table;
and the writing module is used for writing the data of the stations into the corresponding data units if the operation of each station is finished.
Further, the creating module is specifically configured to create a corresponding number of data units for each target object according to the number of data generated by the thickness station, the stress station and the radium code station;
and sequencing the data unit corresponding to the thickness station, the data unit corresponding to the stress station and the data unit corresponding to the radium code station according to the operation sequence, and forming a data table.
Further, the device also comprises a processing module;
the processing unit is used for removing the target object and the data unit corresponding to the last station according to the operation sequence and moving the remaining target object to the next station according to the operation sequence;
correspondingly, the creating module is further used for creating the target object at the first station according to the operation sequence.
In a third aspect, the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the data writing method as described above.
The invention has the beneficial effects that:
according to the invention, the data unit is created according to the data generated by the stations, and only the corresponding data unit is operated after each station is operated, so that the target object to which the data belongs can be simply determined, and the data can be accurately written into the corresponding data unit in the target object.
Drawings
Fig. 1 is a flowchart illustrating a data writing method according to an embodiment.
Fig. 2 is a schematic structural diagram of a data writing device according to a second embodiment.
Detailed Description
In order to make the technical problems solved, technical solutions adopted and technical effects achieved by the present invention clearer, the technical solutions of the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments.
Example one
The embodiment provides a data writing method, which can simply clarify a target object to which data belongs and accurately write the data into a corresponding data unit in the target object.
Fig. 1 is a flowchart illustrating a data writing method according to an embodiment. As shown in fig. 1, the method comprises the following specific steps:
s11, creating the target object according to the number of the stations.
Preferably, the stations comprise a thickness station, a stress station and a laser code station, and 3 target objects are correspondingly created on the basis of 3 stations. The 3 target objects can be accommodated by building a target list, further preventing the target objects from being arranged incorrectly.
S12, each of the target objects creates a time data unit.
The data of the time data unit is a feature code, and the time stamp of creating the target object can be used for knowing the creating time of each target object and determining the target of the operation at the time.
And S13, each target object creates a corresponding number of data units according to the number of the station generated data, and forms a data table.
Correspondingly, the stations are a thickness station, a stress station and a laser code station according to the operation sequence.
And according to the quantity of the data generated by the thickness station, the stress station and the laser code station, creating a corresponding quantity of data units for each target object.
The thickness station generates two data, and two data units are correspondingly created; generating four data by a stress station, and correspondingly creating four data units; the radium code station generates data, and a data unit is correspondingly created.
And sequencing the data unit corresponding to the thickness station, the data unit corresponding to the stress station and the data unit corresponding to the radium code station according to the operation sequence, and forming a data table.
Correspondingly, firstly arranging the data unit of the thickness station behind the time data unit, and sequencing the interior of the data unit of the thickness station according to the actual situation, namely, the first bit is the data bit of the time data unit, and the second and third bits are the data bits of the thickness station; arranging the data units of the stress stations behind the data units of the thickness stations, and sequencing the interiors of the data units of the stress stations according to actual conditions, namely the fourth, fifth, sixth and seventh positions are data bits of the stress stations; and then arranging the data unit of the radium code station behind the data unit of the stress station, namely, arranging the eighth data bit of the radium code station to form a data table. The method provides a basis for accurately writing data, and can reduce the problem of writing errors.
Preferably, before each station works, the value of the data bit is an initial value, and the initial value can be set according to the actual situation.
And S14, if each station finishes the operation, writing the data of the station into the corresponding data unit.
Preferably, the corresponding data units are determined according to the stations, and the data generated by the stations are written into the corresponding data units in sequence.
Correspondingly, after each station generates data, namely the thickness station, the stress station and the radium code station generate data simultaneously, data units of the second and third positions are determined for the thickness station according to the station, data units of the fourth, fifth, sixth and seventh positions are determined for the stress station according to the station, and data units of the eighth position are determined for the radium code station according to the station, so that the data units of the corresponding positions are determined according to the station.
And then, the data generated by the thickness station is written into the second-bit data unit and the third-bit data unit in sequence, the data generated by the stress station is written into the fourth-bit data unit, the fifth-bit data unit, the sixth-bit data unit and the seventh-bit data unit in sequence, and the data generated by the radium code station is written into the eighth data unit, so that only the data unit at the corresponding position is operated, the data are accurately written into the corresponding data unit, and the data of the previous station are written into each target object before the current station operation.
Preferably, the method further comprises:
and S15, removing the target object and the data unit corresponding to the last station according to the operation sequence. Providing a basis for the target object to move to the next workstation.
S16 moves the remaining target objects to the next workstation in the job order and creates the target objects at the first workstation. The target objects are moved to the next station in order and the target objects are built in synchronization with the job. .
According to the data writing method and the data writing device, the data units are created according to the data generated by the stations, and only the corresponding data units are operated after each station operation, so that the target object to which the data belong can be simply determined, and the data can be accurately written into the corresponding data units in the target object.
Example two
The present embodiment provides a data writing device, which is configured to implement the data writing method described in the foregoing embodiment, solve the same technical problem, and achieve the same technical effect.
Fig. 2 is a schematic structural diagram of a data writing device according to a second embodiment. As shown in fig. 2, the apparatus includes:
and the creating module 10 is used for creating target objects according to the number of the stations, creating data units with corresponding number for each target object according to the number of the data generated by the stations, and forming a data table.
Further, the method is specifically used for creating a corresponding number of data units for each target object according to the number of data generated by the thickness station, the stress station and the laser code station;
and sequencing the data unit corresponding to the thickness station, the data unit corresponding to the stress station and the data unit corresponding to the radium code station according to the operation sequence, and forming a data table.
And the writing module 20 is configured to write the data generated by each workstation into a corresponding data unit if the workstation has completed the operation. The data write error is avoided, and the data can be accurately written into the corresponding data unit in the target object.
Preferably, the apparatus further comprises a processing module 30;
the processing unit 30 is configured to remove the target object and the data unit corresponding to the last station according to the operation sequence, and move the remaining target object to the next station according to the operation sequence;
correspondingly, the creating module 10 is further configured to create the target object at the first workstation according to the operation sequence.
According to the embodiment, through the matching of the creating module and the writing module, the target object to which the data belong can be simply determined, the data can be accurately written into the corresponding data unit in the target object, the situation that the data of a plurality of targets are received at the same time and the target to which the data belong cannot be determined can be prevented, and the data writing error is avoided.
EXAMPLE III
The present embodiment also provides a computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the data writing method as described in the above embodiments. The method comprises the following steps:
creating a target object according to the number of stations;
each target object creates a corresponding number of data units according to the number of data generated by the stations and forms a data table;
and if each station finishes the operation, writing the data generated by the station into the corresponding data unit.
The technical principle of the present invention is described above in connection with specific embodiments. The description is made for the purpose of illustrating the principles of the invention and should not be construed in any way as limiting the scope of the invention. Based on the explanations herein, those skilled in the art will be able to conceive of other embodiments of the present invention without inventive effort, which would fall within the scope of the present invention.

Claims (10)

1. A method of writing data, comprising:
creating a target object according to the number of stations;
each target object creates a corresponding number of data units according to the number of data generated by the stations and forms a data table;
and if each station finishes the operation, writing the data generated by the station into the corresponding data unit.
2. The data writing method of claim 1, wherein the target object is created according to the number of workstations, and then further comprising:
each of the target objects creates a time data unit.
3. The data writing method according to claim 1, wherein: the stations are a thickness station, a stress station and a laser code station according to the operation sequence.
4. The data writing method of claim 3, wherein each target object creates a corresponding number of data units according to the amount of the workstation-generated data and forms a data table, comprising:
according to the quantity of data generated by the thickness station, the stress station and the laser code station, creating a corresponding quantity of data units for each target object;
and sequencing the data unit corresponding to the thickness station, the data unit corresponding to the stress station and the data unit corresponding to the radium code station according to the operation sequence, and forming a data table.
5. The data writing method of claim 1, wherein writing data of the workstation into a corresponding data cell comprises:
determining a corresponding data unit according to the station;
and writing the data generated by the stations into corresponding data units in sequence.
6. The data writing method of claim 1, wherein if each workstation has completed the operation, the data of the workstation is written into the corresponding data unit, and then further comprising:
removing the target object and the data unit corresponding to the last station according to the operation sequence;
and moving the rest target objects to the next station according to the operation sequence, and creating the target objects at the first station.
7. A data writing apparatus, comprising:
the creating module is used for creating target objects according to the number of the stations, creating data units with corresponding number for each target object according to the number of data generated by the stations, and forming a data table;
and the writing module is used for writing the data of the stations into the corresponding data units if the operation of each station is finished.
8. The data writing apparatus according to claim 7, wherein:
the creating module is specifically used for creating data units with corresponding quantity for each target object according to the quantity of data generated by the thickness station, the stress station and the laser code station;
and sequencing the data unit corresponding to the thickness station, the data unit corresponding to the stress station and the data unit corresponding to the radium code station according to the operation sequence, and forming a data table.
9. The data writing apparatus according to claim 7, further comprising a processing module;
the processing unit is used for removing the target object and the data unit corresponding to the last station according to the operation sequence and moving the remaining target object to the next station according to the operation sequence;
correspondingly, the creating module is further used for creating the target object at the first station according to the operation sequence.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a data writing method according to any one of claims 1 to 6.
CN201911330315.1A 2019-12-20 2019-12-20 Data writing method and device and computer readable storage medium Pending CN111125105A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911330315.1A CN111125105A (en) 2019-12-20 2019-12-20 Data writing method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911330315.1A CN111125105A (en) 2019-12-20 2019-12-20 Data writing method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111125105A true CN111125105A (en) 2020-05-08

Family

ID=70501545

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911330315.1A Pending CN111125105A (en) 2019-12-20 2019-12-20 Data writing method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111125105A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1289097A (en) * 1999-09-17 2001-03-28 日本电气株式会社 Information processing system capable of indicating trend of changing
US20140207506A1 (en) * 2013-01-21 2014-07-24 Salesforce.Com, Inc. Computer implemented methods and apparatus for recommending a workflow
CN104220943A (en) * 2012-03-23 2014-12-17 株式会社日立制作所 Production project proposal determination method, production project proposal device and program
CN104732067A (en) * 2015-02-26 2015-06-24 济南大学 Industrial process modeling forecasting method oriented at flow object
CN108255984A (en) * 2017-12-28 2018-07-06 浪潮通用软件有限公司 A kind of data analysis method and device
CN108398918A (en) * 2018-02-11 2018-08-14 湖南三德科技股份有限公司 A kind of PLC information flows method, memory, PLC and system
CN108830514A (en) * 2018-08-31 2018-11-16 河南正向电子科技有限公司 A kind of quotient's concrete quality-monitoring managing and control system
CN109101398A (en) * 2018-08-10 2018-12-28 武汉精测电子集团股份有限公司 AOI wire body monitoring method and system
US20190213245A1 (en) * 2017-12-21 2019-07-11 Battelle Energy Alliance, Llc Method to convert a written procedure to structured data, and related systems and methods

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1289097A (en) * 1999-09-17 2001-03-28 日本电气株式会社 Information processing system capable of indicating trend of changing
CN104220943A (en) * 2012-03-23 2014-12-17 株式会社日立制作所 Production project proposal determination method, production project proposal device and program
US20140207506A1 (en) * 2013-01-21 2014-07-24 Salesforce.Com, Inc. Computer implemented methods and apparatus for recommending a workflow
CN104732067A (en) * 2015-02-26 2015-06-24 济南大学 Industrial process modeling forecasting method oriented at flow object
US20190213245A1 (en) * 2017-12-21 2019-07-11 Battelle Energy Alliance, Llc Method to convert a written procedure to structured data, and related systems and methods
CN108255984A (en) * 2017-12-28 2018-07-06 浪潮通用软件有限公司 A kind of data analysis method and device
CN108398918A (en) * 2018-02-11 2018-08-14 湖南三德科技股份有限公司 A kind of PLC information flows method, memory, PLC and system
CN109101398A (en) * 2018-08-10 2018-12-28 武汉精测电子集团股份有限公司 AOI wire body monitoring method and system
CN108830514A (en) * 2018-08-31 2018-11-16 河南正向电子科技有限公司 A kind of quotient's concrete quality-monitoring managing and control system

Similar Documents

Publication Publication Date Title
CN104385787B (en) A kind of control method of laser marking machine and laser marking machine
CN102650984A (en) Test report generation system and method
CN112016699B (en) Deep learning model training method, working node and parameter server
EP4432134A2 (en) Method, circuit, and soc for performing matrix multiplication operation
CN102025389A (en) Method and device for generating pseudorandom sequence
CN104486111A (en) 1553B data bus system network management method
EP4583112A3 (en) Hardware accelerated k-mer graph generation
CN111125105A (en) Data writing method and device and computer readable storage medium
US9898228B2 (en) Write method and write apparatus for storage device
CN110162511A (en) A kind of log transmission method and relevant device
CN105527637A (en) BCH decoding method and device in Beidou satellite navigation positioning system
CN113645008B (en) Message protocol timeout retransmission method and system based on linked list
CN107783896B (en) Optimization method and device of data processing model
CN103186365B (en) A kind of method and system generating steering order according to character contour change
CN109327354B (en) Method, device and test system for generating signal forwarding test case
CN102289401B (en) System-level verification method, device and system for chip
CN101373382B (en) Plug-in program conversion method and system for automatic plug-in machine
CN103139923A (en) Method and device for transmission of multiple subframe scheduling signaling
CN108062223B (en) Method and device for establishing connection relation between Simulink models
CN111614534A (en) Communication method and device and electronic equipment
CN107122489B (en) Data comparison method and device
CN113641758A (en) Wind control statistical method and device based on real-time warehouse data acquisition
EP4128542A1 (en) Accelerating bit error correction in layered ldpc decoding
CN112287693A (en) Automatic post-editing method and device for machine translation
Li et al. Incorporating multiple a priori information for inverse problem by inexact scaled gradient projection

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200508