Cutting control method and device of wire marking machine, wire marking machine and computer storage medium

By using code disk structure and sensor detection in online numbering machines, the rotation of the stepper motor is accurately controlled, which solves the problem of difficult cutting position accuracy and improves cutting accuracy and operating efficiency.

CN119748539AActive Publication Date: 2025-04-04WUHAN JINGCHEN INTELLIGENT IDENTIFICATION TECH CO LTD

Patent Information

Application Number
CN202411954548.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-27
Publication Date
2025-04-04
Estimated Expiration
2044-12-27

AI Technical Summary

Technical Problem

During the cutting operation of the line number machine, the accuracy of the cutting tool position is difficult to achieve expectations, resulting in unsatisfactory cutting effect or error in control logic, affecting operation efficiency.

Method used

By introducing a code disk structure into the online number machine, the preset light-shading and light-transmitting areas are used, combined with sensor detection, the rotation of the stepper motor is accurately controlled to ensure that the cutting knife can accurately reach the cutting point.

Benefits of technology

The cutting accuracy and operating efficiency of the line number machine are improved, and the influence of accumulated errors on the cutting position when the stepper motor rotates is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119748539A_ABST
    Figure CN119748539A_ABST
Patent Text Reader

Abstract

The invention provides a cutting control method and device of a wire marking machine, the wire marking machine and a computer storage medium, and the method comprises the steps that under the condition that an original point is located at the position of a sensor, if a trigger instruction of a cutting action is detected, a stepping motor is controlled to rotate, and the cutting action is controlled to be completed; the stepping motor drives the code disc to rotate towards a target rotation direction through the transmission mechanism, and drives the cutter to move through the transmission mechanism; when it is detected that the sensor enters a target coded disc area where a cutting point corresponding to the cutting action is located, the number of steps to be moved is determined based on the target rotation direction corresponding to the cutting action; a stepping motor is controlled to rotate based on the to-be-moved step number, so that a cutting point corresponding to the cutting action rotates to the position where a sensor is located; and when it is detected that the cutting point corresponding to the cutting action rotates to the position where the sensor is located, the cutting action executed by the cutter is ended. According to the embodiment of the scheme, the cutting precision of the wire marking machine can be improved, and then the operation efficiency of the wire marking machine is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of wire marking machines, and in particular to a cutting control method and device for a wire marking machine, a wire marking machine and a computer storage medium. Background Art

[0002] The cutting action of the wire marking machine usually includes half-cutting action and full-cutting action, and these two actions are usually controlled by the same stepper motor. Therefore, it is required to accurately identify the current position of the cutter through the stepper motor, and adjust the action according to the current position of the cutter, so as to achieve smooth switching between half-cutting action and full-cutting action. However, in the related art, the position of the cutter may not achieve the expected accuracy, which may result in unsatisfactory cutting effect, or cause control logic errors, thereby affecting the operating efficiency of the wire marking machine. Summary of the invention

[0003] The embodiments of the present application provide a cutting control method and device for a wire numbering machine, a wire numbering machine, and a computer storage medium, which can improve the cutting accuracy of the wire numbering machine and thus improve the operating efficiency of the wire numbering machine. The above technical solution is as follows:

[0004] In a first aspect, an embodiment of the present application provides a cutting control method for a wire numbering machine, wherein the wire numbering machine comprises a stepping motor, a sensor, a transmission mechanism and a cutter, wherein the transmission mechanism comprises a code disk, wherein the code disk comprises at least a first light-shielding area, a first light-transmitting area, a second light-shielding area and a second light-transmitting area arranged in sequence in a preset direction, wherein the first light-shielding area, the first light-transmitting area, the second light-shielding area and the second light-transmitting area are annular code disk areas, wherein the origin corresponding to the sensor is located in an initial code disk area, and the cutting point corresponding to the cutting action is located in a target code disk area, and the initial code disk area and the target code disk area are both arbitrary code disk areas;

[0005] The method includes:

[0006] In the case where the origin is located at the position where the sensor is located, if a trigger instruction of a cutting action is detected, the stepper motor is controlled to rotate based on the target rotation direction corresponding to the cutting action, so that the stepper motor drives the code disc to rotate in the target rotation direction through the transmission mechanism, and the stepper motor drives the cutter to move through the transmission mechanism;

[0007] When it is detected that the sensor enters the target code disk area where the cutting point corresponding to the cutting action is located, the number of steps to be advanced is determined based on the target rotation direction corresponding to the cutting action;

[0008] Controlling the stepping motor to rotate based on the number of steps to be advanced, so that the cutting point corresponding to the cutting action rotates to the position where the sensor is located;

[0009] When it is detected that the cutting point corresponding to the cutting action rotates to the position where the sensor is located, it is determined that the cutting action performed by the cutter is finished.

[0010] In a possible implementation, the cutting action is a half-cutting action or a full-cutting action, and the target rotation direction corresponding to the half-cutting action is opposite to the target rotation direction corresponding to the full-cutting action.

[0011] In a possible implementation, the method further includes:

[0012] In the case where the origin is located at the position where the sensor is located, if a trigger instruction of the cutting action is detected, a waiting area between the cutting point corresponding to the cutting action and the target rotation direction corresponding to the cutting action to the origin is determined, and the number of the code disk areas included in the waiting area is determined, and the waiting area includes at least two code disk areas;

[0013] Determining the number of times the code disk area is to be changed in the area to be traveled based on the number of the code disk areas included in the area to be traveled;

[0014] Based on the above number of pending changes, it is determined whether it is detected that the above sensor enters the target code disk area where the cutting point corresponding to the above cutting action is located.

[0015] In a possible implementation, the determining the number of times the code disk area in the area to be traveled to be changed based on the number of the code disk areas included in the area to be traveled to include:

[0016] Determine whether the cutting point corresponding to the cutting action and the origin are located in the same code disk area;

[0017] In the case where the cutting point and the origin are not located in the same code disk area, the number of the code disk areas included in the area to be advanced is reduced by 1 to obtain the number of times the code disk areas in the area to be advanced are to be changed;

[0018] In the case that the cutting point and the origin are located in the same code disk area, the number of code disk areas included in the area to be advanced is taken as the number of times the code disk area in the area to be advanced is to be changed.

[0019] In a possible implementation, the determining whether the sensor is detected to enter the target code disk area where the cutting point corresponding to the cutting action is located based on the number of pending changes includes:

[0020] When it is detected that the stepper motor rotates one step, the sensor data at the current moment is collected through the sensor;

[0021] Determine the area type corresponding to the sensor data, where the area type corresponding to the sensor data is the area type of the code disk area passing through the sensor at the time when the sensor data is collected;

[0022] When it is detected that the area type corresponding to the sensor data changes, it is determined that the code disk area changes, and the number of changes of the code disk area in the area to be traveled is updated;

[0023] If the number of times the above-mentioned changes has reached the number of times to be changed, it is determined that the above-mentioned sensor has been detected to enter the target code disk area where the cutting point corresponding to the above-mentioned cutting action is located.

[0024] In a possible implementation, determining the number of steps to be advanced based on the target rotation direction corresponding to the cutting action includes:

[0025] Obtaining a preset number of steps between a cutting point corresponding to the cutting action and an edge point of a target code disk region where the cutting point is located in the target rotation direction;

[0026] The above-mentioned preset number of steps is determined as the number of steps to be traveled.

[0027] In a possible implementation, determining the area type corresponding to the sensor data includes:

[0028] Determine whether the above sensor data is greater than a preset sensor data threshold;

[0029] If yes, determining that the area type corresponding to the sensor data is the light-transmitting area type;

[0030] If not, it is determined that the area type corresponding to the sensor data is the light-shielding area type.

[0031] In a possible implementation, the arc angle of the first light-shielding area is greater than the arc angle of the second light-shielding area, and the arc angle of the first light-transmitting area is smaller than the arc angle of the second light-transmitting area;

[0032] The above-mentioned initial code disk area is the above-mentioned second shading area, the target code disk area corresponding to the above-mentioned half-cut action is the above-mentioned first shading area, the target code disk area corresponding to the above-mentioned full-cut action is the above-mentioned first shading area, the target rotation direction corresponding to the above-mentioned half-cut action is clockwise, and the target rotation direction corresponding to the above-mentioned full-cut action is counterclockwise.

