[go: up one dir, main page]

CN111070909B - Direct printing type certificate card printing method and device, certificate card printer and storage medium - Google Patents

Direct printing type certificate card printing method and device, certificate card printer and storage medium Download PDF

Info

Publication number
CN111070909B
CN111070909B CN201911369852.7A CN201911369852A CN111070909B CN 111070909 B CN111070909 B CN 111070909B CN 201911369852 A CN201911369852 A CN 201911369852A CN 111070909 B CN111070909 B CN 111070909B
Authority
CN
China
Prior art keywords
printing
card
motor
rubber roller
moving
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.)
Active
Application number
CN201911369852.7A
Other languages
Chinese (zh)
Other versions
CN111070909A (en
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.)
Xiamen Hanyin Co ltd
Original Assignee
Xiamen Hanyin Electronic 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 Xiamen Hanyin Electronic Technology Co Ltd filed Critical Xiamen Hanyin Electronic Technology Co Ltd
Priority to CN201911369852.7A priority Critical patent/CN111070909B/en
Publication of CN111070909A publication Critical patent/CN111070909A/en
Application granted granted Critical
Publication of CN111070909B publication Critical patent/CN111070909B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J3/00Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J29/00Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
    • B41J29/38Drives, motors, controls or automatic cut-off devices for the entire printing mechanism
    • B41J29/393Devices for controlling or analysing the entire machine ; Controlling or analysing mechanical parameters involving printing of test patterns

Landscapes

  • Handling Of Cut Paper (AREA)

Abstract

The invention discloses a direct printing type certificate card printing method, a direct printing type certificate card printing device, a printer and a storage medium, wherein the direct printing type certificate card printing method comprises the following steps: when detecting that the printing card leaves the detection area, taking the current position of the printing card as a positioning starting point; controlling a card-moving rubber roller motor to rotate for a preset step number at a positioning starting point to enable the front end of the printing card to reach a first position; the first rotating step number of the card walking rubber roller motor for moving the front end of the printing card from the first position to the printing position is the same as the second rotating step number of the printing head motor for moving the printing head from the initial position to contact with the printing card; after the rotating of the rubber roller moving motor is controlled to rotate for a preset number of steps, the rubber roller moving motor is controlled to stop; after the card-moving rubber roller motor is detected to stop, the printing head motor and the card-moving rubber roller motor are controlled to be started synchronously, so that the card-moving rubber roller motor is at a constant speed when the printing card reaches the printing rubber roller, and the printing head just reaches the front end position of the printing card, thereby avoiding the blank area at the front end of the printing card.

Description

