CN114179532A - Method and device for moving spray head, electronic equipment and storage medium - Google Patents

Method and device for moving spray head, electronic equipment and storage medium Download PDF

Info

Publication number
CN114179532A
CN114179532A CN202111486285.0A CN202111486285A CN114179532A CN 114179532 A CN114179532 A CN 114179532A CN 202111486285 A CN202111486285 A CN 202111486285A CN 114179532 A CN114179532 A CN 114179532A
Authority
CN
China
Prior art keywords
coordinate
printing area
target
spray head
speed
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.)
Granted
Application number
CN202111486285.0A
Other languages
Chinese (zh)
Other versions
CN114179532B (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.)
Hefei Boshi Electronic Technology Co.,Ltd.
Original Assignee
Beijing Boshi 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 Beijing Boshi Electronic Technology Co ltd filed Critical Beijing Boshi Electronic Technology Co ltd
Priority to CN202111486285.0A priority Critical patent/CN114179532B/en
Publication of CN114179532A publication Critical patent/CN114179532A/en
Application granted granted Critical
Publication of CN114179532B publication Critical patent/CN114179532B/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
    • B41J25/00Actions or mechanisms not otherwise provided for
    • 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
    • B41J2/00Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
    • B41J2/005Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by bringing liquid or particles selectively into contact with a printing material
    • B41J2/01Ink jet
    • 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

  • Application Of Or Painting With Fluid Materials (AREA)
  • Ink Jet (AREA)

Abstract

The application provides a method and a device for moving a spray head, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring a starting coordinate corresponding to the starting point of each content line in the target image in the printing area; determining the abscissa and the ordinate of the spray head corresponding to the printing area aiming at the content line currently aiming at each content line, and taking the abscissa and the ordinate as a first transverse position and a first longitudinal position of the spray head corresponding to the printing area currently; and controlling the printing area to move longitudinally during the period of controlling the spray head to move from the first transverse position to the second transverse position corresponding to the abscissa of the target starting coordinate, so as to move the spray head from the first longitudinal position in the printing area to the second longitudinal position corresponding to the ordinate of the target starting coordinate. According to the method, the moving efficiency of the spray head on the printing area can be improved.

Description