[0033] In a possible implementation, after determining that the cutter has finished performing the cutting action, the method further includes:

[0034] The stepper motor is controlled to rotate so that the stepper motor drives the cutter and the encoder to rotate in the opposite direction of the target rotation direction through the transmission mechanism until it is detected that the origin returns to the position where the sensor is located.

[0035] In a second aspect, an embodiment of the present application provides a cutting control device for a wire numbering machine, the wire numbering machine comprising a stepping motor, a sensor, a transmission mechanism and a cutter, the transmission mechanism comprising a code disk, the code disk comprising at least a first light-shielding area, a first light-transmitting area, a second light-shielding area and a second light-transmitting area arranged in sequence in a preset direction, the first light-shielding area, the first light-transmitting area, the second light-shielding area and the second light-transmitting area are annular code disk areas, the origin corresponding to the sensor is located in the initial code disk area, the cutting point corresponding to the cutting action is located in the target code disk area, and the initial code disk area and the target code disk area are both arbitrary code disk areas;

[0036] The above device comprises:

[0037] A first control module is used for controlling the stepper motor to rotate based on a target rotation direction corresponding to the cutting action if a trigger instruction of a cutting action is detected when the origin is located at the position where the sensor is located, so that the stepper motor drives the code disc to rotate in the target rotation direction through the transmission mechanism, and drives the cutter to move through the transmission mechanism;

[0038] A first determination module is used to determine the number of steps to be advanced based on the target rotation direction corresponding to the cutting action when the sensor is detected to enter the target code disk area where the cutting point corresponding to the cutting action is located;

[0039] A second control module is used to control the stepping motor to rotate based on the number of steps to be moved, so that the cutting point corresponding to the cutting action rotates to the position where the sensor is located;

[0040] The second determining module is used to determine that the cutting action performed by the cutter is finished when it is detected that the cutting point corresponding to the cutting action rotates to the position where the sensor is located.

[0041] In a possible implementation, the cutting action is a half-cutting action or a full-cutting action, and the target rotation direction corresponding to the half-cutting action is opposite to the target rotation direction corresponding to the full-cutting action.

[0042] In a possible implementation, the above device further includes:

[0043] A third determination module is used for determining, when the origin is located at the position where the sensor is located, a waiting area from the cutting point corresponding to the cutting action to the target rotation direction corresponding to the cutting action to the origin if a trigger instruction of the cutting action is detected, and determining the number of the code disk areas included in the waiting area, wherein the waiting area includes at least two code disk areas;

[0044] A fourth determining module, configured to determine the number of times the code disk area in the to-be-traveled area is to be changed based on the number of the code disk areas included in the to-be-traveled area;

[0045] The fifth determination module is used to determine whether the sensor is detected to enter the target code disk area where the cutting point corresponding to the cutting action is located based on the number of pending changes.

[0046] In a possible implementation, the fourth determining module includes:

[0047] A first determining unit, used to determine whether the cutting point corresponding to the cutting action and the origin are located in the same code disk area;

[0048] A second determining unit is used for, when the cutting point and the origin are not located in the same code disk area, reducing the number of the code disk areas included in the area to be advanced by 1 to obtain the number of pending changes of the code disk areas in the area to be advanced;

[0049] The third determining unit is used for, when the cutting point and the origin are located in the same code disk area, taking the number of code disk areas included in the area to be advanced as the number of times the code disk areas in the area to be advanced are to be changed.

[0050] In a possible implementation, the fifth determining module includes:

[0051] A collection unit, used to collect sensor data at the current moment through the sensor when detecting that the stepping motor rotates one step;

[0052] A fourth determining unit, configured to determine a region type corresponding to the sensor data, wherein the region type corresponding to the sensor data is a region type of a code disk region passing through the sensor at the time of collecting the sensor data;

[0053] a fifth determining unit, configured to determine that the code disk area has changed when a change in the area type corresponding to the sensor data is detected, and update the number of times the code disk area has changed in the area to be traveled;

[0054] The sixth determining unit is used to determine that the sensor is detected to enter the target code disk area where the cutting point corresponding to the cutting action is located when the number of changes has reached the number of changes to be made.

[0055] In a possible implementation, the first determining module includes:

[0056] An acquisition unit, used for acquiring a preset number of steps between a cutting point corresponding to the cutting action and an edge point of a target code disk region where the cutting point is located in the target rotation direction;

[0057] The seventh determining unit is used to determine the above-mentioned preset number of steps as the number of steps to be traveled.

[0058] In a possible implementation manner, the fourth determining unit includes:

[0059] A judging subunit, used to judge whether the above sensor data is greater than a preset sensor data threshold;

[0060] A first determining subunit, configured to determine that the area type corresponding to the sensor data is the light-transmitting area type when the sensor data is greater than a preset sensor data threshold;

[0061] The second determining subunit is configured to determine that the area type corresponding to the sensor data is the light-shielding area type when the sensor data is not greater than a preset sensor data threshold.

[0062] In a possible implementation, the arc angle of the first light-shielding area is greater than the arc angle of the second light-shielding area, and the arc angle of the first light-transmitting area is smaller than the arc angle of the second light-transmitting area;

[0063] The above-mentioned initial code disk area is the above-mentioned second shading area, the target code disk area corresponding to the above-mentioned half-cut action is the above-mentioned first shading area, the target code disk area corresponding to the above-mentioned full-cut action is the above-mentioned first shading area, the target rotation direction corresponding to the above-mentioned half-cut action is clockwise, and the target rotation direction corresponding to the above-mentioned full-cut action is counterclockwise.

[0064] In a possible implementation, the above device further includes:

[0065] The third control module is used to control the rotation of the stepper motor so that the stepper motor drives the cutter and the encoder to rotate in the opposite direction of the target rotation direction through the transmission mechanism until it is detected that the origin returns to the position of the sensor.

[0066] In a third aspect, an embodiment of the present application provides a line numbering machine, the line numbering machine includes a stepper motor, a sensor, a transmission mechanism, a cutter, a processor and a memory, the transmission mechanism includes a code disk, the code disk includes at least a first light-shielding area, a first light-transmitting area, a second light-shielding area and a second light-transmitting area arranged in sequence in a preset direction, the first light-shielding area, the first light-transmitting area, the second light-shielding area and the second light-transmitting area are annular code disk areas, the origin corresponding to the sensor is located in the initial code disk area, the cutting point corresponding to the cutting action is located in the target code disk area, and the initial code disk area and the target code disk area are both arbitrary code disk areas;

[0067] The above-mentioned memory stores a computer program, and the above-mentioned computer program is suitable for being loaded by the above-mentioned processor and executing the steps of the method provided by the first aspect of the embodiment of the present application or any possible implementation method of the first aspect.

[0068] In a fourth aspect, an embodiment of the present application provides a computer storage medium, which stores multiple instructions, and the instructions are suitable for being loaded by a processor and executing the steps of the method provided by the first aspect of the embodiment of the present application or any possible implementation method of the first aspect.

[0069] In the embodiment of the present application, the wire number machine includes a stepper motor, a sensor, a transmission mechanism and a cutter, the transmission mechanism includes a code disk, the code disk includes at least a first light-shielding area, a first light-transmitting area, a second light-shielding area and a second light-transmitting area arranged in sequence in a preset direction, the first light-shielding area, the first light-transmitting area, the second light-shielding area and the second light-transmitting area are annular code disk areas, the origin corresponding to the sensor is located in the initial code disk area, the cutting point corresponding to the cutting action is located in the target code disk area, the initial code disk area and the target code disk area are both arbitrary code disk areas; by detecting a trigger instruction for the cutting action when the origin is located at the position where the sensor is located, the control The stepper motor is controlled to rotate based on the target rotation direction corresponding to the cutting action, so that the stepper motor drives the code disk to rotate in the target rotation direction through the transmission mechanism, and the stepper motor drives the cutter to move through the transmission mechanism; when it is detected that the sensor enters the target code disk area where the cutting point corresponding to the cutting action is located, the number of steps to be advanced is determined based on the target rotation direction corresponding to the cutting action; the stepper motor is controlled to rotate based on the number of steps to be advanced, so that the cutting point corresponding to the cutting action rotates to the position of the sensor; when it is detected that the cutting point corresponding to the cutting action rotates to the position of the sensor, it is determined that the cutting action of the cutter is finished. Thus, the recording starts when the cutter and the sensor are at the code disk origin position, and the position information of the current cutter relative to the code disk can be accurately determined by using the sensor to identify each code disk area. When the transition point of two adjacent code disk areas is detected, the number of steps that the stepper motor should continue to advance can be accurately calculated, so that the cutter reaches the ideal cutting point, thereby reducing the influence of the cumulative error of the stepper motor on the cutting position during operation, thereby improving the cutting accuracy of the line number machine and improving the operation efficiency of the line number machine. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0071] Figure 1 A schematic diagram of the structure of a wire number machine provided as an exemplary embodiment of the present application;

