Winding control method and device based on PLC modular programming, equipment and medium

By using a modular programming approach, the cylinder output, positioning, winding, and coil winding modules in the PLC module library are identified and called, which solves the problem of low efficiency in coil winding programming and improves both coil winding efficiency and production efficiency.

CN115016384BActive Publication Date: 2026-01-27ZHUHAI GREE INTELLIGENT EQUIP CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210658185.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-10
Publication Date
2026-01-27
Estimated Expiration
2042-06-10

AI Technical Summary

Technical Problem

Once the existing PLC winding program is completed, operators cannot change the equipment operation steps according to the winding process, resulting in low winding efficiency and low production efficiency.

Method used

Using a modular programming approach, the system receives module call instructions from operators, identifies the instruction type, and calls the corresponding module from a preset module library to modify parameters and insert programming positions, including cylinder output, positioning, winding, and coil winding modules.

Benefits of technology

This reduces the workload of programmers, improves winding efficiency, and consequently increases production efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115016384B_ABST
    Figure CN115016384B_ABST
Patent Text Reader

Abstract

The application discloses a winding control method and device based on PLC modular programming, equipment and medium. The application relates to the technical field of program development, and comprises the following steps: recording the step number of the module calling instruction and identifying the type of the module calling instruction; if the module calling instruction is a cylinder output instruction, a cylinder output module is called, parameters in the cylinder output module are changed according to the step number, and the changed cylinder output module is inserted into a programming position; if the module calling instruction is a positioning instruction, a positioning module is called and inserted into the programming position; if the module calling instruction is a winding head instruction, a winding head program module is called, parameters in the winding head program module are changed according to the step number, and the changed winding head program module is inserted into the programming position; and if the module calling instruction is a winding instruction, a winding module is called and inserted into the programming position, so as to complete winding programming. The embodiment of the application can improve winding efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of program development technology, and in particular to a winding control method, device, equipment and medium based on PLC modular programming. Background Technology

[0002] PLC programming is a digital electronic system designed for industrial applications. It uses a programmable memory to store instructions for performing logical operations, sequential control, timing, counting, and arithmetic operations. Through digital and analog inputs and outputs, it controls various types of machinery or production processes. In existing technologies, once PLC winding programming is complete, operators cannot change the equipment's operating steps according to the winding process flow. They must rely entirely on the PLC programmer to modify the program to change the equipment's operating steps. Due to the variety of wire types, frequent switching, and long wire changeover times, winding efficiency is low, resulting in low production efficiency. Summary of the Invention

[0003] This invention provides a winding control method, device, equipment, and medium based on PLC modular programming, aiming to solve the problem of low efficiency in existing winding control based on PLC modular programming.

[0004] In a first aspect, embodiments of the present invention provide a winding control method based on PLC modular programming, comprising:

[0005] If a module call instruction is received from an operator via the winding programming interface, the step number of sending the module call instruction is recorded, and the type of the module call instruction is identified according to the preset module identifier;

[0006] If the module call instruction is a cylinder output instruction, then the cylinder output module is called from the preset module library according to the name corresponding to the cylinder output instruction, and the parameters in the cylinder output module are changed according to the step number. The changed cylinder output module is then inserted into the programming position corresponding to the step number.

[0007] If the module call instruction is a positioning instruction, then the positioning module is called from the preset module library according to the name corresponding to the positioning instruction, and the positioning module is inserted into the programming position corresponding to the step number;

[0008] If the module call instruction is a wrapping instruction, then the wrapping program module is called from the preset module library according to the name corresponding to the wrapping instruction, and the parameters in the wrapping program module are changed according to the step number. The changed wrapping program module is then inserted into the programming position corresponding to the step number.

[0009] If the module call instruction is a winding instruction, then the winding module is called from the preset module library according to the name corresponding to the winding instruction, and the winding module is inserted into the programming position corresponding to the step number to complete the winding programming.

[0010] Secondly, embodiments of the present invention also provide a winding control device based on PLC modular programming, comprising:

