Electronic scale label printing system

文档序号:1588987 发布日期:2020-02-04 浏览:24次 中文

阅读说明:本技术 一种电子秤标签打印系统 (Electronic scale label printing system ) 是由 刘伟 于 2019-11-20 设计创作,主要内容包括:本发明涉及电子技术领域,特别涉及一种电子秤标签打印系统,包括硬件系统和软件系统,所述硬件系用包括控制器、所述控制器连接有串口、传感器、显示屏、按键和存储器,该系统先通过串口助手得到模板代码,然后修改代码中的数据变量,最终再由串口助手把代码发送给打印机;所述软件系统分为上位机软件和下位机软件,下位机软件主要是为了完成上位机串口数据下载,传感器数据采集,标签模板选择,标签代码发送,本发明利用市面上通用标签打印机结合低端电子秤设计标签的打印系统,使低端电子秤借助打印机的功能也具备条码秤的标签打印功能。(The invention relates to the technical field of electronics, in particular to an electronic scale label printing system, which comprises a hardware system and a software system, wherein the hardware system comprises a controller, the controller is connected with a serial port, a sensor, a display screen, a key and a memory, the system firstly obtains a template code through a serial port assistant, then modifies a data variable in the code, and finally sends the code to a printer through the serial port assistant; the software system comprises upper computer software and lower computer software, wherein the lower computer software is mainly used for completing upper computer serial port data downloading, sensor data acquisition, label template selection and label code sending.)

1. A label printing system of an electronic scale is characterized in that: the system comprises a hardware system and a software system, wherein the hardware system comprises a controller, the controller is connected with a serial port, a sensor, a display screen, a key and a memory, the system firstly obtains a template code through a serial port assistant, then modifies a data variable in the code, and finally sends the code to a printer through the serial port assistant; the software system comprises upper computer software and lower computer software, wherein the lower computer software is mainly used for completing upper computer serial port data downloading, sensor data acquisition, label template selection and label code sending.

2. A label printing system according to claim 1, wherein: the upper computer software interface manages the label templates, a user can add and delete various label templates and can conveniently browse the template information, a GRID form control is adopted for the label template interface design, and the label template interface comprises a user label template picture style area and a template code modification, browsing and checking area.

3. A label printing system according to claim 1, wherein: the software system is connected with the database, and the VB can access Data through the Data access object DOA or use the Data control to update the Data in real time.

4. A label printing system according to claim 1, wherein: the lower computer software process comprises the following steps:

(1) judging whether serial port data is accessed;

(2) if the serial port data is accessed, downloading the data and storing the data into FLASH, and then selecting a label template, otherwise, directly selecting the label template;

(3) collecting sensor data;

(4) editing a template code;

(5) and sending the printing.

Technical Field

The invention relates to the technical field of electronics, in particular to an electronic scale label printing system.

Background

The electronic scale has gradually replaced the traditional mechanical scale due to high measuring speed and simple operation, the low-end electronic scale has low price and is widely applied to various supermarkets and markets, in practice, a user does not meet simple functions of weighing and pricing, sometimes needs to print a label on data, and the electronic scale cannot meet the requirement. If the bar code scale is used, on one hand, the price is high, on the other hand, a user does not always need a printing function to cause resource waste, meanwhile, a portable label printer arranged in the bar code scale is generally matched with a manufacturer, the maintenance is inconvenient, if electronic circuit needs to be redesigned and a higher-level control chip needs to be replaced if electronic scale hardware is modified, and the cost is correspondingly improved.

Disclosure of Invention

The invention aims to provide an electronic scale label printing system aiming at the defects and shortcomings of the prior art, wherein a label printing system is designed by combining a universal label printer on the market with a low-end electronic scale, so that the low-end electronic scale also has the label printing function of a bar code scale by means of the function of the printer, and the electronic scale and the printer are mutually independent.

In order to achieve the purpose, the invention adopts the technical scheme that:

the invention relates to a label printing system of an electronic scale, which comprises a hardware system and a software system, wherein the hardware system comprises a controller, the controller is connected with a serial port, a sensor, a display screen, a key and a memory, the system firstly obtains a template code through a serial port assistant, then modifies a data variable in the code, and finally sends the code to a printer through the serial port assistant; the software system comprises upper computer software and lower computer software, wherein the lower computer software is mainly used for completing upper computer serial port data downloading, sensor data acquisition, label template selection and label code sending.

On the basis of the scheme, the upper computer software interface preferably manages the label templates, a user can add and delete various label templates and can conveniently browse the template information, the label template interface adopts a GRID form control, and the label template interface comprises a user label template picture style area and a template code modification, browsing and viewing area.

