Electronic cam motion control method and device, equipment and storage medium
By obtaining the target control table of the cam motion law and determining the main and slave shaft position, the servo motor is controlled, and the problems of low efficiency and high cost of cam control in the prior art are solved, and efficient and low-cost cam motion control is achieved.
Patent Information
- Application Number
- CN202410991960.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-11-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing cam control methods are inefficient, complex and costly when cutting, making it difficult to meet the needs of high efficiency and low cost.
By detecting preset cam control conditions, the target control table of the current motion pattern is obtained, and the master-slave axis position is determined based on the table, the motion control of the servo motor is realized, which simplifies the control process and improves efficiency.
Without modifying the mechanical structure, motion control between any spindle and slave shaft is realized, reducing control costs and improving control efficiency.
Smart Images

Figure CN119002391A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of equipment control technology, and in particular to an electronic cam motion control method, device, equipment and storage medium. Background Art
[0002] Nowadays, the main shaft servo motor controls the slave (cam) shaft servo motor through a cam structure, thereby realizing different shearing methods, such as stop shearing, chasing shearing, flying shearing, etc.
[0003] However, each shearing method has a different working principle, so it requires a different mechanical structure and control system. Among them, the control structure of stop shearing is simple, easy to operate, and low in cost, but the production efficiency is low because the movement of the material needs to be stopped for each shearing; chasing shearing is more efficient than stop shearing, but the machinery and control system are relatively complex and the cost is high; flying shearing has a very high production efficiency and is suitable for large-scale continuous production. However, its technology is complex, the equipment cost is high, and the maintenance requirements are relatively high. Therefore, the existing cam control method has low control efficiency, complex control, and high control cost when cutting. There is an urgent need for a high-efficiency, low-cost cam control method. Summary of the invention
[0004] The main purpose of the present application is to provide an electronic cam motion control method, device, equipment and storage medium, aiming to solve the technical problems of low efficiency, complex control and high control cost in cutting of existing cam control methods.
[0005] To achieve the above objectives, the present application proposes an electronic cam motion control method, the method comprising:
[0006] When it is detected that the preset cam control conditions are met, the target control table corresponding to the current cam motion law is obtained;
[0007] Determine the target master-slave axis position according to the target control table;
[0008] The target servo motor is controlled by cam motion according to the target master-slave axis position.
[0009] In one embodiment, when it is detected that the preset cam control condition is met, the step of obtaining the target control table corresponding to the current cam motion law includes:
[0010] When it is detected that the preset cam control conditions are met, the table flag corresponding to the current cam motion law is obtained;
[0011] The target control table is obtained from the preset control table according to the table flag.
[0012] In one embodiment, the step of determining the target master-slave axis position according to the target control table includes:
[0013] Get the target spindle source;
[0014] The target master-slave axis positions are determined according to the target master axis source and the target control table.
[0015] In one embodiment, the step of determining the target master-slave axis position according to the target master axis source and the target control table includes:
[0016] Determine whether the target spindle source is an external axis;
[0017] If yes, the target spindle position is obtained from the preset encoder;
[0018] The target slave axis position is determined according to the target control table and the target master axis position.
[0019] In one embodiment, after determining whether the target spindle source is an external spindle, the method further includes:
[0020] If not, the target main axis position and the target slave axis position are determined according to the target control table.
[0021] In one embodiment, the step of performing cam motion control on the target servo motor through the target master-slave shaft position includes:
[0022] Determine the current master axis position and the current slave axis position according to the arrangement order from the target master and slave axis positions;
[0023] Generate a control pulse signal according to the current main shaft position and the current slave shaft position, and drive the target servo motor to move to the current slave shaft position according to the control pulse signal;
[0024] Detecting whether the target servo motor reaches the current slave axis position;
[0025] If so, determining whether the current motion position of the target servo motor is greater than the target slave axis position;
[0026] If not, the process returns to the step of determining the current master axis position and the current slave axis position in the order of arrangement from the target master and slave axis positions, until it is detected that the current motion position is greater than the target slave axis position, and then the next control cycle is entered.
[0027] In one embodiment, after detecting whether the target servo motor reaches the current slave shaft position, the method further includes:
[0028] If so, determining whether the spindle servo motor is synchronized with the target servo motor;
[0029] If synchronized, the current control loop is exited, and a shearing control signal is output to the target servo motor, so that the target servo motor performs a preset shearing operation.
[0030] In addition, to achieve the above-mentioned purpose, the present application also proposes an electronic cam motion control device, which includes:
[0031] A table acquisition module is used to acquire a target control table corresponding to the current cam motion law when it is detected that the preset cam control conditions are met;
[0032] A position determination module, used to determine the target master-slave axis position according to the target control table;
[0033] The control module is used to perform cam motion control on the target servo motor through the target master-slave axis position.
[0034] In addition, to achieve the above-mentioned purpose, the present application also proposes an electronic cam motion control device, which includes: a memory, a processor, and an electronic cam motion control program stored in the memory and executable on the processor, wherein the electronic cam motion control program is configured to implement the steps of the electronic cam motion control method as described above.
[0035] In addition, to achieve the above objectives, the present application also proposes a storage medium, which is a storage medium on which an electronic cam motion control program is stored. When the electronic cam motion control program is executed by a processor, the steps of the electronic cam motion control method as described above are implemented.
[0036] The present application provides an electronic cam motion control method, device, equipment and storage medium, the method comprising: when it is detected that the preset cam control conditions are met, obtaining a target control table corresponding to the current cam motion law; determining the target master-slave axis position according to the target control table; and performing cam motion control on the target servo motor through the target master-slave axis position. Compared with the existing cam control method, the present application can achieve cam motion control between any master axis and slave axis that conforms to the current cam motion law by modifying the position point relationship of the master-slave axis in the target control table without modifying the mechanical structure. Therefore, the electronic cam method proposed in the present application has a simple control process and high control efficiency, thereby effectively reducing the control cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0039] Figure 1 This is a first flow chart of the first embodiment of the electronic cam motion control method of the present application;
[0040] Figure 2 This is a second flow chart of the first embodiment of the electronic cam motion control method of the present application;
[0041] Figure 3 This is a schematic diagram of a first flow chart of a second embodiment of the electronic cam motion control method of the present application;
[0042] Figure 4 This is a second flow chart of the second embodiment of the electronic cam motion control method of the present application;
[0043] Figure 5 This is a third flow chart of the second embodiment of the electronic cam motion control method of the present application;
[0044] Figure 6 This is a fourth flow chart of the second embodiment of the electronic cam motion control method of the present application;
[0045] Figure 7 This is a schematic diagram of the module structure of the electronic cam motion control device according to an embodiment of the present application;
[0046] Figure 8 Schematic diagram of the device structure of the hardware operating environment involved in the electronic cam motion control method in the embodiment of the present application.
[0047] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0048] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0049] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0050] The main solution of this application is: when it is detected that the preset cam control conditions are met, the target control table corresponding to the current cam motion law is obtained; the target master-slave axis position is determined according to the target control table; and the cam motion of the target servo motor is controlled by the target master-slave axis position.
[0051] At present, in the cam control process of different shearing methods, the corresponding mechanical cam structure and control system are inconsistent, so there are problems such as low control efficiency, complex control and high control cost.
[0052] In order to solve the above problems, the present application adopts an electronic cam (Electronic Cam, ECAM) for cutting control. The electronic cam can refer to a system that uses a cam curve constructed by software to simulate a mechanical cam to achieve the same relative motion between the camshaft and the main shaft as the mechanical cam system. Specifically, based on the electronic cam, the present application can place the master-slave axis position points that conform to the current motion law into the target control table. The control device determines the master-slave axis position by scanning the target control table, and then the control device generates a pulse signal according to the master-slave axis position to perform cam motion control on the target servo motor to achieve automatic following of the master-slave axis servo motor. Compared with the existing cam control method, the present application can realize the cam motion control between any main shaft and slave shaft that conforms to the current cam motion law by modifying the position point relationship of the master-slave axis in the target control table without modifying the mechanical structure. Therefore, the electronic cam method proposed in the present application has a simple control process and high control efficiency, thereby effectively reducing the control cost.
[0053] It should be noted that the execution subject of this embodiment can be an electronic cam motion control system, or a computing service device with data processing, network communication, program running and PLC communication functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic cam motion control device that can realize the above functions, etc. This embodiment does not specifically limit this. The following takes the electronic cam motion control device (referred to as the control device) as the execution subject as an example to illustrate this embodiment and the following embodiments.
[0054] Based on this, the present application embodiment provides an electronic cam motion control method, referring to Figure 1 , Figure 1 This is a first flow chart of the first embodiment of the electronic cam motion control method of the present application.
[0055] In this embodiment, the electronic cam motion control method includes steps S10 to S30:
[0056] Step S10, when it is detected that the preset cam control condition is met, a target control table corresponding to the current cam motion law is obtained;
[0057] It should be understood that, in this embodiment, a PLC module may be built into the control device, and the PLC module may be used to control the target servo motor of the slave axis to perform shearing. At the same time, in this embodiment, the cam control function of the control device may be enabled or disabled by the user. Therefore, the above-mentioned preset cam control condition may refer to the control device detecting that the PLC instruction has been processed and the user has enabled the cam control function.
[0058] At the same time, assuming that in actual applications, the number of slave axes following the movement of the main axis used in this embodiment can reach 8 axes, if the control device detects that the user has enabled the cam control function, it can initialize the I / O pins and set them to: main axis (default is Y0 / Y10), slave axis (Y1 / Y11), slave axis (Y2 / Y12), slave axis (Y3 / Y13), slave axis (Y4 / Y14), slave axis (Y5 / Y15), slave axis (Y6 / Y16) and slave axis (Y7 / Y17).
[0059] It can be understood that the above-mentioned current cam motion law can be the shearing mode to be performed by the control device. In this embodiment, the current cam motion law can be any one of stop shearing, chasing shearing, flying shearing or any other cam control laws, and this embodiment does not impose any restrictions on this.
[0060] It is easy to understand that in order to improve control efficiency and simplify control complexity, in this embodiment, the control device can obtain the target control table corresponding to the current cam motion law to obtain the target slave axis position point of the target servo motor that controls the slave axis from the target control table.
[0061] In one possible implementation, refer to Figure 2 , Figure 2 This is a second flow chart of the first embodiment of the electronic cam motion control method of the present application. In this embodiment, step S10 may include steps A1 to A2:
[0062] Step A1, when it is detected that the preset cam control condition is met, a table mark corresponding to the current cam motion law is obtained;
[0063] Step A2: acquiring a target control table from a preset control table according to the table flag.
[0064] It should be noted that, in this embodiment, the control device can pre-load the motion positions of the main shaft and the slave shaft corresponding to different cam motion laws, and summarize them into the above-mentioned preset control table. Therefore, the preset control table simultaneously contains the main shaft positions and the slave shaft positions corresponding to multiple control laws. In order to facilitate the rapid acquisition of the position data corresponding to the current cam motion law from the preset control table, in this embodiment, the position data corresponding to different cam motion laws can be classified and stored in the preset control table according to the table mark.
[0065] It is easy to understand that the above table mark can be a table starting address and a table function. Therefore, this embodiment can obtain a certain number of rows of position data from a preset control table based on the table indicator, and the above certain number of rows of position data can constitute the above specific control table.
[0066] Specifically, when the control device detects the instruction END (which indicates that the PLC instruction processing is completed) and the user decides to enable the cam control function, it can locate a row of the table corresponding to the preset control table according to the table head address corresponding to the current control rule determined by the user, and then obtain all the position data according to the table row number corresponding to the current control rule, thereby obtaining the above-mentioned specific control table.
[0067] It is understandable that the main shaft position data and the slave shaft position data corresponding to different cam motion laws in the above preset control table can be input by the user line by line, or can be automatically generated after sampling the motion curve input by the user. The specific data acquisition method is not limited in this embodiment.
[0068] Step S20, determining the target master-slave axis position according to the target control table;
[0069] Step S30, performing cam motion control on the target servo motor according to the target master-slave shaft positions.
[0070] It should be understood that, combined with the above analysis, this embodiment can determine the master axis position and slave axis position that conform to the current cam motion law based on the position data in the target control table, that is, the above-mentioned target master-slave axis position, and then perform cam motion control on the target servo motor of the slave axis based on these master-slave axis position relationship points that satisfy the current cam motion law.
[0071] Specifically, in this embodiment, the control device can send the determined target master-slave axis positions to the PLC module in the form of a table. The PLC module can scan this table to send out pulse sequences and direction signals of the master axis and each slave axis based on these points, and ensure that the relationship between the master axis and the slave axis during the movement satisfies the one-to-one correspondence in the target control table, thereby forming a relationship similar to a mechanical cam, that is, during the electronic cam motion control process of this embodiment, the master axis moves and the slave axis is forced to move to the specified position.
[0072] At the same time, the control device can use an MCU (Microcontroller Unit) with an operating frequency of 240MHz, so that the target servo motor of the slave axis can quickly follow the movement of the servo motor of the main axis (referred to as the main axis servo motor) with a close and high following degree.
[0073] This embodiment integrates the electronic cam function into a PLC based on a programmable logic controller, which can facilitate flexible programming and customization of pulse sequences with specific motion rules. Giving these pulse sequences to the servo will obtain specific cam motion.
[0074] In the specific implementation, users only need to turn on and off the corresponding functions according to their needs. When the user decides to start the cam control function, the table is scanned, and the table data is taken in turn to send pulses of the master and slave axes in the form of interpolation, so that the slave axis passively follows the movement of the master axis in the form of software algorithms, thereby eliminating the existing complex mechanical cam structure.
[0075] It should be noted that, since the present embodiment can simply control the motion of the main axis and the slave axis servo motor directly based on the preset target control table, the present embodiment can implement the above software control process by programming in C language based on the ARM32-bit Cortex-M4 CPU. Therefore, compared with the existing method that requires advanced MCU to realize the motion control of the servo motor, the present embodiment can realize fast and convenient servo motor electronic cam control based on limited MCU resources, thereby reducing the control cost and expanding the application scenarios of the electronic cam motion control method proposed in this application.
[0076] At the same time, in this embodiment, the control device can directly transmit the target master-slave axis position in the preset target control table to the PLC module, and then send a pulse sequence and movement direction according to these position relationships to achieve cam control of the slave axis target servo motor. By modifying the position point relationship of the master and slave axes in the target control table, the movement relationship between the master and slave axes can be modified, thereby achieving the modification of the shear material length. Therefore, this embodiment can be combined with the control function of the PLC to quickly and easily build a shear control system that can meet any cam movement law.
[0077] In summary, this embodiment can modify the motion relationship between the master and slave axes conveniently and quickly based on the target control table without modifying the mechanical structure, and it is also suitable for any master-slave axis motion relationship that can be described, and the number of slave axes that can be controlled and followed can reach 8 axes. It can also be based on PLC to conveniently realize other auxiliary functions, thereby quickly building a cam motion system or a shearing system.
[0078] The present embodiment provides an electronic cam motion control method, the method comprising: when it is detected that the preset cam control conditions are met, obtaining a table flag corresponding to the current cam motion law; obtaining a target control table from the preset control table according to the table flag. Obtaining the source of the target spindle; determining the target master-slave axis position according to the target spindle source and the target control table. Performing cam motion control on the target servo motor through the target master-slave axis position. Compared with the existing cam control method, the present embodiment can conveniently and quickly realize any master-slave axis motion relationship based on the target control table without modifying the mechanical structure. Therefore, the electronic cam control method proposed in the present embodiment has a simple control process and high control efficiency, thereby effectively reducing the control cost.
[0079] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction and will not be repeated later.
[0080] It should be understood that the cam control method in this embodiment can be triggered in various ways, such as by triggering the shearing or flying shearing according to an external sensor, or by triggering the fixed length. Figure 3 , Figure 3 This is a first flow chart of the second embodiment of the electronic cam motion control method of the present application. In this embodiment, step S20 may include steps B1 to B2:
[0081] Step B1, obtaining the target spindle source;
[0082] Step B2, determining the target master-slave axis positions according to the target master axis source and the target control table.
[0083] It should be noted that since there are different triggering methods in this embodiment, which are divided into external triggering and timing triggering, the spindle source in this embodiment can be divided into external axis and internal axis. Therefore, when the control device obtains the target control table, it can also pre-configure the interrupt to determine the current spindle source, that is, the above-mentioned target spindle source, and determine the target master-slave axis position according to the target spindle source and the target control table.
[0084] In one possible implementation, reference Figure 4 , Figure 4 This is a second flow chart of the second embodiment of the electronic cam motion control method of the present application. In this embodiment, step B2 includes steps B21 to B24:
[0085] Step B21, determining whether the target spindle source is an external spindle;
[0086] Step B22, if yes, obtain the target spindle position from the preset encoder;
[0087] Step B23, determining the target slave axis position according to the target control table and the target master axis position.
[0088] It should be understood that in this embodiment, the spindle source method in which the spindle position data is collected by an external device such as a preset encoder (such as an AB phase encoder) is called an external axis; the spindle source method in which the spindle position data is directly obtained from the target control table is called an internal axis. It is understandable that when the spindle is an external axis, the spindle is controlled by other devices or equipment other than the control device. At this time, a preset encoder can be installed to collect the movement speed and displacement of the spindle servo motor to obtain the target spindle position. The control device controls the target servo motor of the slave axis to simply follow the movement; while when the spindle is an internal axis, the spindle is controlled by the PLC module in the control device. At this time, the control device jointly controls the spindle servo motor and the target servo motor of the slave axis to perform shearing movement according to the table data in the target control table.
[0089] In another possible implementation, Figure 4 As shown, in this embodiment, step B22 further includes step B24:
[0090] Step B24: if not, determine the target main axis position and the target slave axis position according to the target control table.
[0091] It is easy to understand that if the target spindle source is not an external axis, the target spindle source is an internal axis. Regardless of whether it is an external axis or an internal axis, the spindle servo motor and the target servo motor of the slave axis must satisfy the position relationship in the target control table. Therefore, when the target spindle source is an external axis, the cam control can be externally triggered. At this time, the control device can receive the spindle position data sent by the preset encoder, that is, the above-mentioned target spindle position. Then, the target control table is matched with the target spindle position to obtain the corresponding target slave axis position.
[0092] When the target spindle source is an internal axis, the cam control can be timed triggering. At this time, the control device can obtain the corresponding target spindle position and target slave axis position from the target control table in the order of the table according to the preset data acquisition cycle.
[0093] In one possible implementation, refer to Figure 5 , Figure 5 This is a third flow chart of the second embodiment of the electronic cam motion control method of the present application. In this embodiment, step S30 may include steps C1 to C5:
[0094] Step C1, determining the current master axis position and the current slave axis position from the target master and slave axis positions in an arrangement order;
[0095] Step C2, generating a control pulse signal according to the current main shaft position and the current slave shaft position, and driving the target servo motor to move to the current slave shaft position according to the control pulse signal;
[0096] Step C3, detecting whether the target servo motor reaches the current slave shaft position;
[0097] Step C4: if yes, determine whether the current motion position of the target servo motor is greater than the target slave shaft position;
[0098] Step C5, if not, return to the step of determining the current master axis position and the current slave axis position in the order of arrangement from the target master and slave axis positions, until it is detected that the current motion position is greater than the target slave axis position, and then enter the next control cycle.
[0099] It is understandable that after determining the target master-slave axis positions, i.e., the target master axis position and the target slave axis position, this embodiment can automatically complete a cycle of acceleration, synchronization, deceleration, and return according to the positional relationship between the master axis and the slave axis. The distance traveled by the master axis servo motor in one cycle is the discharge length, and the slave axis servo motor can be controlled by the control device to perform the corresponding shearing action.
[0100] Specifically, as described above, the PLC module in the control device determines the master axis position and slave axis position in the target master-slave axis position as the current master axis position and the current slave axis position in accordance with the table arrangement order in the target control table, and generates a corresponding control pulse signal based on the current master axis position and the current slave axis position.
[0101] It should be understood that the control pulse signal may include a pulse sequence and a movement direction. When the target spindle source is an external axis, it may be the control pulse of the target servo motor of the slave axis; when the target spindle source is an internal axis, it may also be the control pulse of the target servo motor of the slave axis and the control pulse of the spindle servo motor of the main axis.
[0102] Specifically, when the target spindle source is an external axis, the control device can generate a control pulse signal and send it to the target servo motor of the slave axis when the preset encoder detects that the spindle servo motor moves to the current spindle position; when the target spindle source is an internal axis, the control device can generate a first control pulse based on the current spindle position and send it to the spindle servo motor, and generate a second control pulse based on the current slave axis position and send it to the target servo motor. At this time, the control pulse signal may include a first control pulse and a second control pulse.
[0103] Therefore, regardless of whether the source of the target spindle is an external axis or an internal axis, a control pulse signal must be sent to the target servo motor so that the target servo motor moves to the current slave axis position when receiving the control pulse signal. That is, in this embodiment, the control device can drive the target servo motor to move to the corresponding current slave axis position according to the control pulse signal.
[0104] It should be understood that the principle of realizing the slave axis following the main axis through software in this embodiment is that when the main axis servo motor is detected or controlled to move to a corresponding current main axis position, an interrupt will be generated while generating each control pulse signal to determine whether the target servo motor of the slave axis has reached the corresponding position. If not, pulses will be reissued until it reaches it, thereby realizing passive following of the slave axis and simulating the existing mechanical cam mechanism.
[0105] Therefore, in this embodiment, the control device can detect whether the target servo motor has reached the current slave axis position after sending the control pulse signal to the target servo motor. If so, it indicates that the current simulated cam control has been completed, and it can be further determined whether the current motion position of the target servo motor is greater than the target slave axis position.
[0106] It is easy to understand that if the current motion position of the target servo motor is not greater than the target slave axis position, it indicates that the current control cycle has not yet ended. At this time, the control device can take the next set of master-slave axis position data in the order of arrangement as the current master axis position and the current slave axis position to continue a new step of electronic cam control. Therefore, this embodiment can return to the step of determining the current master axis position and the current slave axis position in the order of arrangement from the target master-slave axis position to continue the current control cycle. If the current motion position of the target servo motor is greater than the target slave axis position, it indicates that the current control cycle has ended. At this time, the corresponding initial table position in the target control table can be re-obtained for control.
[0107] In addition, the speed ratio of the pulse sequence in the above control pulse signal can be set according to actual conditions, that is, when the specifications of the gears between the main shaft and the slave shaft are different, the speed ratio can be set to be different from 1 according to the gear ratio between the two.
[0108] In another possible implementation, referring to Figure 6 , Figure 6 This is a fourth flow chart of the second embodiment of the electronic cam motion control method of the present application. In this embodiment, step C3 further includes steps C6 to C7:
[0109] Step C6: if yes, determine whether the spindle servo motor is synchronized with the target servo motor;
[0110] Step C7: if synchronized, exit the current control loop and output a shearing control signal to the target servo motor to enable the target servo motor to perform a preset shearing operation.
[0111] It should be noted that in actual applications, the working principle of chasing shear is that the material is fed at a constant speed, and the shearing mechanism moves with the movement of the material, that is, "catching up" with the material for shearing. When the shearing mechanism catches up with the speed of the material movement and the material reaches the preset length, the shearing operation is performed; the working principle of flying shear is that the material is fed at a constant speed, and the shearing mechanism rotates, and when it rotates to the tangent point, the preset material length and linear speed are exactly the same as the feeding speed.
[0112] It is easy to understand that the above-mentioned different shearing methods share the same control principle, that is, the shearing action is performed when the movement speeds of the main shaft and the slave shaft are consistent and the preset material length is met. Therefore, in the above-mentioned control cycle process, the method for judging whether the main shaft servo motor and the target servo motor of the slave shaft are synchronized in this embodiment can be that the control device judges whether the speed of the main shaft servo motor is the same as the speed of the target servo motor of the slave shaft and the current feeding length corresponding to the main shaft servo motor is equal to the preset material length. If this condition is met, it can be determined that the main shaft servo motor and the target servo motor of the slave shaft are synchronized, and then the current control cycle can be exited, and a synchronization mark can be quickly given, and a shearing control signal can be output to the target servo motor, so that the target servo motor performs a preset shearing operation on the material conveyed by the main shaft servo motor, such as flying shear or chasing shear.
[0113] It should be understood that this embodiment can also set other synchronization judgment conditions based on actual conditions to perform shearing actions of other control laws, rather than being limited to judging whether the speeds of the main shaft servo motor and the target servo motor of the slave shaft are the same and meet the preset material length. This judgment method is only an exemplary description based on two specific motion laws of chasing shear control and flying shear control. Therefore, this embodiment does not limit the specific synchronization judgment conditions.
[0114] In this embodiment, the cam control triggering mode can be modified arbitrarily, and it can be triggered by an external sensor or a fixed length trigger. Accordingly, the spindle position data can be determined by collecting the motion speed and stroke through a preset encoder high-speed counting, or it can be determined by the PLC module control in the control device.
[0115] After determining the target spindle position, the control device scans the target control table, sequentially obtains the table data, and sends the pulses of the spindle and the slave axis in the form of interpolation to ensure that the relationship between the spindle and the slave axis corresponds one to one, forming a motion control relationship similar to a mechanical cam, so that the spindle moves and the slave axis is forced to move to the specified position, and the number of slave axes that follow the spindle movement can reach 8 axes; and different synchronization discrimination methods are configured according to different motion laws to achieve cam control of different shearing methods. Therefore, this embodiment can provide multiple triggering methods and can provide cam cycle control corresponding to different shearing methods, thereby expanding the scope of application of this embodiment.
[0116] This embodiment discloses a method for determining whether the target spindle source is an external axis; if so, obtaining the target spindle position from a preset encoder; and determining the target slave axis position according to the target control table and the target spindle position. If not, determining the target spindle position and the target slave axis position according to the target control table. In addition, this embodiment determines the current spindle position and the current slave axis position from the target master-slave axis positions in accordance with the arrangement order; generates a control pulse signal according to the current spindle position and the current slave axis position, and drives the target servo motor to move to the current slave axis position according to the control pulse signal; detects whether the target servo motor reaches the current slave axis position; if so, determines whether the current motion position of the target servo motor is greater than the target slave axis position; if not, returns to the step of determining the current spindle position and the current slave axis position according to the arrangement order from the target master-slave axis positions, until it is detected that the current motion position is greater than the target slave axis position, and enters the next control cycle. In addition, this embodiment can also determine whether the spindle servo motor is synchronized with the target servo motor if it is synchronized, then exit the current control cycle, and output a shear control signal to the target servo motor, so that the target servo motor performs a preset shearing operation. In this embodiment, the cam control triggering mode can be modified arbitrarily, and it can be triggered by an external sensor or a fixed length trigger. Accordingly, the spindle position data can be determined by collecting the motion speed and stroke through high-speed counting of a preset encoder, or it can be determined by the control of a PLC module in the control device. At the same time, this embodiment can configure different synchronization discrimination methods according to different motion laws to achieve cam control of different shearing methods. Therefore, this embodiment can provide a variety of triggering modes, and can provide cam cycle control corresponding to different shearing methods, thereby expanding the scope of application of this embodiment.
[0117] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the electronic cam motion control method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.
[0118] This application also provides an electronic cam motion control device, please refer to Figure 7 , Figure 7This is a schematic diagram of the module structure of the electronic cam motion control device in the embodiment of the present application. In this embodiment, the electronic cam motion control device includes:
[0119] Table acquisition module 701, used to acquire the target control table corresponding to the current cam motion law when it is detected that the preset cam control condition is met;
[0120] A position determination module 702, used to determine the target master-slave axis position according to the target control table;
[0121] The control module 703 is used to perform cam motion control on the target servo motor according to the target master-slave axis position.
[0122] Optionally, in this embodiment, the table acquisition module 701 is further used to acquire a table flag corresponding to the current cam motion law when it is detected that the preset cam control condition is met;
[0123] The target control table is obtained from the preset control table according to the table flag.
[0124] Optionally, in this embodiment, the position determination module 702 is further used to obtain the source of the target spindle;
[0125] The position determination module 702 is further used to determine the target master-slave axis position according to the target master axis source and the target control table.
[0126] Optionally, in this embodiment, the position determination module 702 is further used to determine whether the target spindle source is an external axis;
[0127] The position determination module 702 is further configured to obtain the target spindle position from a preset encoder if yes;
[0128] The position determination module 702 is further configured to determine a target slave axis position according to the target control table and the target master axis position.
[0129] Optionally, in this embodiment, the position determination module 702 is further configured to, if not, determine the target main axis position and the target slave axis position according to the target control table.
[0130] Optionally, in this embodiment, the control module 703 is further configured to determine the current master axis position and the current slave axis position from the target master and slave axis positions according to the arrangement order;
[0131] The control module 703 is further used to generate a control pulse signal according to the current main shaft position and the current slave shaft position, and drive the target servo motor to move to the current slave shaft position according to the control pulse signal;
[0132] The control module 703 is also used to detect whether the target servo motor reaches the current slave axis position;
[0133] The control module 703 is further configured to determine whether the current motion position of the target servo motor is greater than the target slave axis position;
[0134] The control module 703 is also used to return to the step of determining the current master axis position and the current slave axis position in the order of arrangement from the target master and slave axis positions, until it is detected that the current motion position is greater than the target slave axis position, and then enter the next control cycle.
[0135] Optionally, in this embodiment, the control module 703 is further used to determine whether the spindle servo motor is synchronized with the target servo motor;
[0136] The control module 703 is further configured to exit the current control loop if synchronization is achieved, and output a shearing control signal to the target servo motor so that the target servo motor performs a preset shearing operation.
[0137] The electronic cam motion control device provided by the present application adopts the electronic cam motion control method in the above embodiment, and can solve the technical problems of electronic cam motion control. Compared with the prior art, the beneficial effects of the electronic cam motion control device provided by the present application are the same as the beneficial effects of the electronic cam motion control method provided by the above embodiment, and other technical features in the electronic cam motion control device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0138] The present application provides an electronic cam motion control device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the electronic cam motion control method in the above-mentioned embodiment one.
[0139] Reference below Figure 8, which shows a schematic diagram of the structure of an electronic cam motion control device suitable for implementing the embodiment of the present application. The electronic cam motion control device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The electronic cam motion control device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0140] like Figure 8 As shown, the electronic cam motion control device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the electronic cam motion control device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the electronic cam motion control device to communicate with other devices wirelessly or by wire to exchange data. Although the electronic cam motion control device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0141] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include an electronic cam motion control program product, which includes an electronic cam motion control program carried on a computer-readable medium, and the electronic cam motion control program contains program code for executing the method shown in the flowchart. In such an embodiment, the electronic cam motion control program can be downloaded and installed from the network through a communication device, or installed from the storage device 1003, or installed from the ROM 1002. When the electronic cam motion control program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0142] The electronic cam motion control device provided by the present application adopts the electronic cam motion control method in the above embodiment, which can solve the technical problems of electronic cam motion control. Compared with the prior art, the beneficial effects of the electronic cam motion control device provided by the present application are the same as the beneficial effects of the electronic cam motion control method provided by the above embodiment, and other technical features in the electronic cam motion control device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0143] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0144] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0145] The present application provides a storage medium having computer-readable program instructions (ie, electronic cam motion control program) stored thereon, wherein the computer-readable program instructions are used to execute the electronic cam motion control method in the above-mentioned embodiment.
[0146] The storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0147] The storage medium may be included in the electronic cam motion control device; or may exist independently without being assembled into the electronic cam motion control device.
[0148] The storage medium carries one or more programs. When the one or more programs are executed by the electronic cam motion control device, the electronic cam motion control device performs electronic cam motion control.
[0149] The electronic cam motion control program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0150] The flowchart and block diagram in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the system, method and electronic cam motion control program product according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment, or a part of a code, and the module, program segment, or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0151] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0152] The readable storage medium provided by the present application is a storage medium, which stores computer-readable program instructions (i.e., electronic cam motion control program) for executing the above-mentioned electronic cam motion control method, and can solve the technical problems of electronic cam motion control. Compared with the prior art, the beneficial effects of the storage medium provided by the present application are the same as the beneficial effects of the electronic cam motion control method provided by the above-mentioned embodiment, and will not be repeated here.
[0153] An embodiment of the present application provides an electronic cam motion control program product, including an electronic cam motion control program, which implements the steps of the above-mentioned electronic cam motion control method when executed by a processor.
[0154] The electronic cam motion control program product provided by the present application can solve the technical problems of low efficiency, complex control and high control cost in cutting by the existing cam control method. Compared with the prior art, the beneficial effects of the electronic cam motion control program product provided by the embodiment of the present application are the same as the beneficial effects of the electronic cam motion control method provided by the above embodiment, which will not be described in detail here.
[0155] The above are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the patent protection scope of the present application.
Claims
1. An electronic cam motion control method, characterized in that: The method comprises: When it is detected that the preset cam control conditions are met, the target control table corresponding to the current cam motion law is obtained; Determine the target master-slave axis position according to the target control table; The target servo motor is controlled by cam motion according to the target master-slave axis position.
2. The electronic cam motion control method according to claim 1, characterized in that: The step of obtaining a target control table corresponding to the current cam motion law when the preset cam control condition is detected comprises: When it is detected that the preset cam control conditions are met, the table flag corresponding to the current cam motion law is obtained; The target control table is obtained from the preset control table according to the table flag.
3. The electronic cam motion control method according to claim 1, characterized in that: The step of determining the target master-slave axis position according to the target control table comprises: Get the target spindle source; The target master-slave axis positions are determined according to the target master axis source and the target control table.
4. The electronic cam motion control method according to claim 1, characterized in that: The step of determining the target master-slave axis position according to the target master axis source and the target control table comprises: Determine whether the target spindle source is an external axis; If yes, the target spindle position is obtained from the preset encoder; The target slave axis position is determined according to the target control table and the target master axis position.
5. The electronic cam motion control method according to claim 4, characterized in that: After determining whether the target spindle source is an external spindle, the method further includes: If not, the target main axis position and the target slave axis position are determined according to the target control table.
6. The electronic cam motion control method according to claim 5, characterized in that: The step of performing cam motion control on the target servo motor through the target master-slave shaft position comprises: Determine the current master axis position and the current slave axis position according to the arrangement order from the target master and slave axis positions; Generate a control pulse signal according to the current main shaft position and the current slave shaft position, and drive the target servo motor to move to the current slave shaft position according to the control pulse signal; Detecting whether the target servo motor reaches the current slave axis position; If so, determining whether the current motion position of the target servo motor is greater than the target slave axis position; If not, the process returns to the step of determining the current master axis position and the current slave axis position in the order of arrangement from the target master and slave axis positions, until it is detected that the current motion position is greater than the target slave axis position, and then the next control cycle is entered.
7. The electronic cam motion control method according to claim 6, characterized in that: After detecting whether the target servo motor reaches the current slave axis position, the method further includes: If so, determining whether the spindle servo motor is synchronized with the target servo motor; If synchronized, the current control loop is exited, and a shearing control signal is output to the target servo motor, so that the target servo motor performs a preset shearing operation.
8. An electronic cam motion control device, characterized in that: The electronic cam motion control device comprises: A table acquisition module is used to acquire a target control table corresponding to the current cam motion law when it is detected that the preset cam control conditions are met; A position determination module, used to determine the target master-slave axis position according to the target control table; The control module is used to perform cam motion control on the target servo motor through the target master-slave axis position.
9. An electronic cam motion control device, characterized in that: The electronic cam motion control device comprises: a memory, a processor, and an electronic cam motion control program stored in the memory and executable on the processor, wherein the electronic cam motion control program is configured to implement the steps of the electronic cam motion control method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a storage medium on which an electronic cam motion control program is stored. When the electronic cam motion control program is executed by a processor, the steps of the electronic cam motion control method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Electronic cam control method and related device
CN109828526A
Cam control method, device, equipment and medium
CN115951628A
Servo electronic cam device
CN117590804A
Control unit, output control method and program
US20150177723A1
Cited By
Extracting switching control method, controller, storage medium and program product
CN119758811A
Equipment control method and device, product assembly equipment and storage medium
CN119806004A
Self-adaptive electronic cam shearing motion control method and device, electronic equipment and storage medium
CN121900288A
Adaptive electronic cam follow-up motion control method and device, electronic equipment and storage medium
CN121900288B