[0011] The identification unit is used to record the step number of sending the module call instruction if it receives a module call instruction sent by the operator through the winding programming interface, and to identify the type of the module call instruction according to the preset module identifier;

[0012] The first modification insertion unit is used to, if the module call instruction is a cylinder output instruction, call the cylinder output module from the preset module library according to the name corresponding to the cylinder output instruction, modify the parameters in the cylinder output module according to the step number, and insert the modified cylinder output module into the programming position corresponding to the step number.

[0013] The first call insertion unit is used to call the positioning module from the preset module library according to the name corresponding to the positioning instruction if the module call instruction is a positioning instruction, and insert the positioning module into the programming position corresponding to the step number;

[0014] The second modification and insertion unit is used to, if the module call instruction is a wrapping instruction, call the wrapping program module from the preset module library according to the name corresponding to the wrapping instruction, modify the parameters in the wrapping program module according to the step number, and insert the modified wrapping program module into the programming position corresponding to the step number;

[0015] The second call insertion unit is used to call a winding module from the preset module library according to the name corresponding to the winding instruction if the module call instruction is a winding instruction, and insert the winding module into the programming position corresponding to the step number to complete the winding programming.

[0016] Thirdly, embodiments of the present invention also provide a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the above-described method.

[0017] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the above-described method.

[0018] This invention provides a winding control method, device, equipment, and medium based on PLC modular programming. The method includes: if a module call instruction is received from an operator via a winding programming interface, recording the step number of sending the module call instruction and identifying the type of the module call instruction based on a preset module identifier; if the module call instruction is a cylinder output instruction, calling a cylinder output module from a preset module library according to the name corresponding to the cylinder output instruction, modifying the parameters in the cylinder output module according to the step number, and inserting the modified cylinder output module into the programming position corresponding to the step number; if the module call instruction is a positioning instruction, retrieving the module from the preset module library according to the name corresponding to the positioning instruction. The process involves calling a positioning module and inserting it into the programming position corresponding to the step number. If the module call instruction is a winding instruction, a winding program module is called from the preset module library according to the name corresponding to the winding instruction. The parameters in the winding program module are modified according to the step number, and the modified winding program module is inserted into the programming position corresponding to the step number. If the module call instruction is a winding instruction, a winding module is called from the preset module library according to the name corresponding to the winding instruction, and the winding module is inserted into the programming position corresponding to the step number to complete the winding programming. The technical solution of this invention, by statistically analyzing the step numbers and identifying the module call instruction types, can call the cylinder output module, positioning module, winding program module, and winding module from the preset module library, modify the parameters in the cylinder output module and winding program module, and finally insert the positioning module, winding module, modified cylinder output module, and modified winding program module into the programming position to complete the winding programming. This not only reduces the workload of programmers but also improves winding efficiency, thereby increasing production efficiency. Attached Figure Description

[0019] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 A schematic flowchart of a winding control method based on PLC modular programming provided in an embodiment of the present invention;

[0021] Figure 2 This is a diagram illustrating the winding programming interface of a winding control method based on PLC modular programming provided in an embodiment of the present invention.

[0022] Figure 3 This diagram illustrates the winding steps of a winding control method based on PLC modular programming, as provided in an embodiment of the present invention.

[0023] Figure 4 A schematic block diagram of a winding control device based on PLC modular programming provided for embodiments of the present invention; and

[0024] Figure 5 This is a schematic block diagram of a computer device provided in an embodiment of the present invention. Detailed Implementation

[0025] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0026] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0027] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0028] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0029] As used in this specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrases "if determined" or "if [described condition or event] is detected" may be interpreted, depending on the context, as "once determined," "in response to determination," "once [described condition or event] is detected," or "in response to detection of [described condition or event]."

[0030] Please see Figure 1 , Figure 1 This is a flowchart illustrating the winding control method based on PLC modular programming provided in an embodiment of the present invention. The winding control method based on PLC modular programming will be described in detail below. Figure 1 As shown, the method includes the following steps S100-S140.

