Printer optimization control method and system for stepper motor
By implementing the positioning detection, working path construction, state dynamic diagram analysis and optimization control of stepper motors in the printer, the problem that stepper motors cannot be controlled online in the existing technology is solved, real-time monitoring and dynamic optimization are achieved, and the improvement of the Print quality and equipment life.
Patent Information
- Application Number
- CN202411312170.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-20
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-09-20
AI Technical Summary
The stepper motor in existing printers cannot be controlled online after a long time of use, resulting in the inability to monitor and optimize its working status in real time, affecting the printing quality and equipment life.
Through positioning detection and collecting multiple work data, build work paths, monitor stepper motors in real time, collect online parameters, generate state dynamic diagrams, identify abnormal working intervals and factors, define optimization nodes and logic, and trigger online control to maintain stepper motors smooth work.
Real-time monitoring and dynamic optimization control of stepper motors are realized, printing quality and equipment life are improved, and abnormal situations in stepper motors are handled in a timely manner.
Smart Images

Figure CN118832974B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of stepper motors in printers, and in particular to a method and system for optimizing control of stepper motors by printers. Background Art
[0002] With the development of technology, printers are equipped with built-in stepper motors. The stepper motors receive corresponding working data and rotate along the working data to drive the print head to print on the printing paper. The control of the stepper motor affects the printing progress of the print head. In the prior art, the stepper motor is used for a long time and works for different objects. At this time, the detection of the stepper motor only reflects the static detection. The stepper motor is not controlled during the working process, and the online control of the stepper motor cannot be realized. Summary of the invention
[0003] The purpose of the present invention is to overcome the shortcomings of the prior art. The present invention provides a method and system for optimizing the control of a stepper motor by a printer, positioning the stepper motor built into the printer, and performing positioning detection on the stepper motor; in the positioning detection of the stepper motor, multiple working data associated with the stepper motor are collected; based on the multiple working data, a working path of the stepper motor is constructed, and the stepper motor is monitored in real time along the working path, thereby ensuring real-time monitoring of the stepper motor, and performing abnormal control on the stepper motor to control abnormalities of the stepper motor during operation.
[0004] At this time, the online parameters of the stepper motor during the working process are collected, and the working state of the stepper motor is defined according to multiple online parameters. At the same time, the state dynamic diagram of the stepper motor is output; the abnormal working range is defined based on the state dynamic diagram of the stepper motor, and the abnormal traversal is performed for the abnormal working range to define multiple abnormal factors, and the corresponding abnormal events are matched according to the multiple abnormal factors; the optimization nodes of the stepper motor are defined based on the abnormal events, and the corresponding optimization logic is defined according to the optimization nodes, optimization levels, and the models of the stepper motors, so as to introduce the optimization logic, and control is performed in multiple dimensions based on the optimization nodes, optimization levels, and the models of the stepper motors, so as to ensure the accuracy of the optimization logic. At the same time, the online control of the stepper motor is triggered according to the optimization logic and the working logic of the printer to dynamically maintain the working smoothness of the stepper motor, thereby realizing the dynamic control of the stepper motor during the working process.
[0005] The embodiment of the present invention provides a method for optimizing control of a stepper motor by a printer, which is applied to a scenario of optimizing control of a stepper motor by a printer;
[0006] The printer's optimization control method for a stepper motor comprises:
[0007] Locate the stepper motor built into the printer and perform positioning detection on the stepper motor;
[0008] In the positioning detection of the stepper motor, a plurality of working data associated with the stepper motor are collected;
[0009] Constructing a working path of the stepper motor based on the plurality of working data, and performing real-time monitoring on the stepper motor along the working path;
[0010] Collect online parameters of the stepper motor during operation, define the working state of the stepper motor according to multiple online parameters, and output a dynamic state diagram of the stepper motor;
[0011] Based on the state dynamic diagram of the stepper motor, an abnormal working range is defined, and abnormal traversal is performed on the abnormal working range to define multiple abnormal factors, and corresponding abnormal events are matched according to the multiple abnormal factors;
[0012] The optimization node of the stepper motor is defined based on the abnormal event, the corresponding optimization logic is defined according to the optimization node, the optimization level and the model of the stepper motor, and the online control of the stepper motor is triggered according to the optimization logic and the working logic of the printer.
[0013] Optionally, the positioning is built into a stepper motor of the printer, and positioning detection is performed on the stepper motor, including:
[0014] Collecting the working signal of the printer, and collecting the model of the printer and the model of the stepper motor according to the analysis of the working signal of the printer;
[0015] Define the traversal mode based on the printer model and the stepper motor model;
[0016] triggering the traversal of the printer according to the traversal mode, and positioning a stepper motor built into the printer;
[0017] Collect the position of the stepper motor, and perform state detection according to the position of the stepper motor to define the state of the stepper motor;
[0018] The state of the stepper motor is frozen, and positioning detection is performed according to the state of the stepper motor, the printing mode of the printer and the position of the stepper motor.
[0019] Optionally, in the positioning detection of the stepper motor, a plurality of working data associated with the stepper motor are collected, including:
[0020] Fixed frame stepper motor;
[0021] Real-time control of stepper motor positioning detection;
[0022] In the positioning detection of the stepper motor, the working signal of the stepper motor is collected;
[0023] Defining a plurality of working objects associated with the stepper motor based on the working signal of the stepper motor;
[0024] A plurality of working data associated with the stepper motor is collected according to the stepper motor and a plurality of working objects.
[0025] Optionally, constructing a working path of the stepper motor based on a plurality of working data, and performing real-time monitoring of the stepper motor along the working path, includes:
[0026] Freeze multiple working data;
[0027] Defining a plurality of working spaces of the stepper motor based on association of the plurality of working data;
[0028] Constructing a working path of the stepper motor according to the association of multiple working spaces;
[0029] Determine the working path of the stepper motor;
[0030] Divide multiple monitoring areas based on the working path of the stepper motor;
[0031] Based on the association between multiple monitoring areas, corresponding association coefficients are defined, multiple monitoring combinations are constructed according to the association coefficients and the multiple monitoring areas, priorities of the multiple monitoring combinations are defined, and importance levels of the multiple monitoring combinations are defined according to the priorities of the multiple monitoring combinations and the corresponding association coefficients. Corresponding monitoring methods are triggered based on the importance levels of the monitoring combinations to perform real-time monitoring of the stepper motor.
[0032] Optionally, the online parameters of the stepper motor during operation are collected, and the working state of the stepper motor is defined according to a plurality of online parameters, and at the same time, a state dynamic diagram of the stepper motor is output, including:
[0033] Monitor the working process of the stepper motor;
[0034] Collect online parameters of stepper motor during operation;
[0035] Constructing an online parameter set of a stepper motor based on multiple online parameters;
[0036] Defining online parameters of multiple cores according to an online parameter set of the stepper motor and a current working mode of the stepper motor;
[0037] Define the working state of the stepper motor based on multiple core online parameters;
[0038] Collect multiple working states of the stepper motor in this working mode, and construct a state dynamic graph of the stepper motor based on the multiple working states, and compare the state dynamic graph with the preset state graph corresponding to the working mode. Define the working state level of the stepper motor in this working mode based on the comparison result between the state dynamic graph and the preset state graph corresponding to the working mode.
[0039] Optionally, the abnormal working interval is defined based on the state dynamic diagram of the stepper motor, and abnormal traversal is performed on the abnormal working interval to define multiple abnormal factors, and corresponding abnormal events are matched according to the multiple abnormal factors, including:
[0040] Freeze the state dynamic diagram of the stepper motor;
[0041] Divide multiple state areas based on the state dynamic diagram of the stepper motor;
[0042] Defining a plurality of abnormal line segments based on simultaneous detection of a plurality of status regions;
[0043] The corresponding abnormal working interval is defined based on multiple abnormal line segments, the continuous working time of the stepper motor and the model of the stepper motor.
[0044] Optionally, the abnormal working interval is defined based on the state dynamic diagram of the stepper motor, and abnormal traversal is performed on the abnormal working interval to define multiple abnormal factors, and corresponding abnormal events are matched according to the multiple abnormal factors, and further includes:
[0045] Collect the abnormal working interval, match the abnormal part of the stepper motor based on the abnormal working interval, and define the traversal method according to the abnormal part of the stepper motor and the service life of the stepper motor;
[0046] Triggering abnormal traversal of abnormal working interval based on traversal mode to define multiple abnormal factors;
[0047] The multiple abnormal factors are sorted, and multiple abnormal combinations are defined based on the multiple abnormal factors, and corresponding abnormal events are matched according to the multiple abnormal combinations, the model of the stepper motor and the abnormal event matching table.
[0048] Optionally, the stepper motor optimization node is defined based on the abnormal event, the corresponding optimization logic is defined according to the optimization node, the optimization level, and the model of the stepper motor, and the online control of the stepper motor is triggered according to the optimization logic and the working logic of the printer, including:
[0049] Freeze abnormal events and associate them with the printer;
[0050] Match the corresponding printing stage according to the abnormal event and the printer;
[0051] Define the optimization node for the stepper motor in the traceback of this printing stage.
[0052] Optionally, the stepper motor optimization node is defined based on the abnormal event, the corresponding optimization logic is defined according to the optimization node, the optimization level, and the model of the stepper motor, and the online control of the stepper motor is triggered according to the optimization logic and the working logic of the printer, and further includes:
[0053] Associate the optimization node and the abnormal time;
[0054] Matching the optimization level of the stepper motor based on the optimization node and the abnormal time;
[0055] Define the corresponding optimization logic according to the optimization node, optimization level, and stepper motor model;
[0056] The online control of the stepper motor is triggered according to the optimization logic and the working logic of the printer to dynamically maintain the working smoothness of the stepper motor.
[0057] In addition, an embodiment of the present invention further provides an optimization control system for a printer to a stepper motor, and the optimization control system for a printer to a stepper motor includes:
[0058] A positioning detection module is used to locate the stepper motor built into the printer and perform positioning detection on the stepper motor;
[0059] A working data module, used for collecting a plurality of working data associated with the stepper motor during positioning detection of the stepper motor;
[0060] A real-time monitoring module, used for constructing a working path of the stepper motor based on a plurality of working data, and performing real-time monitoring of the stepper motor along the working path;
[0061] The state module is used to collect the online parameters of the stepper motor during operation, and define the working state of the stepper motor according to multiple online parameters, and output the state dynamic diagram of the stepper motor;
[0062] An abnormal module is used to define an abnormal working range based on the state dynamic diagram of the stepper motor, and perform abnormal traversal on the abnormal working range to define multiple abnormal factors, and match corresponding abnormal events according to the multiple abnormal factors;
[0063] The optimization module is used to define the optimization nodes of the stepper motor based on abnormal events, define the corresponding optimization logic according to the optimization nodes, optimization levels, and stepper motor models, and trigger the online control of the stepper motor according to the optimization logic and the working logic of the printer.
[0064] In an embodiment of the present invention, the method in the embodiment of the present invention is used to locate the stepper motor built into the printer, and perform positioning detection on the stepper motor; in the positioning detection of the stepper motor, multiple working data associated with the stepper motor are collected; based on the multiple working data, a working path of the stepper motor is constructed, and the stepper motor is monitored in real time along the working path, thereby ensuring real-time monitoring of the stepper motor, and performing abnormal control on the stepper motor to control abnormalities of the stepper motor during operation.
[0065] At this time, the online parameters of the stepper motor during the working process are collected, and the working state of the stepper motor is defined according to multiple online parameters. At the same time, the state dynamic diagram of the stepper motor is output; the abnormal working range is defined based on the state dynamic diagram of the stepper motor, and the abnormal traversal is performed for the abnormal working range to define multiple abnormal factors, and the corresponding abnormal events are matched according to the multiple abnormal factors; the optimization nodes of the stepper motor are defined based on the abnormal events, and the corresponding optimization logic is defined according to the optimization nodes, optimization levels, and the models of the stepper motors, so as to introduce the optimization logic, and control is performed in multiple dimensions based on the optimization nodes, optimization levels, and the models of the stepper motors, so as to ensure the accuracy of the optimization logic. At the same time, the online control of the stepper motor is triggered according to the optimization logic and the working logic of the printer to dynamically maintain the working smoothness of the stepper motor, thereby realizing the dynamic control of the stepper motor during the working process. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0067] Figure 1 is a flow chart of a method for optimizing control of a stepping motor by a printer in an embodiment of the present invention;
[0068] Figure 2 is a flow chart of S11 in the method for optimizing control of a stepping motor by a printer in an embodiment of the present invention;
[0069] Figure 3 is a schematic flow chart of S12 in the method for optimizing control of a stepping motor by a printer in an embodiment of the present invention;
[0070] Figure 4 is a flow chart of S13 in the method for optimizing control of a stepping motor by a printer in an embodiment of the present invention;
[0071] Figure 5is a flow chart of S14 in the method for optimizing control of a stepping motor by a printer in an embodiment of the present invention;
[0072] Figure 6 is a flow chart of S15 in the method for optimizing control of a stepping motor by a printer in an embodiment of the present invention;
[0073] Figure 7 is a flow chart of S16 in the method for optimizing control of a stepping motor by a printer in an embodiment of the present invention;
[0074] Figure 8 It is a schematic diagram of the structure of the optimization control system for the stepping motor of the printer in the embodiment of the present invention;
[0075] Fig. 9 The figure is a hardware diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0076] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0077] See also Figures 1 to 9 , a method for optimizing control of a stepper motor by a printer, which is applied to a scenario of optimizing control of a stepper motor by a printer; the method for optimizing control of a stepper motor by a printer includes:
[0078] Step S11: positioning the stepper motor built into the printer and performing positioning detection on the stepper motor;
[0079] Step S12: in the positioning detection of the stepper motor, collecting a plurality of working data associated with the stepper motor;
[0080] Step S13: constructing a working path of the stepper motor based on the plurality of working data, and performing real-time monitoring on the stepper motor along the working path;
[0081] Step S14: collecting online parameters of the stepper motor during operation, defining the working state of the stepper motor according to a plurality of online parameters, and outputting a state dynamic diagram of the stepper motor;
[0082] Step S15: defining an abnormal working range based on the state dynamic diagram of the stepper motor, and performing abnormal traversal on the abnormal working range to define multiple abnormal factors, and matching corresponding abnormal events according to the multiple abnormal factors;
[0083] Step S16: Define the optimization node of the stepper motor based on the abnormal event, define the corresponding optimization logic according to the optimization node, optimization level, and model of the stepper motor, and trigger the online control of the stepper motor according to the optimization logic and the working logic of the printer.
[0084] In an embodiment of the present invention, the method in the embodiment of the present invention is used to locate the stepper motor built into the printer, and perform positioning detection on the stepper motor; in the positioning detection of the stepper motor, multiple working data associated with the stepper motor are collected; based on the multiple working data, a working path of the stepper motor is constructed, and the stepper motor is monitored in real time along the working path, thereby ensuring real-time monitoring of the stepper motor, and performing abnormal control on the stepper motor to control abnormalities of the stepper motor during operation.
[0085] At this time, the online parameters of the stepper motor during the working process are collected, and the working state of the stepper motor is defined according to multiple online parameters. At the same time, the state dynamic diagram of the stepper motor is output; the abnormal working range is defined based on the state dynamic diagram of the stepper motor, and the abnormal traversal is performed for the abnormal working range to define multiple abnormal factors, and the corresponding abnormal events are matched according to the multiple abnormal factors; the optimization nodes of the stepper motor are defined based on the abnormal events, and the corresponding optimization logic is defined according to the optimization nodes, optimization levels, and the models of the stepper motors, so as to introduce the optimization logic, and control is performed in multiple dimensions based on the optimization nodes, optimization levels, and the models of the stepper motors, so as to ensure the accuracy of the optimization logic. At the same time, the online control of the stepper motor is triggered according to the optimization logic and the working logic of the printer to dynamically maintain the working smoothness of the stepper motor, thereby realizing the dynamic control of the stepper motor during the working process.
[0086] refer to Figure 2 In step S11, the stepper motor built into the printer is positioned and a positioning detection is performed on the stepper motor;
[0087] In the specific implementation process of the present invention, the specific steps may be:
[0088] S111: collecting the working signal of the printer, and collecting the model of the printer and the model of the stepper motor according to the analysis of the working signal of the printer;
[0089] S112: defining a traversal mode based on the model of the printer and the model of the stepper motor;
[0090] S113: triggering the traversal of the printer according to the traversal mode, and positioning the stepper motor built into the printer;
[0091] S114: collecting the position of the stepper motor, and performing state detection according to the position of the stepper motor to define the state of the stepper motor;
[0092] S115: The state of the stepper motor is fixed, and positioning detection is performed according to the state of the stepper motor, the printing mode of the printer, and the position of the stepper motor.
[0093] In an embodiment of the present application, the working signal of the printer is collected, and the model of the printer and the model of the stepper motor are collected based on the analysis of the working signal of the printer, so that the model of the printer and the model of the stepper motor are introduced, so as to control the model of the printer and the model of the stepper motor, so as to build an association relationship between the printer and the stepper motor, thereby ensuring the management and control between the printer and the stepper motor.
[0094] At this time, the traversal mode is defined based on the model of the printer and the model of the stepper motor, so that the traversal mode is controlled in multiple dimensions to facilitate the traversal mode to be clarified. Optionally, the traversal mode includes overall traversal, local traversal and other modes.
[0095] Therefore, the traversal of the printer is triggered according to the traversal mode, and the stepper motor built into the printer is positioned, so as to control the stepper motor in the printer, thereby freezing the position of the stepper motor. At this time, the position of the stepper motor is collected, and a state detection is performed according to the position of the stepper motor to define the state of the stepper motor, thereby clarifying the state of the stepper motor, freezing the state of the stepper motor, and performing positioning detection according to the state of the stepper motor, the printing mode of the printer and the position of the stepper motor, so as to perform multi-dimensional control of the state of the stepper motor, the printing mode of the printer and the position of the stepper motor, thereby realizing the positioning detection of the stepper motor, ensuring real-time control of the stepper motor, and realizing dynamic regulation of the stepper motor during operation.
[0096] refer to Figure 3 , in step S12, in the positioning detection of the stepper motor, a plurality of working data associated with the stepper motor are collected;
[0097] In the specific implementation process of the present invention, the specific steps may be:
[0098] S121: Fixed-frame stepper motor;
[0099] S122: real-time control of stepper motor positioning detection;
[0100] S123: In the positioning detection of the stepper motor, collecting the working signal of the stepper motor;
[0101] S124: defining a plurality of working objects associated with the stepper motor based on the working signal of the stepper motor;
[0102] S125: Collecting a plurality of working data associated with the stepper motor according to the stepper motor and a plurality of working objects.
[0103] In an embodiment of the present application, a stepper motor is frozen to facilitate real-time control of the positioning detection of the stepper motor, so that the positioning detection of the stepper motor is further processed to facilitate overall control of the positioning detection of the stepper motor.
[0104] Therefore, in the positioning detection of the stepper motor, the working signal of the stepper motor is collected to facilitate the control of the working signal of the stepper motor, so as to define multiple working objects associated with the stepper motor based on the working signal of the stepper motor, so as to freeze the stepper motor and the multiple working objects associated with the stepper motor, monitor the stepper motor and the multiple working objects, and then collect multiple working data associated with the stepper motor according to the stepper motor and the multiple working objects, so as to freeze multiple working data in the stepper motor and the multiple working objects, ensure the high correlation between the multiple working data and the stepper motor, thereby ensuring the accuracy of the multiple working data, and then perform online control of the stepper motor.
[0105] refer to Figure 4 , in step S13, constructing a working path of the stepper motor based on the plurality of working data, and monitoring the stepper motor in real time along the working path;
[0106] In the specific implementation process of the present invention, the specific steps may be:
[0107] S131: freeze multiple working data;
[0108] S132: defining a plurality of working spaces of the stepper motor based on association of the plurality of working data;
[0109] S133: constructing a working path of the stepper motor according to the association of the multiple working spaces;
[0110] S134: freeze the working path of the stepper motor;
[0111] S135: Dividing a plurality of monitoring areas based on the working path of the stepper motor;
[0112] S136: Define corresponding correlation coefficients based on the correlation between multiple monitoring areas, construct multiple monitoring combinations according to the correlation coefficients and the multiple monitoring areas, define priorities of the multiple monitoring combinations, and define importance levels of the multiple monitoring combinations according to the priorities of the multiple monitoring combinations and the corresponding correlation coefficients, trigger corresponding monitoring methods based on the importance levels of the monitoring combinations to monitor the stepper motor in real time.
[0113] In an embodiment of the present application, a stepper motor built into a printer is positioned, and a positioning detection is performed on the stepper motor; in the positioning detection of the stepper motor, a plurality of working data associated with the stepper motor are collected; a working path of the stepper motor is constructed based on the plurality of working data, and the stepper motor is monitored in real time along the working path, thereby ensuring real-time monitoring of the stepper motor and performing abnormal control on the stepper motor to control abnormalities of the stepper motor during operation.
[0114] At this time, multiple working data are frozen, and the multiple working data are associated, so as to define multiple working spaces of the stepper motor based on the association of the multiple working data, thereby freezing the multiple working spaces of the stepper motor, so as to further process the multiple working spaces of the stepper motor, and then construct the working path of the stepper motor according to the association of the multiple working spaces, thereby realizing the control of the working path of the stepper motor and ensuring the accurate processing of the working path of the stepper motor.
[0115] Therefore, the working path of the stepper motor is frozen to facilitate further processing of the working path of the stepper motor, so as to divide multiple monitoring areas based on the working path of the stepper motor, so as to introduce multiple monitoring areas and realize subsequent management and control of multiple monitoring areas. At the same time, corresponding correlation coefficients are defined based on the association between the multiple monitoring areas, and multiple monitoring combinations are constructed according to the correlation coefficients and the multiple monitoring areas, so as to perform multiple operations on the multiple monitoring combinations, and then control the multiple monitoring combinations in multiple dimensions.
[0116] Furthermore, the priorities of multiple monitoring combinations are defined, and the importance levels of multiple monitoring combinations are defined according to the priorities of the multiple monitoring combinations and the corresponding correlation coefficients, so as to introduce the importance levels of multiple monitoring combinations, thereby defining the importance levels under different dimensions, and then triggering the corresponding monitoring method based on the importance level of the monitoring combination to monitor the stepper motor in real time, thereby ensuring the online control of the stepper motor and triggering the autonomous regulation of the stepper motor during the working process.
[0117] refer to Figure 5 , S14: collecting online parameters of the stepper motor during operation, and defining the working state of the stepper motor according to a plurality of online parameters, and at the same time, outputting a state dynamic diagram of the stepper motor;
[0118] In the specific implementation process of the present invention, the specific steps may be:
[0119] S141: monitor the working process of the stepper motor;
[0120] S142: collecting online parameters of the stepper motor during operation;
[0121] S143: constructing an online parameter set of the stepper motor based on the multiple online parameters;
[0122] S144: defining online parameters of multiple cores according to the online parameter set of the stepper motor and the current working mode of the stepper motor;
[0123] S145: defining a working state of the stepper motor according to online parameters of the plurality of cores;
[0124] S146: Collect multiple working states of the stepper motor in the working mode, and construct a state dynamic diagram of the stepper motor based on the multiple working states, and compare the state dynamic diagram with a preset state diagram corresponding to the working mode, and define the working state level of the stepper motor in the working mode according to the comparison result between the state dynamic diagram and the preset state diagram corresponding to the working mode.
[0125] In an embodiment of the present application, the working process of the stepper motor is monitored, and online monitoring is performed on the working process of the stepper motor to facilitate the collection of online parameters of the stepper motor during the working process. The online parameters include the temperature, rotation speed, data processing efficiency, etc. of the stepper motor.
[0126] At this time, multiple online parameters are introduced, and the multiple online parameters change dynamically during the working process of the stepper motor, so as to construct an online parameter set of the stepper motor based on the multiple online parameters, thereby introducing the online parameter set of the stepper motor and realizing the overall control of the online parameter set of the stepper motor.
[0127] Furthermore, online parameters of multiple cores are defined according to the online parameter set of the stepper motor and the current working mode of the stepper motor, so as to control the online parameter set of the stepper motor and the current working mode of the stepper motor in multiple dimensions, and then the online parameter set is graded to introduce core level or ordinary level, so as to match the corresponding online parameters in the core level, thereby defining online parameters of multiple cores, and further processing the online parameters of multiple cores to ensure the processing accuracy of the stepper motor.
[0128] Therefore, the working state of the stepper motor is defined according to the online parameters of multiple cores, so as to perform multiple associations with the online parameters of multiple cores, thereby defining the working state of the stepper motor based on the multiple associations of the online parameters of multiple cores, thereby controlling the working state of the stepper motor based on multiple dimensions, and ensuring the accuracy of the working state of the stepper motor. Optionally, the working state of the stepper motor includes normal state, acceleration state, deceleration state, etc.
[0129] At the same time, multiple working states of the stepper motor in this working mode are collected, and a state dynamic graph of the stepper motor is constructed according to the multiple working states, thereby introducing the state dynamic graph of the stepper motor, and controlling the state dynamic graph of the stepper motor to facilitate comparison between the state dynamic graph and the preset state graph corresponding to the working mode, and defining the working state level of the stepper motor in this working mode according to the comparison result between the state dynamic graph and the preset state graph corresponding to the working mode, and then controlling the working state level of the stepper motor in this working mode to ensure the accuracy of the working state level of the stepper motor in this working mode.
[0130] refer to Figure 6 , S15: defining an abnormal working interval based on the state dynamic diagram of the stepper motor, and performing abnormal traversal on the abnormal working interval to define multiple abnormal factors, and matching corresponding abnormal events according to the multiple abnormal factors;
[0131] In the specific implementation process of the present invention, the specific steps may be:
[0132] S151: freeze-frame stepper motor state dynamic diagram;
[0133] S152: Dividing a plurality of state regions based on a state dynamic diagram of the stepper motor;
[0134] S153: defining a plurality of abnormal line segments according to the synchronous detection of a plurality of status areas;
[0135] S154: defining a corresponding abnormal working range based on the multiple abnormal line segments, the continuous working time of the stepper motor, and the model of the stepper motor;
[0136] S155: Collecting the abnormal working interval, matching the abnormal part of the stepper motor based on the abnormal working interval, and defining a traversal method according to the abnormal part of the stepper motor and the service life of the stepper motor;
[0137] S156: triggering abnormal traversal of the abnormal working interval based on the traversal mode to define multiple abnormal factors;
[0138] S157: sorting the multiple abnormal factors, defining multiple abnormal combinations based on the multiple abnormal factors, and matching corresponding abnormal events according to the multiple abnormal combinations, the model of the stepper motor and the abnormal event matching table.
[0139] In an embodiment of the present application, a state dynamic diagram of a stepper motor is frozen, a state dynamic diagram of a stepper motor is introduced, and the state change of the stepper motor is presented in the state dynamic diagram of the stepper motor, and online detection is performed on the state change of the stepper motor.
[0140] At this time, multiple state areas are divided based on the state dynamic diagram of the stepper motor to facilitate the introduction of multiple state areas, so as to facilitate further processing based on the multiple state areas, so as to facilitate control of the multiple state areas, and further, multiple abnormal line segments are defined according to the synchronous detection of the multiple state areas, so as to facilitate the presentation of abnormal line segments based on the detection of the state areas, so as to manage the multiple abnormal line segments, so as to facilitate the definition of corresponding abnormal working intervals based on the multiple abnormal line segments, the continuous working time of the stepper motor and the model of the stepper motor, and perform multi-dimensional control on the multiple abnormal line segments, the continuous working time of the stepper motor and the model of the stepper motor to ensure the accuracy of the abnormal working interval, so as to further process the abnormal working interval.
[0141] Therefore, the abnormal working interval is collected, and the abnormal part of the stepper motor is matched based on the abnormal working interval to facilitate further processing of the abnormal part. At the same time, the traversal mode is defined according to the abnormal part of the stepper motor and the service life of the stepper motor, so as to control the corresponding traversal mode in the abnormal part of the stepper motor and the service life of the stepper motor, and then control the traversal mode.
[0142] At this time, an abnormal traversal of the abnormal working interval is triggered based on the traversal method, so as to perform targeted abnormal traversal on the abnormal working interval, thereby presenting and defining multiple abnormal factors in the abnormal traversal, and then controlling the impact of multiple abnormal factors, so as to sort the multiple abnormal factors, and define multiple abnormal combinations based on the multiple abnormal factors, and match the corresponding abnormal events according to the multiple abnormal combinations, the model of the stepper motor and the abnormal event matching table.
[0143] refer to Figure 7 , S16: defining the optimization node of the stepper motor based on the abnormal event, defining the corresponding optimization logic according to the optimization node, the optimization level, and the model of the stepper motor, and triggering the online control of the stepper motor according to the optimization logic and the working logic of the printer;
[0144] In the specific implementation process of the present invention, the specific steps may be:
[0145] S161: freeze the abnormal event and associate the abnormal event with the printer;
[0146] S162: Matching a corresponding printing stage according to the abnormal event and the printer;
[0147] S163: defining an optimization node of the stepper motor in the traceability of the printing stage;
[0148] S164: Associating the optimization node and the abnormal time;
[0149] S165: Matching the optimization level of the stepper motor based on the optimization node and the abnormal time;
[0150] S166: defining corresponding optimization logic according to the optimization node, optimization level, and stepper motor model;
[0151] S167: triggering the online control of the stepper motor according to the optimization logic and the working logic of the printer to dynamically maintain the working smoothness of the stepper motor.
[0152] In the specific implementation process of the present invention, the online parameters of the stepper motor in the working process are collected, and the working state of the stepper motor is defined according to multiple online parameters. At the same time, a state dynamic diagram of the stepper motor is output; based on the state dynamic diagram of the stepper motor, an abnormal working range is defined, and abnormal traversal is performed on the abnormal working range to define multiple abnormal factors, and corresponding abnormal events are matched according to the multiple abnormal factors; based on the abnormal events, the optimization nodes of the stepper motor are defined, and the corresponding optimization logic is defined according to the optimization nodes, optimization levels, and the models of the stepper motors, so as to introduce the optimization logic, and based on the optimization nodes, optimization levels, and the models of the stepper motors, multiple dimensions are controlled to ensure the accuracy of the optimization logic. At the same time, the online control of the stepper motor is triggered according to the optimization logic and the working logic of the printer to dynamically maintain the working smoothness of the stepper motor, thereby realizing dynamic control of the stepper motor in the working process.
[0153] At this time, the abnormal event is frozen, and the abnormal event and the printer are associated so as to match the abnormal event to the printer, thereby matching the corresponding printing stage according to the abnormal event and the printer, so as to control the printing stage of the printer.
[0154] Therefore, the optimization nodes of the stepper motor are defined in the traceability of the printing stage so as to freeze the optimization nodes of the stepper motor in the traceability, thereby introducing the optimization nodes of the stepper motor to facilitate further processing of the optimization nodes of the stepper motor.
[0155] At the same time, the optimization node and the abnormal time are associated; the optimization level of the stepper motor is matched based on the optimization node and the abnormal time, so as to control the optimization node and the abnormal time in multiple dimensions, thereby controlling the optimization level of the stepper motor, so as to define the corresponding optimization logic according to the optimization node, the optimization level, and the model of the stepper motor, so as to freeze the optimization logic and realize the optimization processing of the printer by the optimization logic. Furthermore, the online control of the stepper motor is triggered according to the optimization logic and the working logic of the printer to dynamically maintain the working smoothness of the stepper motor, thereby realizing the dynamic control of the stepper motor during the working process.
[0156] In an embodiment of the present invention, the method in the embodiment of the present invention is used to locate the stepper motor built into the printer, and perform positioning detection on the stepper motor; in the positioning detection of the stepper motor, multiple working data associated with the stepper motor are collected; based on the multiple working data, a working path of the stepper motor is constructed, and the stepper motor is monitored in real time along the working path, thereby ensuring real-time monitoring of the stepper motor, and performing abnormal control on the stepper motor to control abnormalities of the stepper motor during operation.
[0157] At this time, the online parameters of the stepper motor during the working process are collected, and the working state of the stepper motor is defined according to multiple online parameters. At the same time, the state dynamic diagram of the stepper motor is output; the abnormal working range is defined based on the state dynamic diagram of the stepper motor, and the abnormal traversal is performed for the abnormal working range to define multiple abnormal factors, and the corresponding abnormal events are matched according to the multiple abnormal factors; the optimization nodes of the stepper motor are defined based on the abnormal events, and the corresponding optimization logic is defined according to the optimization nodes, optimization levels, and the models of the stepper motors, so as to introduce the optimization logic, and control is performed in multiple dimensions based on the optimization nodes, optimization levels, and the models of the stepper motors, so as to ensure the accuracy of the optimization logic. At the same time, the online control of the stepper motor is triggered according to the optimization logic and the working logic of the printer to dynamically maintain the working smoothness of the stepper motor, thereby realizing the dynamic control of the stepper motor during the working process.
[0158] See also Figure 8 , Figure 8 It is a schematic diagram of the structure of the optimization control system for the stepping motor of the printer in the embodiment of the present invention.
[0159] like Figure 8 As shown, an optimization control system of a printer for a stepper motor, the optimization control system of the printer for a stepper motor comprises:
[0160] A positioning detection module 21 is used to locate a stepper motor built into the printer and perform positioning detection on the stepper motor;
[0161] The working data module 22 is used to collect a plurality of working data associated with the stepping motor during the positioning detection of the stepping motor;
[0162] A real-time monitoring module 23, used to construct a working path of the stepper motor based on a plurality of working data, and to monitor the stepper motor in real time along the working path;
[0163] The state module 24 is used to collect online parameters of the stepper motor during operation, and define the working state of the stepper motor according to a plurality of online parameters, and output a state dynamic diagram of the stepper motor;
[0164] The abnormal module 25 is used to define an abnormal working range based on the state dynamic diagram of the stepper motor, and perform abnormal traversal on the abnormal working range to define multiple abnormal factors, and match corresponding abnormal events according to the multiple abnormal factors;
[0165] The optimization module 26 is used to define the optimization node of the stepper motor based on the abnormal event, define the corresponding optimization logic according to the optimization node, optimization level, and model of the stepper motor, and trigger the online control of the stepper motor according to the optimization logic and the working logic of the printer.
[0166] See also Fig. 9 , refer to the following Fig. 9 The electronic device 40 according to this embodiment of the present invention will be described. Fig. 9 The electronic device 40 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0167] like Fig. 9 As shown, the electronic device 40 is in the form of a general computing device. The components of the electronic device 40 may include but are not limited to: at least one processing unit 41, at least one storage unit 42, and a bus 43 connecting different system components (including the storage unit 42 and the processing unit 41).
[0168] The storage unit stores program codes, which can be executed by the processing unit 41, so that the processing unit 41 executes the steps according to various exemplary embodiments of the present invention described in the above “Embodiment Method” section of this specification.
[0169] The storage unit 42 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 421 and / or a cache memory unit 422 , and may further include a read-only memory unit (ROM) 423 .
[0170] The storage unit 42 may also include a program / utility 424 having a set (at least one) of program modules 425, such program modules 425 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0171] Bus 43 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0172] The electronic device 40 may also communicate with one or more external devices (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device 40, and / or any device that enables the electronic device 40 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 44. Furthermore, the electronic device 40 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 45. Fig. 9 As shown, the network adapter 45 communicates with other modules of the electronic device 40 via the bus 43. It should be understood that although Fig. 9 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 40, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup planning systems.
[0173] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes a number of instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0174] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. In addition, it stores computer program instructions, and when the computer program instructions are executed by a computer, the computer executes the above method.
[0175] In addition, the above is a detailed introduction to the optimized control method and system for the stepper motor of the printer provided in the embodiment of the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for optimizing the control of a stepping motor by a printer, characterized in that: Applied to the optimized control scenario of the printer for the stepper motor; The printer's optimization control method for a stepper motor comprises: Locate the stepper motor built into the printer and perform positioning detection on the stepper motor; In the positioning detection of the stepper motor, a plurality of working data associated with the stepper motor are collected; Constructing a working path of the stepper motor based on the plurality of working data, and performing real-time monitoring on the stepper motor along the working path; Collect online parameters of the stepper motor during operation, define the working state of the stepper motor according to multiple online parameters, and output a dynamic state diagram of the stepper motor; Based on the state dynamic diagram of the stepper motor, an abnormal working range is defined, and abnormal traversal is performed on the abnormal working range to define multiple abnormal factors, and corresponding abnormal events are matched according to the multiple abnormal factors; Based on the abnormal event, the optimization node of the stepper motor is defined, and the corresponding optimization logic is defined according to the optimization node, the optimization level, and the model of the stepper motor. According to the optimization logic and the working logic of the printer, the online control of the stepper motor is triggered; The positioning of the stepper motor built into the printer and the positioning detection of the stepper motor include: collecting the working signal of the printer, and collecting the model of the printer and the model of the stepper motor according to the analysis of the working signal of the printer; defining a traversal mode based on the model of the printer and the model of the stepper motor; triggering the traversal of the printer according to the traversal mode, and positioning the stepper motor built into the printer; collecting the position of the stepper motor, and performing state detection according to the position of the stepper motor to define the state of the stepper motor; freezing the state of the stepper motor, and performing positioning detection according to the state of the stepper motor, the printing mode of the printer and the position of the stepper motor; In the positioning detection of the stepper motor, a plurality of working data associated with the stepper motor are collected, including: freezing the stepper motor; real-time control of the positioning detection of the stepper motor; in the positioning detection of the stepper motor, collecting the working signal of the stepper motor; defining a plurality of working objects associated with the stepper motor based on the working signal of the stepper motor; collecting a plurality of working data associated with the stepper motor according to the stepper motor and the plurality of working objects; The method of constructing the working path of the stepper motor based on multiple working data and monitoring the stepper motor in real time along the working path includes: freezing multiple working data; defining multiple working spaces of the stepper motor based on the association of multiple working data; constructing the working path of the stepper motor according to the association of multiple working spaces; freezing the working path of the stepper motor; dividing multiple monitoring areas based on the working path of the stepper motor; defining corresponding correlation coefficients based on the association of multiple monitoring areas, constructing multiple monitoring combinations according to the correlation coefficients and multiple monitoring areas, defining priorities of multiple monitoring combinations, defining importance levels of multiple monitoring combinations according to the priorities of multiple monitoring combinations and corresponding correlation coefficients, triggering corresponding monitoring methods based on the importance levels of monitoring combinations, so as to monitor the stepper motor in real time; The method collects online parameters of the stepper motor during the working process, defines the working state of the stepper motor according to multiple online parameters, and outputs a state dynamic diagram of the stepper motor, including: monitoring the working process of the stepper motor; collecting online parameters of the stepper motor during the working process; constructing an online parameter set of the stepper motor based on multiple online parameters; defining online parameters of multiple cores according to the online parameter set of the stepper motor and the current working mode of the stepper motor; defining the working state of the stepper motor according to the online parameters of the multiple cores; collecting multiple working states of the stepper motor in the working mode, and constructing a state dynamic diagram of the stepper motor according to the multiple working states, and comparing the state dynamic diagram with a preset state diagram corresponding to the working mode, and defining the working state level of the stepper motor in the working mode according to the comparison result between the state dynamic diagram and the preset state diagram corresponding to the working mode.
2. The method for optimizing the control of a stepping motor by a printer according to claim 1, characterized in that: The abnormal working interval is defined based on the state dynamic diagram of the stepper motor, and abnormal traversal is performed on the abnormal working interval to define multiple abnormal factors, and corresponding abnormal events are matched according to the multiple abnormal factors, including: Freeze the state dynamic diagram of the stepper motor; Divide multiple state areas based on the state dynamic diagram of the stepper motor; Defining a plurality of abnormal line segments based on simultaneous detection of a plurality of status regions; The corresponding abnormal working interval is defined based on multiple abnormal line segments, the continuous working time of the stepper motor and the model of the stepper motor.
3. The method for optimizing the control of a stepping motor by a printer according to claim 2, characterized in that: The method further includes defining an abnormal working range based on a state dynamic diagram of the stepper motor, performing abnormal traversal on the abnormal working range to define a plurality of abnormal factors, and matching corresponding abnormal events according to the plurality of abnormal factors. Collect the abnormal working interval, match the abnormal part of the stepper motor based on the abnormal working interval, and define the traversal method according to the abnormal part of the stepper motor and the service life of the stepper motor; Triggering abnormal traversal of abnormal working interval based on traversal mode to define multiple abnormal factors; The multiple abnormal factors are sorted, and multiple abnormal combinations are defined based on the multiple abnormal factors, and corresponding abnormal events are matched according to the multiple abnormal combinations, the model of the stepper motor and the abnormal event matching table.
4. The method for optimizing the control of a stepping motor by a printer according to claim 3, characterized in that: The stepper motor optimization node is defined based on the abnormal event, the corresponding optimization logic is defined according to the optimization node, the optimization level, and the model of the stepper motor, and the online control of the stepper motor is triggered according to the optimization logic and the working logic of the printer, including: Freeze abnormal events and associate them with the printer; Match the corresponding printing stage according to the abnormal event and the printer; Define the optimization node for the stepper motor in the traceback of this printing stage.
5. The method for optimizing the control of a stepping motor by a printer according to claim 4, characterized in that: The method further comprises: defining an optimization node of the stepper motor based on an abnormal event, defining a corresponding optimization logic according to the optimization node, the optimization level, and the model of the stepper motor, and triggering online control of the stepper motor according to the optimization logic and the working logic of the printer, and further comprising: Associate the optimization node and the abnormal time; Matching the optimization level of the stepper motor based on the optimization node and the abnormal time; Define the corresponding optimization logic according to the optimization node, optimization level, and stepper motor model; The online control of the stepper motor is triggered according to the optimization logic and the working logic of the printer to dynamically maintain the working smoothness of the stepper motor.
6. A printer optimization control system for a stepper motor, characterized in that: The optimized control system of the printer for the stepper motor is applied to the optimized control method of the printer for the stepper motor as claimed in any one of claims 1 to 5, and the optimized control system of the printer for the stepper motor includes: A positioning detection module is used to locate the stepper motor built into the printer and perform positioning detection on the stepper motor; A working data module, used for collecting a plurality of working data associated with the stepper motor during positioning detection of the stepper motor; A real-time monitoring module, used for constructing a working path of the stepper motor based on a plurality of working data, and performing real-time monitoring of the stepper motor along the working path; The state module is used to collect the online parameters of the stepper motor during operation, and define the working state of the stepper motor according to multiple online parameters, and output the state dynamic diagram of the stepper motor; An abnormal module is used to define an abnormal working range based on the state dynamic diagram of the stepper motor, and perform abnormal traversal on the abnormal working range to define multiple abnormal factors, and match corresponding abnormal events according to the multiple abnormal factors; An optimization module, used to define the optimization nodes of the stepper motor based on abnormal events, define the corresponding optimization logic according to the optimization nodes, optimization levels, and the model of the stepper motor, and trigger the online control of the stepper motor according to the optimization logic and the working logic of the printer; The positioning of the stepper motor built into the printer and the positioning detection of the stepper motor include: collecting the working signal of the printer, and collecting the model of the printer and the model of the stepper motor according to the analysis of the working signal of the printer; defining a traversal mode based on the model of the printer and the model of the stepper motor; triggering the traversal of the printer according to the traversal mode, and positioning the stepper motor built into the printer; collecting the position of the stepper motor, and performing state detection according to the position of the stepper motor to define the state of the stepper motor; freezing the state of the stepper motor, and performing positioning detection according to the state of the stepper motor, the printing mode of the printer and the position of the stepper motor; In the positioning detection of the stepper motor, a plurality of working data associated with the stepper motor are collected, including: freezing the stepper motor; real-time control of the positioning detection of the stepper motor; in the positioning detection of the stepper motor, collecting the working signal of the stepper motor; defining a plurality of working objects associated with the stepper motor based on the working signal of the stepper motor; collecting a plurality of working data associated with the stepper motor according to the stepper motor and the plurality of working objects; The method of constructing the working path of the stepper motor based on multiple working data and monitoring the stepper motor in real time along the working path includes: freezing multiple working data; defining multiple working spaces of the stepper motor based on the association of multiple working data; constructing the working path of the stepper motor according to the association of multiple working spaces; freezing the working path of the stepper motor; dividing multiple monitoring areas based on the working path of the stepper motor; defining corresponding correlation coefficients based on the association of multiple monitoring areas, constructing multiple monitoring combinations according to the correlation coefficients and multiple monitoring areas, defining priorities of multiple monitoring combinations, defining importance levels of multiple monitoring combinations according to the priorities of multiple monitoring combinations and corresponding correlation coefficients, triggering corresponding monitoring methods based on the importance levels of monitoring combinations, so as to monitor the stepper motor in real time; The method collects online parameters of the stepper motor during the working process, defines the working state of the stepper motor according to multiple online parameters, and outputs a state dynamic diagram of the stepper motor, including: monitoring the working process of the stepper motor; collecting online parameters of the stepper motor during the working process; constructing an online parameter set of the stepper motor based on multiple online parameters; defining online parameters of multiple cores according to the online parameter set of the stepper motor and the current working mode of the stepper motor; defining the working state of the stepper motor according to the online parameters of the multiple cores; collecting multiple working states of the stepper motor in the working mode, and constructing a state dynamic diagram of the stepper motor according to the multiple working states, and comparing the state dynamic diagram with a preset state diagram corresponding to the working mode, and defining the working state level of the stepper motor in the working mode according to the comparison result between the state dynamic diagram and the preset state diagram corresponding to the working mode.
Citation Information
Patent Citations
Control method and system of thermal printer
CN118560172A
Motor drive device and thermal printer
JP2010074946A
Label printer, and abnormal condition detecting method
JP2011207084A