Method and device for moving spray head, electronic equipment and storage medium
Technical Field
The application relates to the technical field of printing, in particular to a method and a device for moving a spray head, electronic equipment and a storage medium.
Background
The method is characterized in that a selected picture and a selected document are printed by a printer, which is a habit of modern people to learn and work, the printer is required to complete printing of the picture or the document, when printing is carried out, a nozzle is required to be moved to a position to be printed in a printing area to carry out ink jet operation, and the movement of the nozzle to the position to be printed in the printing area comprises the movement of the nozzle in a first direction and the movement of the printing area in a second direction.
The inventor finds that in the prior art, the spray head is generally moved first, and then the printing area is moved, or the spray head is moved after the printing area is moved; this makes the relative movement speed of the head and the printing area slow, i.e., the movement efficiency of the head over the printing area is low.
Disclosure of Invention
In view of this, embodiments of the present application provide a method and an apparatus for moving a nozzle, an electronic device, and a storage medium, so as to improve the moving efficiency of the nozzle on a printing area.
In a first aspect, an embodiment of the present application provides a method for moving a spray head, where the method includes:
acquiring a starting coordinate corresponding to the starting point of each content line in the target image in the printing area; the width of the content line is the ink jetting width of the nozzle in the printing area;
for each content line, determining an abscissa and an ordinate of the nozzle corresponding to the content line in the printing area, so as to respectively use the abscissa and the ordinate as a first transverse position and a first longitudinal position of the nozzle corresponding to the printing area;
controlling the printing area to move longitudinally during controlling the spray head to move from the first transverse position to a second transverse position corresponding to the abscissa of the target starting coordinate, so as to move the spray head from a first longitudinal position in the printing area to a second longitudinal position corresponding to the ordinate of the target starting coordinate; the target start coordinate is the start coordinate of the content line.
In one possible embodiment, after determining, for each content line, the abscissa and ordinate of the print head corresponding to the print area for the content line currently, the method further includes:
determining a target end coordinate corresponding to the end point of the content line in the printing area;
controlling the spray head to move from the first lateral position to the second lateral position at a variable speed such that the spray head reaches the second lateral position at a first speed; wherein the first speed is preset; the direction of the first speed is a direction in which the target start coordinate points to the target end coordinate.
In one possible embodiment, controlling the printing area to move longitudinally to move the head from a first longitudinal position in the printing area to a second longitudinal position corresponding to the ordinate of the target start coordinate comprises:
adjusting a moving speed of the printing area to move the head from a first longitudinal position in the printing area to a second longitudinal position corresponding to a longitudinal coordinate of the target start coordinate before the head moves to the second lateral position.
In one possible embodiment, controlling the sprinkler to move from the first lateral position to the second lateral position at variable speeds to reach the second lateral position at a first speed comprises:
determining a preset ink ejection speed as a value of the first speed;
adjusting a velocity and/or acceleration of the spray head during movement from the first lateral position to the second lateral position based on the value of the first velocity such that an average velocity of the spray head moving from the first lateral position to the second lateral position is greater than the first velocity.
In one possible embodiment, after the showerhead reaches the second lateral position at the first velocity, the method further comprises:
determining the position coordinate of the spray head corresponding to the printing area at present;
when the position coordinate is the same as the target starting coordinate, controlling the spray head to move at a constant speed from the target starting coordinate to the target ending coordinate at the first speed; and the nozzle performs ink jet in the process of moving from the target start coordinate to the target end coordinate at a constant speed.
In a second aspect, an embodiment of the present application further provides a nozzle moving apparatus, where the apparatus includes:
the acquisition unit is used for acquiring the starting coordinates of the starting point of each content line in the target image corresponding to the printing area; the width of the content line is the ink jetting width of the nozzle in the printing area;
a first determining unit, configured to determine, for each content line, an abscissa and an ordinate that correspond to the print area of the inkjet head currently for the content line, so as to use the abscissa and the ordinate as a first lateral position and a first longitudinal position of the inkjet head currently corresponding to the print area, respectively;
a first control unit for controlling the printing area to move longitudinally during controlling the head to move from the first lateral position to a second lateral position corresponding to an abscissa of a target start coordinate, so as to move the head from a first longitudinal position in the printing area to a second longitudinal position corresponding to an ordinate of the target start coordinate; the target start coordinate is the start coordinate of the content line.
In one possible embodiment, the apparatus further comprises:
a second determining unit, configured to determine, for each content line, an abscissa and an ordinate, which correspond to the printing area, of the nozzle with respect to the content line currently, and then determine a target end coordinate, which corresponds to the printing area, of an end point of the content line;
a second control unit for controlling the shower head to shift from the first lateral position to the second lateral position so that the shower head reaches the second lateral position at a first speed; wherein the first speed is preset; the direction of the first speed is a direction in which the target start coordinate points to the target end coordinate.
In one possible embodiment, the first control unit is configured to:
adjusting a moving speed of the printing area to move the head from a first longitudinal position in the printing area to a second longitudinal position corresponding to a longitudinal coordinate of the target start coordinate before the head moves to the second lateral position.
In one possible embodiment, the second control unit is configured to:
determining a preset ink ejection speed as a value of the first speed;
adjusting a velocity and/or acceleration of the spray head during movement from the first lateral position to the second lateral position based on the value of the first velocity such that an average velocity of the spray head moving from the first lateral position to the second lateral position is greater than the first velocity.
In one possible embodiment, the apparatus further comprises:
a third determining unit, configured to determine, after the nozzle reaches the second lateral position at the first speed, a position coordinate corresponding to the nozzle currently in the printing area;
the ink jet printing unit is used for controlling the spray head to move at a constant speed from the target starting coordinate to the target ending coordinate at the first speed when the position coordinate is the same as the target starting coordinate; and the nozzle performs ink jet in the process of moving from the target start coordinate to the target end coordinate at a constant speed.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the electronic device is operated, the processor executing the machine-readable instructions to perform the steps of the method according to any one of the first aspect.
In a fourth aspect, this application further provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, performs the steps of the method according to any one of the first aspect.
The method, the device, the electronic equipment and the storage medium for moving the spray head provided by the embodiment of the application comprise the steps of obtaining a starting coordinate corresponding to a starting point of each content line in a target image in a printing area; the width of the content line is the ink jetting width of the nozzle in the printing area; for each content line, determining an abscissa and an ordinate of the nozzle corresponding to the content line in the printing area, so as to respectively use the abscissa and the ordinate as a first transverse position and a first longitudinal position of the nozzle corresponding to the printing area; controlling the printing area to move longitudinally during controlling the spray head to move from the first transverse position to a second transverse position corresponding to the abscissa of the target starting coordinate, so as to move the spray head from a first longitudinal position in the printing area to a second longitudinal position corresponding to the ordinate of the target starting coordinate; the target start coordinate is the start coordinate of the content line. By the method, the printing area can be moved longitudinally at the same time in the process that the spray head moves transversely to the abscissa of the starting coordinate corresponding to the starting point of the content line, and compared with the scheme that the spray head is moved firstly and then the printing area is moved in the prior art, the method can control the spray head to be close to the starting coordinate corresponding to the starting point of the content line in the transverse direction and the longitudinal direction at the same time, and can improve the moving efficiency of the spray head on the printing area.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a flowchart illustrating a method for moving a spray head according to an embodiment of the present disclosure.
Fig. 2 shows a flowchart of a method for adjusting a moving speed according to an embodiment of the present application.
Fig. 3 shows a schematic structural diagram of a device for moving a spray head according to an embodiment of the present application.
Fig. 4 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of protection of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and steps without logical context may be performed in reverse order or simultaneously. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that in the embodiments of the present application, the term "comprising" is used to indicate the presence of the features stated hereinafter, but does not exclude the addition of further features.
It should be noted that the apparatuses, electronic devices, and the like according to the embodiments of the present application may be executed on a single server or may be executed in a server group. The server group may be centralized or distributed. In some embodiments, the server may be local or remote to the terminal. For example, the server may access information and/or data stored in the service requester terminal, the service provider terminal, or the database, or any combination thereof, via the network. As another example, the server may be directly connected to at least one of the service requester terminal, the service provider terminal and the database to access the stored information and/or data. In some embodiments, the server may be implemented on a cloud platform; by way of example only, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud (community cloud), a distributed cloud, an inter-cloud, a multi-cloud, and the like, or any combination thereof.
Fig. 1 is a flowchart illustrating a method for moving a spray head according to an embodiment of the present application, where the method includes the following steps, as shown in fig. 1:
step 101, acquiring a starting coordinate corresponding to a starting point of each content line in a target image in a printing area; the width of the content line is the ink jetting width of the nozzle in the printing area.
Specifically, the target image is an image to be printed received by the printer, and the printing area is a printing medium provided for the printer to print the target image, such as paper, a plate material, a device, and other specific entities. The content line is divided according to an ink ejection width that can be achieved by a head of the printer. After dividing the content lines in the target image, acquiring the head end and the tail end of each content line, and regarding the unidirectional printing, taking the head end of each content line as the starting point of the content line and the tail end of each content line as the end point of the content line; for bidirectional printing, sequencing each content line according to the sequence of the content line in a target image, and if the sequence of the content line is an odd number, taking the head end of the content line as the starting point of the content line and the tail end of the content line as the end point of the content line; if the content line is ordered in an even number, the end of the content line is used as the start point of the content line, and the head end of the content line is used as the end point of the content line.
Step 102, for each content line, determining an abscissa and an ordinate of the nozzle currently corresponding to the content line in the printing area, so as to respectively use the abscissa and the ordinate as a first transverse position and a first longitudinal position of the nozzle currently corresponding to the printing area.
Specifically, the printer controls the nozzle to print in the printing area, and the abscissa and the ordinate of the nozzle corresponding to the printing area are actually the abscissa and the ordinate corresponding to the center of the orthographic projection of the nozzle on the first nozzle hole of the printing area; and taking the abscissa of the orthographic projection of the first spray hole of the spray head as a first transverse position, and taking the ordinate of the orthographic projection of the first spray hole of the spray head as a first longitudinal position. The printing area and the spray head keep relative movement, when the printing area moves and the spray head keeps still, the ordinate of the spray head in the printing area can be changed, and when the spray head moves and the printing area keeps still, the abscissa of the spray head in the printing area can be changed. And for each content line, after the start coordinate corresponding to the starting point of the content line is determined, the abscissa and the ordinate of the spray head corresponding to the printing area are determined again.
103, controlling the printing area to move longitudinally during controlling the spray head to move from the first transverse position to a second transverse position corresponding to the abscissa of the target starting coordinate, so as to move the spray head from a first longitudinal position in the printing area to a second longitudinal position corresponding to the ordinate of the target starting coordinate; the target start coordinate is the start coordinate of the content line.
Specifically, for each content line, before printing, after determining the first transverse position and the first longitudinal position of the nozzle currently in the printing area according to step 102, when the nozzle moves in the transverse position of the printing area, the nozzle moves from the first transverse position to the second transverse position; at this time, the printing area is controlled to move longitudinally such that the head moves from a first longitudinal position to a second longitudinal position of the printing area.
The method for moving the spray head comprises the steps of obtaining a starting coordinate corresponding to a starting point of each content line in a target image in a printing area; the width of the content line is the ink jetting width of the nozzle in the printing area; for each content line, determining an abscissa and an ordinate of the nozzle corresponding to the content line in the printing area, so as to respectively use the abscissa and the ordinate as a first transverse position and a first longitudinal position of the nozzle corresponding to the printing area; controlling the printing area to move longitudinally during controlling the spray head to move from the first transverse position to a second transverse position corresponding to the abscissa of the target starting coordinate, so as to move the spray head from a first longitudinal position in the printing area to a second longitudinal position corresponding to the ordinate of the target starting coordinate; the target start coordinate is the start coordinate of the content line. By the method, the printing area can be moved longitudinally at the same time in the process that the spray head moves transversely to the abscissa of the starting coordinate corresponding to the starting point of the content line, and compared with the scheme that the spray head is moved firstly and then the printing area is moved in the prior art, the method can control the spray head to be close to the starting coordinate corresponding to the starting point of the content line in the transverse direction and the longitudinal direction at the same time, and can improve the moving efficiency of the spray head on the printing area.
In a possible implementation, fig. 2 shows a flowchart of a method for adjusting a moving speed provided by an embodiment of the present application, after the step 102 is executed to determine, for each content line, an abscissa and an ordinate of the inkjet head corresponding to the content line in the printing area, the method further includes the following steps:
step 201, determining the target end coordinate corresponding to the end point of the content line in the printing area.
Specifically, the content line refers to the content line corresponding to the target start coordinate in step 103, for each content line, the length, the start point, and the end point of each content line can be determined by the target image, and after the target start coordinate of the content line in the print area is determined, the target end coordinate of the content line corresponding to the print area is determined according to the end point of the content line.
Step 202, controlling the spray head to move from the first transverse position to the second transverse position in a variable speed manner, so that the spray head reaches the second transverse position at a first speed; wherein the first speed is preset; the direction of the first speed is a direction in which the target start coordinate points to the target end coordinate.
Specifically, after the target end coordinates corresponding to the content line in the printing area are acquired, the inkjet head is controlled to shift from a stationary position to a second transverse position at the first transverse position, and the embodiment of the present application is not limited to the shifting method, and specific shifting methods include, but are not limited to:
when the direction of movement of the spray head from the first lateral position to the second lateral position is the same as the direction of the first velocity:
(1) controlling the spray head to accelerate from a rest state to a preset maximum spray head speed at a first transverse position, and then decelerating from the maximum spray head speed to a first speed; the moving direction of the spray head is not changed.
(2) Controlling the spray head to accelerate from a rest starting position to a second transverse position at the first transverse position, so that the speed of the spray head is accelerated from 0 to the first speed when the spray head reaches the second transverse position; the moving direction of the spray head is not changed.
When the direction of movement of the spray head from the first lateral position to the second lateral position is opposite to the direction of the first velocity:
(3) controlling the spray head to accelerate from rest to a preset maximum spray head speed at a first transverse position, then decelerating from the preset maximum spray head speed to 0, and reaching a third transverse position; the first lateral position points in the same direction as the direction of movement of the spray head to the third lateral position.
Controlling the spray head to move from the third transverse position to the second transverse position in an accelerating way, so that the speed of the spray head is accelerated from 0 to the first speed when the spray head reaches the second transverse position; the third lateral position points in the same direction as the first velocity at the second lateral position.
The first speed is an ink jetting speed preset for the printer before printing, so that the printer moves from a target start coordinate of a printing area to a target end coordinate of the printing area according to the ink jetting speed, and an ink jetting process is guaranteed by controlling the ink jetting speed.
In one possible embodiment, when step 103 is executed to control the printing area to move longitudinally to move the nozzle from a first longitudinal position in the printing area to a second longitudinal position corresponding to the ordinate of the target start coordinate, the method includes the following steps:
step 211, adjusting the moving speed of the printing area to move the nozzle from the first longitudinal position in the printing area to the second longitudinal position corresponding to the ordinate of the target start coordinate before the nozzle moves to the second lateral position.
Specifically, before printing, a moving threshold of a printing area is preset for the printer, and in the process that the spray head moves from a first transverse position to a second transverse position, the printing area is controlled to move at a speed not exceeding the moving threshold; conversely, when the actual movement distance between the first transverse position and the second transverse position is longer, the movement speed is adaptively slowed down according to the actual movement distance between the first longitudinal position and the second longitudinal position, so that the movement of the printing area can be completed before the head moves to the second transverse position.
It should be noted that, in this embodiment of the present application, the arrival order of the nozzles and the printing area is not limited, and in another possible implementation, the movement speed of the printing area may also be adjusted so that the printing area and the nozzles complete movement at the same time; alternatively, the head is controlled to complete the movement from the first lateral position to the second lateral position before the movement of the printing area is completed. The moving method of the moving area is similar to the moving method of the nozzle in step 202, and is not described herein again.
In one possible embodiment, when the method performs step 202 to control the sprinkler to move from the first lateral position to the second lateral position at a variable speed such that the sprinkler reaches the second lateral position at a first speed, the method includes the steps of:
in step 212, a preset ink ejection speed is determined as the value of the first speed.
Specifically, an ink ejection speed preset for the printer is acquired, and the value of the ink ejection speed is determined as the value of the first speed.
And 213, adjusting the speed and/or acceleration of the spray head moving from the first transverse position to the second transverse position according to the value of the first speed, so that the average speed of the spray head moving from the first transverse position to the second transverse position is greater than the first speed.
Specifically, after determining the value of the first speed according to step 212, an average speed is obtained from the actual distance traveled by the spray head and the actual time according to the value of the first speed, and the speed of the spray head during its movement from the first lateral position to the second lateral position is adjusted such that the average speed is greater than the first speed.
By the method, the printer can quickly skip the blank position of the target image corresponding to the printing area and quickly move to the starting position of the printing area corresponding to the starting point of the content line, and the printing speed and efficiency are improved.
In one possible embodiment, after the showerhead reaches the second lateral position at the first velocity in step 202, the method further comprises the steps of:
determining the position coordinate of the spray head corresponding to the printing area at present; when the position coordinate is the same as the target starting coordinate, controlling the spray head to move at a constant speed from the target starting coordinate to the target ending coordinate at the first speed; and the nozzle performs ink jet in the process of moving from the target start coordinate to the target end coordinate at a constant speed.
Specifically, after the nozzle reaches the second transverse position, as shown in step 211, the printing area has been changed from the first longitudinal position to the second longitudinal position in the printing area by the longitudinal movement, that is, the abscissa and the ordinate of the nozzle are the second transverse position and the second longitudinal position respectively; and if the position coordinate is the same as the target starting coordinate, controlling the spray head to spray ink at a constant speed according to the first speed, spraying the content of the content line in the target image to the printing area, and generating printing data according to the starting point and the end point of the content line by the printer.
It should be noted that, after the nozzle moves to the target end position corresponding to the content line in the printing area at the first speed, stopping jetting ink, and determining that the content line is completely printed; the next content line continues to be printed until all content lines in the entire target image have been printed in the print area. The printing sequence of the content lines may be arranged according to the sequence of each content line in the target image, or may be preset.
Fig. 3 is a schematic structural diagram illustrating an apparatus for moving a spray head according to an embodiment of the present application, where the apparatus includes, as shown in fig. 3: an acquisition unit 301, a first determination unit 302, a first control unit 303.
An acquisition unit 301, configured to acquire a start coordinate corresponding to a start point of each content line in the target image in the print area; the width of the content line is the ink jetting width of the nozzle in the printing area;
a first determining unit 302, configured to determine, for each content line, an abscissa and an ordinate that correspond to the print area of the inkjet head currently for the content line, so as to use the abscissa and the ordinate as a first lateral position and a first longitudinal position that correspond to the print area of the inkjet head currently;
a first control unit 303 configured to control the printing area to move longitudinally during controlling the head to move from the first lateral position to a second lateral position corresponding to an abscissa of a target start coordinate, for each content line, to move the head from a first longitudinal position in the printing area to a second longitudinal position corresponding to an ordinate of the target start coordinate; the target start coordinate is the start coordinate of the content line.
In one possible embodiment, the apparatus further comprises:
and the second determining unit is used for determining the target end coordinate of the end point of the content line corresponding to the printing area after determining the abscissa and the ordinate of the nozzle corresponding to the printing area for the content line currently.
A second control unit for controlling the shower head to shift from the first lateral position to the second lateral position so that the shower head reaches the second lateral position at a first speed; wherein the first speed is preset; the direction of the first speed is a direction in which the target start coordinate points to the target end coordinate.
In one possible embodiment, the first control unit 303 is configured to:
adjusting a moving speed of the printing area to move the head from a first longitudinal position in the printing area to a second longitudinal position corresponding to a longitudinal coordinate of the target start coordinate before the head moves to the second lateral position.
In one possible embodiment, the second control unit is configured to:
a preset ink ejection speed is determined as a value of the first speed.
Adjusting a velocity and/or acceleration of the spray head during movement from the first lateral position to the second lateral position based on the value of the first velocity such that an average velocity of the spray head moving from the first lateral position to the second lateral position is greater than the first velocity.
In one possible embodiment, the apparatus further comprises:
and the third determining unit is used for determining the current position coordinates of the spray head in the printing area after the spray head reaches the second transverse position at the first speed.
The ink jet printing unit is used for controlling the spray head to move at a constant speed from the target starting coordinate to the target ending coordinate at the first speed when the position coordinate is the same as the target starting coordinate; and the nozzle performs ink jet in the process of moving from the target start coordinate to the target end coordinate at a constant speed.
The device for moving the spray head comprises a starting coordinate acquiring unit, a printing unit and a control unit, wherein the starting coordinate acquiring unit is used for acquiring a starting coordinate of a starting point of each content line in a target image, and the starting coordinate corresponds to a printing area; the width of the content line is the ink jetting width of the nozzle in the printing area; for each content line, determining an abscissa and an ordinate of the nozzle corresponding to the content line in the printing area, so as to respectively use the abscissa and the ordinate as a first transverse position and a first longitudinal position of the nozzle corresponding to the printing area; controlling the printing area to move longitudinally during controlling the spray head to move from the first transverse position to a second transverse position corresponding to the abscissa of the target starting coordinate, so as to move the spray head from a first longitudinal position in the printing area to a second longitudinal position corresponding to the ordinate of the target starting coordinate; the target start coordinate is the start coordinate of the content line. Through the device, the printing area can be moved longitudinally at the same time in the process of transversely moving the spray head to the horizontal coordinate of the starting coordinate corresponding to the starting point of the content line, compared with the scheme that the spray head is moved firstly and then the printing area is moved in the prior art, the device can control the spray head to be close to the starting coordinate corresponding to the starting point of the content line in the transverse direction and the longitudinal direction at the same time, and can improve the moving efficiency of the spray head on the printing area.
Fig. 4 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application, including: a processor 401, a storage medium 402 and a bus 403, wherein the storage medium 402 stores machine-readable instructions executable by the processor 401, the processor 401 and the storage medium 402 communicate with each other through the bus 403 when the electronic device executes a method of moving a nozzle as in the embodiments, and the processor 401 executes the machine-readable instructions to perform the steps as in the embodiments.
In an embodiment, the storage medium 402 may further execute other machine-readable instructions to perform other methods as described in the embodiments, and for the method steps and principles of specific execution, reference is made to the description of the embodiments, which is not described in detail herein.
Embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor when the computer program is executed to perform the steps in the embodiments.
In the embodiments of the present application, when being executed by a processor, the computer program may further execute other machine-readable instructions to perform other methods as described in the embodiments, and for the method steps and principles of specific execution, reference is made to the description of the embodiments, and details are not repeated here.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and there may be other divisions in actual implementation, and for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or modules through some communication interfaces, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method of moving a spray head, the method comprising:
acquiring a starting coordinate corresponding to the starting point of each content line in the target image in the printing area; the width of the content line is the ink jetting width of the nozzle in the printing area;
for each content line, determining an abscissa and an ordinate of the nozzle corresponding to the content line in the printing area, so as to respectively use the abscissa and the ordinate as a first transverse position and a first longitudinal position of the nozzle corresponding to the printing area;
controlling the printing area to move longitudinally during controlling the spray head to move from the first transverse position to a second transverse position corresponding to the abscissa of the target starting coordinate, so as to move the spray head from a first longitudinal position in the printing area to a second longitudinal position corresponding to the ordinate of the target starting coordinate; the target start coordinate is the start coordinate of the content line.
2. The method of claim 1, wherein after determining, for each content line, an abscissa and an ordinate for which the nozzle currently corresponds to the print zone for that content line, the method further comprises:
determining a target end coordinate corresponding to the end point of the content line in the printing area;
controlling the spray head to move from the first lateral position to the second lateral position at a variable speed such that the spray head reaches the second lateral position at a first speed; wherein the first speed is preset; the direction of the first speed is a direction in which the target start coordinate points to the target end coordinate.
3. The method of claim 1, wherein controlling the print zone to move longitudinally to move the nozzle from a first longitudinal position in the print zone to a second longitudinal position corresponding to the ordinate of the target start coordinate comprises:
adjusting a moving speed of the printing area to move the head from a first longitudinal position in the printing area to a second longitudinal position corresponding to a longitudinal coordinate of the target start coordinate before the head moves to the second lateral position.
4. The method of claim 2, wherein the sprinkler is controlled to move from the first lateral position to the second lateral position at variable speeds to reach the second lateral position at a first speed, the method comprising:
determining a preset ink ejection speed as a value of the first speed;
adjusting a velocity and/or acceleration of the spray head during movement from the first lateral position to the second lateral position based on the value of the first velocity such that an average velocity of the spray head moving from the first lateral position to the second lateral position is greater than the first velocity.
5. The method of claim 3, wherein after the showerhead reaches the second lateral position at the first velocity, the method further comprises:
determining the position coordinate of the spray head corresponding to the printing area at present;
when the position coordinate is the same as the target starting coordinate, controlling the spray head to move at a constant speed from the target starting coordinate to the target ending coordinate at the first speed; and the nozzle performs ink jet in the process of moving from the target start coordinate to the target end coordinate at a constant speed.
6. An apparatus for moving a spray head, the apparatus comprising:
the acquisition unit is used for acquiring the starting coordinates of the starting point of each content line in the target image corresponding to the printing area; the width of the content line is the ink jetting width of the nozzle in the printing area;
a first determining unit, configured to determine, for each content line, an abscissa and an ordinate that correspond to the print area of the inkjet head currently for the content line, so as to use the abscissa and the ordinate as a first lateral position and a first longitudinal position of the inkjet head currently corresponding to the print area, respectively;
a first control unit for controlling the printing area to move longitudinally during controlling the head to move from the first lateral position to a second lateral position corresponding to an abscissa of a target start coordinate, so as to move the head from a first longitudinal position in the printing area to a second longitudinal position corresponding to an ordinate of the target start coordinate; the target start coordinate is the start coordinate of the content line.
7. The apparatus of claim 6, further comprising:
a second determining unit, configured to determine, for each content line, an abscissa and an ordinate, which correspond to the printing area, of the nozzle with respect to the content line currently, and then determine a target end coordinate, which corresponds to the printing area, of an end point of the content line;
a second control unit for controlling the shower head to shift from the first lateral position to the second lateral position so that the shower head reaches the second lateral position at a first speed; wherein the first speed is preset; the direction of the first speed is a direction in which the target start coordinate points to the target end coordinate.
8. The apparatus of claim 7, further comprising:
a third determining unit, configured to determine, after the nozzle reaches the second lateral position at the first speed, a position coordinate corresponding to the nozzle currently in the printing area;
the third control unit is used for controlling the spray head to move at the first speed from the target starting coordinate to the target ending coordinate at a constant speed when the position coordinate is the same as the target starting coordinate; and the nozzle performs ink jet in the process of moving from the target start coordinate to the target end coordinate at a constant speed.
9. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the electronic device is operating, the processor executing the machine-readable instructions to perform the steps of the method of moving the spray head according to any of claims 1 to 5.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method for moving a spray head according to any one of claims 1 to 5.
CN202111486285.0A 2021-12-07 2021-12-07 Method and device for moving spray head, electronic equipment and storage medium Active CN114179532B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111486285.0A CN114179532B (en) 2021-12-07 2021-12-07 Method and device for moving spray head, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111486285.0A CN114179532B (en) 2021-12-07 2021-12-07 Method and device for moving spray head, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114179532A true CN114179532A (en) 2022-03-15
CN114179532B CN114179532B (en) 2022-11-22