On the basis of the scheme, preferably, the software system is connected with a database, and the VB can access Data through a Data access object DOA or use a Data control to update the Data in real time.

On the basis of the scheme, the preferable lower computer software process comprises the following steps:

(1) judging whether serial port data is accessed;

(2) if the serial port data is accessed, downloading the data and storing the data into FLASH, and then selecting a label template, otherwise, directly selecting the label template;

(3) collecting sensor data;

(4) editing a template code;

(5) and sending the printing.

After adopting the structure, the invention has the beneficial effects that: the invention designs a label printing system by combining a universal label printer on the market with a low-end electronic scale, so that the low-end electronic scale also has the label printing function of the bar code scale by means of the function of the printer, the electronic scale and the printer are mutually independent, if only the weighing function is used, the electronic scale can be separated from the printer, and if the printing function is needed, the electronic scale and the printer can be connected through a data line, thereby improving the utilization rate of equipment resources, reducing the cost and being beneficial to the replacement and maintenance of equipment.

Drawings

FIG. 1 is a schematic view of the overall structure of the present invention;

figure 2 is a lower computer software flow diagram of the present invention.

Detailed Description

The invention will be further described with reference to the accompanying drawings.

As shown in fig. 1 and 2, the label printing system of the electronic scale according to the present invention includes a hardware system and a software system, wherein the hardware system includes a controller, the controller is connected with a serial port, a sensor, a display screen, a key and a memory, the system first obtains a template code by a serial port assistant, then modifies a data variable in the code, and finally sends the code to a printer by the serial port assistant; the software system is divided into upper computer software and lower computer software, and the lower computer software is mainly used for completing upper computer serial port data downloading, sensor data acquisition and label template selection label code sending.

Furthermore, the upper computer software interface manages the label templates, a user can add and delete various label templates and can conveniently browse the template information, a GRID form control is adopted for the label template interface, and the label template interface comprises a user label template picture pattern area and a template code modification, browsing and checking area.

Furthermore, the software system is connected with a database, and the VB can access Data through a Data access object DOA or update the Data in real time by using a Data control.

Further, the lower computer software process includes the following steps:

(1) judging whether serial port data is accessed;

(2) if the serial port data is accessed, downloading the data and storing the data into FLASH, and then selecting a label template, otherwise, directly selecting the label template;

(3) collecting sensor data;

(4) editing a template code;

(5) and sending the printing.

The label printing principle of the invention is as follows: the LP-50 is a thermal printer designed for printing small size labels and images using thermal paper, and is particularly suitable for printing reports that are partially modified as required or for filling template forms, with an RS-232 interface configured to facilitate connection to the device.

The LP-50 label printer is provided with special label design software, and a user can transmit the designed label to the printer through a computer serial port to print the label. In order for the hardware system to recognize the tag information, a design code of the tag template is required. Through observation and discovery, the designed label needs to be transmitted to a printer through label design software through a computer serial port for printing, a product specification does not provide label template code design, a serial port experiment is performed by utilizing a virtual serial port, a code sent to the printer is intercepted through a serial port debugging assistant, and a useful part of the code is found out through analyzing code composition through the product specification.

The overall hardware structure of the system is only added with the label printing function on the basis of the original hardware. The label printing needs to use hardware such as a display screen, keys, a serial port and the like, and the hardware can be shared with the original circuit board and only needs to be modified on software. Under the general condition that a lower computer needs to store tag codes, a controller adopts a single chip microcomputer at a lower end, the data storage space is small, the requirement for downloading and storing the tag data is large, so that the structural function of a memory on a hardware structure needs to be expanded, other hardware can be kept unchanged, the software function of the upper computer is code management of the tag template, a user can freely design the tag template, and the software stores template information in real time.

The memory of the invention is mainly used for storing the label template code, and the memory chip adopted by the system is SST25VF016B chip produced by SST company which is commonly used in the market. The memory space of the chip is 16Mbit, and the chip can meet the requirements of common customers. The chip adopts SPI interface design, and circuit design is fairly simple.

The invention designs a label printing system by combining a universal label printer on the market with a low-end electronic scale, so that the low-end electronic scale also has the label printing function of the bar code scale by means of the function of the printer, the electronic scale and the printer are mutually independent, if only the weighing function is used, the electronic scale can be separated from the printer, and if the printing function is needed, the electronic scale and the printer can be connected through a data line, thereby improving the utilization rate of equipment resources, reducing the cost and being beneficial to the replacement and maintenance of equipment.

The above description is only a preferred embodiment of the present invention, and all equivalent changes or modifications of the structure, characteristics and principles described in the present invention are included in the scope of the present invention.

6页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:智能工作平台

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类