Flatbed printer platform positioning origin calibration method, device, equipment and medium
By controlling the stepper motor to reset and calculating the error distance to adjust the position in the flatbed printer, the problem of inconsistent printing starting points is solved, achieving precise reset and stable printing quality, and reducing costs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGZHOU SENYANG ELECTRONIC TECH CO LTD
- Filing Date
- 2023-09-25
- Publication Date
- 2026-06-05
AI Technical Summary
When a flatbed printer repeatedly prints material at fixed coordinate points (XY axis), it is difficult to keep the printing starting point consistent, resulting in printing errors.
By controlling the stepper motor to reset after printing, the reset and stopping position is obtained, the error distance is calculated, and the stepper motor position is adjusted based on the error distance to reach the stopping baseline, thus avoiding printing errors.
It achieves precise reset of the flatbed printer platform, reduces printing errors, improves the stability of print quality, and eliminates the need for optical or magnetic sensors, thus reducing costs.
Smart Images

Figure CN117507643B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of printing calibration technology, and in particular to a method, apparatus, equipment and medium for calibrating the positioning origin of a flatbed printer platform. Background Technology
[0002] When a flatbed printer repeatedly prints material at fixed coordinate points (XY axes), the starting point of the print must be consistent for each print.
[0003] In existing technologies, when the Y-axis uses only an origin sensor in the hardware, it's impossible to ensure the Y-axis stops at the same position every time it returns to the platform origin, leading to printing errors. The main reasons are as follows: 1. Mechanical overshoot (when the travel stops, it exceeds the origin position, and due to inertia, it doesn't stop in time). 2. Insufficient preset stopping distance (not reaching the origin). 3. Delay in the origin sensor signal from the control software. Inconsistent printing starting points also cause printing errors. Summary of the Invention
[0004] This invention provides a method, apparatus, device, and medium for calibrating the origin of a flatbed printer platform, aiming to solve the problem that the starting point of each print is difficult to keep consistent when a flatbed printer repeatedly prints material at fixed coordinate points (XY axes).
[0005] In a first aspect, embodiments of the present invention provide a method for calibrating the origin of a flatbed printer platform. The flatbed printer includes a stepper motor, and the method includes:
[0006] After completing one printing cycle, the stepper motor is reset.
[0007] Obtain the reset and stop position of the stepper motor;
[0008] Calculate the error distance between the reset parking position and the preset stop baseline;
[0009] The stepper motor is controlled to move to the stop reference line based on the error distance.
[0010] A further technical solution is that obtaining the reset and stopping position of the stepper motor includes:
[0011] After the stepper motor is reset and stopped, the characteristic step value of the stepper motor at the reset and stop position is obtained.
[0012] A further technical solution is that calculating the error distance between the reset parking position and the preset stop baseline includes:
[0013] Obtain the pre-stored reference step value of the stepper motor at the stop reference line;
[0014] The absolute value of the difference between the feature step value and the baseline step value is obtained as the error distance.
[0015] A further technical solution is that controlling the stepper motor to move to the stop reference line based on the error distance includes:
[0016] Determine whether the stepper motor has overcharged during stopping based on the reset and stopping position of the stepper motor;
[0017] If the stepper motor experiences a stop overshoot, control the stepper motor to move the error distance in the opposite direction of the preset reset direction.
[0018] A further technical solution is that controlling the stepper motor to move to the stop reference line based on the error distance includes:
[0019] Determine whether the stepper motor is not stopped sufficiently based on the reset and stopping position of the stepper motor;
[0020] If the stepper motor is not stopped in time, control the stepper motor to move the error distance along the preset reset direction.
[0021] A further technical solution is that, after controlling the stepper motor to move to the stop reference line based on the error distance, the method further includes:
[0022] The stepper motor is controlled to move a preset standard distance toward a preset printing starting point so that the stepper motor reaches the printing starting point.
[0023] A further technical solution is that the method further includes:
[0024] Receive the print start point set by the user, and record the starting step value corresponding to the print start point and the reference step value corresponding to the stop baseline.
[0025] Secondly, embodiments of the present invention also provide a flatbed printer platform positioning origin calibration device, which includes a unit for performing the above-described method.
[0026] Thirdly, embodiments of the present invention also provide a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the above-described method.
[0027] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the above-described method.
[0028] This invention provides a method, apparatus, device, and medium for calibrating the positioning origin of a flatbed printer platform. The method includes: after completing a print job, controlling a stepper motor to reset; obtaining the reset stop position of the stepper motor; calculating the error distance between the reset stop position and a preset stop baseline; and controlling the stepper motor to move to the stop baseline based on the error distance, thereby achieving precise reset and avoiding printing errors. It enables repeated printing on the same coordinates with stable print quality. The assembly structure of this solution is simple, and the mechanical fault tolerance is high. Precise reset can be achieved without the use of optical / magnetic sensors, thus effectively reducing costs. Attached Figure Description
[0029] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0030] Figure 1 A flowchart illustrating a method for calibrating the positioning origin of a flatbed printer platform according to an embodiment of the present invention;
[0031] Figure 2 This is a schematic diagram of stepper motor stopping overshoot provided in an embodiment of the present invention;
[0032] Figure 3 This is a schematic diagram illustrating insufficient stopping of a stepper motor according to an embodiment of the present invention.
[0033] Figure 4 This is a schematic diagram showing the stepper motor moving to the printing start point according to an embodiment of the present invention;
[0034] Figure 5 A schematic block diagram of a flatbed printer platform positioning origin calibration device provided in an embodiment of the present invention;
[0035] Figure 6 A schematic block diagram of a computer device provided for an embodiment of the present invention. Detailed Implementation
[0036] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0037] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.
[0038] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0039] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0040] As used in this specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrases "if determined" or "if [described condition or event] is detected" may be interpreted, depending on the context, as "once determined," "in response to determination," "once [described condition or event] is detected," or "in response to detection of [described condition or event]."
[0041] Please see Figure 1 , Figure 1 This is a flowchart illustrating the flatbed printer platform positioning origin calibration method provided in an embodiment of the present invention. The flatbed printer includes a stepper motor, which drives the printing platform to move. Figure 1 As shown, the method includes the following steps S1-S4.
[0042] S1. After completing one printing cycle, control the stepper motor to reset.
[0043] In practice, when a flatbed printer repeatedly prints material at fixed coordinate points, it needs to control the stepper motor to reset after each print cycle, that is, to reset the stepper motor to the stop baseline. Understandably, the stop baseline is preset.
[0044] However, due to various factors such as mechanical overshoot, insufficient preset stopping distance, and signal delay of the control software origin sensor, the stepper motor has difficulty accurately resetting to the stop reference line, resulting in certain errors and thus printing errors. The purpose of this invention is to enable the motor to accurately reset to the stop reference line, thereby avoiding printing errors.
[0045] S2. Obtain the reset and stop position of the stepper motor.
[0046] In specific implementation, after the stepper motor is reset and stopped, that is, after the stepper motor stops moving, the reset and stop position of the stepper motor is obtained.
[0047] In one embodiment, the above step "obtaining the reset stop position of the stepper motor" specifically includes: after the stepper motor resets and stops, obtaining the characteristic step value of the stepper motor at the reset stop position.
[0048] In specific implementation, after the stepper motor is reset and stopped, the step value of the stepper motor is read as the characteristic step value.
[0049] S3. Calculate the error distance between the reset parking position and the preset stop baseline.
[0050] In practice, after determining the stepper motor's reset and stop position, the error distance between the reset and stop position and the preset stop reference line is further calculated. This error distance can then be used to calibrate the stepper motor's position, ensuring it stops at the stop reference line.
[0051] In one embodiment, the above step "calculating the error distance between the reset parking position and the preset stop reference line" specifically includes: obtaining the pre-stored reference step value of the stepper motor at the stop reference line; and obtaining the absolute value of the difference between the feature step value and the reference step value as the error distance.
[0052] In specific implementation, the step value of the stepper motor at the stop reference line is obtained in advance as the reference step value, and the reference step value is recorded. After obtaining the characteristic step value, the reference step value is read, and the absolute value of the difference between the characteristic step value and the reference step value is calculated as the error distance. It is understood that since the difference between the characteristic step value and the reference step value may be positive or negative, it is necessary to take the absolute value of the difference between the characteristic step value and the reference step value as the error distance.
[0053] S4. Based on the error distance, control the stepper motor to move to the stop reference line.
[0054] In practice, by controlling the stepper motor to move the error distance along the direction toward the stop reference line, the stepper motor can be accurately moved to the stop reference line, thereby avoiding printing errors.
[0055] In one embodiment, the above step "controlling the stepper motor to move to the stop reference line based on the error distance" includes the following steps: determining whether the stepper motor has overshooted the stop based on the reset stop position of the stepper motor; if the stepper motor has overshooted the stop, controlling the stepper motor to move the error distance in the opposite direction of the preset reset direction.
[0056] In specific implementation, see Figure 2 If the stepper motor's reset stop position 40 is located below the stop reference line 30, it is determined that the stepper motor has overshooted, meaning the stop position exceeds the stop reference line 30. In this case, the stepper motor is controlled to move in the opposite direction of the preset reset direction (i.e., the direction of the stop reference line 30). Figure 2 The error distance is moved along the Y-axis direction, causing the stepper motor to move to the stop reference line 30. It should be noted that... Figure 2 In the diagram, 10 represents the user-defined printing starting point, 20 represents the U-shaped sensor, A represents the standard distance, and B represents the error distance.
[0057] In one embodiment, the above step "controlling the stepper motor to move to the stop reference line based on the error distance" includes the following steps: determining whether the stepper motor is under-stopped based on the reset stop position of the stepper motor; if the stepper motor is under-stopped, controlling the stepper motor to move along the preset reset direction by the error distance.
[0058] In specific implementation, see Figure 3 If the stepper motor's reset stop position 40 is above the stop reference line 30, it is determined that the stepper motor is not fully stopped, meaning the stop position 40 has not reached the stop reference line 30. In this case, the stepper motor is controlled to move along the preset reset direction (i.e., the... Figure 2 The error distance is moved in the opposite direction of the Y-axis direction, so that the stepper motor moves to the stop reference line 30. Figure 3 In the diagram, 10 represents the user-defined printing starting point, 20 represents the U-shaped sensor, A represents the standard distance, and C represents the error distance.
[0059] Furthermore, in one embodiment, after the step of "controlling the stepper motor to move to the stop reference line based on the error distance", the method further includes: controlling the stepper motor to move a preset standard distance towards a preset printing starting point, so that the stepper motor reaches the printing starting point.
[0060] In practice, the user-defined printing start point is received in advance, and the starting step value corresponding to the printing start point and the reference step value corresponding to the stop baseline are recorded.
[0061] For example, see Figure 4The printing start point 10 is set by the user. The system records the starting step value corresponding to the printing start point 10 and the reference step value corresponding to the stop baseline 30. The standard distance is equal to the absolute value of the difference between the starting step value and the reference step value. By controlling the stepper motor to move a preset standard distance towards the preset printing start point 10, the stepper motor reaches the printing start point 10, and the printing process begins. Figure 4 The sensor number 20 is a U-shaped sensor, and A represents the standard distance.
[0062] The technical solution of this invention, after completing one print, controls the stepper motor to reset; obtains the reset and stopping position of the stepper motor; calculates the error distance between the reset and stopping position and a preset stop baseline; and controls the stepper motor to move to the stop baseline based on the error distance, thereby achieving precise reset and avoiding printing errors. It enables repeated printing on the same coordinates with stable print quality. The assembly structure of this solution is simple, and the mechanical fault tolerance is high. Precise reset can be achieved without using optical / magnetic sensors, thus effectively reducing costs.
[0063] See Figure 5 , Figure 5 This is a schematic block diagram of a flatbed printer platform positioning origin calibration device 20 provided in an embodiment of the present invention. Corresponding to the above-described flatbed printer platform positioning origin calibration method, the present invention also provides a flatbed printer platform positioning origin calibration device 20. The flatbed printer platform positioning origin calibration device 20 includes a unit for performing the above-described flatbed printer platform positioning origin calibration method, and the flatbed printer platform positioning origin calibration device 20 can be configured in a desktop computer, tablet computer, laptop computer, or other terminal. Specifically, the flatbed printer platform positioning origin calibration device 20 includes:
[0064] The reset unit 21 is used to control the stepper motor to reset after one printing is completed;
[0065] Acquisition unit 22 is used to acquire the reset and stop position of the stepper motor;
[0066] Calculation unit 23 is used to calculate the error distance between the reset parking position and the preset stop baseline;
[0067] The first control unit 24 is used to control the stepper motor to move to the stop reference line based on the error distance.
[0068] In one embodiment, obtaining the reset and stop position of the stepper motor includes:
[0069] After the stepper motor is reset and stopped, the characteristic step value of the stepper motor at the reset and stop position is obtained.
[0070] In one embodiment, calculating the error distance between the reset parking position and the preset stop baseline includes:
[0071] Obtain the pre-stored reference step value of the stepper motor at the stop reference line;
[0072] The absolute value of the difference between the feature step value and the baseline step value is obtained as the error distance.
[0073] In one embodiment, controlling the stepper motor to move to the stop reference line based on the error distance includes:
[0074] Determine whether the stepper motor has overcharged during stopping based on the reset and stopping position of the stepper motor;
[0075] If the stepper motor experiences a stop overshoot, control the stepper motor to move the error distance in the opposite direction of the preset reset direction.
[0076] In one embodiment, controlling the stepper motor to move to the stop reference line based on the error distance includes:
[0077] Determine whether the stepper motor is not stopped sufficiently based on the reset and stopping position of the stepper motor;
[0078] If the stepper motor is not stopped in time, control the stepper motor to move the error distance along the preset reset direction.
[0079] In one embodiment, the flatbed printer platform positioning origin calibration device 20 further includes:
[0080] The second control unit controls the stepper motor to move a preset standard distance toward a preset printing starting point, so that the stepper motor reaches the printing starting point.
[0081] In one embodiment, the flatbed printer platform positioning origin calibration device 20 further includes:
[0082] The receiving unit is used to receive the printing start point set by the user, and record the starting step value corresponding to the printing start point and the reference step value corresponding to the stop reference line.
[0083] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned flatbed printer platform positioning origin calibration device 20 and each unit can be referred to the corresponding description in the foregoing method embodiments. For the sake of convenience and brevity, it will not be repeated here.
[0084] The aforementioned flatbed printer platform positioning origin calibration device can be implemented as a computer program, which can, for example... Figure 6 It runs on the computer device shown.
[0085] Please see Figure 6 , Figure 6 This is a schematic block diagram of a computer device provided in an embodiment of this application. The computer device 500 can be a terminal or a server. The terminal can be an electronic device with communication functions, such as a smartphone, tablet, laptop, desktop computer, personal digital assistant, or wearable device. The server can be a standalone server or a server cluster composed of multiple servers.
[0086] The computer device 500 includes a processor 502, a memory, and a network interface 505 connected via a system bus 501. The memory may include a non-volatile storage medium 503 and internal memory 504.
[0087] The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, it causes the processor 502 to perform a method for calibrating the origin of a flatbed printer platform.
[0088] The processor 502 provides computing and control capabilities to support the operation of the entire computer device 500.
[0089] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can perform a method for calibrating the positioning origin of a flatbed printer platform.
[0090] The network interface 505 is used for network communication with other devices. Those skilled in the art will understand that the above structure is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device 500 to which the present application is applied. A specific computer device 500 may include more or fewer components than shown in the figures, or combine certain components, or have different component arrangements.
[0091] The processor 502 is used to run a computer program 5032 stored in a memory to implement the steps of a flatbed printer platform positioning origin calibration method provided in any of the above method embodiments.
[0092] It should be understood that in the embodiments of this application, the processor 502 may be a central processing unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0093] It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program may be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.
[0094] Therefore, the present invention also provides a storage medium. This storage medium can be a computer-readable storage medium. The storage medium stores a computer program. When executed by a processor, the computer program causes the processor to perform the steps of a flatbed printer platform positioning origin calibration method provided in any of the above-described method embodiments.
[0095] The storage medium is a physical, non-transient storage medium, such as a USB flash drive, external hard drive, read-only memory (ROM), magnetic disk, or optical disk, or any other physical storage medium capable of storing program code. The computer-readable storage medium can be non-volatile or volatile.
[0096] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0097] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each unit is merely a logical functional division, and there may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.
[0098] The steps in the method of this invention can be adjusted, merged, or reduced in order according to actual needs. The units in the device of this invention can be merged, divided, or reduced according to actual needs. Furthermore, the functional units in the various embodiments of this invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0099] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
[0100] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0101] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Since these modifications and variations fall within the scope of the claims and their equivalents, this invention also intends to include these modifications and variations.
[0102] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for calibrating the origin of a flatbed printer platform, characterized in that, The flatbed printer includes a stepper motor, and the method includes: After completing one printing cycle, the stepper motor is reset. Obtain the reset and stop position of the stepper motor; Calculate the error distance between the reset parking position and the preset stop baseline; Based on the error distance, the stepper motor is controlled to move to the stop reference line; Obtaining the reset and stop position of the stepper motor includes: After the stepper motor is reset and stopped, the characteristic step value of the stepper motor at the reset and stop position is obtained; The calculation of the error distance between the reset parking position and the preset stop baseline includes: Obtain the pre-stored reference step value of the stepper motor at the stop reference line; The absolute value of the difference between the feature step value and the baseline step value is obtained as the error distance; The stepper motor is moved to the stop reference line based on the error distance, including: Determine whether the stepper motor has overcharged during stopping based on the reset and stopping position of the stepper motor; If the stepper motor experiences a stop overshoot, control the stepper motor to move the error distance in the opposite direction of the preset reset direction; The stepper motor is moved to the stop reference line based on the error distance, including: Determine whether the stepper motor is not stopped sufficiently based on the reset and stopping position of the stepper motor; If the stepper motor is not stopped in time, control the stepper motor to move the error distance along the preset reset direction.
2. The method for calibrating the origin of a flatbed printer platform according to claim 1, characterized in that, After controlling the stepper motor to move to the stop reference line based on the error distance, the method further includes: The stepper motor is controlled to move a preset standard distance toward a preset printing starting point so that the stepper motor reaches the printing starting point.
3. The method for calibrating the origin of a flatbed printer platform according to claim 2, characterized in that, The method further includes: Receive the print start point set by the user, and record the starting step value corresponding to the print start point and the reference step value corresponding to the stop baseline.
4. A flatbed printer platform positioning origin calibration device, characterized in that, Includes a unit for performing the method as described in any one of claims 1-3.
5. A computer device, characterized in that, The computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method as described in any one of claims 1-3.
6. A computer-readable storage medium, characterized in that, The storage medium stores a computer program that, when executed by a processor, can implement the method as described in any one of claims 1-3.