[0072] Figure 2 A schematic diagram of code disk area distribution provided for an exemplary embodiment of the present application;

[0073] Figure 3A schematic flow chart of a cutting control method of a wire marking machine provided as an exemplary embodiment of the present application;

[0074] Figure 4 A schematic diagram of code disk area distribution provided for an exemplary embodiment of the present application;

[0075] Figure 5 A schematic diagram of code disk area distribution provided for an exemplary embodiment of the present application;

[0076] Figure 6 A schematic flow chart of a cutting control method of a wire marking machine is provided for an exemplary embodiment of the present application;

[0077] Figure 7 A schematic structural diagram of a cutting control device of a wire marking machine provided by an exemplary embodiment of the present application;

[0078] Figure 8 A schematic structural diagram of a wire number machine provided as an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0079] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0080] The terms "first", "second", "third", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0081] An exemplary embodiment of the present application provides a cutting control method for a line numbering machine, which is applied to the line numbering machine, wherein the line numbering machine includes a stepper motor, a sensor, a transmission mechanism and a cutter, the transmission mechanism includes a code disk, the code disk at least includes a first light-shielding area, a first light-transmitting area, a second light-shielding area and a second light-transmitting area arranged in sequence in a preset direction, the first light-shielding area, the first light-transmitting area, the second light-shielding area and the second light-transmitting area are annular code disk areas, the origin corresponding to the sensor is located in the initial code disk area, the cutting point corresponding to the cutting action is located in the target code disk area, and the initial code disk area and the target code disk area are both arbitrary code disk areas.

[0082] Optionally, the preset direction may be clockwise or counterclockwise.

[0083] Optionally, the sensor is fixed on a fixed bracket on the periphery of the code disc, and the detection end of the sensor faces the code disc, so as to identify the area of ​​the code disc passing through the sensor.

[0084] Optionally, the cutter is connected to the stepper motor via the transmission mechanism, and the code disc is connected to the stepper motor via the transmission mechanism.

[0085] Optionally, the cutting action includes a half-cut action and a full-cut action, and the cutting points include a first cutting point corresponding to the half-cut action and a second cutting point corresponding to the full-cut action. The first cutting point and the second cutting point may be in the same code disk area, in which case, the target code disk area is one; the first cutting point and the second cutting point may also be in different code disk areas, in which case, the target code disk areas are two.

[0086] Please refer to the following Figure 1 , which exemplarily shows a structural diagram of a line number machine provided in an embodiment of the present application. Figure 1 As shown, the line number machine includes a sensor 110, a stepper motor (not shown in the figure), a transmission mechanism (not shown in the figure) and a cutter (not shown in the figure), the transmission mechanism includes a code disk 120, and the code disk 120 only includes a first light-shielding area 121, a first light-transmitting area 122, a second light-shielding area 123 and a second light-transmitting area 124 arranged in sequence in a preset direction (such as a clockwise direction), and the first light-shielding area 121, the first light-transmitting area 122, the second light-shielding area 123 and the second light-transmitting area 124 are annular code disk areas. The second light-shielding area 123 is the initial code disk area, and the origin 125 corresponding to the sensor 110 is located in the initial code disk area, that is, the second light-shielding area 123. The target code disk area is the first light-shielding area 121, and the first cutting point 126 corresponding to the half-cutting action and the second cutting point 127 corresponding to the full-cutting action are located in the target code disk area, that is, the first light-shielding area 121. The design of four code disk areas makes the code disk structure simpler and avoids complex multi-area design, which helps to reduce production and assembly costs, reduce the complexity of the line number machine, and makes debugging and maintenance more convenient; and makes the sensor response and data acquisition more intuitive and clear. The sensor only needs to switch between four areas and does not need to deal with more complex area changes. It can more accurately judge the position of the cutting point and the target code disk area, thereby improving positioning accuracy and response speed.

[0087] Please refer to the following Figure 2 The above-mentioned code disk areas are described. Figure 2 A schematic diagram of code disk area distribution provided for an exemplary embodiment of the present application, Figure 2 The code disk 220 and Figure 1The middle code disk is consistent with 120, Figure 2 The sensor 210 and Figure 1 The sensor 110 is consistent. Figure 2 As shown, the arc angle of the first light shielding area 221 can be greater than the arc angle of the second light shielding area 223, and the arc angle of the first light-transmitting area 222 can be smaller than the arc angle of the second light-transmitting area 224. Optionally, the arc angle of the first light shielding area 221 can be 179 degrees, and the arc angle of the second light shielding area 123 can be 22 degrees; the arc angle of the first light-transmitting area 222 can be 30 degrees, and the arc angle of the second light-transmitting area 224 can be 129 degrees.

[0088] In some embodiments, the wire marking machine may further include a controller for controlling the operation of other components and executing the cutting control method of the wire marking machine.

[0089] For details on the cutting control method of the above wire number machine, please refer to Figure 3 , which exemplarily shows a flow chart of a cutting control method of a wire number machine provided in an embodiment of the present application. Figure 3 As shown, the cutting control method of the wire marking machine includes the following S31-S34:

[0090] S31. When the origin is located at the position where the sensor is located, if a trigger instruction for a cutting action is detected, the stepper motor is controlled to rotate based on a target rotation direction corresponding to the cutting action, so that the stepper motor drives the code disc to rotate toward the target rotation direction through the transmission mechanism, and drives the cutter to move through the transmission mechanism.

[0091] Among them, the stepper motor can rotate precisely at a predetermined step angle. By precisely controlling the rotation of the stepper motor, the movement of the code disk and the cutter can be accurately controlled. The code disk is a rotating disk that is used in conjunction with a sensor to provide position information. When the stepper motor rotates, the code disk rotates, and the sensor reads the position data on the code disk to determine the current position. The cutter is a tool that performs the cutting action. The cutter is driven by a stepper motor and moves through a transmission mechanism to cut the object to be cut (such as a wire tube).

[0092] In some embodiments, the origin is located at the position of the sensor, which may indicate that the cutter is located at a preset cutter return position. After the stepper motor rotates, it may drive the cutter to move from the cutter return position to perform a cutting action.

[0093] In some embodiments, the cutting action is a half-cut action or a full-cut action, and the trigger instruction of the cutting action can be a first trigger instruction of the half-cut action, or a second trigger instruction of the full-cut action. The trigger instruction of the cutting action can be a command or signal for starting the cutting action, which can be a hardware input, a sensor state change, or a trigger condition inside the program, the purpose of which is to activate the stepper motor to drive the code disc and the cutter to complete the cutting action.

[0094] In some embodiments, the target rotation direction corresponding to the cutting action may be clockwise or counterclockwise, and the target rotation direction corresponding to the half-cut action is opposite to the target rotation direction corresponding to the full-cut action. For example, the target rotation direction corresponding to the half-cut action is clockwise, and the target rotation direction corresponding to the full-cut action is counterclockwise; or, the target rotation direction corresponding to the half-cut action is counterclockwise, and the target rotation direction corresponding to the full-cut action is clockwise. The target rotation direction corresponding to the half-cut action is opposite to the target rotation direction corresponding to the full-cut action, which can avoid mutual interference between the two cutting actions, especially in the case of continuous cutting, the opposite rotation direction can ensure that there is no physical interference between the two cutting actions, so that each cutting action is smoother and more precise; and the opposite rotation direction makes it easier to handle the two cutting actions, ensuring that there is no directional confusion during the operation, thereby improving the stability of the operation process.

