Infrared height measurement method and device based on flatbed printer and storage medium

By setting up an infrared height measurement device on the A4 small flatbed printer, real-time detection of media height and dynamically adjusting the printing platform height, the problem that the printer cannot automatically adapt to changes in media thickness, and improves printing quality and equipment stability.

CN120488970APending Publication Date: 2025-08-15GUANGZHOU SENYANG ELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510629313.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-15
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

The existing A4 small flatbed printers cannot automatically adapt to changes in media thickness, the printing platform is fixed in height and difficult to adjust dynamically, and lack real-time monitoring and compensation mechanisms, resulting in poor printing quality and equipment damage.

Method used

An infrared height measurement device is set up on the printing platform, and a three-dimensional detection network is formed through an infrared sensor group and a dynamic scanning infrared array. The media surface height data is obtained in real time, the height compensation value is calculated and the Z-axis driving module is adjusted, a nonlinear relationship model is established, and an exception handling mechanism is set.

Benefits of technology

Improve printing accuracy and equipment adaptability, ensure the optimal distance between the print head and the medium, prevent equipment damage, and realize dynamic adjustment of the height of the printing platform and real-time monitoring and compensation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120488970A_ABST
    Figure CN120488970A_ABST
Patent Text Reader

Abstract

The invention discloses an infrared height measurement method and equipment based on a flatbed printer and a storage medium, and relates to the technical field of printing equipment control, and the method comprises the steps: setting an infrared height measurement device at a preset position of a printing platform, obtaining surface height data at a medium loading stage through the device, and calculating a difference value between the surface height data and a reference height to generate a compensation value; lifting parameters of a Z-axis driving module are adjusted in real time, height calibration of the printing platform is completed, an infrared height measuring device forms a three-dimensional detection network through an angle-adjustable infrared sensor group and a dynamic scanning infrared array which are symmetrically distributed, a topological model is generated through full-stroke scanning and data fitting, and then the comprehensive compensation height is calculated; a non-linear relation model is established to adjust the lifting speed, an exception handling mechanism is set to ensure stable operation of equipment, the printing precision and the equipment adaptability can be remarkably improved, and the problem that a printer cannot automatically adapt to medium thickness changes is effectively solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of printing device control, and more particularly to an infrared height measurement method, device and storage medium based on a flatbed printer. Background Art

[0002] In the field of A4 small flatbed printing, printing quality and efficiency are affected by many factors. Traditional printers often use a fixed-height print head design, which has obvious disadvantages when facing printing media of different thicknesses. The printing media have different thicknesses, and the distance between the print head and the media is fixed, which can easily lead to poor printing quality, such as uneven colors, blurred lines, etc.; and the print head may be affected by the uneven surface of the medium during the printing process due to the close distance, causing collisions and damage to the print head, increasing equipment maintenance costs and downtime. At the same time, once the printing platform height is set, it is difficult to adjust it according to real-time changes in the medium during the printing operation, and it cannot meet complex printing requirements. The present invention aims to solve such problems by introducing infrared height measurement technology into the printing process to detect the medium height in real time and automatically adjust the printing platform height to improve printing accuracy and equipment adaptability, ensure printing quality and stable operation of the equipment, and meet the growing demand for high-quality printing.

[0003] Existing technologies have problems such as being unable to automatically adapt to changes in media thickness, the printing platform height being fixed and difficult to dynamically adjust, and the lack of real-time monitoring and compensation mechanisms. Summary of the Invention

[0004] In order to overcome the problems existing in the prior art such as the inability to automatically adapt to changes in medium thickness, the fixed height of the printing platform which is difficult to adjust dynamically, and the lack of real-time monitoring and compensation mechanisms, the present invention discloses an infrared height measurement method, device and storage medium based on a flatbed printer which can effectively solve the above technical problems.

[0005] In order to solve the above technical problems, the technical solutions of the present invention are as follows:

[0006] An infrared height measurement method based on a flatbed printer comprises the following steps:

[0007] An infrared height measuring device is provided at a preset position on the moving path of the printing platform;