[0031] S100. If a module call instruction is received from the operator through the winding programming interface, the step number of sending the module call instruction is recorded, and the type of the module call instruction is identified according to the preset module identifier.

[0032] In this embodiment of the invention, after the operator creates a new winding program based on the wire type, a winding programming interface will be displayed to the operator, such as... Figure 2 As shown, the winding programming interface is divided into a mode selection area and a function area. The mode selection area includes X-axis positioning, Y-axis positioning, Z-axis positioning, S-axis positioning, T-axis positioning, cylinder output, winding commands, winding head program, three-axis positioning, multi-axis positioning, delay commands, tension switching, and completion commands. The function area includes a mode list, point calibration, current test, test point, previous point, next point, delete, modify, insert, add, copy, save program, and return. Understandably, by clicking the corresponding button in the mode selection area of ​​the winding programming interface, the operator can trigger the sending of module call commands, record the step number of sending the module call command, and identify the type of module call command based on a preset module identifier.

[0033] It should be noted that, in this embodiment of the invention, because there are various types of wires, the production line needs to switch between different types of wires during winding. Naming the winding program with the wire type can achieve one-click switching during wire winding, saving winding time and improving winding efficiency.

[0034] S110. If the module call instruction is a cylinder output instruction, then the cylinder output module is called from the preset module library according to the name corresponding to the cylinder output instruction, and the parameters in the cylinder output module are changed according to the step number. The changed cylinder output module is then inserted into the programming position corresponding to the step number.

[0035] In this embodiment of the invention, if the module call instruction is a cylinder output instruction, then according to the name corresponding to the cylinder output instruction, such as cylinder output, the cylinder output module is called from the preset module library, and the parameters in the cylinder output module are changed according to the step number. The cylinder type includes a first cylinder, a second cylinder, and a third cylinder, and the output operation type includes a reset operation and a head extension operation. It should be noted that in this embodiment of the invention, the preset module library stores multiple functional modules, including the cylinder output module, a multi-axis positioning module, a three-axis positioning module, an S-axis positioning module, a head winding program module, a winding module, an X-axis positioning module, a Y-axis positioning module, a Z-axis positioning module, and a T-axis positioning module.

[0036] S120. If the module call instruction is a positioning instruction, then the positioning module is called from the preset module library according to the name corresponding to the positioning instruction, and the positioning module is inserted into the programming position corresponding to the step number.

[0037] In this embodiment of the invention, the positioning instructions include multi-axis positioning instructions, three-axis positioning instructions, and S-axis positioning instructions. The positioning modules include a multi-axis positioning module, a three-axis positioning module, and an S-axis positioning module. If the module call instruction is the multi-axis positioning instruction, the multi-axis positioning module is called from the preset module library according to the name corresponding to the multi-axis positioning instruction, and the multi-axis positioning module is inserted into the programming position corresponding to the step number. The multi-axis positioning module is used to position the X-axis, Y-axis, Z-axis, and T-axis. If the module call instruction is the three-axis positioning instruction, the three-axis positioning module is called from the preset module library according to the name corresponding to the three-axis positioning instruction, and the three-axis positioning module is inserted into the programming position corresponding to the step number. The three-axis positioning module is used to position the X-axis, Y-axis, and Z-axis. If the module call instruction is the S-axis positioning instruction, the S-axis positioning module is called from the preset module library according to the name corresponding to the S-axis positioning instruction, and the S-axis positioning module is inserted into the programming position corresponding to the step number. It should be noted that, in this embodiment of the invention, X-axis positioning is left-right movement, Y-axis positioning is forward-backward movement, Z-axis positioning is up-down movement, S-axis positioning is circular motion around a wire, and T-axis positioning prevents X-axis rotation and protects the stator. It should also be noted that, in this embodiment of the invention, speeds are set in the multi-axis positioning module, the three-axis positioning module, and the S-axis positioning module, and angles are also set in the S-axis positioning module.