[0095] S32. When it is detected that the sensor enters the target code disk area where the cutting point corresponding to the cutting action is located, the number of steps to be advanced is determined based on the target rotation direction corresponding to the cutting action.

[0096] In some embodiments, the number of steps to be traveled is the number of steps that the stepper motor needs to travel after the sensor enters the target code wheel area.

[0097] In some embodiments, it can be determined through sensor data detected by the sensor whether the sensor is detected to enter the target code disk area where the cutting point corresponding to the cutting action is located.

[0098] S33, controlling the stepping motor to rotate based on the number of steps to be advanced, so that the cutting point corresponding to the cutting action rotates to the position where the sensor is located.

[0099] In some embodiments, after detecting that the sensor enters the target code disk area where the cutting point corresponding to the cutting action is located, the stepper motor is continued to be controlled to rotate the number of steps to be moved, so that it can be determined that the cutting point corresponding to the cutting action has rotated to the position of the sensor.

[0100] S34, when it is detected that the cutting point corresponding to the cutting action rotates to the position of the sensor, it is determined that the cutting action performed by the cutter is finished.

[0101] In some embodiments, the cutting point corresponding to the cutting action is pre-set based on the depth or cutting angle corresponding to the cutting action. When the cutting point is aligned with the position of the sensor, it can be considered that the cutter has reached the end position corresponding to the cutting action. At this time, the cutting action is considered to be completed, thereby realizing automatic control of the cutting action.

[0102] In the embodiment of the present application, the wire number machine includes a stepper motor, a sensor, a transmission mechanism and a cutter, the transmission mechanism includes a code disk, the code disk includes at least a first light-shielding area, a first light-transmitting area, a second light-shielding area and a second light-transmitting area arranged in sequence in a preset direction, the first light-shielding area, the first light-transmitting area, the second light-shielding area and the second light-transmitting area are annular code disk areas, the origin corresponding to the sensor is located in the initial code disk area, the cutting point corresponding to the cutting action is located in the target code disk area, the initial code disk area and the target code disk area are both arbitrary code disk areas; by detecting a trigger instruction for the cutting action when the origin is located at the position where the sensor is located, the control The stepper motor is controlled to rotate based on the target rotation direction corresponding to the cutting action, so that the stepper motor drives the code disk to rotate in the target rotation direction through the transmission mechanism, and the stepper motor drives the cutter to move through the transmission mechanism; when it is detected that the sensor enters the target code disk area where the cutting point corresponding to the cutting action is located, the number of steps to be advanced is determined based on the target rotation direction corresponding to the cutting action; the stepper motor is controlled to rotate based on the number of steps to be advanced, so that the cutting point corresponding to the cutting action rotates to the position of the sensor; when it is detected that the cutting point corresponding to the cutting action rotates to the position of the sensor, it is determined that the cutting action of the cutter is finished. Thus, the recording starts when the cutter and the sensor are at the code disk origin position, and the position information of the current cutter relative to the code disk can be accurately determined by using the sensor to identify each code disk area. When the transition point of two adjacent code disk areas is detected, the number of steps that the stepper motor should continue to advance can be accurately calculated, so that the cutter reaches the ideal cutting point, thereby reducing the influence of the cumulative error of the stepper motor on the cutting position during operation, thereby improving the cutting accuracy of the line number machine and improving the operation efficiency of the line number machine.

[0103] In some embodiments, with respect to the detection method in S32 above in which the sensor enters the target code disk area where the cutting point corresponding to the cutting action is located, the method further includes S301-S303:

[0104] S301. In the case where the above-mentioned origin is located at the position where the above-mentioned sensor is located, if the trigger instruction of the above-mentioned cutting action is detected, the waiting area to be traveled from the cutting point corresponding to the above-mentioned cutting action to the target rotation direction corresponding to the above-mentioned cutting action to the above-mentioned origin is determined, and the number of the above-mentioned code disk areas contained in the above-mentioned waiting area is determined, and the above-mentioned waiting area includes at least two code disk areas.

[0105] Among them, the area to be advanced is the area in the code disk, specifically the code disk area of ​​the sensor that the code disk needs to pass through during the execution of this cutting action. The area to be advanced includes at least two code disk areas, so that the switching of the code disk area occurs at least once in the area to be advanced, ensuring that the sensor detects code disk areas of different area types at least twice during the entire cutting action. By switching between multiple code disk areas, the actual position of the cutting action can be captured more accurately. Even if there are some slight deviations or errors in the code disk area, after switching to the target code disk area, a more accurate positioning result can still be obtained, reducing data fluctuations caused by environmental changes (such as light changes, sensor aging, vibration, etc.), and effectively improving the accuracy and robustness of the cutting action execution.

[0106] by Figure 4 For example, Figure 4 A schematic diagram of code disk area distribution provided by an exemplary embodiment of the present application is shown in FIG. Figure 4 , the line number machine includes a sensor 410 and a code disk 420, and the code disk 420 only includes a first light-shielding area 421, a first light-transmitting area 422, a second light-shielding area 423, and a second light-transmitting area 424 arranged in a clockwise direction. The second light-shielding area 423 is the initial code disk area, and the origin 425 corresponding to the sensor 410 is located in the initial code disk area, that is, the second light-shielding area 423. The target code disk area is the first light-shielding area 421, and the first cutting point 426 corresponding to the half-cut action and the second cutting point 427 corresponding to the full-cut action are located in the target code disk area, that is, the first light-shielding area 421.

[0107] Combination Figure 4 , taking the cutting action as a half-cut action as an example, assuming that the target rotation direction corresponding to the half-cut action is clockwise, then when the origin 425 is located at the position where the sensor 410 is located, if the first trigger instruction of the half-cut action is detected, it is determined that the waiting area 428 from the first cutting point 426 corresponding to the half-cut action to the corresponding target rotation direction (clockwise) to the origin 425 is Figure 4 The area 428 in the middle curved line box.

[0108] S302: Determine the number of times the code disk area in the area to be moved is to be changed based on the number of the code disk areas included in the area to be moved.

[0109] Among them, the number of times the above-mentioned area type is to be changed in the above-mentioned area to be traveled refers to the number of switching times of the shading area type and the light-transmitting area type detected by the sensor in the area to be traveled, that is, switching from one area type code disk area to another area type code disk area.

[0110] S303: Determine, based on the number of pending changes, whether it is detected that the sensor enters the target code disk area where the cutting point corresponding to the cutting action is located.

[0111] In some embodiments, when the number of changes of the code disk area in the area to be advanced reaches the number of changes to be advanced, it can be considered that the sensor is detected to have entered the target code disk area where the cutting point corresponding to the cutting action is located.

[0112] In the embodiment of the present application, by setting clear shading areas and light-transmitting areas on the code disk, combined with the detection of the sensor, the position corresponding to the sensor in the code disk can be accurately determined, so that the cutting action is completed at the exact cutting point, effectively reducing the positioning accumulation error caused by the angle deviation of the stepper motor rotation, thereby improving the overall positioning accuracy. In addition, the line number machine supports a variety of cutting actions (such as half-cutting actions and full-cutting actions), and can determine the corresponding target rotation direction and cutting point according to different cutting requirements, which increases its application range.

[0113] In some embodiments, in the above S302, determining the number of times the above code disk area in the above area to be traveled is to be changed based on the number of the above code disk areas included in the above area to be traveled includes S3021-S3023:

[0114] S3021. Determine whether the cutting point corresponding to the cutting action and the origin are located in the same code disk area.

[0115] S3022. When the cutting point and the origin are not located in the same code disk area, the number of the code disk areas included in the area to be advanced is reduced by 1 to obtain the number of times the code disk areas in the area to be advanced are to be changed.

[0116] Still with the above Figure 4For example, the above-mentioned cutting action is a half-cut action, and the corresponding target rotation direction is clockwise. The number of code disk areas included in the area to be advanced 428 is 3, specifically: the first light-shielding area 421, the second light-transmitting area 422, and the second light-shielding area 423. Then, the number of code disk areas included in the area to be advanced 3 is subtracted by 1, and the number of times the above-mentioned area type is to be changed in the above-mentioned area to be advanced 428 is 2. That is to say, in the process of executing the half-cut action, when the code disk area passing through the sensor 410 needs to change twice, it can be determined that the sensor 410 is detected to enter the target code disk area where the first cutting point 426 corresponding to the above-mentioned half-cut action is located, that is, the first light-shielding area 421. Among them, the two changes of the code disk area are: from the second light-shielding area 423 to the first light-transmitting area 422, and then from the first light-transmitting area 422 to the first light-shielding area 421.