[0008] Acquiring medium surface height data by means of the infrared height measuring device during the printing medium loading phase;

[0009] Calculating the difference between the medium surface height data and a preset reference height to generate a height compensation value;

[0010] Adjusting the lifting parameters of the Z-axis drive module in real time according to the height compensation value;

[0011] Complete the height calibration of the print platform before the print head moves to the work area.

[0012] Preferably, the infrared altimeter device comprises:

[0013] An adjustable angle infrared sensor group symmetrically distributed at both ends of the Y axis of the printing platform;

[0014] A dynamic scanning infrared array mounted on the X-axis moving slide of the printing platform;

[0015] The infrared sensor group and the dynamic scanning infrared array form a three-dimensional height detection network.

[0016] Preferably, the acquiring medium surface height data specifically includes:

[0017] Control the Y-axis drive module to drive the printing platform to perform full-stroke scanning;

[0018] During the scanning process, the three-dimensional height detection network is synchronously triggered to obtain continuous height sampling points;

[0019] Surface fitting is performed on the continuous height sampling points to generate a medium surface topology model.

[0020] Preferably, the difference calculation includes:

[0021] Extract the maximum height difference H from the topological model max and the average height difference H avg ;

[0022] According to the formula H comp =α·ΔH max +β·H avg Calculate the comprehensive compensation height,

[0023] Where α is the peak weight coefficient, β is the mean weight coefficient, and α+β=1.

[0024] Preferably, the height calibration comprises:

[0025] Establish a nonlinear relationship model between the Z-axis lifting speed and height compensation value:

[0026]

[0027] Where v is the lifting speed, k1 and k2 are adjustment coefficients, and b is the reference speed.

[0028] Preferably, an exception handling mechanism is also included:

[0029] When the height compensation value deviation exceeds the threshold range for three consecutive times,

[0030] Automatically switches to safe mode and does the following:

[0031] Trigger X / Y axis linkage to perform re-scan of the media surface;

[0032] Recalculate the compensation value and perform secondary calibration;

[0033] If the second calibration is still out of tolerance, an equipment maintenance alarm will be issued.

[0034] Preferably, during printing, perform in real time:

[0035] Monitoring the surface deformation of the medium by means of the dynamic scanning infrared array;

[0036] When the local height variation is detected to exceed the preset tolerance,

[0037] Interrupt the current print job and perform local height compensation adjustment.

[0038] Preferably, an electronic device includes:

[0039] Printing platform module, including a liftable Z-axis drive mechanism;

[0040] A three-dimensional height measurement module, comprising the infrared sensor group and the dynamic scanning infrared array;

[0041] An intelligent control module configured to execute the method steps described above;

[0042] The adaptive drive module connects the intelligent control module and each axis drive module.

[0043] Preferably, the intelligent control module includes:

[0044] Surface reconstruction unit, used to process three-dimensional height data to generate a medium surface topology model;

[0045] A dynamic compensation calculation unit, generating real-time compensation parameters based on the topological model;

[0046] The nonlinear control unit adjusts the adaptive driving module response curve according to the compensation parameter.

[0047] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the method described above.