[0038] S130. If the module call instruction is a wrapping instruction, then the wrapping program module is called from the preset module library according to the name corresponding to the wrapping instruction, and the parameters in the wrapping program module are changed according to the step number. The changed wrapping program module is then inserted into the programming position corresponding to the step number.

[0039] In this embodiment of the invention, if the module call instruction is a winding instruction, indicating that the wire end needs to be wound onto the stator fixture, then the winding program module is called from the preset module library according to the name corresponding to the winding instruction, and the winding position in the winding program module is changed according to the step number. The winding position includes a first winding position and a second winding position. In practical applications, the first winding position is on the fixture on the left side of the stator, and the second winding position is on the fixture on the upper side of the stator. It should be noted that in this embodiment of the invention, the winding program module sets the winding height, winding radius, rotation direction, and number of rotations.

[0040] S140. If the module call instruction is a winding instruction, then the winding module is called from the preset module library according to the name corresponding to the winding instruction, and the winding module is inserted into the programming position corresponding to the step number to complete the winding programming.

[0041] In this embodiment of the invention, if the module call instruction is a winding instruction, it indicates that the settings before winding have been completed. Then, according to the name corresponding to the winding instruction, the winding module is called from the preset module library and inserted into the programming position corresponding to the step number to complete the winding programming. It should be noted that in this embodiment of the invention, the winding instruction is the final step in the winding process, and the winding module sets the number of winding turns, winding speed, winding direction, and winding stop angle.

[0042] To facilitate understanding, the winding method described above will be explained in detail using the winding of a stator as an example. Figure 3 As shown, if the step number is the first winding step, indicating that the first cylinder needs to be called to clamp the stator left and right, then the cylinder type called in the cylinder output module is set to the first cylinder; if the step number is the third winding step, indicating that the second cylinder needs to be called to clamp the stator up and down, then the cylinder type called in the cylinder output module is set to the second cylinder; if the step number is the fifth winding step, indicating that the third cylinder needs to be called to clamp the wire, then the cylinder type called in the cylinder output module is set to the third cylinder; if the step number is the sixth winding step, indicating that the first cylinder and the second cylinder need to be reset, then the output operation type in the cylinder output module is set to reset; if the step number is the eighteenth winding step, indicating that the guard head in the third cylinder needs to be extended, then the output operation type in the cylinder output module is set to guard head extension. Understandably, the first, third, fifth, sixth, and eighteenth steps in the winding process are all cylinder outputs. The second, seventeenth, and nineteenth steps in the winding steps corresponding to the aforementioned step numbers are multi-axis positioning; the seventh, eleventh, twelfth, thirteenth, and fifteenth steps are three-axis positioning; and the eighth, tenth, and sixteenth steps are S-axis positioning. The fourth and fourteenth steps in the winding steps corresponding to the aforementioned step numbers are the head-winding procedure. Understandably, the twentieth step, the final step in the winding steps corresponding to the aforementioned step numbers, is the winding instruction.

[0043] Furthermore, after the winding programming is completed, the operator can click on the mode list in the function area. Responding to the mode list command sent by the operator through the winding programming interface, the winding process is displayed to the operator in a list format. The operator can modify the winding process using the function buttons in the function area. Specifically, the operator can modify, delete, insert, add, and copy the winding process using the modify, delete, insert, add, and copy buttons. It should also be noted that the "previous point" in the function area moves the cursor to the previous winding step, and the "next point" moves the cursor to the next winding step. Point calibration is performed manually by the operator using the X-axis positioning module, Y-axis positioning module, Z-axis positioning module, S-axis positioning module, and T-axis positioning module to calibrate the X-axis, Y-axis, Z-axis, S-axis, and T-axis positioning. "Test current point" tests the current winding step, and "test point" tests the selected action within the current winding step.

[0044] Furthermore, the operator selects the "Save Program" button in the function area to load the saved winding program and save the loaded program. It should be noted that in other embodiments, if winding is required for at least two stators, a delay instruction is also needed, and when winding different types of wire, a tension switching function is also required. In this embodiment of the invention, by modularizing the various winding functions and saving each functional module to a preset module library for later use, not only can the workload of programmers be reduced, but winding efficiency can also be improved, thereby increasing production efficiency.