[0117] S3023: When the cutting point and the origin are located in the same code disk area, the number of code disk areas included in the area to be advanced is used as the number of times the code disk area in the area to be advanced is to be changed.

[0118] Among them, the cutting point corresponding to the cutting action and the above-mentioned origin are located in the same code disk area, indicating that the initial code disk area and the target code disk area are the same code disk area, and the area to be advanced includes all the code disk areas in the code disk, which means that during the execution of the cutting action, all the code disk areas in the code disk need to be controlled to pass through the sensor.

[0119] by Figure 5 For example, Figure 5 A schematic diagram of code disk area distribution provided by an exemplary embodiment of the present application is shown in FIG. Figure 5 , the line number machine includes a sensor 510 and a code disk 520, and the code disk only includes a first light-shielding area 521, a first light-transmitting area 522, a second light-shielding area 523, and a second light-transmitting area 524 arranged in a clockwise direction. The second light-shielding area 523 is the initial code disk area, and the origin 525 corresponding to the above-mentioned sensor 510 is located in the initial code disk area, that is, the second light-shielding area 523. The target code disk area is the first light-shielding area 521, and the first cutting point 526 corresponding to the half-cutting action is located in the second light-transmitting area 524, and the second cutting point 527 corresponding to the full-cutting action is located in the first light-shielding area 521. Taking the cutting action as a full-cutting action and the corresponding target rotation direction as a counterclockwise direction as an example, Figure 5The area to be traveled in includes four code disk areas, namely: the first light-shielding area 521, the second light-transmitting area 524, the second light-shielding area 523 and the first light-transmitting area 522. The second cutting point 527 and the origin 525 corresponding to the full-cut action are located in the same code disk area, and the number of code disk areas 4 included in the area to be traveled is used as the number of changes to be made to the above-mentioned area type in the area to be traveled. That is to say, in the process of performing the half-cut action, when the code disk area passing through the sensor 510 needs to change 4 times, it can be determined that the sensor 510 is detected to enter the target code disk area where the second cutting point 527 corresponding to the full-cut action is located, that is, the first light-shielding area 521. Among them, the four changes of the code disk area are: from the first light-shielding area 521 to the first light-transmitting area 522, then from the first light-transmitting area 522 to the second light-shielding area 523, then from the second light-shielding area 523 to the second light-transmitting area 524, and then from the second light-transmitting area 524 to the first light-shielding area 521.

[0120] In the embodiment of the present application, by accurately calculating the number of changes in the code disk area within the area to be advanced, the position of the sensor and the cutting point can be more accurately controlled, thereby effectively reducing deviations and errors during the execution of the cutting action and improving the accuracy of the cutting.

[0121] In some embodiments, in S303, determining whether the sensor is detected to enter the target code disk area where the cutting point corresponding to the cutting action is located based on the number of times to be changed includes S3031-S3034:

[0122] S3031. When it is detected that the stepper motor rotates one step, the sensor data at the current moment is collected through the sensor.

[0123] In some embodiments, the sensor may be a photoelectric sensor, which may include a photoelectric detection element for detecting an object to be detected and converting the detected object into an electrical signal for output.

[0124] S3032. Determine the area type corresponding to the sensor data, where the area type corresponding to the sensor data is the area type of the code disk area passing through the sensor at the time of collecting the sensor data.

[0125] In some embodiments, in S3032, determining the area type corresponding to the above-mentioned sensor data includes: judging whether the above-mentioned sensor data is greater than a preset sensor data threshold; if so, determining that the area type corresponding to the above-mentioned sensor data is the above-mentioned light-transmitting area type; if not, determining that the area type corresponding to the above-mentioned sensor data is the above-mentioned light-shielding area type.

[0126] The area types of the first light-shielding area and the second light-shielding area are light-shielding area types; and the area types of the first light-transmitting area and the second light-transmitting area are light-transmitting area types.

[0127] Optionally, the preset sensor data threshold may be pre-set sensor data for distinguishing between the light-shielding area type and the light-transmitting area type. For example, the preset sensor data threshold may be 1000.

[0128] In the embodiment of the present application, by processing different area types (light-shielding area type and light-transmitting area type), it is possible to adapt to complex code disc structures. When the area to be traveled includes multiple code disc areas, the sensor can accurately distinguish different area types and detect the switching of area types. This method provides higher flexibility and a wider range of applications, and can adapt to different code disc designs and cutting requirements.

[0129] S3033: When it is detected that the area type corresponding to the above sensor data has changed, it is determined that the above code disk area has changed, and the number of times the code disk area has changed in the above area to be advanced is updated.

[0130] Since the code disk areas of various area types in the code disk are arranged alternately, when it is detected that the area type corresponding to the sensor data has changed, it is determined that the code disk area has changed.

[0131] In some implementations, whenever it is determined that the code disk area has changed, 1 is added to the current number of changes to obtain a new number of changes.

[0132] S3034: If the number of times the above-mentioned changes has reached the number of times to be changed, it is determined that the above-mentioned sensor has been detected to enter the target code disk area where the cutting point corresponding to the above-mentioned cutting action is located.

[0133] When the number of changes reaches the number of pending changes, it means that the edge point of the target code disk area reaches the position of the sensor, that is, the sensor enters the target code disk area where the cutting point corresponding to the cutting action is located.

[0134] In the embodiment of the present application, by collecting sensor data in real time and comparing it with a preset threshold, the system can accurately determine the type of the current code disk area (light-shielding area or light-transmitting area), and can detect changes in sensor data in real time, and update the number of changes when the area type switches, so that changes in the code disk area can be detected quickly, and the sensor can be detected in time to enter the target code disk area, and then the corresponding operation can be performed, which effectively improves the position detection accuracy of the code disk area, thereby improving the accuracy of the cutter operation.

[0135] In some embodiments, in S32, the number of steps to be advanced is determined based on the target rotation direction corresponding to the cutting action, including S321-S322:

[0136] S321, obtaining a preset number of steps between a cutting point corresponding to the cutting action and an edge point of a target code disk region where the cutting point is located in the target rotation direction.

[0137] S322, determining the above-mentioned preset number of steps as the number of steps to be taken.

[0138] Still with the above Figure 4 For example, the preset number of steps between the first cutting point 426 corresponding to the half-cutting action and the target code disk area where the first cutting point 426 is located, that is, the edge point A in the clockwise direction of the first light-shielding area 421 is the number of steps to be advanced. That is to say, when the edge point A passes through the sensor 410, it is recognized by the sensor 410, and it is determined that the sensor 410 enters the target code disk area where the first cutting point 426 corresponding to the half-cutting action is located, that is, the first light-shielding area 421. At this time, it can be determined that the number of steps to be advanced is the preset number of steps between the first cutting point 426 and the edge point A, and the preset number of steps is known data, which depends on the structural design of the code disk.

[0139] In the embodiment of the present application, by taking the number of steps between the cutting point and the edge point of the target code disk area as the number of steps to be advanced, the number of rotation steps of the stepper motor can be accurately controlled. When the edge point passes through the sensor, the system will determine whether the cutting point has been reached according to the preset number of steps, thereby ensuring the accurate execution of the cutting action, avoiding cutting errors caused by inaccurate steps, and effectively preventing cutting deviations caused by excessive or insufficient motor rotation, thereby improving the cutting quality.

[0140] Figure 6 A schematic flow chart of a cutting control method of a wire marking machine is provided for an exemplary embodiment of the present application. The cutting control method of the wire marking machine specifically includes S601-S608:

[0141] S601. When the origin is located at the position of the sensor, a trigger instruction for a cutting action is detected.

[0142] S602, controlling the stepper motor to rotate based on the target rotation direction corresponding to the cutting action.

[0143] Optionally, S601-S602 are consistent with the above S31 and are not described in detail here.