[0048] Compared with the prior art, the beneficial effects of the present invention are as follows: the present invention effectively solves the problem that the prior art cannot automatically adapt to changes in media thickness by adding an infrared height measurement method to the printing process. The traditional A4 small flatbed printer adopts a fixed-height print head design and cannot automatically adjust the printing height according to media of different thicknesses. The present invention sets an infrared height measurement device at a preset position of the printing platform movement path. The device obtains the surface height data of the medium during the printing medium loading stage, and calculates the difference with the preset reference height to generate a height compensation value. The lifting parameters of the Z-axis drive module are adjusted in real time according to the compensation value, so that the printing platform completes the height calibration before the print head moves to the working area, ensuring that the distance between the print head and the medium is always in the optimal state, thereby improving the printing accuracy and equipment adaptability; the present invention also solves the problem that the printing platform height is fixed and difficult to dynamically adjust in the prior art. Once the printing platform height is set in the prior art, it is difficult to adjust it according to the real-time changes of the medium during the printing operation. The present invention controls the Y-axis drive module to drive the printing platform to perform a full-stroke scan. The three-dimensional height detection network is triggered to obtain continuous height sampling points, and surface fitting is performed on the continuous height sampling points to generate a medium surface topology model. The maximum height difference and average height difference are extracted from the topology model, and the comprehensive compensation height is calculated according to a formula to achieve dynamic adjustment of the printing platform height, ensuring that the distance between the print head and the medium is always in an optimal state during the printing process. In addition, the present invention overcomes the problem of the existing technology lacking a real-time monitoring and compensation mechanism. In the existing technology, it is impossible to monitor the deformation of the medium surface in real time during the printing process, and it is impossible to make timely compensation adjustments. The present invention monitors the deformation of the medium surface in real time during the printing process through a dynamic scanning infrared array. When it is detected that the local height change exceeds the preset tolerance, the current printing task is interrupted and the local height compensation adjustment is performed to ensure that the printing quality is not affected. At the same time, an exception handling mechanism is provided. When it is detected that the height compensation value deviation exceeds the threshold range for three consecutive times, the system automatically switches to a safe mode and performs a rescan and secondary calibration. If the secondary calibration still exceeds the tolerance, an equipment maintenance alarm is issued, effectively preventing printing quality problems and equipment damage caused by excessive height deviation. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the implementation methods or the description of the prior art. Obviously, the drawings described below are merely exemplary. For ordinary technicians in this field, other implementation drawings can be derived based on the provided drawings without any creative work.

[0050] Figure 1 Design structure principle diagram of the present invention;

[0051] Figure 2Print a flow chart for the present invention;

[0052] Figure 3 It is a step diagram of the method of the present invention. DETAILED DESCRIPTION

[0053] The accompanying drawings are for illustrative purposes only and are not to be construed as limiting this patent;

[0054] In order to better illustrate this embodiment, some parts in the drawings may be omitted, enlarged, or reduced, and do not represent the actual product size;

[0055] It is understandable to those skilled in the art that some well-known structures and their descriptions may be omitted in the drawings.

[0056] The technical solution of the present invention is further described below with reference to the accompanying drawings and embodiments.

[0057] Example

[0058] An infrared height measurement method based on a flatbed printer comprises the following steps:

[0059] An infrared height measuring device is provided at a preset position on the moving path of the printing platform;

[0060] Acquiring medium surface height data by means of the infrared height measuring device during the printing medium loading phase;

[0061] Calculating the difference between the medium surface height data and a preset reference height to generate a height compensation value;

[0062] Adjusting the lifting parameters of the Z-axis drive module in real time according to the height compensation value;

[0063] Complete the height calibration of the print platform before the print head moves to the work area.

[0064] The infrared altimeter device comprises:

[0065] An adjustable angle infrared sensor group symmetrically distributed at both ends of the Y axis of the printing platform;

[0066] A dynamic scanning infrared array mounted on the X-axis moving slide of the printing platform;

[0067] The infrared sensor group and the dynamic scanning infrared array form a three-dimensional height detection network.

[0068] The obtaining of medium surface height data specifically includes:

[0069] Control the Y-axis drive module to drive the printing platform to perform full-stroke scanning;

[0070] During the scanning process, the three-dimensional height detection network is synchronously triggered to obtain continuous height sampling points;

[0071] Surface fitting is performed on the continuous height sampling points to generate a medium surface topology model.

[0072] The difference calculation includes:

[0073] Extract the maximum height difference H from the topological model max and the average height difference H avg ;

[0074] According to the formula H comp =α·ΔH max +β·H avg Calculate the comprehensive compensation height,

[0075] Where α is the peak weight coefficient, β is the mean weight coefficient, and α+β=1.

[0076] The height calibration includes:

[0077] Establish a nonlinear relationship model between the Z-axis lifting speed and height compensation value:

[0078]