Direct printing type certificate card printing method and device, certificate card printer and storage medium
Technical Field
The invention relates to the technical application field of printers, in particular to a direct printing type certificate card printing method and device, a certificate card printer and a storage medium.
Background
With the widespread use of various smart cards such as chest cards, identification cards, and business cards printed with high-quality photographs, an identification card printer for printing the smart cards has been produced. The evidence card printer is used for printing the equipment of certificate card as its name implies, and the certificate card printer often adopts the thermal sublimation technique to print to guarantee printing quality, wherein, the thermal sublimation technique utilizes heat energy with pigment rendition to printing medium on, the shade of every colour is by the temperature variation control who beats printer head. Because the pigment is applied to the print medium in a vapor phase by a sublimation process, the three primary colors are fused to each other to form a continuous color gradation, which is much more effective than ink droplets for ink jet printing.
Referring to FIG. 1, a conventional identification card printer generally includes: the printing control device comprises a printing head motor, a card-feeding rubber roller, a printing rubber roller, a card-feeding rubber roller, a printing head, a position sensor and a transmission mechanism; the printing control device is respectively electrically connected with the printing head motor, the card-moving rubber roller motor, the printing head, the transmission mechanism and the position sensor, the card-moving rubber roller motor forms transmission connection with the card-moving rubber roller and the printing rubber roller through the transmission mechanism, and the printing head motor is connected with the printing head. After receiving a printing task, the printing control device of the card printer controls the printing head to lift up through the printing head motor, meanwhile, the transmission mechanism is controlled to drive the card inlet rubber roller to drive the printing card to enter a printing channel until the printing card moves to the position sensor, then the printing control device judges the position of the printing card when entering according to the detection data of the position sensor, and after the front end of the printing card exceeds the position sensor, the transmission mechanism is controlled to drive the card inlet rubber roller to rotate reversely, so that the printing card moves forwards along the direction of the position of the printing rubber roller, and when the printing rubber roller is reached, the printing head controls the printing content to be printed on the printing card.
Disclosure of Invention
The inventor finds that based on the working principle of the existing card printer, the card-moving rubber roller motor firstly enters an acceleration stage, and then enters a constant speed stage and a deceleration stage during printing. In the actual printing process, in order to improve the printing quality, printing is usually performed at a constant speed stage, because the torque of a motor for moving a card roller at the constant speed stage is fixed, the deformation of the printing roller is constant, and the friction force of the rubber roller on a printing card is relatively fixed, so that higher printing quality can be obtained in the printing at the constant speed stage. The direct printing type identification card printing method, the direct printing type identification card printing device, the identification card printer and the storage medium provided by the embodiment of the invention have the problems that the printing card can not be in contact with the printing card at the moment when the printing card enters the range of the printing head, the card moving rubber roller motor is still in an acceleration stage, the printing head cannot contact the printing card at the moment, images cannot be printed on the printing card, and the front end of the printing card has a blank area, so that the printing effect of the printing card is influenced.
In a first aspect, an embodiment of the present invention provides a direct printing type identification card printing method, including:
when the printing card is detected to leave the detection area, taking the current position of the printing card as a positioning starting point;
controlling a card-moving rubber roller motor to rotate by a preset step number at the positioning starting point so that the front end of the printing card reaches a first position; the first rotating step number of the card walking roller motor required by the front end of the printing card to move from the first position to the printing position is the same as the second rotating step number of the printing head motor required by the printing head to move from the initial position to the position just contacting the printing card; after the first number of rotation steps, at least enabling the card moving rubber roller motor to reach a uniform motion state;
after the card-moving rubber roll motor is controlled to rotate for a preset number of steps, the card-moving rubber roll motor is controlled to stop;
after the card-moving rubber roller motor is detected to stop, the printing head motor and the card-moving rubber roller motor are controlled to be started synchronously, so that the card-moving rubber roller motor is enabled to reach a constant speed when the printing card reaches the printing rubber roller, and meanwhile, the printing head is enabled to just reach the front end position of the printing card to print, and a blank area is prevented from appearing at the front end of the printing card.
Preferably, the printhead preheating is initiated upon detecting that the leading position of the print card is a predetermined distance from the position of the printhead.
Preferably, after detecting that the card-feeding roller motor stops, after controlling the printing head motor and the card-feeding roller motor to start synchronously, the method further comprises:
and when the printing head motor is judged to rotate a second rotation step number, controlling the printing head motor to stop.
Preferably, after the step of controlling the printhead motor to stop when it is judged that the printhead motor rotates by the second rotation step number, the method further includes:
and when the rotation step number of the card walking rubber roller motor required by the tail end position of the printing card reaching the position of the printing head is judged to be the third rotation step number, controlling the printing head motor to start, so that the printing head is just lifted when the tail end position of the printing card reaches the position of the printing head, and avoiding ribbon breakage caused by extrusion of the printing head and blank area at the tail end of the printing card.
Preferably, the third rotation step number is calculated according to the step number of the printing head moving from the highest point position to the lowest point position and the distance step number of the printing head from the highest point to the printing rubber roller by one printing card thickness; wherein the third number of rotation steps is Ntph-Npre; ntph is the number of steps required for the printhead to move from an initial position at the highest point to a lowest point position; npre is the number of steps required for the printhead to move one thickness of the print card from an initial position at the highest point to a position away from the print blanket.
Preferably, the step number ratio of the printing head motor and the card-moving rubber roller motor is calculated according to the moving distance of the printing head and the moving distance of the card-moving rubber roller within a certain time;
and acquiring a least common multiple according to the step number proportion, and controlling the printing head motor and the card-moving rubber roller motor to complete synchronization according to the least common multiple.
Preferably, the preset steps are calculated according to the distance from the printing rubber roller to the position detection area, the length of the printing card, the step distance of the motor of the card-moving rubber roller and the thickness of the printing card; wherein N ═ S-L/S- (H/S); n is a preset step number; s is the distance from the printing rubber roller to the position detection area; l is the length of the print card; s is the step pitch of the rubber roller moving motor; h is the thickness of the printed card.
In a second aspect, an embodiment of the present invention further provides a direct printing type identification card printing apparatus, including:
a positioning starting point setting unit, which is used for taking the current position of the printing card as a positioning starting point when the printing card is detected to leave the detection area;
the step number control unit is used for controlling the card-moving rubber roller motor to rotate by a preset step number at the positioning starting point so that the front end of the printing card reaches a first position; the first rotating step number of the card walking roller motor required by the front end of the printing card to move from the first position to the printing position is the same as the second rotating step number of the printing head motor required by the printing head to move from the initial position to the position just contacting the printing card; after the first number of rotation steps, at least enabling the card moving rubber roller motor to reach a uniform motion state;
the motor stop control unit is used for controlling the card-moving rubber roller motor to stop after controlling the card-moving rubber roller motor to rotate for a preset number of steps;
and the motor start control unit is used for controlling the printing head motor and the card-moving rubber roller motor to start synchronously after detecting that the card-moving rubber roller motor stops, so that the card-moving rubber roller motor is used for printing the card to reach the printing rubber roller at a constant speed, and simultaneously, the printing head just reaches the front end position of the printing card to print, so as to avoid the blank area at the front end of the printing card.
Preferably, the preset distance detecting unit is configured to start preheating of the print head when detecting that the front end position of the print card is a preset distance away from the position where the print head is located.
Preferably, the method further comprises the following steps:
and the first judging unit is used for controlling the printing head motor to stop when judging that the printing head motor rotates by a second rotating step number.
Preferably, the method further comprises the following steps:
and the second judging unit is used for controlling the printing head motor to be started when the rotating step number of the card walking rubber roll motor required for judging that the tail end position of the printing card reaches the position where the printing head is located is the third rotating step number, so that the printing head is just lifted when the tail end position of the printing card reaches the position where the printing head is located, and the problems that the ribbon is broken due to extrusion of the printing head and a blank area appears at the tail end of the printing card are avoided.
Preferably, the method further comprises the following steps:
calculating a third rotation step number according to the step number of the printing head moving to the lowest point position from the highest point and the distance step number of the printing head from the highest point to the printing rubber roller by one printing card thickness; wherein the third number of rotation steps is Ntph-Npre; ntph is the number of steps required for the printhead to move from an initial position at the highest point to a lowest point position; npre is the number of steps required for the printhead to move one thickness of the print card from an initial position at the highest point to a position away from the print blanket.
Preferably, the method further comprises the following steps:
the step ratio calculation unit is used for calculating the step ratio of the printing head motor and the card-moving rubber roller motor according to the moving distance of the printing head and the moving distance of the card-moving rubber roller within a certain time;
and the least common multiple calculating unit is used for acquiring the least common multiple according to the step number proportion and controlling the printing head motor and the card moving rubber roller motor to complete synchronization according to the least common multiple.
Preferably, the preset steps are calculated according to the distance from the printing rubber roller to the position detection area, the length of the printing card, the step distance of the motor of the card-moving rubber roller and the thickness of the printing card; wherein N ═ S-L/S- (H/S); n is a preset step number; s is the distance from the printing rubber roller to the position detection area; l is the length of the print card; s is the step pitch of the rubber roller moving motor; h is the thickness of the printed card.
In a third aspect, an embodiment of the present invention further provides a direct printing type identification card printer, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the direct printing type identification card printing method is implemented as described in the foregoing embodiment.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, where when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the direct-printing identification card printing method according to the above embodiment.
The embodiment of the invention has the following beneficial effects:
in the above embodiment, by setting the positioning start point and controlling the rotation of the card-moving roller motor at the positioning start point to preset the number of steps, the first number of steps of the card-moving roller motor required for moving the front end of the printing card from the first position to the printing position is the same as the second number of steps of the printing head motor required for moving the printing head from the initial position to the position just contacting the printing card, and after the first number of steps, the card-moving roller motor is at least made to reach a uniform motion state, so that after the card-moving roller motor is controlled to stop, the printing head motor and the card-moving roller motor are controlled to be synchronously started, the printing head is made to just contact the printing card, the front end of the printing card can be printed, and the front end of the printing card is prevented from appearing in a blank area.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an identification card printer in the prior art according to an embodiment of the present invention.
Fig. 2 is a schematic view of the working principle of a card-feeding roller motor of the card printer according to the embodiment of the present invention.
Fig. 3 is a schematic flow chart of a direct printing type identification card printing method according to a first embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a direct printing type identification card printing device according to a second embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
For better understanding of the technical solutions of the present invention, the following detailed descriptions of the embodiments of the present invention are provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
In the embodiments, the references to "first \ second" are merely to distinguish similar objects and do not represent a specific ordering for the objects, and it is to be understood that "first \ second" may be interchanged with a specific order or sequence, where permitted. It should be understood that "first \ second" distinct objects may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced in sequences other than those illustrated or described herein.
The first embodiment is as follows:
in this embodiment, the card-passing roller motor is an executing mechanism for converting an electric pulse signal into an angular displacement, and when the card-passing roller motor receives an electric pulse signal, the card-passing roller motor rotates by a fixed angle (i.e., a stepping angle) according to a preset direction, so that the angular displacement can be controlled by controlling the number of pulses, and the printing card is moved to a printing position for printing.
The operation principle of the card-moving rubber roller motor is shown in fig. 2, when printing is performed, the card-moving rubber roller motor firstly enters an acceleration stage, then enters a constant speed stage and a deceleration stage, and in the actual printing process, printing is usually performed at the constant speed stage. However, there is a problem that the card-moving roller motor may still be in an acceleration stage when the print card enters the range of the print head, and at this time, the print head does not perform the printing operation, so that there is a blank area at the front end of the print card, which affects the printing effect of the print card, so as to solve the problem of the blank area at the front end of the print card, specifically, referring to fig. 1 to 3, the embodiment of the present invention provides a direct printing type card printing method, which can be performed by an card printer, in particular, by a printing control device in the card printer, and at least includes the following steps:
s101, when the printing card is detected to leave the position detection area, the current position of the printing card is used as a positioning starting point.
S102, controlling a card moving rubber roller motor to rotate by a preset step number at the positioning starting point so that the front end of the printing card reaches a first position; the first rotating step number of the card walking roller motor required by the front end of the printing card to move from the first position to the printing position is the same as the second rotating step number of the printing head motor required by the printing head to move from the initial position to the position just contacting the printing card; and after the first number of rotation steps, at least the card-moving rubber roller motor is enabled to reach a uniform motion state.
In this embodiment, the print head is controlled by the print head motor to move up and down, the print head needs to be controlled to lift up during the moving process of the print card, and the print head needs to be controlled to press down during the printing process. Therefore, when the printing card reaches the printing position, if the printing head moves to the printing position earlier than the printing card, the printing card cannot enter the printing position to be printed, and if the printing head moves to the printing position later than the printing card, the printing head cannot execute the printing operation, so that a blank area is formed at the front end of the printing card, and the printing effect of the printing card is influenced. Therefore, the rotation steps of the card-moving rubber roller motor and the printing head motor need to be strictly controlled, so that the card-moving rubber roller motor reaches a uniform motion state when the printing card reaches a printing position, and the printing head just contacts with the front end of the printing card, the front end of the printing card can be printed, and the blank area of the front end of the printing card is avoided.
Specifically, in order to enable the card-moving rubber roll motor to reach a uniform motion state when the printing card reaches the printing position and enable the printing head to just contact with the front end of the printing card, it is first required to judge that the printing card advances towards the printing rubber roll position, then a positioning starting point is set, and then the rotation step number of the card-moving rubber roll motor required for the front end of the printing card to move from the positioning starting point to the printing position (printing rubber roll) and the rotation step number of the printing head motor required for the printing head to move from the initial position to the position just contacting with the printing card are calculated according to the distance from the positioning starting point to the printing rubber roll, the step distance of the card-moving rubber roll motor, the length of the printing card, the thickness of the printing card, the step number required for the printing head to be different from the initial position at the highest point to the printing rubber roll by.
Wherein, in order that the rotation step number of the card-walking roller motor required by the front end of the printing card to move from the positioning starting point to the printing position (printing roller) is the same as the rotation step number of the printing head motor required by the printing head to move from the initial position to the position just contacting the printing card, when the printing card is detected to leave the position detection area provided with the position sensor, the current position of the printing card is taken as the positioning starting point, at the positioning starting point, the card-walking roller motor is controlled to rotate for the preset step number so that the front end of the printing card reaches the first position, the first rotation step number of the card-walking roller motor required by the front end of the printing card to move from the first position to the printing position is ensured to be the same as the second rotation step number of the printing head motor required by the printing head to move from the initial position to the position just contacting the printing card, and after the first rotation step number, at least enabling the card-moving rubber roller motor to reach a uniform motion state; wherein the preset step number N is (S-L)/S- (H/S); n is a preset step number; s is the distance from the printing rubber roller to the position detection area; l is the length of the print card; s is the step pitch of the rubber roller moving motor; h is the thickness of the printed card.
The position sensor may be a photo-electric pair, and the photo-electric pair blocking light signal is blocked by the print card to detect whether the print card leaves or enters a position detection area in which the photo-electric pair is installed, and transmit a detected state to the print control apparatus.
S103, after the card-moving rubber roller motor is controlled to rotate for a preset number of steps, the card-moving rubber roller motor is controlled to stop.
And S104, after the card-moving rubber roller motor is detected to stop, controlling the printing head motor and the card-moving rubber roller motor to be synchronously started so that the card-moving rubber roller motor reaches a constant speed when the printing card reaches the printing rubber roller, and simultaneously enabling the printing head to just reach the front end position of the printing card for printing so as to avoid the blank area from appearing at the front end of the printing card.
In this embodiment, based on the working principle of the print head motor and the card roller moving motor, the acceleration stage is first entered, then entering a constant speed stage and a deceleration stage, after ensuring that the first rotation step number of the card walking rubber roller motor required by the front end of the printing card to move from the first position to the printing position is the same as the second rotation step number of the printing head motor required by the printing head to move from the initial position to the position just contacting the printing card, the card-moving rubber roller motor is controlled to stop after the card-moving rubber roller motor is controlled to rotate for a preset number of steps, after the stop of the card-moving rubber roller motor is detected, the printing head motor and the card-moving rubber roller motor are controlled to be synchronously started, the card-moving rubber roller motor and the printing head motor are operated based on the same clock cycle, and the two motors are driven to operate and start simultaneously in one clock cycle.
Wherein, the synchronous starting process of the printing head motor and the card-moving rubber roller motor is as follows: in a certain time, calculating the step number ratio of the printing head motor and the card-moving rubber roller motor according to the moving distance of the printing head and the moving distance of the card-moving rubber roller; then, obtaining the least common multiple according to the step ratio, and controlling the printing head motor and the card moving rubber roller motor to complete synchronization according to the least common multiple, for example, when the step ratio A: B of the card moving rubber roller motor and the printing head motor is determined, the two motors need to complete synchronization once within the least common multiple of A and B, if A: B is 3:5, the A motor moves for 1 step in 5 clock cycles, the B motor moves for 1 step in 3 clock cycles, A and B keep synchronization after 15 clock cycles, for example, when the step ratio of the printing head motor and the card moving rubber roller motor is 1:1, therefore, in one clock cycle, the card moving rubber roller motor and the printing head motor move one step at the same time, the card moving rubber roller motor and the printing head motor are ensured to be synchronously started, so that the printing head just presses down to contact with the printing card when the card moving rubber roller motor reaches a constant speed state, the printing head is enabled to start printing from the edge of the printing card, and the blank area can not appear at the front end of the printing card.
In summary, by setting the positioning start point and controlling the card-moving rubber roller motor to rotate at the positioning start point to preset the number of steps, the first number of steps of rotation of the card-moving rubber roller motor required for moving the front end of the printing card from the first position to the printing position is the same as the second number of steps of rotation of the printing head motor required for moving the printing head from the initial position to the position just contacting the printing card, and after the first number of steps of rotation, the card-moving rubber roller motor is at least caused to reach a uniform motion state, so as to control the card-moving rubber roller motor to stop, and then the printing head motor and the card-moving rubber roller motor are controlled to start synchronously, so that the printing head is just contacted with the printing card, the front end of the printing card can be printed, and the blank area of the front end of the printing card is avoided.
On the basis of the above embodiment, in a preferred embodiment of the present invention, the method further includes starting the preheating of the print head when the position of the front end of the print card is detected to be a preset distance away from the position where the print head is located.
However, when the front end of the print card is printed, the print head is just heated, and the temperature is relatively low, which tends to make the portion to be printed relatively light. Therefore, in the embodiment, before the printing head contacts with the printing card, the printing head is preheated first, so that when the printing head just presses down to contact with the printing card, the temperature of the heating element on the printing head is higher, so that the pigment on the ribbon is sufficiently transferred onto the printing medium, the printing effect of the front end is ensured, and certainly, the heating cannot be performed in advance too much, because the ribbon does not move at the moment, and the ribbon is fused due to overheating of the ribbon at the same position.
On the basis of the above embodiment, in a preferred embodiment of the present invention, after receiving the print job end instruction, the print control device of the identification card printer controls the print head to lift up through the print head motor, and controls the transmission mechanism to drive the card-feeding rubber roller to drive the print card to move out of the print outlet. The timing for controlling the lifting of the printing head by the printing head motor is very critical, and if the printing head is lifted too early, a blank area or an insufficient printing area may appear at the tail end of the printing card, thereby affecting the final printing effect. If the print head is raised too late, it may occur that the print card has moved past the print position and the print head remains pressed against the ribbon, causing the ribbon to break.
For this reason, in the preferred embodiment, after detecting that the deck roller motor stops, and after controlling the print head motor and the deck roller motor to synchronously start, the method further includes:
and after the printing head motor is controlled to stop, when the rotation step number of the card walking rubber roll motor required for judging that the tail end position of the printing card reaches the position where the printing head is located is a third rotation step number, the printing head motor is controlled to start, so that the printing head is just lifted when the tail end position of the printing card reaches the position where the printing head is located, and the problems that the ribbon is broken due to extrusion of the printing head and the tail end of the printing card is provided with a blank area are avoided.
Calculating a third rotation step number according to the step number of the printing head moving to the lowest point position from the highest point and the distance step number of the printing head from the highest point to the printing rubber roller by one printing card thickness; wherein the third number of rotation steps is Ntph-Npre; ntph is the number of steps required for the printhead to move from an initial position at the highest point to a lowest point position; npre is the number of steps required for the printhead to move one thickness of the print card from an initial position at the highest point to a position away from the print blanket.
In summary, when the rotation steps of the card-moving roller motor reach the third rotation steps required by the tail end position of the printing card, the printing head motor is started, so that the printing head motor and the card-moving roller motor are synchronously started, the printing head of the printing card is just lifted in the moving process, and the phenomenon that the color ribbon is broken or a blank area appears at the tail end of the printing card is avoided.
Second embodiment of the invention:
referring to fig. 4, an embodiment of the present invention further provides a direct printing type identification card printing apparatus, including:
a positioning start point setting unit 100 configured to set a current position of the print card as a positioning start point when it is detected that the print card leaves the detection area;
the step number control unit 200 is used for controlling the card-moving rubber roller motor to rotate by a preset step number at the positioning starting point so that the front end of the printing card reaches a first position; the first rotating step number of the card walking roller motor required by the front end of the printing card to move from the first position to the printing position is the same as the second rotating step number of the printing head motor required by the printing head to move from the initial position to the position just contacting the printing card; after the first number of rotation steps, at least enabling the card moving rubber roller motor to reach a uniform motion state;
the motor stop control unit 300 is used for controlling the card-moving rubber roller motor to stop after controlling the card-moving rubber roller motor to rotate for a preset number of steps;
and the motor start control unit 400 is used for controlling the printing head motor and the card-moving rubber roller motor to start synchronously after detecting that the card-moving rubber roller motor stops, so that the card-moving rubber roller motor is used for printing the card to reach the printing rubber roller at a constant speed, and simultaneously making the printing head just reach the front end position of the printing card for printing, so as to avoid the blank area at the front end of the printing card.
In the above embodiment, a preferred embodiment of the present invention further includes:
and the preset distance detection unit is used for starting the printing head to heat when detecting that the position of the front end of the printing card is a preset distance away from the position of the printing head.
In the above embodiment, a preferred embodiment of the present invention further includes:
and the first judging unit is used for controlling the printing head motor to stop when judging that the printing head motor rotates by a second rotating step number.
In the above embodiment, a preferred embodiment of the present invention further includes:
and the second judging unit is used for controlling the printing head motor to be started when the rotating step number of the card walking rubber roll motor required for judging that the tail end position of the printing card reaches the position where the printing head is located is the third rotating step number, so that the printing head is just lifted when the tail end position of the printing card reaches the position where the printing head is located, and the problems that the ribbon is broken due to extrusion of the printing head and a blank area appears at the tail end of the printing card are avoided.
In the above embodiment, a preferred embodiment of the present invention further includes:
calculating a third rotation step number according to the step number of the printing head moving to the lowest point position from the highest point and the distance step number of the printing head from the highest point to the printing rubber roller by one printing card thickness; wherein the third number of rotation steps is Ntph-Npre; ntph is the number of steps required for the printhead to move from an initial position at the highest point to a lowest point position; npre is the number of steps required for the printhead to move one thickness of the print card from an initial position at the highest point to a position away from the print blanket.
In the above embodiment, a preferred embodiment of the present invention further includes:
the step ratio calculation unit is used for calculating the step ratio of the printing head motor and the card-moving rubber roller motor according to the moving distance of the printing head and the moving distance of the card-moving rubber roller within a certain time;
and the least common multiple calculating unit is used for acquiring the least common multiple according to the step number proportion and controlling the printing head motor and the card moving rubber roller motor to complete synchronization according to the least common multiple.
In the above embodiment, in a preferred embodiment of the present invention, the preset number of steps is calculated according to the distance from the printing rubber roller to the position detection area, the length of the printing card, the step distance of the card-moving rubber roller motor, and the thickness of the printing card; wherein N ═ S-L/S- (H/S); n is a preset step number; s is the distance from the printing rubber roller to the position detection area; l is the length of the print card; s is the step pitch of the rubber roller moving motor; h is the thickness of the printed card.
Third embodiment of the invention:
a third embodiment of the present invention provides an identification card printer, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the direct printing type identification card printing method according to any one of the above embodiments when executing the computer program.
The fourth embodiment of the present invention:
the embodiment of the invention also provides a computer-readable storage medium, which comprises a stored computer program, wherein when the computer program runs, the device where the computer-readable storage medium is located is controlled to execute the direct printing type identification card printing method according to the embodiment.
Illustratively, the computer programs described herein can be partitioned into one or more modules that are stored in the memory and executed by the processor to implement the invention. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, the instruction segments describing the execution process of the computer program in the implementation server device. For example, the devices described in the third and fourth embodiments of the present invention.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an APPlication Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. The general processor can be a microprocessor or the processor can be any conventional processor and the like, the processor is a control center of the direct printing type identification card printing method, and various interfaces and lines are used for connecting all parts for realizing the direct printing type identification card printing method.
The memory can be used for storing the computer program and/or the module, and the processor realizes various functions of the direct printing type identification card printing method by operating or executing the computer program and/or the module stored in the memory and calling the data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, a text conversion function, etc.), and the like; the storage data area may store data (such as audio data, text message data, etc.) created according to the use of the user terminal, etc. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Wherein, the module for realizing the service device can be stored in a computer readable storage medium if it is realized in the form of software functional unit and sold or used as a stand-alone product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A direct printing type certificate card printing method is characterized by comprising the following steps:
when the printing card is detected to leave the position detection area, taking the current position of the printing card as a positioning starting point;
controlling a card-moving rubber roller motor to rotate by a preset step number at the positioning starting point so that the front end of the printing card reaches a first position; the first rotating step number of the card walking roller motor required by the front end of the printing card to move from the first position to the printing position is the same as the second rotating step number of the printing head motor required by the printing head to move from the initial position to the position just contacting the printing card; after the first number of rotation steps, at least enabling the card moving rubber roller motor to reach a uniform motion state;
after the card-moving rubber roll motor is controlled to rotate for a preset number of steps, the card-moving rubber roll motor is controlled to stop;
after the card-moving rubber roller motor is detected to stop, the printing head motor and the card-moving rubber roller motor are controlled to be started synchronously, so that the card-moving rubber roller motor is enabled to reach a constant speed when the printing card reaches the printing rubber roller, and meanwhile, the printing head is enabled to just reach the front end position of the printing card to print, and a blank area is prevented from appearing at the front end of the printing card.
2. The direct-printing identification card printing method according to claim 1, further comprising:
and when the preset distance from the front end position of the printing card to the position of the printing head is detected, starting the preheating of the printing head.
3. The direct-printing identification card printing method of claim 1, wherein after detecting that the card-feeding roller motor stops, and controlling the printing head motor and the card-feeding roller motor to synchronously start, the method further comprises:
and when the printing head motor is judged to rotate a second rotation step number, controlling the printing head motor to stop.
4. The direct printing type identification card printing method according to claim 3, further comprising, after the step of controlling the print head motor to stop when it is judged that the print head motor rotates by the second number of rotation steps:
and when the rotation step number of the card walking rubber roller motor required by the tail end position of the printing card reaching the position of the printing head is judged to be the third rotation step number, controlling the printing head motor to start, so that the printing head is just lifted when the tail end position of the printing card reaches the position of the printing head, and avoiding ribbon breakage caused by extrusion of the printing head and blank area at the tail end of the printing card.
5. The direct-printing identification card printing method according to claim 4,
calculating a third rotation step number according to the step number of the printing head moving to the lowest point position from the highest point and the distance step number of the printing head from the highest point to the printing rubber roller by one printing card thickness; wherein the third number of rotation steps is Ntph-Npre; ntph is the number of steps required for the printhead to move from an initial position at the highest point to a lowest point position; npre is the number of steps required for the printhead to move one thickness of the print card from an initial position at the highest point to a position away from the print blanket.
6. The direct-printing identification card printing method according to claim 1, further comprising:
calculating the step number ratio of the printing head motor and the card-moving rubber roller motor according to the moving distance of the printing head and the moving distance of the card-moving rubber roller within a certain time;
and acquiring a least common multiple according to the step number proportion, and controlling the printing head motor and the card-moving rubber roller motor to complete synchronization according to the least common multiple.
7. The direct-printing identification card printing method according to claim 1,
calculating a preset step number according to the distance from the printing rubber roller to the position detection area, the length of the printing card, the step distance of a motor of the card-moving rubber roller and the thickness of the printing card; wherein N ═ S-L/S- (H/S); n is a preset step number; s is the distance from the printing rubber roller to the position detection area; l is the length of the print card; s is the step pitch of the rubber roller moving motor; h is the thickness of the printed card.
8. A direct printing type certificate card printing device is characterized by comprising:
a positioning starting point setting unit for taking the current position of the printing card as a positioning starting point when the printing card is detected to leave the position detection area;
the step number control unit is used for controlling the card-moving rubber roller motor to rotate by a preset step number at the positioning starting point so that the front end of the printing card reaches a first position; the first rotating step number of the card walking roller motor required by the front end of the printing card to move from the first position to the printing position is the same as the second rotating step number of the printing head motor required by the printing head to move from the initial position to the position just contacting the printing card; after the first number of rotation steps, at least enabling the card moving rubber roller motor to reach a uniform motion state;
the motor stop control unit is used for controlling the card-moving rubber roller motor to stop after controlling the card-moving rubber roller motor to rotate for a preset number of steps;
and the motor start control unit is used for controlling the printing head motor and the card-moving rubber roller motor to start synchronously after detecting that the card-moving rubber roller motor stops, so that the card-moving rubber roller motor is used for printing the card to reach the printing rubber roller at a constant speed, and simultaneously, the printing head just reaches the front end position of the printing card to print, so as to avoid the blank area at the front end of the printing card.
9. A direct-printing identification card printer comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the direct-printing identification card printing method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, comprising a stored computer program, wherein when the computer program runs, the computer-readable storage medium controls a device to execute the direct-printing identification card printing method according to any one of claims 1 to 7.
CN201911369852.7A 2019-12-26 2019-12-26 Direct printing type certificate card printing method and device, certificate card printer and storage medium Active CN111070909B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911369852.7A CN111070909B (en) 2019-12-26 2019-12-26 Direct printing type certificate card printing method and device, certificate card printer and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911369852.7A CN111070909B (en) 2019-12-26 2019-12-26 Direct printing type certificate card printing method and device, certificate card printer and storage medium