[0144] S603, determine whether the sensor is detected to enter the target code disk area where the cutting point corresponding to the cutting action is located. If not, return to execute S602 until it is determined that the sensor is detected to enter the target code disk area where the cutting point corresponding to the cutting action is located, and execute S604; if yes, directly execute S604.

[0145] Optionally, S603 is consistent with the above S3031-S3034 and will not be repeated here.

[0146] S604: Obtain a preset number of steps between a cutting point corresponding to the cutting action and an edge point of a target code disk region where the cutting point is located in a target rotation direction.

[0147] S605: Determine the preset number of steps as the number of steps to be taken.

[0148] S606, controlling the stepper motor to rotate based on the number of steps to be traveled.

[0149] S607, determine whether the cutting point corresponding to the cutting action is detected to rotate to the position of the sensor. If not, return to execute S606 until it is detected that the cutting point corresponding to the cutting action rotates to the position of the sensor, and execute S608; if yes, directly execute S608.

[0150] S608: Determine whether the cutting action of the cutter is completed.

[0151] Optionally, S604-S608 are consistent with the above-mentioned S32-S33 and are not repeated here.

[0152] In the embodiment of the present application, by judging whether the sensor has entered the target code disk area or whether the cutting point has reached the sensor location, the position of the cutting point can be detected and calibrated in real time to ensure that each cutting is based on the precise cutting point position, thereby greatly improving the cutting accuracy and avoiding cutting errors caused by position offset.

[0153] In some embodiments, after determining that the cutter has finished performing the cutting action, the method further includes: controlling the stepper motor to rotate so that the stepper motor drives the cutter and the code disc to rotate in the opposite direction of the target rotation direction through the transmission mechanism until it is detected that the origin returns to the position of the sensor.

[0154] Specifically, when the sensor is detected to enter the initial code disk area, the number of steps to be moved is determined based on the opposite direction of the target rotation direction, and then the stepper motor is controlled to rotate the number of steps to be moved to determine that the origin is detected to return to the position where the sensor is located. That is, the reset operation of the cutter enables the cutter to return to the initial working state and prepare for the next cutting action.

[0155] Optionally, the detection method of the sensor entering the above-mentioned initial code disk area is consistent with the detection method of the sensor entering the target code disk area in the above-mentioned S301-S305, and will not be repeated here.

[0156] In the embodiment of the present application, by rotating in the opposite direction until returning to the origin, it is ensured that the cutter can be accurately restored to the starting position, providing a reliable reference for subsequent operations and avoiding cutting errors caused by inaccurate resetting. Automatic resetting reduces equipment failures caused by human or equipment errors and improves the reliability and work efficiency of the wire number machine.

[0157] Please refer to the following Figure 7 , which is a schematic diagram of the structure of a cutting control device of a wire marking machine provided by an exemplary embodiment of the present application. The wire marking machine includes a stepper motor, a sensor, a transmission mechanism and a cutter, the transmission mechanism includes a code disk, the code disk at least includes a first light-shielding area, a first light-transmitting area, a second light-shielding area and a second light-transmitting area arranged in sequence in a preset direction, the first light-shielding area, the first light-transmitting area, the second light-shielding area and the second light-transmitting area are annular code disk areas, the origin corresponding to the sensor is located in the initial code disk area, the cutting point corresponding to the cutting action is located in the target code disk area, and the initial code disk area and the target code disk area are both arbitrary code disk areas. As Figure 7 As shown, the cutting control device 700 of the wire marking machine includes:

[0158] The first control module 701 is used for controlling the stepper motor to rotate based on the target rotation direction corresponding to the cutting action when the origin is located at the position where the sensor is located, if a trigger instruction of the cutting action is detected, so that the stepper motor drives the code disc to rotate in the target rotation direction through the transmission mechanism, and drives the cutter to move through the transmission mechanism;

[0159] A first determination module 702 is used to determine the number of steps to be advanced based on the target rotation direction corresponding to the cutting action when the sensor is detected to enter the target code disk area where the cutting point corresponding to the cutting action is located;

[0160] The second control module 703 is used to control the stepping motor to rotate based on the number of steps to be moved, so that the cutting point corresponding to the cutting action rotates to the position where the sensor is located;

[0161] The second determining module 704 is used to determine that the cutting action performed by the cutter is finished when it is detected that the cutting point corresponding to the cutting action rotates to the position where the sensor is located.

[0162] In a possible implementation, the cutting action is a half-cutting action or a full-cutting action, and the target rotation direction corresponding to the half-cutting action is opposite to the target rotation direction corresponding to the full-cutting action.

[0163] In a possible implementation, the apparatus 700 further includes:

[0164] A third determination module is used for determining, when the origin is located at the position where the sensor is located, a waiting area from the cutting point corresponding to the cutting action to the target rotation direction corresponding to the cutting action to the origin if a trigger instruction of the cutting action is detected, and determining the number of the code disk areas included in the waiting area, wherein the waiting area includes at least two code disk areas;

[0165] A fourth determining module, configured to determine the number of times the code disk area in the to-be-traveled area is to be changed based on the number of the code disk areas included in the to-be-traveled area;

[0166] The fifth determination module is used to determine whether the sensor is detected to enter the target code disk area where the cutting point corresponding to the cutting action is located based on the number of pending changes.

[0167] In a possible implementation, the fourth determining module includes:

[0168] A first determining unit, used to determine whether the cutting point corresponding to the cutting action and the origin are located in the same code disk area;

[0169] A second determining unit is used for, when the cutting point and the origin are not located in the same code disk area, reducing the number of the code disk areas included in the area to be advanced by 1 to obtain the number of pending changes of the code disk areas in the area to be advanced;

[0170] The third determining unit is used for, when the cutting point and the origin are located in the same code disk area, taking the number of code disk areas included in the area to be advanced as the number of times the code disk areas in the area to be advanced are to be changed.

[0171] In a possible implementation, the fifth determining module includes:

[0172] A collection unit, used to collect sensor data at the current moment through the sensor when detecting that the stepping motor rotates one step;

[0173] A fourth determining unit, configured to determine a region type corresponding to the sensor data, wherein the region type corresponding to the sensor data is a region type of a code disk region passing through the sensor at the time of collecting the sensor data;

[0174] a fifth determining unit, configured to determine that the code disk area has changed when a change in the area type corresponding to the sensor data is detected, and update the number of times the code disk area has changed in the area to be traveled;

[0175] The sixth determining unit is used to determine that the sensor is detected to enter the target code disk area where the cutting point corresponding to the cutting action is located when the number of changes has reached the number of changes to be made.

[0176] In a possible implementation, the first determining module 701 includes:

[0177] An acquisition unit, used for acquiring a preset number of steps between a cutting point corresponding to the cutting action and an edge point of a target code disk region where the cutting point is located in the target rotation direction;

[0178] The seventh determining unit is used to determine the above-mentioned preset number of steps as the number of steps to be traveled.

[0179] In a possible implementation manner, the fourth determining unit includes:

[0180] A judging subunit, used to judge whether the above sensor data is greater than a preset sensor data threshold;

[0181] A first determining subunit, configured to determine that the area type corresponding to the sensor data is the light-transmitting area type when the sensor data is greater than a preset sensor data threshold;

[0182] The second determining subunit is configured to determine that the area type corresponding to the sensor data is the light-shielding area type when the sensor data is not greater than a preset sensor data threshold.

[0183] In a possible implementation, the arc angle of the first light-shielding area is greater than the arc angle of the second light-shielding area, and the arc angle of the first light-transmitting area is smaller than the arc angle of the second light-transmitting area;

[0184] The above-mentioned initial code disk area is the above-mentioned second shading area, the target code disk area corresponding to the above-mentioned half-cut action is the above-mentioned first shading area, the target code disk area corresponding to the above-mentioned full-cut action is the above-mentioned first shading area, the target rotation direction corresponding to the above-mentioned half-cut action is clockwise, and the target rotation direction corresponding to the above-mentioned full-cut action is counterclockwise.

[0185] In a possible implementation, the apparatus 700 further includes:

[0186] The third control module is used to control the rotation of the stepper motor so that the stepper motor drives the cutter and the encoder to rotate in the opposite direction of the target rotation direction through the transmission mechanism until it is detected that the origin returns to the position of the sensor.

