WO2009100563A1 - 打印控制方法及立体回转面打印机 - Google Patents
打印控制方法及立体回转面打印机 Download PDFInfo
- Publication number
- WO2009100563A1 WO2009100563A1 PCT/CN2008/000217 CN2008000217W WO2009100563A1 WO 2009100563 A1 WO2009100563 A1 WO 2009100563A1 CN 2008000217 W CN2008000217 W CN 2008000217W WO 2009100563 A1 WO2009100563 A1 WO 2009100563A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- printing
- feed motor
- printer
- module
- Prior art date
Links
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B41—PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
- B41J—TYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
- B41J13/00—Devices or arrangements of selective printing mechanisms, e.g. ink-jet printers or thermal printers, specially adapted for supporting or handling copy material in short lengths, e.g. sheets
- B41J13/0009—Devices or arrangements of selective printing mechanisms, e.g. ink-jet printers or thermal printers, specially adapted for supporting or handling copy material in short lengths, e.g. sheets control of the transport of the copy material
- B41J13/0027—Devices or arrangements of selective printing mechanisms, e.g. ink-jet printers or thermal printers, specially adapted for supporting or handling copy material in short lengths, e.g. sheets control of the transport of the copy material in the printing section of automatic paper handling systems
Definitions
- the present invention relates to a printer, and more particularly to a three-dimensional rotary surface printer, a print control method thereof, and a print control module. Background technique
- a device for printing graphics on the surface of a candle disclosed in Chinese Patent Application (CN200510045534.7), that is, one capable of A mechanical device for printing a three-dimensional rotary surface
- the device for printing a graphic on a surface of a candle realizes a function of printing a graphic on a candle by modifying a feeding mechanism of an ordinary inkjet paper printer, including an inkjet printing unit, the printing unit
- the utility model comprises a printing bracket, a printing head is arranged on the printing bracket, the printing head can reciprocate linearly with respect to the bracket, two mutually parallel rotating shafts are arranged under the inkjet printing unit, at least one rotating shaft is coupled with the driving device, the driving device and the inkjet printing unit and the line Board connection.
- a cylindrical candle is placed between the two mutually parallel rotating shafts, since at least one rotating shaft is coupled with the driving device, whereby the rotation of the rotating shaft drives the candle to rotate, so that the reciprocating print head can be in the cylinder of the candle Print the graphic on the surface.
- a conventional inkjet paper printer may have a paper feed before and after printing. In the process of paper exiting, the print head does not print at these two stages, so if the control system of the ordinary inkjet paper printer is used directly, it will cause misprinting and damage the graphic printed on the surface of the object.
- the inkjet paper printer has the process of cleaning the ink cartridge before and after printing, and the feeding motor runs at a higher speed when the ink cartridge is cleaned, thus causing misprinting of the printing and destroying the graphic printed on the surface of the object.
- the object of the present invention is to solve the problem that the ordinary inkjet paper printer directly produces misalignment and damages the printed graphics when printing on the three-dimensional rotary surface, and the unnecessary stroke of the feed motor is removed. Therefore, the position of the surface of the object on the three-dimensional surface is printed correctly and the quality or speed of the image printed on the surface of the object on the three-dimensional surface is improved.
- the present invention provides a control method for printing on a surface of a three-dimensional rotary surface, Including the following steps:
- S2 Send a stop signal to the feed motor after the print head has stopped printing.
- the invention also provides a three-dimensional rotary surface printer for implementing the control method of the invention, which technical solution comprises a mechanical device and a printing control device, the mechanical device comprising a print head, a carriage mechanism, a feeding mechanism and a printing medium supply.
- the mechanical device is uniformly coordinated and controlled by the printing control device, and the printing control device comprises a processor, a power module, a driving circuit, an input/output interface circuit for supplying power to the processor, the printer main board and the feeding motor.
- the detecting circuit, the printing control device further includes:
- a feed motor controller coupled to the processor, controlling the feed motor of the feed mechanism according to a control command of the processor
- the processor further includes a preset module, for each print job, determining an operation program in which the print head and the feed motor that drives the movement of the printed object coordinate to complete the print job;
- the processor controls the printer to execute the print job in accordance with the job program; after the print head stops printing, sends an instruction to the feed motor controller to stop the feed motor from rotating.
- the present invention finally provides a printing apparatus including a print execution module and a print control module that issues a print command to the printer, the print execution module being the three-dimensional rotary surface printer of the present invention.
- the print control module is a print control module based on an ARM embedded system.
- the invention has the beneficial effects that the three-dimensional rotary surface printer of the invention and the printing control method of the invention intercept the signal of the feed motor outputted by the main board of the printer, analyze the relationship between the movement and the movement of the ink head, and change the self-contained movement of the printer.
- the feed motor is no longer rotated in the state of high-speed paper ejection, and some feed motor movement processes that are not required by the product are removed, thereby shortening the motor movement stroke, reducing the product volume, and ensuring accurate print positioning.
- the invention does not simply and directly use the feed motor drive signal from the printer, but by flexibly changing the direction of motion by analyzing and processing the signal, and adapting the motion mechanism designed by itself to adapt to the pattern printing on the three-dimensional rotary surface articles of different shapes.
- the printing apparatus of the present invention can operate independently from a computer, and in many applications, the printing function can be realized without being limited by the venue and conditions.
- the printing method, the printer and the printing device of the present invention can select printing modes such as fine printing and fast printing according to the nature of the printing task, and meet the different needs of users at different levels.
- FIG. 1 is a flow chart of a printing control method of a three-dimensional rotary surface printer according to the present invention
- FIG. 2 is a block diagram of a printing control device of a three-dimensional rotary surface printer of the present invention
- FIG. 3 is a block diagram of a printing apparatus according to an embodiment of the present invention.
- FIG. 4 is a schematic diagram of a preprocessing process of a printing apparatus according to an embodiment of the present invention. detailed description
- FIG. 2 is a block diagram of a printing control device for a three-dimensional rotary surface printer according to the present invention
- FIG. 3 is a block diagram of a printing device according to an embodiment of the present invention
- 4 is a schematic diagram of a preprocessing process of a printing apparatus according to an embodiment of the present invention.
- the three-dimensional rotary surface printer of the embodiment of the present invention is a modified inkjet printer, and the feeding mechanism is modified and a control circuit is added, including a mechanical device and a printing control device, and the mechanical device includes an ink as a print head.
- the head, the carriage mechanism, the feed motor as the feed mechanism, and the ink cartridge as the print medium supply mechanism are collectively coordinated and controlled by the print control device.
- the three-dimensional rotary surface printer of the embodiment of the present invention is first a cylindrical flat surface dual-purpose printer, and he can also print on a three-dimensional rotating surface such as a conical surface.
- the feeding mechanism drives the printed object to move. If it is necessary to print a flat object, such as a quadrangular prism type candle, it is necessary to place a flat plate on the two rotating shafts of the feeding mechanism, because of the relationship between the rotating shaft and the rotating shaft. The friction, the running plate will be fed in the same speed as the axis speed, the same as the paper feed in the printer.
- the invention has a parallel rotating shaft, and the rotating shaft is coupled with the DC motor, so that the cylindrical article can be placed on the rotating shaft, and when the printing unit swings back and forth and is printed on the cylindrical surface, the effect is equivalent to the feeding of the paper during the printing process.
- the result is that the cylindrical surface is sprayed with a preset pattern; since the flat plate is configured, the flat plate is placed on the rotating shaft, which will be fed at the speed of the rotating axis, and the flat object is placed on the flat plate, and The pattern is sprayed on a flat surface; and since the two rotating shafts can be pulled in or pulled away by the lead screw device, and the printing unit can slide along the vertical column, it can be adapted to a cylindrical shape within a certain diameter or height range. Items and flat items, and other three-dimensional revolving items, such as cylindrical candles of different diameters and sizes, square candles or conical candles.
- a three-dimensional rotary surface printer includes a processor, a power module for supplying power to a processor, a printer main board, and a feed motor, various driving circuits of the printer, and an input/output interface.
- the circuit and the detection circuit further include a feed motor controller connected to the processor to control the rotation and stop of the feed motor and the direction of rotation according to the control command of the processor.
- the processor further includes a preset module, for each print task, determining a work program of the print job for different parameters of each print job, the work program includes a print head operation program and a feed motor operation program, and a print head Coordination and synchronization with the feed motor.
- the processor controls the printer to execute the print job according to the operation program; after the print head stops printing, that is, after the feed motor enters the high speed paper exit state, the processor sends a command to the feed motor controller, and the feed motor controller controls the feed motor. Stop turning.
- the print control device further includes a feed motor drive signal detecting module coupled to the processor for acquiring the feed motor drive signal.
- the printer of the first embodiment of the present invention analyzes the relationship between the feed motor and the operating state of the print head by acquiring and analyzing the feed motor drive signal, determines the rotation direction of the feed motor, and determines whether the feed motor is already at high speed. Paper status.
- the feed motor drive signal is not zero (ie, there is a drive signal): the direction of rotation of the feed motor is obtained by comparison with the previously obtained drive signal; if the feed step of the feed motor is greater than the set
- the predetermined one-way scanning feed step determines that the feed motor has entered the high-speed paper-out state; if the feed motor has no more feed steps than the one-way scan feed step, the processor controls the printer to execute the print job according to the operation program.
- the processor sends a paper signal to the printer main board to control the operation of the print head, and simultaneously sends a command to the feed motor controller to control the feed motor to follow the operation program.
- the printer of the second embodiment of the present invention analyzes its relationship with the operating state of the print head by acquiring and analyzing the feed drive signal, determines the direction of rotation of the feed motor, and determines the current state of the printer.
- the print status is obtained by the calculation of the number of pulses: the start of printing, the intermediate process of printing, the end of printing; the first number of feed steps such as the feed motor If the number of steps is greater than the set one-way scan feed step, the printer can enter the print start state, and the processor sends a paper signal to the printer main board to control the print head movement; if the feed motor feeds the second step more than the set The one-way scan feed step determines that the printer enters the print end state, and the processor sends a paperless signal to the printer main board to control the print head to stop working; if the feed motor has no more feed steps than the one-way scan feed step And the signal is valid, the processor controls the printer to execute
- the printing control method of the present invention causes the feed motor to be in a stopped state until the next graphic pixel task starts.
- four-shot control is adopted, and the interval mask is used.
- the other 4 beat signals, 4 shots are 4 steps.
- the feed motor is stopped for 12 steps, the counter is cleared, and then the counter is cleared.
- the processor sends a paperless signal to the printer.
- the print control device of the printer of the embodiment of the invention uses a switching power supply to convert 220V AC into a DC voltage used by various components of the printer, and supplies 5V DC power to the printer main board, 30V DC power to the printer CPU, and 12V to the feed motor. DC power.
- the three-dimensional rotary surface printer of the embodiment of the invention has two motors, one for controlling the rubber roller stepping motor of the object to be printed, and the other for controlling the DC motor of the print head belt (the DC motor converts the rotation of the motor through the rack belt into The linear motion of the print head is synchronized and coordinated by the processor according to the operating procedure.
- the print control device of the printer of the embodiment of the present invention further includes a printer function key module connected to the processor for managing the power of the printer, that is, the power switch of the printer, and the operations of centering the ink cartridge and resetting the ink cartridge.
- the processor detects the state of the print head transmitted from the module according to the feed motor drive signal, and if it is in the print state, sends a paper signal to the printer main board; if it is in the non-print state, the printer board is sent to the printer main board. Issue a paperless signal;
- the printing control method of the embodiment of the present invention intercepts the relationship between the driving signal of the feeding motor and the action of the ink head by intercepting the driving signal of the feeding motor, and obtaining whether the ink head is in an inkjet state or a non-inkjet.
- State information control the feed motor to drive the printed object such as the candle to rotate according to the predetermined operating procedure when the ink head is in the inkjet state, and other times, including when the feed motor is unloaded at high speed, stop the movement to subtract the feed motor Unnecessary itinerary.
- the feed motor records the number of feed steps through a counter, and after the feed motor is stopped, the counter is cleared.
- the feed motor feeds N steps, then stops (feed count is cleared), and so on.
- the print control method of the embodiment of the present invention determines whether the feed signal of the feed motor is zero. If not, the direction of rotation of the feed motor is obtained compared with the previous drive signal, and the feed is generated. The driving direction of the motor in the next step; at the same time, the value of the counter is incremented by 1, and it is further determined whether the feed step of the feed motor is greater than the set one-way scan feed step (N);
- the processor sends a paper signal to the printing main board, and issues an instruction to the feeding motor controller to control the feeding motor to follow a predetermined procedure;
- the feed motor is controlled to wait, waiting for the next print job. If the drive signal of the feed motor is zero, it indicates that the feed motor has stopped, so that the printer can be stopped and wait for the next print job.
- the feed motor drive signal detecting module uses the level change interrupt method to intercept the printer feed motor drive signal. Since the stepping motor is fixed for each beat and stop, the feed step and steering of the feed motor can be obtained by feeding the motor drive signal. Due to the different mechanical movement requirements, the direction needs to be controlled when printing round and square candles. The direction control of the feed motor is finally achieved by the forward and reverse rotation of the feed motor.
- the operator can remove the printed object, such as a cylindrical or square candle, from the holder; or by a mechanical device or mechanical electronics that is automatically placed and removed.
- the blank area here needs to include at least one blank line.
- the leftmost person in the blank area is added with an invisible print mark, such as a vertical Straight thin line. Such thin lines are printed without affecting the visual effect of the pattern.
- the printer of the present invention can be connected to a personal computer (PC) to complete a print job, or can be connected to an ARM machine to complete a print job, or can be used as a network printer, or can be connected to other print control modules. .
- PC personal computer
- the printing apparatus of the embodiment of the present invention includes the high quality fine print printing of the embodiment of the present invention.
- the print control module is a print control module based on embedded Linux. It has a liquid crystal (LCD) display, which can be connected to a USB flash drive, and can be moved by a built-in application. Store text and image files on your device and perform simple image editing. You can also change the print parameters as needed.
- LCD liquid crystal
- the hardware structure of the print control module of the embodiment of the present invention includes: a first power module for DC12V for supplying power to the ARM motherboard;
- TFT touch LCD and LCD driver PCB, used for real-time display of the status of hardware and software work execution; and can realize touch point selection operation; and preview display during picture editing; for users to select the pattern to be printed And preview its prints.
- DC digital video equipment can use the mesh 2000 digital Digital Camera, used to capture the status of the printed area in real time during work;
- Central Control PCB Used to print the timing control of the start printing of the execution module; and can control the printing range of the print execution module;
- ARM motherboard using ARM 2410 architecture motherboard, which is the core and carrier of ARM embedded system; it is also the processor inheritance module of ARM embedded system.
- the print execution module of the printing device of the embodiment of the invention may further be externally connected with a flash memory for storing an embedded operating system and an application program, and the remaining space is used for temporarily storing files and freely storing and using the user.
- the print execution module of the printing device of the embodiment of the present invention can further expand the system into four USB external interfaces through a USB hub chip for connecting external devices such as a printer, a USB flash drive, a mouse, and a keyboard. Also included is SDRAM memory.
- the software adopts a linux operating system which is cut (according to peripheral hardware and required services), and includes a format conversion program Netpbm, a ghostScript program, a printer driver, a print management program, and a user interface.
- the time interval between when the print button is clicked and when the printer starts moving is long, usually because it does not allow fine printing, because the print parameters are not set correctly. Second, the time interval is longer because all the work is done after clicking the print button. And did some unnecessary image conversion.
- the print control module of the printing apparatus of the embodiment of the invention further comprises a picture pre-processing module, which realizes fine printing, and realizes fine printing by changing parameters of the input ijs.
- the image is processed in advance, and the image is formatted when the image is loaded, and the PS format file is generated and placed in the opened memory space for easy modification.
- the program abandoning the settings for image size scaling in the pnmtops program, rotating the picture, moving the picture and zooming are all done by modifying the PS file.
- the print control module further includes a shape parameter selection module of the object to be printed, including selection of shape parameters such as shape, size, and length of the object to be printed, and the print control module transmits the input parameter to the processor for use.
- a job program of the print job is formed. For example, for a candle printer, it can be a round candle or a square candle. If it is a cylindrical candle, you can choose its diameter and length; if it is a square candle, you can choose it as a few prisms, and the length and width of each print surface. For objects with a conical surface to be printed, the bottom radius and height can be selected.
- the print control module further includes a print mode selection module for selecting different print modes according to the user's printing requirements.
- print modes There are two types of print modes: fine print and fast print. Different print modes correspond to different single-pass scan steps. You can also distinguish print modes by print quality, such as fine print, general print, and draft print.
- the printing device of the embodiment of the invention integrates the printing execution module and the ARM embedded control module of the stereoscopic rotary surface printer; in the ARM embedded system, the Linux environment completes the implantation of the printing device driver and can operate normally; Complete the conversion of the image format to be printed; complete the high quality and fine print of the image; complete the normal driving of the digital video display device; realize the human-computer interaction function of the touch operation; complete under the control of the ARM embedded system, Accurate positioning of the print position when the picture is printed, basically meets the user's "what you see is what you get” requirements; makes the product look beautiful and lightweight.
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
Description
打印控制方法及立体回转面打印机 技术领域
本发明涉及打印机, 尤其涉及立体回转面打印机及其打印控制方法和打印控制模块。 背景技术
随着打印技术的发展, 人们已经能够在各种物品上根据不同的需要打印图文, 如中国 专利申请(CN200510045534.7)公开的一种在蜡烛表面打印图文的装置, 即一种能够在立 体回转面打印的机械装置,该在蜡烛表面打印图文的装置通过改造普通的喷墨纸张打印机 的进给机构来实现在蜡烛上打印图文的功能, 其中包括喷墨打印单元, 该打印单元包括打 印支架, 打印支架上设置打印头, 打印头可相对支架直线往复运动, 喷墨打印单元下方设 置两个相互平行的转轴, 至少一个转轴与驱动装置联接, 驱动装置及喷墨打印单元与线路 板联接。 打印时, 将圆柱形的蜡烛放置在所述两个相互平行的转轴之间, 由于至少一个转 轴与驱动装置联接, 由此转轴的旋转带动蜡烛转动, 于是往复运动的打印头可在蜡烛的圆 柱表面上打印图文。
但是在立体回转物品的表面打印, 尤其是在圆柱体表面打印, 与在纸面上打印具有实 质上的不同之处, 例如, 普通的喷墨纸张打印机在打印之前与打印之后会有进纸和出纸的 过程, 在这两个阶段, 打印头不进行打印工作, 因此如果直接采用普通的喷墨纸张打印机 的控制系统, 因此会导致打印错位并破坏打印到物体表面的图文, 另外, 普通的喷墨纸张 打印机在打印之前与打印之后会有清洗墨盒的过程,在清洗墨盒时进给电机以较高速度运 转, 因此会导致打印错位并破坏打印到物体表面的图文。
同时, 大多数打印机都是由桌面机及相应软件来驱动的, 但是许多情况下, 在实际应 用中希望打印机能脱离计算机而独立工作, 实现便携与易用的目的。 发明内容
针对上述现有技术的缺陷,本发明的目的在于解决直接采用普通的喷墨纸张打印机在 立体回转面打印时会产生错位及破坏已打印图文的问题, 去除了进给电机的不必要的行 程,从而保证在立体回转面物体表面打印的位置正确并提高在立体回转面物体表面打印的 图文质量或速度。
为了达到上述发明目的, 本发明提供了一种在立体回转面体表面打印的控制方法, 包
括如下步骤:
包括步骤-
S1 : 针对每一打印任务, 打印头与带动被打印物件运动的进给电机同步启动, 相互协 调执行所述打印任务;
S2: 在所述打印头已停止打印后, 向所述进给电机发送一停止信号。
本发明还提供了一种实现本发明控制方法的立体回转面打印机, 其技术方案为, 包括 机械装置和打印控制装置, 所述机械装置包括打印头、 字车机构、 进给机构、 打印介质供 给机构, 所述机械装置由所述打印控制装置统一协调和控制, 所述打印控制装置包括处理 器、 向所述处理器、 打印机主板和进给电机供电的电源模块、 驱动电路、 输入输出接口电 路及检测电路, 所述打印控制装置还包括:
一进给电机控制器, 连接于处理器, 按照所述处理器的控制指令, 控制所述进给机构 的进给电机;
所述处理器还包括一预设模块, 针对每一打印任务, 确定打印头与带动被打印物件运 动的进给电机相互协调完成打印任务的作业程序;
所述处理器控制打印机按照所述作业程序执行所述打印任务;在所述打印头停止打印 后, 向所述进给电机控制器发送一指令, 让所述进给电机停止转动。
本发明最后提供了一种打印设备,包括打印执行模块和向打印机发出打印指令的打印 控制模块, 所述打印执行模块为本发明的立体回转面打印机。 优选的, 打印控制模块为基 于 ARM嵌入式系统的打印控制模块。
本发明的有益效果在于, 本发明的立体回转面打印机和本发明的打印控制方法, 通过 截取打印机主板输出的进给电机信号, 解析其与墨头动作之间的关系, 改变打印机自带的 进给电机运动过程, 使进给电机在高速退纸的状态下不再转动, 去除了一些本产品不需要 的进给电机运动过程, 从而缩短电机运动行程, 缩小产品体积, 保证打印定位准确。
本发明的不是简单、直接地使用打印机发出的进给电机驱动信号, 而通过对信号分析 处理, 灵活改变运动方向, 配合自行设计的运动机构适应对不同形状立体回转面物品上的 图案打印。
本发明的打印设备, 可以脱离计算机而独立工作, 在许多应用场合能够达到不受场地 和条件的限制而实现打印功能。
本发明的打印方法、 打印机与打印设备, 可以按照打印任务的性质, 选择精细打印和 快速打印等打印模式, 满足了各层级用户的不同需求。
附图说明
图 1为本发明立体回转面打印机的打印控制方法流程图;
图 2 为本发明立体回转面打印机的打印控制装置模块图;
图 3为本发明实施例的打印设备的模块图;
图 4为本发明实施例的打印设备的预处理过程示意图。 具体实施方式
下面将结合附图及优选实施例对本发明作进一步说明。其中, 图〗为本发明立体回转 面打印机的打印控制方法流程图; 图 2 为本发明立体回转面打印机的打印控制装置模块 图; 图 3为本发明实施例的打印设备的模块图。 图 4为本发明实施例的打印设备的预处理 过程示意图。
本发明实施例的立体回转面打印机, 为经改装的喷墨打印机, 对其进给机构进行了改 造并外加了控制电路,包括机械装置和打印控制装置, 所述机械装置包括作为打印头的墨 头、 字车机构、 作为进给机构的进给电机、 作为打印介质供给机构的墨盒, 所述机械装置 由所述打印控制装置统一协调和控制。
本发明实施例的立体回转面打印机, 首先是一个圆柱面平面两用打印机, 而且他还能 在圆锥面等立体回转面上打印。实际使用时, 进给机构带动被打印物体移动, 如果需要打 印的是带有平面的物品,如四棱柱型蜡烛,则需要在进给机构的两根转轴上放置一块平板, 由于其与转轴间的摩擦, 运行时平板将以与转轴线速度相同的速度步进进给, 与纸张在打 印机中进给相同。
本发明由于设置了平行转轴, 且转轴与直流电机联接, 因此可以将圆柱形物品放置在 转轴上,在打印单元来回摆动并向圆柱表面喷绘时, 其效果相当于纸张在打印过程中的进 给,结果是将圆柱形表面喷绘上预设的图案; 由于配置了平板,因此将平板放置在转轴上, 其将会以转轴线速度进给,此时在平板上放置具有平面的物品, 亦可以将图案喷绘在平面 上; 又由于两根转轴可通过丝母丝杠装置拉进或拉远, 且打印单元可沿竖直方向的立柱滑 动, 因此其可适应一定直径或高度范围内的圆柱形物品及带平面物品, 及其它立体回转面 物品, 例如不同直径和尺寸的圆柱形蜡烛、 方形蜡烛或圆锥形蜡烛。
如图 2所示, 本发明实施例的立体回转面打印机, 其打印控制装置包括处理器、 向处 理器、 打印机主板和进给电机供电的电源模块、 打印机的各种驱动电路、输入输出接口电
路及检测电路, 还包括一进给电机控制器, 连接于处理器, 按照处理器的控制指令, 控制 进给电机的转动与停止以及转动的方向。
处理器还包括一预设模块, 针对每一打印任务, 针对各打印任务不同的参数, 确定打 印任务的作业程序, 作业程序中包括打印头的作业程序与进给电机的作业程序, 及打印头 与进给电机之间的相互协调与同步。处理器控制打印机按照作业程序执行打印任务; 在打 印头停止打印后,即进给电机进入高速退纸状态后,处理器向进给电机控制器发送一指令, 进给电机控制器控制进给电机停止转动。
本发明的打印机,打印控制装置还包括一进给电机驱动信号检测模块,连接于处理器, 用于获取进给电机驱动信号。
本发明第一实施例的打印机, 通过获取和分析进给电机驱动信号, 从而解析其与打印 头工作状态之间的关系, 确定进给电机的转动方向, 并确定进给电机是否已处于高速退纸 状态。 在进给电机驱动信号不为零 (即有驱动信号)的情况下: 通过与前次获得的驱动信号 相比较, 获得进给电机的转动方向; 如进给电机的进给步数已大于设定的单程扫描进给步 数, 即可确定进给电机已进入高速退纸状态; 如进给电机的进给步数不大于单程扫描进给 步数, 处理器控制打印机按照作业程序执行打印任务时, 处理器发送有纸信号于打印机主 板以控制打印头动作,同时发指令于进给电机控制器,控制进给电机按照作业程序走一步。
本发明第二实施例的打印机, 通过获取和分析进给驱动信号, 从而解析其与打印头工 作状态之间的关系, 确定进给电机的转动方向, 并确定打印机当前状态。 在进给电机驱动 信号不为零 (即有驱动信号)的情况下: 通过脉冲数量的计算获得打印状态: 打印开始、 打 印中间过程、 打印结束; 如进给电机的进给步数第一次大于设定的单程扫描进给步数, 即 可确定打印机进入打印开始状态, 处理器发送有纸信号于打印机主板以控制打印头动作; 如进给电机的进给步数第二次大于设定的单程扫描进给步数,即可确定打印机进入打印结 束状态, 处理器发送无纸信号于打印机主板以控制打印头停止工作; 如进给电机的进给步 数不大于单程扫描进给步数, 且该信号有效, 处理器控制打印机按照作业程序执行打印任 务, 处理器发送相应指令于进给电机控制器, 控制进给电机按照作业程序走一步, 并根据 打印作业程序控制进给电机前进方向。
本发明第一实施例和第二实施例的进给电机均可为 2相 8拍的步进电机 , 8拍即 8步, 如预设的单程扫描进给步数 N=5, 采用 5拍控制, 间隔屏蔽其他 3拍信号。 在打印状态, 进给电机每走 5步, 即停顿一次, 计数器清零; 然后再如此往复, 以完成打印任务。 在打 印过程中, 如果当前行有图形像素, 进给电机进给 N个步(Ν=5 ) , 然后停止, 如此往复。
如果当前行没有图形像素,进给步数会超过 N步, 表示进入高速运转状态, 此时本发明的 打印控制方法让进给电机处于停止状态, 直到下一次图形像素任务开始。单程扫描进给步 数 N=5, 适合于需要精细打印的场合。对于需要快速打印的场合, 可以选择比较大的单程 扫描进给步数, 如预设的单程扫描进给步数 N=12, 对于本发明第二实施例的打印机, 采 用 4拍控制, 间隔屏蔽其他 4拍信号, 4拍即 4步。 在打印开始前, 若连续走超过 12步, 即认为打印开始, 处理器向打印机发送有纸信号; 在打印开始后, 进给电机每走 12步, 停顿一次, 计数器清零; 然后再如此往复, 以完成打印任务。 在打印过程中, 若连续走超 过 12步, 即认为打印结束, 处理器向打印机发送无纸信号。
本发明实施例的打印机的打印控制装置, 采用开关电源, 将 220V交流电转变成打印 机各部件使用的直流电压, 向打印机主板提供 5V的直流电, 向打印机 CPU提供 30V的 直流电, 向进给电机提供 12V的直流电。
本发明实施例的立体回转面打印机, 有两个马达, 一个用于控制被打印物体橡胶辊步 进马达, 另一个控制打印头皮带的直流马达 (直流马达通过齿条皮带将马达的转动转换为 打印头的直线运动), 由处理器按照作业程序使这两个步进马达同步与协调。
本发明实施例的打印机的打印控制装置, 还包括连接于处理器的打印机功能键模块, 用于管理打印机电源, 即打印机的电源开关, 以及墨盒居中和墨盒复位等操作。
本发明实施例的打印控制装置,处理器根据进给电机驱动信号检测模块传来的打印头 状态, 如处于打印状态, 则向打印机主板发出有纸信号; 如处于非打印状态, 则向打印机 主板发出无纸信号;
如图 1所示, 本发明实施例的打印控制方法, 通过截取进给电机驱动信号, 解析进给 电机驱动信号与墨头动作之间的关系, 得到墨头是处于喷墨状态还是非喷墨状态的信息; 控制进给电机在墨头处于喷墨状态时带动被打印物件如蜡烛按预定作业程序转动,其他时 间, 包括在进给电机高速退纸时, 停止运动, 以减去进给电机不必要的行程。
如图 1所示, 本发明实施例的打印控制方法, 所述进给电机通过计数器来记录进给步 数, 所述进给电机停止后, 计数器清零。 在当前打印内容有图形像素时, 进给电机进给 N 个步, 然后停止(进给计数清零) , 如此往复。 一但连续进给步数超过 N步, 第一次超过 时, 表示打印头进入打印状态, 开始打印; 在连续进给步数第二次超过 N时, 表示墨头处 于不喷墨状态,此时处理器让进给电机处于等待状态。 N可以按照打印需求的不同来选择, 如需要精细打印, 则选择比较小的整数, 如 N=5; 如果需要快速打印, 则选择比较大的整 数, 如 N=12。
如图 1所示, 本发明实施例的打印控制方法, 判断进给电机驱动信号是否为零, 如不 为零则与上次驱动信号相比, 得到进给电机转动方向, 用以生成进给电机下一步的驱动方 向; 同时使计数器的值加 1, 并进一步判断进给电机进给步数是否大于设定的单程扫描进 给步数 (N) ;
如大于, 则表明墨头处于非喷墨状态, 否则处于喷墨状态。
如墨头处于喷墨状态, 则处理器向打印主板发出有纸信号, 并向进给电机控制器发出 指令, 控制进给电机按照预定程序走一步;
如墨头处于非喷墨状态, 控制所述进给电机处于等待状态, 等待下一打印任务。 如进给电机的驱动信号为零则表明进给电机已停止, 可以使打印机处于停止状态, 等 待下一打印任务。
本发明实施例的打印控制方法,进给电机驱动信号检测模块采用电平变化中断方法截 取打印机进给电机驱动信号。 因为步进电机每拍以及停止时驱动信号是固定的, 因此就可 以通过进给电机驱动信号获得进给电机的进给步数与转向。 因机械运动要求不同, 在打印 圆形、 方形蜡烛时需要对方向进行控制。 进给电机的方向控制, 最终通过进给电机的正转 和反转来实现。
本发明实; 例的打印控制方法, 在打印过程中, 按照作业程序, 如果当前行有图形像 素, 进给电机进给 N个步(如 N=5 ) , 然后停止(进给计数清零) , 如此往复。 如果当前 行没有图形像素,进给步数会超过 N步, 即 N=6, 表示进给电机进入高速运转或高速退纸 状态, 此时让进给电机停止, 直到下一次打印任务开始。 操作人员即可把被打印物件, 如 圆柱形或方形的蜡烛, 从支架上取下; 或者通过一个自动放置与移出的机械装置或机械电 子装置实现该操作。
绝大部分待打印图案的上部会有一段空白区域, 也有的图案中间会有空白区域。这里 的空白区域, 需要包括至少一个以上的空行。 ,为了避免使打印控制模块错误地将进入此种 空白区域判断为已打印任务结束, 以及为了能够确定起始打印位置, 图片处理时在此空白 区域的最左边人为添加隐形打印标记, 如一条竖直的细线。 这样的细线打印出来, 不会影 响该图案的视觉效果。
本发明的打印机作为打印执行模块, 既可以与个人计算机 (PC 机) 相连接以完成打 印任务, 也可以与 ARM机相连接完成打印任务, 也可以作为网络打印机使用, 也可以连 接其他打印控制模块。
如图 4所示, 本发明实施例的打印设备, 包括本发明实施例的高质量精细打印喷绘的
打印机和向打印机发出打印指令的打印控制模块, 打印控制模块为基于嵌入式 Linux的打 印控制模块,它自带液晶(LCD)显示屏, 可以外接 U盘,移动硬盘,可以借助内置的应用程 序预览存储设备上的文本和图像文件并进行简单的图像编辑,还可以根据需要更改打印参 数。
本发明实施例的打印控制模块的硬件结构, 包括- 用于对 ARM主机板供电的 DC12V的第一电源模块;
用于对打印机供电的 DC16/32V的第二电源模块;
3.5"TFT触摸 LCD,以及 LCD驱动 PCB,用于实时显示软硬件工作执行过程中的状况; 并可实现触摸式点选操作; 以及图片编辑时的预览显示; 供使用者选择所需要打印的图案 和预览其打印效果。
DC 数字视频设备, 可采用网眼 2000数码 Digital Camera, 用于工作时实时捕捉被 打印区域的状态;
中央控制 PCB: 用于打印执行模块起始打印的时序控制; 并可控制打印执行模块的打 印范围;
ARM主机板, 采用 ARM 2410架构主板, 其为 ARM嵌入式系统的核心及载体; 也 是 ARM嵌入式系统的处理器继承模块。
本发明实施例的打印设备的打印执行模块, 其硬件系统还可外接 Flash存储器, 用于 存放嵌入式操作系统和应用程序,剩余空间用于暂存文件和用户自由存储使用。
本发明实施例的打印设备的打印执行模块, 其硬件系统通过 USB集线器芯片,可进一 步将系统扩展为 4个 USB外部接口,用于连接打印机, U盘,鼠标,键盘等外部设备。 还包括 SDRAM存储器。
本发明实施例的打印控制模块,软件采用经过裁减 (依据外围硬件和所需服务)的 linux 操作系统, 并包括格式转化程序 Netpbm、 GhostScript程序、 打印机驱动程序、 打印管理 程序以及用户界面。
在普通的打印控制模块软件系统中,从点击打印按钮到打印机开始动作之间的时间间 隔较长, 通常是因为其不能实现精细打印, 即因为打印参数设置不正确。 其次, 时间间隔 较长, 是因为将所有的工作放在点击打印按钮之后来做。 并做了一些不必要的图片转换。
本发明实施例的打印设备的打印控制模块还包括图片预处理模块, 实现了精细打印, 通过更改输入 ijs的参数实现精细打印。 提前处理图片, 载入图像的时候将图片进行格式 转化,生成 PS格式的文件,放置在开辟的内存空间中,便于修改。放弃普通使用的 pnmrotate
程序, 放弃 pnmtops程序中关于图片大小缩放的设置, 旋转图片、 图片移动和缩放都通过 修改 PS文件来实现。 提前启动 GhostScript程序, 当点击打印按钮的时候将内存中的 PS 文件送给 GhostScript程序让 GhostScript程序直接打印,省去 GhostScript程序的启动时间。 从而提高了打印效率。
本发明实施例的打印设备, 打印控制模块还包括被打印物体外形参数选择模块, 包括 对被打印物体的形状和大小、长度等外形参数的选择, 打印控制模块将输入的参数传送给 处理器用于形成所述打印任务的作业程序。例如对于蜡烛打印机,其可以选择是圆形蜡烛, 还是方形蜡烛。 如果是圆柱形蜡烛, 可以选择其直径和长度; 如果是方形蜡烛, 则可选择 其为几棱柱, 以及每一打印面的长度与宽度。 对于圆锥面被打印物体, 可以选择其底面半 径和高度。
本发明实施例的打印设备, 打印控制模块还包括打印模式选择模块, 用以按照使用者 的打印需求, 来选择不同的打印模式。 可以把打印模式分为两种: 精细打印和快速打印。 不同的打印模式, 对应不同的单程扫描走纸步数。 也可以按照打印质量来区分打印模式, 如精细打印、 一般打印、 草稿打印。
本发明的实施例的打印设备, 整合了立体回转面打印机的打印执行模块与 ARM嵌入 式控制模块; 在 ARM嵌入式系统, Linux环境下完成了对打印设备驱动程序的植入并能 够正常运行; 完成将被打印图片格式的转换; 完成对图片的高质量, 精细化打印; 完成对 数字视频显示设备的正常驱动; 实现了触摸式操作的人机交互功能; 完成在 ARM嵌入式 系统控制下, 对图片打印时的打印位置精确定位, 基本达到用户 "所见即所得 "的要求; 使 得产品整机外形美观, 轻便。
以上所述的仅为本发明的较佳可行实施例,所述实施例并非用以限制本发明的专利保 护范围, 因此凡是运用本发明的说明书及附图内容所作的等同结构变化, 同理均应包含在 本发明的保护范围内。
Claims
1、 一种打印控制方法, 包括步骤:
S1 : 针对每一打印任务, 打印头与带动被打印物件运动的进给电机同步启动, 相互 协调执行所述打印任务;
S2: 在所述打印头已停止打印后, 向所述进给电机发送一停止信号。
2、 如权利要求 1所述的打印控制方法, 其特征在于, 所述 S2是通过计数器对所述 进给电机的进给步数进行计数,当所述计数器的值大于设定的单程扫描进给步数时即可确 定打印头已开始 /停止打印。
3、 如权利要求 2所述的打印控制方法, 其特征在于, 在所述 S1 中执行所述打印任 务时, 须往复进行下列步骤, 直至完成该打印任务, 即打印头已停止打印, 进给电机进入 高速退纸状态:
S11 : 获取进给电机驱动信号;
S12: 在进给电机驱动信号不为零的情况下, 通过与前次获得的驱动信号相比较, 生 成所述进给电机的下一驱动信号;
S13:发送有纸信号于打印机主板用以控制打印头动作,同时发指令于所述进给电机, 控制所述进纸电机按照所述打印任务的作业程序走一步。
4、 如权利要求 1所述的打印控制方法, 其特征在于: 所述打印机进给电机驱动信号 是采用电平变化中断方法获取的。
5、 如权利要求 2所述的打印控制方法, 其特征在于: 所述打印任务在处理被打印内 容中至少一空行以上的空白区域时, 在所述空白区域的空白行的最左边添加隐形打印标 记。
6、 如权利要求 1或 2所述的打印控制方法, 其特征在于: 所述进给电机为 2相 8拍 的步进电机, 所述单程扫描进给步数设定为 5或 12。
7、 一种实现权利要求 1所述的控制方法的立体回转面打印机, 包括机械装置和打印 控制装置, 所述机械装置包括打印头、 字车机构、 进给机构、 打印介质供给机构, 所述机 械装置由所述打印控制装置统一协调和控制,其特征在于,所述打印控制装置针对每一打 印任务,控制打印头与带动被打印物件运动的进给电机同步启动,相互协调执行所述打印 任务; 并且, 在所述打印头已停止打印后, 向所述进给电机发送一停止信号。
8、 如权利要求 7所述的立体回转面打印机, 其特征在于, 所述打印控制装置包括处 理模块、电源模块及按照所述处理模块的控制指令控制的进给电机转动的驱动电路,所述
打印控制装置的处理模块包括:
预设模块,针对每一打印任务,确定打印头与带动被打印物件运动的进给电机相互协 调完成打印任务的作业程序;
执行模块,根据作业程序执行打印任务,并通过计数器对所述进给电机的进给步数进 行计数;
检测模块,用于检测所述作业程序的状态并获取进给电机驱动信号,当所述计数器的 值大于设定的单程扫描进给步数时即可确定打印头已开始 /停止打印;
判断处理模块, 根据获取进给电机驱动信号, 与前次获得的驱动信号相比较, 获得所 述进给电机的转动方向;以及,判断所述作业程序是否完成,且在所述打印头停止打印后, 向所述进给电机的驱动电路发送一指令, 让所述进给电机停止转动。
9、 如权利要求 7或 8所述的立体回转面打印机, 其特征在于, 所述预设模块还包括 在所述打印任务的打印内容中空白区域的空白行的最左边添加隐形打印标记。
10、一种打印设备, 包括打印执行模块和向打印机发出打印指令的打印控制模块, 其 特征在于, 所述打印执行模块为如权利要求 7所述的立体回转面打印机。
11、 如权利要求 10所述的打印设备, 其特征在于: 所述打印控制模块为基于 ARM 嵌入式系统的打印控制模块, 所述打印控制模块使用的操作系统为 Linux操作系统。
12、 如权利要求 11所述的打印设备, 其特征在于: 所述打印控制模块还设置有液晶 显示屏,所述打印控制模块能够外接外部存储器,并支持对外部存储器上所存储文件的浏 览; 所述打印控制模块还包括 USB集线器芯片,可进一步将系统扩展为 4个 USB外部接 口, 用于连接打印机、 U盘、 鼠标和键盘。
13、 如权利要求 11所述的打印设备, 其特征在于: 所述打印控制模块还包括图片预 处理模块, 在载入图像的时候将图片进行格式转化, 生成 PS格式的文件, 放置在开辟的 内存空间中, 旋转图片、 图片移动和缩放都通过修改 PS文件来实现。
14、 如权利要求 11所述的打印设备, 其特征在于: 所述打印控制模块还包括被打印 物体外形参数选择模块。
15、 如权利要求 11所述的打印设备, 其特征在于: 所述打印控制模块还包括打印模 式选择模块, 用以选择快速打印与精细打印。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2008/000217 WO2009100563A1 (zh) | 2008-01-29 | 2008-01-29 | 打印控制方法及立体回转面打印机 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2008/000217 WO2009100563A1 (zh) | 2008-01-29 | 2008-01-29 | 打印控制方法及立体回转面打印机 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2009100563A1 true WO2009100563A1 (zh) | 2009-08-20 |
Family
ID=40956598
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2008/000217 WO2009100563A1 (zh) | 2008-01-29 | 2008-01-29 | 打印控制方法及立体回转面打印机 |
Country Status (1)
Country | Link |
---|---|
WO (1) | WO2009100563A1 (zh) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002036671A (ja) * | 2000-07-24 | 2002-02-06 | Oki Data Corp | シリアルプリンタ |
CN2830071Y (zh) * | 2005-11-10 | 2006-10-25 | 罗春晖 | 三维物体喷绘机 |
JP2007223717A (ja) * | 2006-02-22 | 2007-09-06 | Duplo Corp | 用紙処理システム |
CN101100139A (zh) * | 2006-07-06 | 2008-01-09 | 佳能株式会社 | 打印设备、输送设备和给进-输送控制方法 |
-
2008
- 2008-01-29 WO PCT/CN2008/000217 patent/WO2009100563A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002036671A (ja) * | 2000-07-24 | 2002-02-06 | Oki Data Corp | シリアルプリンタ |
CN2830071Y (zh) * | 2005-11-10 | 2006-10-25 | 罗春晖 | 三维物体喷绘机 |
JP2007223717A (ja) * | 2006-02-22 | 2007-09-06 | Duplo Corp | 用紙処理システム |
CN101100139A (zh) * | 2006-07-06 | 2008-01-09 | 佳能株式会社 | 打印设备、输送设备和给进-输送控制方法 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1147177A (zh) | 具有监视功能的打印机控制 | |
JP2007220043A5 (zh) | ||
US9254026B2 (en) | Drawing apparatus and drawing method thereof | |
JP2013094184A (ja) | ネイルプリント装置 | |
EP1970207A3 (en) | Image forming device | |
JP3333312B2 (ja) | 画像作成および切り抜き装置 | |
JP2007011469A5 (zh) | ||
CN104527238A (zh) | 一种机器视觉自动打印系统 | |
WO2009100563A1 (zh) | 打印控制方法及立体回转面打印机 | |
EP3988315B1 (en) | Handheld printer, printing method and storage medium | |
CN202186131U (zh) | 除字迹反打印机 | |
JP2002205387A (ja) | 印字装置 | |
JP2564850B2 (ja) | 感熱式プリンタのプリント方法 | |
US20220242141A1 (en) | Wall printing apparatus and method | |
JP2015157376A (ja) | 印刷装置 | |
CN2801478Y (zh) | 一种多功能打印机及便携式pc集成多功能打印机 | |
JP2973543B2 (ja) | プリンタ及びその制御方法 | |
CN1559801A (zh) | 一种多功能打印机及便携式pc集成多功能打印机 | |
JP2002361952A (ja) | 印字装置 | |
JP2000280456A (ja) | プリンタ | |
JPH11245097A (ja) | サーボプレスのタイミング信号発生装置 | |
JPH07195756A (ja) | 画像記録装置及びその制御方法 | |
JP3083026B2 (ja) | 出力データの転送制御装置及び転送制御方法 | |
JP2001096835A (ja) | 印刷システム、印刷装置及び印刷方法、並びに記録媒体 | |
JPH0844516A (ja) | 印刷システム及び該システムを構成するホスト装置及び印刷装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 08700751 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 08700751 Country of ref document: EP Kind code of ref document: A1 |