[0079] Where v is the lifting speed, k1 and k2 are adjustment coefficients, and b is the reference speed.

[0080] It also includes exception handling mechanisms:

[0081] When the height compensation value deviation exceeds the threshold range for three consecutive times,

[0082] Automatically switches to safe mode and does the following:

[0083] Trigger X / Y axis linkage to perform re-scan of the media surface;

[0084] Perform secondary calibration after recalculating the compensation value;

[0085] If the second calibration is still out of tolerance, an equipment maintenance alarm will be issued.

[0086] Executed in real time during printing:

[0087] Monitoring the surface deformation of the medium by means of the dynamic scanning infrared array;

[0088] When the local height variation is detected to exceed the preset tolerance,

[0089] Interrupt the current print job and perform local height compensation adjustment.

[0090] An electronic device, comprising:

[0091] Printing platform module, including a liftable Z-axis drive mechanism;

[0092] A three-dimensional height measurement module, comprising the infrared sensor group and the dynamic scanning infrared array;

[0093] An intelligent control module configured to execute the method steps described above;

[0094] The adaptive drive module connects the intelligent control module and each axis drive module.

[0095] The intelligent control module includes:

[0096] Surface reconstruction unit, used to process three-dimensional height data to generate a medium surface topology model;

[0097] A dynamic compensation calculation unit, generating real-time compensation parameters based on the topological model;

[0098] The nonlinear control unit adjusts the adaptive driving module response curve according to the compensation parameter.

[0099] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the method described above.

[0100] In the specific implementation, please refer to Figure 1-3 , a printing platform with a size of 300mm×300mm×100mm (length×width×height) is constructed. The X-axis and Y-axis moving slides of the platform use high-precision linear slides, and their straightness and parallelism errors are controlled within ±0.03mm. The Z-axis drive mechanism uses a high-precision screw lifting structure and is equipped with a stepper motor. The minimum step angle of the stepper motor is 1.8°. Through the subdivision drive technology, the actual step angle reaches 0.18°, which can realize fine adjustment of the printing platform in the Z-axis direction. The X-axis and Y-axis moving slides of the printing platform are calibrated using a laser interferometer to ensure that the error is within ±0.05mm, ensuring the movement accuracy of the print head during printing.

[0101] Adjustable angle infrared sensor groups are installed symmetrically at both ends of the Y-axis of the printing platform. Each infrared sensor group consists of two infrared transmitters and two infrared receivers. An infrared LED with a wavelength of 940nm is used as the emission light source. The emission frequency can be adjusted from 10kHz to 100kHz, and the angle adjustment range of the sensor group is ±30°. It is installed at both ends of the Y-axis through adjusting nuts and fixing brackets. The initial angle is set to 15° to ensure that the infrared light it emits can cover the effective detection area on the surface of the printing medium. A dynamic scanning infrared array is installed on the X-axis moving slide of the printing platform. This infrared array consists of 16 miniature infrared sensors arranged linearly with a spacing of 5mm. The detection distance of each infrared sensor is 5mm-50mm, the detection accuracy is ±0.1mm, and the scanning frequency can be set to 10Hz-100Hz. It is fixed by the mounting slot on the slide rail to ensure that it can stably scan the surface of the printing medium during the X-axis movement. Connect the signal lines of the infrared sensor group and the dynamic scanning infrared array and connect them to the input interface of the intelligent control module to ensure the stability and reliability of signal transmission.

[0102] A high-performance microprocessor is selected as the core of the intelligent control module with a main frequency of 1.5GHz and multi-core processing capability. The control module integrates a surface reconstruction unit, a dynamic compensation calculation unit and a nonlinear control unit. The surface reconstruction unit uses a surface fitting algorithm based on the least squares method to process the acquired continuous height sampling points to generate a printing medium surface topology model. The dynamic compensation calculation unit calculates the comprehensive compensation height according to the formula based on the maximum height difference and average height difference in the topology model, where the peak weight coefficient α is set to 0.7 and the mean weight coefficient β is set to 0.3. The nonlinear control unit establishes a nonlinear relationship model between the Z-axis lifting speed and the height compensation value according to the height compensation value, where the adjustment coefficient k1 is set to 0.5, k2 is set to 0.3, and the reference speed b is set to 10mm / min. The lifting and lowering control of the Z-axis drive module is realized by adjusting the driving pulse frequency of the stepper motor in real time.