[0187] The division of each module in the cutting control device 700 of the wire numbering machine is only for illustration. In other embodiments, the cutting control device of the wire numbering machine can be divided into different modules as needed to complete all or part of the functions of the cutting control device of the wire numbering machine. The implementation of each module in the cutting control device of the wire numbering machine provided in the embodiment of this specification can be in the form of a computer program. The computer program can be run on a terminal or a server. The program module composed of the computer program can be stored in the memory of the terminal or the server. When the computer program is executed by the processor, all or part of the steps of the cutting control method of the wire numbering machine described in the embodiment of this specification are implemented.

[0188] See next Figure 8 , which is a schematic diagram of the structure of a line number machine provided by an exemplary embodiment of the present application. Figure 8 As shown, the line number machine 800 may include: the line number machine includes a stepper motor, a sensor, a transmission mechanism, a cutter, a processor 810 and a memory 820, the transmission mechanism includes a code disk, the code disk at least includes a first light-shielding area, a first light-transmitting area, a second light-shielding area and a second light-transmitting area arranged in sequence in a preset direction, the first light-shielding area, the first light-transmitting area, the second light-shielding area and the second light-transmitting area are annular code disk areas, the origin corresponding to the sensor is located in the initial code disk area, the cutting point corresponding to the cutting action is located in the target code disk area, the initial code disk area and the target code disk area are both arbitrary code disk areas; the line number machine 800 may also include a user interface 830, a network interface 840 and a communication bus 850.

[0189] The processor 810 may include one or more processing cores. The processor 810 uses various interfaces and lines to connect the various parts of the entire line number machine 800, and executes various functions and processes data of the line number machine 800 by running or executing instructions, programs, code sets or instruction sets stored in the memory 820, and calling data stored in the memory 820. Optionally, the processor 810 can be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor 810 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 810, but may be implemented separately through a chip.

[0190] The memory 820 may include a random access memory (RAM) or a read-only memory (Read-Only Memory). Optionally, the memory 820 includes a non-transitory computer-readable storage medium. The memory 820 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 820 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a receiving function, a control function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 820 may optionally be at least one storage device located away from the aforementioned processor 810. As Figure 8 As shown, the memory 820 as a computer storage medium may include an operating system, a network communication module, a user interface module, and program instructions.

[0191] Optionally, the communication bus 850 is used to achieve connection and communication between these components. The user interface 830 may include a display screen (Display), a camera (Camera), and may also include a standard wired interface and a wireless interface; the network interface 840 may optionally include a standard wired interface and a wireless interface (such as a Wi-Fi interface).

[0192] exist Figure 8 In the line number machine 800 shown, the processor 810 can be used to call the program instructions stored in the memory 820 and specifically perform the following operations:

[0193] In the case where the origin is located at the position where the sensor is located, if a trigger instruction of a cutting action is detected, the stepper motor is controlled to rotate based on the target rotation direction corresponding to the cutting action, so that the stepper motor drives the code disc to rotate in the target rotation direction through the transmission mechanism, and the stepper motor drives the cutter to move through the transmission mechanism;

[0194] When it is detected that the sensor enters the target code disk area where the cutting point corresponding to the cutting action is located, the number of steps to be advanced is determined based on the target rotation direction corresponding to the cutting action;

[0195] Controlling the stepping motor to rotate based on the number of steps to be advanced, so that the cutting point corresponding to the cutting action rotates to the position where the sensor is located;

[0196] When it is detected that the cutting point corresponding to the cutting action rotates to the position where the sensor is located, it is determined that the cutting action performed by the cutter is finished.

[0197] In a possible implementation, the cutting action is a half-cutting action or a full-cutting action, and the target rotation direction corresponding to the half-cutting action is opposite to the target rotation direction corresponding to the full-cutting action.

[0198] In a possible implementation, the method further includes:

[0199] In the case where the origin is located at the position where the sensor is located, if a trigger instruction of the cutting action is detected, a waiting area between the cutting point corresponding to the cutting action and the target rotation direction corresponding to the cutting action to the origin is determined, and the number of the code disk areas included in the waiting area is determined, and the waiting area includes at least two code disk areas;

[0200] Determining the number of times the code disk area is to be changed in the area to be traveled based on the number of the code disk areas included in the area to be traveled;

[0201] Based on the above number of pending changes, it is determined whether it is detected that the above sensor enters the target code disk area where the cutting point corresponding to the above cutting action is located.

[0202] In a possible implementation, the determining the number of times the code disk area in the area to be traveled to be changed based on the number of the code disk areas included in the area to be traveled to include:

[0203] Determine whether the cutting point corresponding to the cutting action and the origin are located in the same code disk area;

[0204] In the case where the cutting point and the origin are not located in the same code disk area, the number of the code disk areas included in the area to be advanced is reduced by 1 to obtain the number of times the code disk areas in the area to be advanced are to be changed;

[0205] In the case that the cutting point and the origin are located in the same code disk area, the number of code disk areas included in the area to be advanced is taken as the number of times the code disk area in the area to be advanced is to be changed.

[0206] In a possible implementation, the determining whether the sensor is detected to enter the target code disk area where the cutting point corresponding to the cutting action is located based on the number of pending changes includes:

[0207] When it is detected that the stepper motor rotates one step, the sensor data at the current moment is collected through the sensor;

[0208] Determine the area type corresponding to the sensor data, where the area type corresponding to the sensor data is the area type of the code disk area passing through the sensor at the time when the sensor data is collected;

[0209] When it is detected that the area type corresponding to the sensor data changes, it is determined that the code disk area changes, and the number of changes of the code disk area in the area to be traveled is updated;

[0210] If the number of times the above-mentioned changes has reached the number of times to be changed, it is determined that the above-mentioned sensor has been detected to enter the target code disk area where the cutting point corresponding to the above-mentioned cutting action is located.

[0211] In a possible implementation, determining the number of steps to be advanced based on the target rotation direction corresponding to the cutting action includes:

[0212] Obtaining a preset number of steps between a cutting point corresponding to the cutting action and an edge point of a target code disk region where the cutting point is located in the target rotation direction;

[0213] The above-mentioned preset number of steps is determined as the number of steps to be traveled.

[0214] In a possible implementation, determining the area type corresponding to the sensor data includes:

[0215] Determine whether the above sensor data is greater than a preset sensor data threshold;

[0216] If yes, determining that the area type corresponding to the sensor data is the light-transmitting area type;

[0217] If not, it is determined that the area type corresponding to the sensor data is the light-shielding area type.

[0218] In a possible implementation, the arc angle of the first light-shielding area is greater than the arc angle of the second light-shielding area, and the arc angle of the first light-transmitting area is smaller than the arc angle of the second light-transmitting area;

[0219] The above-mentioned initial code disk area is the above-mentioned second shading area, the target code disk area corresponding to the above-mentioned half-cut action is the above-mentioned first shading area, the target code disk area corresponding to the above-mentioned full-cut action is the above-mentioned first shading area, the target rotation direction corresponding to the above-mentioned half-cut action is clockwise, and the target rotation direction corresponding to the above-mentioned full-cut action is counterclockwise.

[0220] In a possible implementation, after determining that the cutter has finished performing the cutting action, the method further includes:

[0221] The stepper motor is controlled to rotate so that the stepper motor drives the cutter and the encoder to rotate in the opposite direction of the target rotation direction through the transmission mechanism until it is detected that the origin returns to the position where the sensor is located.

[0222] The present application also provides a computer-readable storage medium, which stores instructions, and when the instructions are executed on a computer or a processor, the computer or the processor executes one or more steps in the above embodiment. If the components of the cutting control device of the above-mentioned wire number machine are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above-mentioned computer-readable storage medium.