[0045] Figure 4 This is a schematic block diagram of a winding control device 200 based on PLC modular programming provided in an embodiment of the present invention. Figure 4 As shown, corresponding to the above-described winding control method based on PLC modular programming, the present invention also provides a winding control device 200 based on PLC modular programming. This winding control device 200 includes a unit for executing the above-described winding control method based on PLC modular programming, and the device can be configured in a computer device. Specifically, please refer to... Figure 4 The winding control device 200 based on PLC modular programming includes an identification unit 201, a first change insertion unit 202, a first call insertion unit 203, a second change insertion unit 204, and a second call insertion unit 205.

[0046] The identification unit 201 is used to record the step number of sending the module call instruction if it receives a module call instruction sent by the operator through the winding programming interface, and to identify the type of the module call instruction according to a preset module identifier; the first modification insertion unit 202 is used to, if the module call instruction is a cylinder output instruction, to call a cylinder output module from a preset module library according to the name corresponding to the cylinder output instruction, and to modify the parameters in the cylinder output module according to the step number, and to insert the modified cylinder output module into the programming position corresponding to the step number; the first call insertion unit 203 is used to, if the module call instruction is a positioning instruction, to call a module from a preset module library according to the name corresponding to the positioning instruction. The first unit calls the positioning module from the block library and inserts the positioning module into the programming position corresponding to the step number. The second modification and insertion unit 204 is used to call the winding program module from the preset module library according to the name corresponding to the winding instruction if the module call instruction is a winding instruction, and modify the parameters in the winding program module according to the step number, and insert the modified winding program module into the programming position corresponding to the step number. The second call and insertion unit 205 is used to call the winding module from the preset module library according to the name corresponding to the winding instruction if the module call instruction is a winding instruction, and insert the winding module into the programming position corresponding to the step number to complete the winding programming.

[0047] In some embodiments, such as this one, the first change insertion unit 202 includes a first change subunit.

[0048] The first modification subunit is used to modify the cylinder type and output operation type in the cylinder output module according to the step number. The cylinder type includes a first cylinder, a second cylinder, and a third cylinder, and the output operation type includes a reset operation and a head protection extension operation.

[0049] In some embodiments, such as this one, the first call insertion unit 203 includes a first call insertion subunit, a second call insertion subunit, and a third call insertion subunit.

[0050] The first call insertion subunit is used to call the multi-axis positioning module from the preset module library according to the name corresponding to the multi-axis positioning instruction, and insert the multi-axis positioning module into the programming position corresponding to the step number, wherein the multi-axis positioning module is used to position the X-axis, Y-axis, Z-axis and T-axis; the second call insertion subunit is used to call the three-axis positioning module from the preset module library according to the name corresponding to the three-axis positioning instruction, and insert the three-axis positioning module into the programming position corresponding to the step number, wherein the three-axis positioning module is used to position the X-axis, Y-axis and Z-axis; the third call insertion subunit is used to call the S-axis positioning module from the preset module library according to the name corresponding to the S-axis positioning instruction, and insert the S-axis positioning module into the programming position corresponding to the step number.

[0051] In some embodiments, such as this one, the second change insertion unit 204 includes a second change subunit.

[0052] The second modification subunit is used to modify the winding position in the winding program module according to the step number, wherein the winding position includes a first winding position and a second winding position.

[0053] In some embodiments, such as this one, the PLC-based modular programming winding control device 200 further includes a first response unit, a second response unit, and a load and save unit.

[0054] The first response unit is used to respond to a mode list instruction sent by the operator through the winding programming interface, and to display the winding process to the operator in a list manner. The second response unit is used to respond to a function instruction sent by the operator through the winding programming interface, and to modify the winding process according to the function instruction. Specifically, the type of the function instruction is identified: if the function instruction is a delete instruction, the winding step selected by the operator is deleted; if the function instruction is a modify instruction, the winding step selected by the operator is modified; if the function instruction is an insert instruction, a winding step is inserted at the operator's selected location; if the function instruction is a copy instruction, the winding step selected by the operator is copied. The loading and saving unit is used to respond to a save program instruction sent by the operator through the winding programming interface, to load the saved winding program, and to save the loaded winding program.