[0103] The adaptive drive module uses a multi-axis motion controller, whose input end is connected to the output interface of the intelligent control module, and the output end is connected to the drive motors of the X-axis, Y-axis and Z-axis respectively. The drive module has a load adaptation function and can automatically adjust the drive current and torque according to the motion load of each axis to ensure the stable operation of the printing platform at different heights and motion states. After the connection is completed, the drive module parameters are set and debugged to ensure that it can accurately respond to the instructions of the intelligent control module.

[0104] Select A4 small flatbed printing media with a thickness of 0.5mm, a size of 210mm×297mm, and a surface flatness error within ±0.1mm. Place the printing media on the printing platform, ensuring that it is placed flat and in the correct position. Align the edge of the media with the positioning device of the printing platform to ensure that the print head can print in the correct area.

[0105] Start the control system of the printing platform, set the pre-scan parameters through the upper computer software, set the full-stroke scanning range of the Y-axis drive module to 0mm-300mm, the scanning speed to 50mm / s, the emission frequency of the infrared sensor group to 50kHz, and the scanning frequency of the dynamic scanning infrared array to 50Hz to ensure that sufficiently dense height sampling points can be obtained during the scanning process. At the same time, set the trigger conditions for data acquisition. When the printing platform moves to the preset scanning start position, the three-dimensional height detection network is automatically triggered to start working.

[0106] The pre-scan operation is started, and the Y-axis drive module of the printing platform drives the printing platform to scan the entire stroke along the Y-axis direction. During the scanning process, the three-dimensional height detection network works synchronously, the adjustable angle infrared sensor group emits infrared signals at a transmission frequency of 50kHz, and the dynamic scanning infrared array scans the surface of the printing medium at a scanning frequency of 50Hz to obtain continuous height sampling points. The data of these sampling points are transmitted in real time to the surface reconstruction unit of the intelligent control module through the signal line. The surface reconstruction unit uses the least squares surface fitting algorithm to process the sampling points and generate a topological model of the printing medium surface. The maximum height difference of 0.2mm and the average height difference of 0.1mm are extracted from the topological model.

[0107] According to the extracted maximum height difference and average height difference, the comprehensive compensation height is calculated according to the formula, and the comprehensive compensation height value is

[0108] H comp =α·ΔH max +β·H avg =0.7×0.2+0.3×0.1=0.17mm,

[0109] Among them, H max is the maximum height difference, H avg is the average height difference, α and β are the peak weight coefficient and mean weight coefficient respectively, and α+β=1.

[0110] The intelligent control module sends instructions to the adaptive drive module based on the comprehensive compensation height value to adjust the lifting parameters of the Z-axis drive module. The nonlinear control unit adjusts the height of the Z-axis drive module based on the established nonlinear relationship model.

[0111] The Z-axis lifting speed is calculated as

[0112] The stepper motor accurately adjusts the printing platform to the target height according to the calculated lifting speed, completing the height calibration of the printing platform. During the calibration process, the actual height position of the printing platform is monitored in real time through a high-precision position sensor, and the monitoring data is fed back to the intelligent control module to ensure that the calibration accuracy reaches ±0.05mm.

[0113] The host computer software sends a calibration verification command, the printing platform moves slightly again, the infrared height measuring device quickly re-measures the surface of the printing medium to obtain new height data, and the intelligent control module quickly processes the re-measured data and calculates the height deviation of the current printing platform. If the height deviation is within the allowable range, such as ±0.05mm, the calibration is confirmed to be successful, the printing platform has been adjusted to the correct height, and the formal printing task can begin; if the height deviation exceeds the allowable range, the intelligent control module automatically repeats the calibration process until the calibration is successful.