Family

ID=80603704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111486285.0A Active CN114179532B (en) 2021-12-07 2021-12-07 Method and device for moving spray head, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114179532B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115431645A (en) * 2022-09-23 2022-12-06 深圳市润天智数字设备股份有限公司 Printing positioning method, printing positioning device, printing system and readable storage medium
CN116587737A (en) * 2023-05-25 2023-08-15 苏州戎图科技有限公司 Printing accelerating method of ink-jet printer based on content prediction
CN117473588A (en) * 2023-12-26 2024-01-30 合肥坤颐建筑科技合伙企业(有限合伙) Nozzle arrangement method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1613657A (en) * 2003-11-04 2005-05-11 明基电通股份有限公司 Method and apparatus for improving printing rate of printer
US20090219553A1 (en) * 2005-03-14 2009-09-03 Yasushi Sutoh Printing medium conveying apparatus and printing medium conveying method
US20140015881A1 (en) * 2012-07-12 2014-01-16 Alex Veis Coordinated printhead operation
CN107627749A (en) * 2016-07-19 2018-01-26 程好学 A kind of method of inkjet printing
CN110421984A (en) * 2019-08-17 2019-11-08 深圳市汉森软件有限公司 Reciprocating scanning and printing control method, device, equipment and storage medium
CN111452505A (en) * 2020-04-30 2020-07-28 厦门汉印电子技术有限公司 Ink vehicle motion control method and device of ink-jet printer
CN111823711A (en) * 2020-06-08 2020-10-27 深圳市怡化时代科技有限公司 Printing method, printing device, printing equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1613657A (en) * 2003-11-04 2005-05-11 明基电通股份有限公司 Method and apparatus for improving printing rate of printer
US20090219553A1 (en) * 2005-03-14 2009-09-03 Yasushi Sutoh Printing medium conveying apparatus and printing medium conveying method
US20140015881A1 (en) * 2012-07-12 2014-01-16 Alex Veis Coordinated printhead operation
CN107627749A (en) * 2016-07-19 2018-01-26 程好学 A kind of method of inkjet printing
CN110421984A (en) * 2019-08-17 2019-11-08 深圳市汉森软件有限公司 Reciprocating scanning and printing control method, device, equipment and storage medium
CN111452505A (en) * 2020-04-30 2020-07-28 厦门汉印电子技术有限公司 Ink vehicle motion control method and device of ink-jet printer
CN111823711A (en) * 2020-06-08 2020-10-27 深圳市怡化时代科技有限公司 Printing method, printing device, printing equipment and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115431645A (en) * 2022-09-23 2022-12-06 深圳市润天智数字设备股份有限公司 Printing positioning method, printing positioning device, printing system and readable storage medium
CN115431645B (en) * 2022-09-23 2023-08-08 深圳市润天智数字设备股份有限公司 Print positioning method, print positioning device, print system, and readable storage medium
CN116587737A (en) * 2023-05-25 2023-08-15 苏州戎图科技有限公司 Printing accelerating method of ink-jet printer based on content prediction
CN116587737B (en) * 2023-05-25 2023-10-20 苏州戎图科技有限公司 Printing accelerating method of ink-jet printer based on content prediction
CN117473588A (en) * 2023-12-26 2024-01-30 合肥坤颐建筑科技合伙企业(有限合伙) Nozzle arrangement method, device, equipment and storage medium
CN117473588B (en) * 2023-12-26 2024-04-02 合肥坤颐建筑科技合伙企业(有限合伙) Nozzle arrangement method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN114179532B (en) 2022-11-22