Publications (2)

Publication Number Publication Date
CN111070909A CN111070909A (en) 2020-04-28
CN111070909B true CN111070909B (en) 2021-03-23

Family

ID=70318265

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911369852.7A Active CN111070909B (en) 2019-12-26 2019-12-26 Direct printing type certificate card printing method and device, certificate card printer and storage medium

Country Status (1)

Country Link
CN (1) CN111070909B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112248659B (en) * 2020-09-15 2022-01-28 厦门汉印电子技术有限公司 Certificate card printer, certificate card printing method and device
CN113580791B (en) * 2021-08-02 2023-04-14 威海新北洋技术服务有限公司 Printing equipment control method and device and electronic equipment

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA1306638C (en) * 1987-04-28 1992-08-25 Nigel Siddons-Corby Printing apparatus
FR2625578B1 (en) * 1988-01-06 1991-09-27 Schlumberger Ind Sa MAGNETIC CARD PAYMENT CONTROL SYSTEM
JP3669847B2 (en) * 1998-09-21 2005-07-13 株式会社大生機械 Line thermal head printing method
US6412991B1 (en) * 1998-12-07 2002-07-02 Fargo Electronics, Inc. Identification code for color thermal print ribbon
US7038703B2 (en) * 2003-07-30 2006-05-02 Zih Corp. Label printer with label edge detector
JP2005219311A (en) * 2004-02-04 2005-08-18 Fuji Photo Film Co Ltd Image forming apparatus and density unevenness correction method
JP4196902B2 (en) * 2004-08-23 2008-12-17 ソニー株式会社 Printing medium traveling apparatus, printing apparatus equipped with the traveling apparatus, printing medium traveling speed control method, and computer program
JP2006088622A (en) * 2004-09-27 2006-04-06 Alps Electric Co Ltd Printer
US7866904B2 (en) * 2007-03-06 2011-01-11 Datacard Corporation Desktop card printer with indent printing apparatus and method of printing
CN104924794A (en) * 2014-03-17 2015-09-23 诚研科技股份有限公司 Printing method for heat sublimation transparent medium and product thereof
CN110202947B (en) * 2019-02-19 2021-03-23 厦门汉印电子技术有限公司 Heat transfer printing coding machine and motor rotating speed control and device thereof