[0114] After successful calibration, the operator sends a print command through the host computer software, and the print head begins to move to the working area. During the movement of the print head, the Z-axis drive module maintains the initial distance between the print head and the printing medium at an accurate 0.5mm±0.05mm according to the instructions of the intelligent control module. The printing task is officially started, and the print head performs printing operations such as inkjet printing or material extrusion on the surface of the printing medium according to the preset printing path and parameters.

[0115] During the printing process, the dynamic scanning infrared array monitors the deformation of the printing medium surface in real time. Its scanning frequency is increased to 80Hz to ensure that local height changes occurring during the printing process can be captured in time. When it is detected that the local height change exceeds the preset tolerance, such as 0.1mm, the intelligent control module immediately interrupts the current printing task and triggers the local height compensation adjustment. According to the new height data, the compensation value is recalculated and the Z-axis drive module is adjusted to restore the printing platform to the correct height position, and then the printing task is continued. At the same time, the intelligent control module records the position and compensation value of the height change so that the relevant data can be analyzed and optimized after the printing task is completed.

[0116] During the printing process, the system continuously monitors the changes in the height compensation value. When it detects that the height compensation value deviation exceeds the threshold range for three consecutive times, such as ±0.2mm, the system automatically determines it as an abnormal situation and immediately switches to safe mode. In safe mode, the print head stops working, the drive modules of each axis suspend movement, and an alarm is triggered to remind the operator to pay attention.

[0117] In safe mode, the intelligent control module triggers the X-axis and Y-axis linkage to re-scan the surface of the printing medium. During the re-scanning process, the adjustable angle infrared sensor group and the dynamic scanning infrared array re-acquire the height data with higher resolution and accuracy. The re-scanning range covers the entire printing area, and the scanning speed is appropriately reduced to 30mm / s to ensure data accuracy. After the re-scan is completed, the intelligent control module recalculates the compensation value based on the new height data and performs a secondary calibration. The secondary calibration process is similar to the initial calibration. The Z-axis lifting speed is adjusted through a nonlinear relationship model to adjust the printing platform to the new target height.

[0118] If the error is still out of tolerance after the second calibration, the intelligent control module will issue an equipment maintenance alarm. The alarm information will be notified to the operator through various means such as the host computer software, indicator lights and sound prompts. The operator will conduct a comprehensive inspection of the equipment according to the alarm prompt. The inspection content includes the performance of the infrared height measuring device, the motion mechanism of the printing platform, the working status of the drive motor, the connection line of the control system, etc. At the same time, check whether the printing medium is deformed, warped or has other quality problems. According to the inspection results, the equipment will be maintained and repaired accordingly, such as replacing damaged sensors, adjusting motor parameters, correcting the levelness of the printing platform, etc., to ensure that the equipment resumes normal operation.

[0119] After the printing task is completed, the printing platform automatically descends to its initial position, making it convenient for the operator to remove the printed A4 small flatbed. At the same time, the intelligent control module records and stores the height data and compensation conditions of this printing process. The stored content includes pre-scan data, calibration parameters, real-time monitoring data during the printing process, exception handling records, etc., which facilitates data analysis and quality traceability.

[0120] The printed products are quality inspected using professional measuring tools to test indicators such as printing accuracy, color uniformity, and surface flatness. A high-precision laser rangefinder is used for printing accuracy testing to measure the width and position deviation of the printed lines, requiring the line width deviation to be within ±0.05mm and the position deviation to be within ±0.1mm. A spectrophotometer is used for color uniformity testing to measure the color difference within the printed area, requiring the color uniformity to reach more than 95%. A flatness measuring instrument is used for surface flatness testing to measure the undulation of the printed surface, requiring the flatness error to be within ±0.1mm. If the test results meet the quality standards, the printed products are qualified. If the test results do not meet the standards, the reasons are analyzed based on the recorded data, and the relevant parameters are adjusted to optimize the printing process and improve the print quality.

