The present invention relates to the technical field of printer, discloses the precision calibration method, a print label length includes setting the test printing length, according to the distance and the breakdown of stepper motor to calculate the total number of mobile number pulse signal to control the motor drive, compared with standard length, length of label printer to print out the actual calculation of difference and if the difference is greater than 0, in particular the serial number of the signal pulse is issued, the stepper motor control does not move; if the difference is less than 0, the number of pulses generated by specific signal, control the stepper motor movement two times. The precision calibration method of the invention greatly reduces the length of the printed label printing error label printer, stepper motor control in some specific impulse, the motor moves by interpolation or extraction value, different label printer in print with a label sample, greatly reduce the sample label printing error label printer to improve the stability, print printer.
【技术实现步骤摘要】
一种打印标签长度的精度校准方法
本专利技术涉及打印机
,尤其涉及一种打印标签长度的精度校准方法。
技术介绍
打印机的步进电机是将电脉冲信号转变为角位移或线位移的开环控制元件。步进电机的只要改变输入脉冲的数目就能控制步进电机的转子机械位移的大小;改变输入脉冲的通电相序就能控制步进电机的转子机械位移的方向;改变输入脉冲数的频率就能控制步进电机的转速,实现宽广范围内的无级平滑控制,因而被广泛应用于打印机等数控自动化设备中。其中,针式打印机的输纸结构和字车等,主要使用步进电机提供动力。在实际打印机的打印过程中,每台标签打印机的使用的胶辊尺寸会存在微小差异,导致了在不同机器打印同样一份标签时打印的标签长度出现长短不一的现象,误差最大达到3%的程度。现有的标签打印机中仅有对标签打印的开始端进行校准定位,从而尽量缩小打印机连续打印标签时对单个标签起始位置的准确度的校准,但是这种方法仍然不能校准单个标签在打印过程中打印点的校准,其误差仍然存在。由于步进电机的运转通过步进电机控制器控制,步进电机控制器通过控制驱动器控制步进电机的调速、换向和细分数,进而实现步进电机控制器对打印机的打印过程的控制,从而有机会实现对打印误差的修正。
技术实现思路
本专利技术的目的在于针对现有技术的不足而提供一种打印标签长度的精度校准方法,采用对实际打印时的步进电机的动作进行抽值或插值的办法在打印过程中增加或减少步进电机动作从而实现精度校准。达到上述目的,本专利技术通过以下技术方案来实现,一种打印标签长度的精度校准方法,包括以下步骤:步骤1、设置打印机测试打印的长度L,根据点距s和步进电机的细分 ...
【技术保护点】
一种打印标签长度的精度校准方法,其特征在于包括以下步骤:(1)设置打印机测试打印的长度L,根据点距s和步进电机的细分驱动数n计算控制电机移动的总信号脉冲数S=n*L/s;(2)将打印机实际打印出的标签长度与标准长度比较,计算差值ΔL;(3)计算差值所含的信号脉冲数N=n*|ΔL|/s,这里的N为整数;(4)对步进电机进行如下控制:如果差值ΔL大于0,则在序号为{J
【技术特征摘要】
1.一种打印标签长度的精度校准方法,其特征在于包括以下步骤:(1)设置打印机测试打印的长度L,根据点距s和步进电机的细分驱动数n计算控制电机移动的总信号脉冲数S=n*L/s;(2)将打印机实际打印出的标签长度与标准长度比较,计算差值ΔL;(3)计算差值所含的信号脉冲数N=n*|ΔL|/s,这里的N为整数;(4)对步进电机进行如下控制:如果差值ΔL大于0,则在序号为{J1,J2,…,Ji,…,JN}的信号脉冲发出后,步进电机不动作;如果差值ΔL小于0,则在序号为{J1,J2,…,Ji,…,JN}的信号脉冲发出后,步进电机动作两次;如果差值ΔL等于0,则在打印长度内任一信号脉冲发出后,步进电机动作一次;这里的Ji=i*[S/N],i=1,2,3,…,N;[...
【专利技术属性】
技术研发人员:陈乃康,王宜江,赵娟,
申请(专利权)人:上海威侃电子材料有限公司,
类型:发明
国别省市:上海,31
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。