Also Published As

Publication number Publication date
CN111070909A (en) 2020-04-28

Similar Documents

Publication Publication Date Title
CN111070908B (en) Direct printing type certificate card printing method and device, certificate card printer and storage medium
CN111070909B (en) Direct printing type certificate card printing method and device, certificate card printer and storage medium
JP2016026922A (en) Printer, printer control method, and storage medium
CN101602291A (en) Printing equipment
US8035672B2 (en) Printing apparatus
CN106256552A (en) Transfer device
US20190084322A1 (en) Method for protecting printed data
US20180134050A1 (en) Method for protecting printed data
EP1298576B1 (en) Printer and method for controlling same
US20150273882A1 (en) Printing apparatus and printing method
US9937730B2 (en) Printer
JPH0485052A (en) Method to control drive of thermal head
CN112248659B (en) Certificate card printer, certificate card printing method and device
EP2623326A1 (en) Printer
EP3045318B1 (en) Thermal printer
EP2894036B1 (en) Image forming device and image forming method
JP3021268B2 (en) Thermal printer
US11880618B2 (en) Printing apparatus
JP2014043107A (en) Printer and printing method
CN105263714B (en) Image processing system and image forming method
US10675864B2 (en) Printing apparatus and print control method
EP2644400B1 (en) Printer and computer-readable storage medium storing printing control program
US10901670B2 (en) Printing apparatus and module
JPS60120072A (en) Printing controller
JP4038754B2 (en) Printing paper end detection device and printing device having the same

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
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Lin Jinyi

Inventor after: Other inventor requests not to publish the name

Inventor before: Request for anonymity

GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 361000 room 305A, Aung Yip house, Pioneer Park, torch high tech Zone, Xiamen, Fujian

Patentee after: Xiamen Hanyin Co.,Ltd.

Country or region after: China

Address before: 361000 room 305A, Aung Yip house, Pioneer Park, torch high tech Zone, Xiamen, Fujian

Patentee before: XIAMEN HANIN ELECTRONIC TECHNOLOGY Co.,Ltd.

Country or region before: China