[0121] All data of this printing task are sorted and analyzed, including the thickness of the printing media, pre-scan height data, comprehensive compensation height value, height changes during printing, abnormal handling process, etc. Through data analysis, we can understand the problems and trends that may occur in the printing process and provide a reference for subsequent printing tasks. For example, if it is found that the height of a certain thickness of printing media often changes in a specific area, the height compensation parameters of the area can be adjusted in advance when printing the same type of media in the future to optimize the printing effect. At the same time, the accumulated data is statistically analyzed regularly to evaluate the performance and stability of the equipment and formulate a reasonable equipment maintenance plan.

[0122] The same or similar reference numerals correspond to the same or similar components;

[0123] The terms used in the drawings to describe positional relationships are for illustrative purposes only and should not be construed as limiting this patent;

[0124] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not limitations on the implementation methods of the present invention. For ordinary technicians in the field, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to enumerate all the implementation methods here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of protection of the claims of the present invention.

Claims

1. An infrared height measurement method based on a flatbed printer, characterized in that: The following steps are involved: An infrared height measuring device is provided at a preset position on the moving path of the printing platform; Acquiring medium surface height data by means of the infrared height measuring device during the printing medium loading phase; Calculating the difference between the medium surface height data and a preset reference height to generate a height compensation value; Adjusting the lifting parameters of the Z-axis drive module in real time according to the height compensation value; Complete the height calibration of the print platform before the print head moves to the work area.

2. The method according to claim 1, characterized in that The infrared altimeter device comprises: An adjustable angle infrared sensor group symmetrically distributed at both ends of the Y axis of the printing platform; A dynamic scanning infrared array mounted on the X-axis moving slide of the printing platform; The infrared sensor group and the dynamic scanning infrared array form a three-dimensional height detection network.

3. The method according to claim 2, characterized in that The obtaining of medium surface height data specifically includes: Control the Y-axis drive module to drive the printing platform to perform full-stroke scanning; During the scanning process, the three-dimensional height detection network is synchronously triggered to obtain continuous height sampling points; Surface fitting is performed on the continuous height sampling points to generate a medium surface topology model.

4. The method according to claim 3, characterized in that The difference calculation includes: Extract the maximum height difference H from the topological model max and the average height difference H avg ; According to the formula H comp =α·ΔH max +β·H avg Calculate the comprehensive compensation height, Where α is the peak weight coefficient, β is the mean weight coefficient, and α+β=1.

5. The method according to claim 1, wherein The height calibration includes: Establish a nonlinear relationship model between the Z-axis lifting speed and height compensation value: Where v is the lifting speed, k1 and k2 are adjustment coefficients, and b is the reference speed.

6. The method according to claim 5, characterized in that It also includes exception handling mechanisms: When the height compensation value deviation exceeds the threshold range for three consecutive times, Automatically switches to safe mode and does the following: Trigger X / Y axis linkage to perform re-scan of the media surface; Perform secondary calibration after recalculating the compensation value; If the second calibration is still out of tolerance, an equipment maintenance alarm will be issued.

7. The method according to claim 2, characterized in that Executed in real time during printing: Monitoring the surface deformation of the medium by means of the dynamic scanning infrared array; When the local height variation is detected to exceed the preset tolerance, Interrupt the current print job and perform local height compensation adjustment.

8. An electronic device, characterized in that: include: Printing platform module, including a liftable Z-axis drive mechanism; A three-dimensional height measurement module comprising the infrared sensor group and the dynamic scanning infrared array according to claim 2; An intelligent control module configured to execute the method steps according to any one of claims 1 to 7; The adaptive drive module connects the intelligent control module and each axis drive module.

9. The electronic device according to claim 8, wherein: The intelligent control module includes: Surface reconstruction unit, used to process three-dimensional height data to generate a medium surface topology model; A dynamic compensation calculation unit, generating real-time compensation parameters based on the topological model; The nonlinear control unit adjusts the adaptive driving module response curve according to the compensation parameter.

10. A computer-readable storage medium storing a computer program, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.