Similar Documents

Publication Publication Date Title
CN114179532B (en) Method and device for moving spray head, electronic equipment and storage medium
CN107672335B (en) Laser marking method, laser marking machine and storage medium
CN110421984B (en) Reciprocating scanning printing control method, device, equipment and storage medium
US10946681B2 (en) Printing control method and printing device
JP7020025B2 (en) Printing equipment, printing methods and programs
CN111452505B (en) Ink vehicle motion control method and device of ink-jet printer
CN113829755A (en) Method, apparatus, device and medium for compensating drop deviation in bidirectional printing
US8035672B2 (en) Printing apparatus
CN110355753B (en) Robot control device, robot control method, and storage medium
JP2015166152A (en) Image formation device
CN109109466B (en) image-text jet printing method, system and related device applied to jet printing machine
CN114953745B (en) Method, apparatus, and medium for controlling inkjet printing device
CN114103459B (en) Ink jet control method, device, equipment and storage medium
CN113442581B (en) Printing method, device, equipment and storage medium
US9427995B2 (en) Image recording device
CN110429208B (en) Glass substrate, and printing method and system of glass substrate
CN105313500A (en) Printing apparatus and printing control device
CN111294659B (en) Method and device for controlling track playing speed, medium and processing equipment
CN103182862B (en) Print control program and device
CN102602171B (en) Printing control device and printing control method
CN112455090A (en) Control method, device, equipment, medium and system for regulating ink jet of printer
KR101721476B1 (en) Vector printing system for printed electronics
JP2017042985A (en) Ink jet printer
CN113515241A (en) Printing method, device, equipment and storage medium for printing multiple images
JP6767740B2 (en) Inkjet printing equipment

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
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 230000, 508, Block B, Science and Technology Innovation Building, Shaoquan Lake Science and Technology Park, Intersection of Tongling North Road and Xifeihe Road, Xinzhan District, Hefei City, Anhui Province

Patentee after: Hefei Boshi Electronic Technology Co.,Ltd.

Country or region after: China

Address before: No. a2497, second floor, College Park, Dongsheng science and Technology Park, Zhongguancun, No. 18 Xueqing Road, Haidian District, Beijing 100089

Patentee before: Beijing Boshi Electronic Technology Co.,Ltd.

Country or region before: China