[0055] The aforementioned winding control device based on PLC modular programming can be implemented as a computer program, which can be used in various ways, such as... Figure 5 It runs on the computer device shown.

[0056] Please see Figure 5 , Figure 5 This is a schematic block diagram of a computer device provided in an embodiment of the present invention. The computer device 300 is a display device with winding control function based on PLC modular programming.

[0057] See Figure 5 The computer device 300 includes a processor 302, a memory, and a network interface 305 connected via a system bus 301. The memory may include a non-volatile storage medium 303 and internal memory 304.

[0058] The non-volatile storage medium 303 can store an operating system 3031 and a computer program 3032. When the computer program 3032 is executed, it enables the processor 302 to execute a winding control method based on PLC modular programming.

[0059] The processor 302 provides computing and control capabilities to support the operation of the entire computer device 300.

[0060] The internal memory 304 provides an environment for the execution of the computer program 3032 in the non-volatile storage medium 303. When the computer program 3032 is executed by the processor 302, the processor 302 can execute a winding control method based on PLC modular programming.

[0061] This network interface 305 is used for network communication with other devices. Those skilled in the art will understand that... Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the present invention and does not constitute a limitation on the computer device 300 to which the present invention is applied. The specific computer device 300 may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0062] The processor 302 is used to run a computer program 3032 stored in a memory to implement any embodiment of the above-described winding control method based on PLC modular programming.

[0063] It should be understood that, in this embodiment of the invention, the processor 302 may be a Central Processing Unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.

[0064] It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program may be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.

[0065] Therefore, the present invention also provides a storage medium. This storage medium can be a computer-readable storage medium. The storage medium stores a computer program. When executed by a processor, the computer program causes the processor to perform any embodiment of the above-described winding control method based on PLC modular programming.

[0066] The storage medium can be any computer-readable storage medium capable of storing program code, such as a USB flash drive, portable hard drive, read-only memory (ROM), magnetic disk, or optical disk.

[0067] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0068] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each unit is merely a logical functional division, and there may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.

[0069] The steps in the method of this invention can be adjusted, merged, or reduced in order according to actual needs. The units in the device of this invention can be merged, divided, or reduced according to actual needs. Furthermore, the functional units in the various embodiments of this invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0070] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.

[0071] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0072] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Since these modifications and variations fall within the scope of the claims and their equivalents, this invention also intends to include these modifications and variations.

[0073] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A winding control method based on PLC modular programming, characterized in that, include: If a module call instruction is received from an operator via the winding programming interface, the step number of sending the module call instruction is recorded, and the type of the module call instruction is identified according to the preset module identifier; If the module call instruction is a cylinder output instruction, then the cylinder output module is called from the preset module library according to the name corresponding to the cylinder output instruction, and the parameters in the cylinder output module are changed according to the step number. The changed cylinder output module is then inserted into the programming position corresponding to the step number. If the module call instruction is a positioning instruction, then the positioning module is called from the preset module library according to the name corresponding to the positioning instruction, and the positioning module is inserted into the programming position corresponding to the step number; If the module call instruction is a wrapping instruction, then the wrapping program module is called from the preset module library according to the name corresponding to the wrapping instruction, and the parameters in the wrapping program module are changed according to the step number. The changed wrapping program module is then inserted into the programming position corresponding to the step number. If the module call instruction is a winding instruction, then the winding module is called from the preset module library according to the name corresponding to the winding instruction, and the winding module is inserted into the programming position corresponding to the step number to complete the winding programming; The step of changing the parameters in the cylinder output module according to the step number includes: According to the step number, the cylinder type and output operation type in the cylinder output module are changed, wherein the cylinder type includes a first cylinder, a second cylinder and a third cylinder, and the output operation type includes a reset operation and a head protection extension operation. The step of changing the parameters in the head-wrapping program module according to the step number includes: The winding position in the winding program module is changed according to the step number, wherein the winding position includes a first winding position and a second winding position.