[0223] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The above-mentioned computer program product includes one or more computer instructions. When the above-mentioned computer program instructions are loaded and executed on a computer, the above-mentioned process or function according to the embodiment of the present application is generated in whole or in part. The above-mentioned computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable devices. The above-mentioned computer instructions can be stored in a computer-readable storage medium or transmitted by the above-mentioned computer-readable storage medium. The above-mentioned computer instructions can be transmitted from a website site, a computer, a server or a data center to another website site, a computer, a server or a data center by wired (such as coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (such as infrared, wireless, microwave, etc.) mode. The above-mentioned computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integrated. The above-mentioned available media can be magnetic media (for example, floppy disks, hard disks, tapes), optical media (for example, digital versatile discs (DVD)), or semiconductor media (for example, solid state disks (SSD)), etc.

[0224] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes. In the absence of conflict, the technical features in this embodiment and the implementation scheme can be combined arbitrarily.

[0225] The above-mentioned embodiments are merely preferred embodiments of the present application and are not intended to limit the scope of the present application. Without departing from the design spirit of the present application, various modifications and improvements made to the technical solutions of the present application by ordinary technicians in this field should fall within the protection scope determined by the claims of the present application.

Claims

1. A cutting control method for a wire marking machine, characterized in that: The wire number machine includes a stepper motor, a sensor, a transmission mechanism and a cutter, the transmission mechanism includes a code disk, the code disk includes at least a first light-shielding area, a first light-transmitting area, a second light-shielding area and a second light-transmitting area arranged in sequence in a preset direction, the first light-shielding area, the first light-transmitting area, the second light-shielding area and the second light-transmitting area are annular code disk areas, the origin corresponding to the sensor is located in the initial code disk area, the cutting point corresponding to the cutting action is located in the target code disk area, and the initial code disk area and the target code disk area are both arbitrary code disk areas; The method comprises: In the case where the origin is located at the position where the sensor is located, if a trigger instruction of a cutting action is detected, the stepper motor is controlled to rotate based on a target rotation direction corresponding to the cutting action, so that the stepper motor drives the code disk to rotate in the target rotation direction through the transmission mechanism, and the stepper motor drives the cutter to move through the transmission mechanism; When it is detected that the sensor enters the target code disk area where the cutting point corresponding to the cutting action is located, the number of steps to be advanced is determined based on the target rotation direction corresponding to the cutting action; Controlling the stepping motor to rotate based on the number of steps to be advanced, so that the cutting point corresponding to the cutting action rotates to the position where the sensor is located; When it is detected that the cutting point corresponding to the cutting action rotates to the position where the sensor is located, it is determined that the cutting action performed by the cutter is finished.

2. The method according to claim 1, characterized in that The cutting action is a half-cut action or a full-cut action, and the target rotation direction corresponding to the half-cut action is opposite to the target rotation direction corresponding to the full-cut action.

3. The method according to claim 1, characterized in that The method further comprises: In the case where the origin is located at the position where the sensor is located, if a trigger instruction of the cutting action is detected, then a waiting area between the cutting point corresponding to the cutting action and the target rotation direction corresponding to the cutting action to the origin is determined, and the number of the code disk areas included in the waiting area is determined, and the waiting area includes at least two code disk areas; Determining the number of times the code disk area is to be changed in the area to be traveled based on the number of the code disk areas included in the area to be traveled; Based on the number of pending changes, it is determined whether it is detected that the sensor enters the target code disk area where the cutting point corresponding to the cutting action is located.

4. The method according to claim 3, characterized in that The determining the number of times the code disk area in the area to be traveled is to be changed based on the number of the code disk areas included in the area to be traveled includes: Determine whether the cutting point corresponding to the cutting action and the origin are located in the same code disk area; In the case where the cutting point and the origin are not located in the same code disk area, the number of the code disk areas included in the area to be advanced is reduced by 1 to obtain the number of times the code disk areas in the area to be advanced are to be changed; In the case where the cutting point and the origin are located in the same code disk area, the number of code disk areas included in the area to be advanced is used as the number of times the code disk area in the area to be advanced is to be changed.

5. The method according to claim 3, characterized in that The determining, based on the number of pending changes, whether it is detected that the sensor enters the target code disk area where the cutting point corresponding to the cutting action is located includes: When it is detected that the stepper motor rotates one step, the sensor data at the current moment is collected by the sensor; Determine the area type corresponding to the sensor data, where the area type corresponding to the sensor data is the area type of the code disk area passing through the sensor at the time of collecting the sensor data; When it is detected that the area type corresponding to the sensor data changes, it is determined that the code disk area changes, and the number of times the code disk area has changed in the area to be traveled is updated; If the number of changes has reached the number of changes to be made, it is determined that the sensor is detected to enter the target code disk area where the cutting point corresponding to the cutting action is located.

6. The method according to claim 1, characterized in that Determining the number of steps to be advanced based on the target rotation direction corresponding to the cutting action includes: Obtaining a preset number of steps between a cutting point corresponding to the cutting action and an edge point of a target code disk region where the cutting point is located in the target rotation direction; The preset number of steps is determined as the number of steps to be traveled.

7. The method according to claim 5, characterized in that Determining the area type corresponding to the sensor data includes: Determining whether the sensor data is greater than a preset sensor data threshold; If yes, determining that the area type corresponding to the sensor data is the light-transmitting area type; If not, it is determined that the area type corresponding to the sensor data is the light-shielding area type.

8. The method according to claim 2, characterized in that The arc angle of the first light-shielding area is greater than the arc angle of the second light-shielding area, and the arc angle of the first light-transmitting area is smaller than the arc angle of the second light-transmitting area; The initial code disk area is the second shading area, the target code disk area corresponding to the half-cut action is the first shading area, the target code disk area corresponding to the full-cut action is the first shading area, the target rotation direction corresponding to the half-cut action is clockwise, and the target rotation direction corresponding to the full-cut action is counterclockwise.

9. The method according to claim 1, characterized in that After determining that the cutting knife has finished performing the cutting action, the method further includes: The stepper motor is controlled to rotate so that the stepper motor drives the cutter and the code disc to rotate in the opposite direction of the target rotation direction through the transmission mechanism until it is detected that the origin returns to the position where the sensor is located.

10. A cutting control device for a wire marking machine, characterized in that: The wire number machine includes a stepper motor, a sensor, a transmission mechanism and a cutter, the transmission mechanism includes a code disk, the code disk includes at least a first light-shielding area, a first light-transmitting area, a second light-shielding area and a second light-transmitting area arranged in sequence in a preset direction, the first light-shielding area, the first light-transmitting area, the second light-shielding area and the second light-transmitting area are annular code disk areas, the origin corresponding to the sensor is located in the initial code disk area, the cutting point corresponding to the cutting action is located in the target code disk area, and the initial code disk area and the target code disk area are both arbitrary code disk areas; The device comprises: A first control module is used for controlling the stepper motor to rotate based on a target rotation direction corresponding to the cutting action if a trigger instruction of a cutting action is detected when the origin is located at the position where the sensor is located, so that the stepper motor drives the code disk to rotate in the target rotation direction through the transmission mechanism, and drives the cutter to move through the transmission mechanism; A first determination module, configured to determine the number of steps to be advanced based on a target rotation direction corresponding to the cutting action when detecting that the sensor enters a target code disk area where a cutting point corresponding to the cutting action is located; A second control module is used to control the stepping motor to rotate based on the number of steps to be moved, so that the cutting point corresponding to the cutting action rotates to the position where the sensor is located; The second determining module is used to determine that the cutting action performed by the cutter is finished when it is detected that the cutting point corresponding to the cutting action rotates to the position of the sensor.

11. A wire numbering machine, characterized in that: The wire number machine includes a stepper motor, a sensor, a transmission mechanism, a cutter, a processor and a memory, the transmission mechanism includes a code disk, the code disk includes at least a first light-shielding area, a first light-transmitting area, a second light-shielding area and a second light-transmitting area arranged in sequence in a preset direction, the first light-shielding area, the first light-transmitting area, the second light-shielding area and the second light-transmitting area are annular code disk areas, the origin corresponding to the sensor is located in the initial code disk area, the cutting point corresponding to the cutting action is located in the target code disk area, and the initial code disk area and the target code disk area are both arbitrary code disk areas; The memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the steps of the method according to any one of claims 1 to 9.

12. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the steps of the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Control system of circle cutting machine

    CN104772782A

  • Cutting information determination method and device, equipment and storage medium

    CN112286140A

  • Wire cutting machine and method of cutting wire segments from an advancing strand of wire

    US20080072721A1

Cited By

  • Wire marking machine control method and device, wire marking machine and computer storage medium

    CN119872102A