2. The method according to claim 1, characterized in that, The positioning instructions include multi-axis positioning instructions, three-axis positioning instructions, and S-axis positioning instructions. The positioning module includes a multi-axis positioning module, a three-axis positioning module, and an S-axis positioning module. The step of calling the positioning module from the preset module library according to the name corresponding to the positioning instruction and inserting the positioning module at the programming position corresponding to the step number includes: The multi-axis positioning module is called from the preset module library according to the name corresponding to the multi-axis positioning instruction, and the multi-axis positioning module is inserted into the programming position corresponding to the step number, wherein the multi-axis positioning module is used to position the X-axis, Y-axis, Z-axis and T-axis; The three-axis positioning module is called from the preset module library according to the name corresponding to the three-axis positioning instruction, and the three-axis positioning module is inserted into the programming position corresponding to the step number, wherein the three-axis positioning module is used to position the X-axis, the Y-axis and the Z-axis; The S-axis positioning module is retrieved from the preset module library according to the name corresponding to the S-axis positioning instruction, and the S-axis positioning module is inserted into the programming position corresponding to the step number.

3. The method according to claim 1, characterized in that, The method further includes: In response to the mode list command sent by the operator through the winding programming interface, the winding process is displayed to the operator; In response to the function commands sent by the operator through the winding programming interface, the winding process is modified according to the function commands.

4. The method according to claim 3, characterized in that, Modifying the winding process according to the function instruction includes: Identify the type of the function instruction; If the function instruction is a delete instruction, then the winding step selected by the operator is deleted; If the function instruction is a modification instruction, then the winding steps selected by the operator are modified; If the function instruction is an insertion instruction, then a winding step is inserted at the location selected by the operator; If the function instruction is a copy instruction, then the winding steps selected by the operator will be copied.

5. The method according to claim 1, characterized in that, The method further includes: In response to the operator's save program command sent through the winding programming interface, the saved winding program is loaded and then saved.

6. A winding control device based on PLC modular programming, characterized in that, include: The identification unit is used to record the step number of sending the module call instruction if it receives a module call instruction sent by the operator through the winding programming interface, and to identify the type of the module call instruction according to the preset module identifier; The first modification insertion unit is used to, if the module call instruction is a cylinder output instruction, call the cylinder output module from the preset module library according to the name corresponding to the cylinder output instruction, modify the parameters in the cylinder output module according to the step number, and insert the modified cylinder output module into the programming position corresponding to the step number. The first call insertion unit is used to call the positioning module from the preset module library according to the name corresponding to the positioning instruction if the module call instruction is a positioning instruction, and insert the positioning module into the programming position corresponding to the step number; The second modification and insertion unit is used to, if the module call instruction is a wrapping instruction, call the wrapping program module from the preset module library according to the name corresponding to the wrapping instruction, modify the parameters in the wrapping program module according to the step number, and insert the modified wrapping program module into the programming position corresponding to the step number; The second call insertion unit is used to call a winding module from the preset module library according to the name corresponding to the winding instruction if the module call instruction is a winding instruction, and insert the winding module into the programming position corresponding to the step number to complete the winding programming; The first change insertion unit includes: The first modification subunit is used to modify the cylinder type and output operation type in the cylinder output module according to the step number, wherein the cylinder type includes a first cylinder, a second cylinder and a third cylinder, and the output operation type includes a reset operation and a head protection extension operation. The second alteration insertion unit includes: The second modification subunit is used to modify the winding position in the winding program module according to the step number, wherein the winding position includes a first winding position and a second winding position.

7. A computer device, characterized in that, The computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method as described in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, The storage medium stores a computer program that, when executed by a processor, can implement the method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Interface display method, winding equipment and computer storage medium

    CN112732337A

  • Coil winder control system and coil winder

    CN202102267U