A high-precision electronic cam controller and control method
By designing a high-precision electronic cam controller, using bit sequence processing and sending modules to achieve high-precision camshaft motion control, the problems of low control accuracy and insufficient processing capabilities of multiple curves in the prior art are solved, and higher accuracy and flexibility are achieved.
Patent Information
- Application Number
- CN202510163932.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-14
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2045-02-14
AI Technical Summary
The existing electronic cam controller algorithm is complex and costly, and cannot support the storage, switching and real-time modification of multiple cam curves at the same time, and the control accuracy is low.
A high-precision electronic cam controller is designed, including a generation module, a storage module, a processing module and a sending module. By obtaining the electronic cam curve, it converts it into a bit sequence, and storing, processing and sending these bit sequences to achieve high-precision camshaft motion control.
The position error between the spindle and the camshaft is within 1 pulse, with higher accuracy, supports storage, switching and real-time modification of multiple cam curves, and can control multiple camshafts at the same time.
Smart Images

Figure CN119668187B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of cam automation control, and particularly to a high-precision electronic cam controller and a control method thereof. Background Art
[0002] An electronic cam is a software system that uses a corresponding cam curve to simulate a mechanical cam to achieve the relative motion between the camshaft and the main shaft in the same mechanical cam system. The electronic cam can make up for the characteristics of mechanical cams such as easy wear, high cost, and inflexibility, and is widely used in the field of mechanical automation. The electronic cam controller mainly realizes the relative position relationship between the camshaft and the main shaft under the speed control of the main shaft encoder or the virtual axis according to the specified position relationship in the cam curve.
[0003] The existing electronic cam controller has complex algorithms and high costs, and almost all do not support the storage and switching of multiple cam curves and the real-time modification of cam curves at the same time. At the same time, the minimum unit of the control precision of the existing electronic cam controller is an angle, and periodic motion control is used in the actual control process, that is, every time a motion cycle passes, the camshaft is controlled to move a certain distance, and the motion cycle is often in milliseconds. The distance that the main shaft has moved within a motion cycle is often much greater than 1 pulse, and the number of pulses for controlling the movement of the camshaft is also often much greater than 1. Therefore, the position relationship between the main shaft and the camshaft cannot be accurately controlled to 1 pulse during the actual movement process, resulting in low precision in the control process of the electronic cam. Summary of the Invention
[0004] In view of the above-mentioned disadvantages of the prior art, the purpose of the present invention is to provide a high-precision electronic cam controller and a control method thereof, which are used to solve the problems that the existing electronic cam controller in the prior art has complex algorithms, high costs, and almost all do not support the storage and switching of multiple cam curves and the real-time modification of cam curves at the same time, and the control process of the electronic cam has low precision.
[0005] To achieve the above object and other related objects, the present invention provides a high-precision electronic cam controller, including: a generation module, configured to obtain an electronic cam curve and convert the electronic cam curve into a corresponding bit sequence; wherein, the bit sequence includes the target pulses required for the camshaft to move corresponding to each pulse of the main shaft moving; a storage module, configured to store the bit sequence; a processing module, configured to convert the movement speed of the main shaft into a bit sequence sending speed; and a sending module, configured to sequentially read the bit sequences corresponding to each electronic cam curve in the storage module and send each bit sequence according to the bit sequence sending speed, so as to output the target pulses corresponding to the camshaft through the bit sequence.
[0006] In one embodiment of the present invention, the generation module includes: a curve analysis module, configured to obtain an electronic cam curve, analyze the relative positions of the main shaft and the camshaft in the electronic cam curve, and obtain target pulses, the combined order of the target pulses, and the pulse directions of the target pulses; wherein the target pulses include sending one pulse and not sending a pulse, and the pulse directions include positive pulses and negative pulses; and an order combination module, configured to generate a bit sequence according to the target pulses and the combined order of the target pulses.
[0007] In one embodiment of the present invention, the generation module is further configured to obtain an electronic cam curve and convert the electronic cam curve into multiple groups of bit sequences according to the length of each electronic cam curve.
[0008] In one embodiment of the present invention, the storage module includes: a plurality of designated storage areas, configured to store the bit sequences converted from each electronic cam curve; and a modification module, configured to add, modify, and clear the designated bit sequences in the designated storage area.
[0009] In one embodiment of the present invention, the processing module includes: a real-axis conversion module, configured to convert the encoder speed of the main shaft into the bit sequence sending speed when the main shaft is a real axis; and an imaginary-axis conversion module, configured to convert the imaginary-axis speed of the main shaft into the bit sequence sending speed when the main shaft is an imaginary axis.
[0010] In one embodiment of the present invention, the real-axis conversion module is further configured to, when the main shaft is a real axis, obtain the position and running speed of the main shaft according to the main shaft encoder of the main shaft; and obtain the bit sequence sending speed according to the position and running speed of the main shaft to control the electronic cam.
[0011] In one embodiment of the present invention, the imaginary-axis conversion module is further configured to, when the main shaft is an imaginary axis, obtain the bit sequence sending speed according to the imaginary-axis speed parameters configured by the user to control the electronic cam; wherein the imaginary-axis speed parameters include initial speed, stable speed, acceleration, deceleration, and end speed.
[0012] In one embodiment of the present invention, the sending module includes: a reading module, configured to sequentially read the corresponding bit sequences from the storage module according to the number of motion pulse executions of the main shaft and the motion direction of the electronic cam curve; wherein the motion direction of the electronic cam curve includes a forward motion direction and a reverse motion direction; and a pulse output module, configured to send each bit sequence at the bit sequence sending speed to output the corresponding target pulses of the camshaft through the bit sequence; wherein the target pulses include sending one pulse and not sending a pulse.
[0013] In an embodiment of the present invention, the reading module is further configured to sequentially read the bit sequences corresponding to the respective electronic cam curves from the specified storage area in the storage module according to the number of motion pulses of the main shaft and the motion direction of the electronic cam curve, so as to perform motion control on the corresponding camshaft through the respective electronic cam curves.
[0014] To achieve the above object and other related objects, a control method for the aforementioned high-precision electronic cam controller includes:
[0015] Obtain an electronic cam curve through a generating module, and convert the electronic cam curve into a corresponding bit sequence; wherein, the bit sequence includes the target pulses required for the camshaft to move corresponding to each pulse of the main shaft.
[0016] Store the bit sequence through a storage module.
[0017] Convert the motion speed of the main shaft into a bit sequence sending speed through a processing module.
[0018] Sequentially read the bit sequences corresponding to each electronic cam curve in the storage module through a sending module, and send each bit sequence at the bit sequence sending speed, so as to output the target pulses corresponding to the camshaft through the bit sequence.
[0019] As described above, a high-precision electronic cam controller and a control method of the present invention have the following beneficial effects: During the motion of the electronic cam, the position error between the main shaft and the camshaft can be within 1 pulse, with higher precision. This electronic cam controller can store multiple cam curves simultaneously, and supports real-time modification of curves and free switching between different curves, being more flexible. It also supports controlling multiple camshafts with one main shaft to perform electronic cam motion. Description of the Drawings
[0020] Figure 1 Shows a structural block diagram of the electronic cam controller provided by an embodiment of the present invention.
[0021] Figure 2 Shows a schematic diagram of the electronic cam control process provided by an embodiment of the present invention.
[0022] Figure 3 Shows a flowchart of the high-precision electronic cam control steps provided by an embodiment of the present invention.
[0023] Figure 4 Shows a schematic diagram of the electronic cam curve provided by an embodiment of the present invention.
[0024] Figure 5 Shows a flowchart of the control method provided by an embodiment of the present invention.
[0025] Explanation of Element Numbers
[0026] Generation module 11; storage module 12; processing module 13; sending module 14. Detailed implementation
[0027] The following uses specific specific examples to illustrate the implementation manners of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific implementation manners. Various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that, without conflict, the following embodiments and the features in the embodiments can be combined with each other. It should also be understood that the terms used in the embodiments of the present invention are for the purpose of describing specific specific implementation manners, rather than limiting the protection scope of the present invention. The test methods without specific conditions noted in the following embodiments are usually carried out according to conventional conditions or according to the conditions recommended by each manufacturer.
[0028] Please refer to Figure 1 , the present invention provides a high-precision electronic cam controller, which can store multiple cam curves at the same time, and supports real-time modification of curves and free switching between different curves, which is more flexible; the position error between the main shaft corresponding to the cam curve and the cam shaft is within 1 pulse, with higher precision; it can also realize one main shaft to control multiple cam shafts to perform electronic cam motion at the same time. The high-precision electronic cam controller may include a generation module 11, a storage module 12, a processing module 13, and a sending module 14.
[0029] Please refer to Figure 1 , the present invention provides a high-precision electronic cam controller, including: a generation module 11, configured to obtain an electronic cam curve and convert the electronic cam curve into a corresponding bit sequence; wherein, the bit sequence includes the target pulse required for the cam shaft to move corresponding to each pulse of the main shaft moving; a storage module 12, configured to store the bit sequence; a processing module 13, configured to convert the movement speed of the main shaft into the bit sequence sending speed; and a sending module 14, configured to sequentially read the bit sequences corresponding to each electronic cam curve in the storage module 12 and send each bit sequence at the bit sequence sending speed, so as to output the target pulse corresponding to the cam shaft through the bit sequence.
[0030] In an embodiment of the present invention, the high-precision electronic cam controller of the present invention can generate a bit sequence according to the electronic cam curve, and control the transmission speed of the bit sequence according to the main shaft movement speed, so as to control the output pulse of the camshaft, making the position error between the main shaft and the camshaft within one pulse, with higher precision. Specifically, when inputting the electronic cam curve, the generation module 11 obtains the electronic cam curve and converts the electronic cam curve into a corresponding bit sequence. Regarding the bit sequence of the present invention, it is used to represent the pulse situation (i.e., the target pulse) that the camshaft needs to move corresponding to each pulse movement of the main shaft. After obtaining the bit sequence, the storage module 12 is used to store the bit sequence corresponding to the generated electronic cam curve. It should be noted that when the storage module 12 stores the bit sequence corresponding to the electronic cam curve, multiple electronic cam curves can be stored to improve the flexibility of processing the electronic cam curve. And after the storage of the bit sequence corresponding to the electronic cam curve is completed, the processing module 13 is used to generate the bit sequence transmission speed according to the movement speed of the main shaft, so as to realize that the sending module 14 sequentially reads the bit sequences corresponding to the respective electronic cam curves in the storage module 12 according to the sequence transmission speed, and sends the target pulses corresponding to the bit sequences to the camshaft in order. Through the above method, it can be ensured that when controlling the camshaft pulse, the camshaft can be accurately controlled to follow the position of the main shaft according to the electronic cam curve, so that the position relationship accuracy between the main shaft and the camshaft during the movement process reaches one pulse.
[0031] In an embodiment of the present invention, the generation module 11 includes: a curve analysis module, which is used to obtain the electronic cam curve, analyze the relative positions of the main shaft and the camshaft in the electronic cam curve, and obtain the target pulse, the combination order of the target pulses, and the pulse direction of the target pulse; wherein, the target pulse includes sending one pulse and not sending a pulse, and the pulse direction includes a positive pulse and a negative pulse; and a sequence combination module, which is used to generate a bit sequence according to the target pulse and the combination order of the target pulses.
[0032] After obtaining the electronic cam curve, the curve analysis module can parse the electronic cam curve to obtain the relative position relationship between the main shaft and the cam shaft in the electronic cam curve, and based on the relative position relationship between the main shaft and the cam shaft, obtain the target pulses, the combined order of the target pulses, and the pulse directions of the target pulses. Specifically, the bit sequence includes sending one pulse and not sending a pulse. Among them, one pulse is represented by 1, and not sending a pulse is represented by 0. The length of a group of bit sequences can be any length such as 16, 32, or 48; according to the relative position relationship between the cam shaft and the main shaft in the cam curve, the pulse direction of the target pulse of the bit sequence can also be obtained for pulse output, such as a positive pulse or a negative pulse. After obtaining the target pulses and the combined order of the target pulses, a corresponding bit sequence is generated. Specifically, according to the relative position between the main shaft and the cam shaft in the electronic cam curve, the pulse combination order of 0 and 1 in each group of bit sequences is obtained, that is, the position relationship between the main shaft and the cam shaft is accurate to the pulse level.
[0033] In an embodiment of the present invention, the generation module 11 is further configured to obtain the electronic cam curve and convert the electronic cam curve into multiple groups of bit sequences according to the length of each electronic cam curve.
[0034] During the process of generating the bit sequence, the generation module 11 can disassemble the length of the electronic cam curve according to the specific situation of the electronic cam curve to generate multiple groups of bit sequences according to the length of the electronic cam curve.
[0035] In an embodiment of the present invention, the storage module 12 includes: a plurality of specified storage areas for storing the bit sequences converted from each electronic cam curve; and a modification module for adding, modifying, and clearing the specified bit sequences in the specified storage areas.
[0036] When storing the generated bit sequences, the storage module 12 can convert multiple electronic cam curves into bit sequences respectively and store the converted bit sequences in different specified storage areas respectively. And the modification module can also be used to add, modify, and clear the bit sequences in each specified storage area, so as to be able to respond in a timely manner to the changes in the electronic cam curve during the movement process and also be able to respond in a timely manner to the requirements of phase offset.
[0037] In an embodiment of the present invention, the processing module 13 includes: a real-axis conversion module for converting the encoder speed of the main shaft into the bit sequence sending speed when the main shaft is the real axis; and an imaginary-axis conversion module for converting the imaginary-axis speed of the main shaft into the bit sequence sending speed when the main shaft is the imaginary axis.
[0038] During the process of generating the bit sequence transmission speed according to the main shaft movement speed by the processing module 13, the main shaft can be a real axis or an imaginary axis. The real axis conversion module can calculate the main shaft encoder speed when the main shaft is a real axis, that is, when the main shaft is a real axis, the real axis conversion module can convert the encoder speed of the main shaft into the bit sequence transmission speed. The imaginary axis conversion module can control the imaginary axis speed when the main shaft is an imaginary axis, that is, when the main shaft is an imaginary axis, the imaginary axis speed calculation of the main shaft is converted into the bit sequence transmission speed.
[0039] In an embodiment of the present invention, the real axis conversion module is further configured to obtain the position and running speed of the main shaft according to the main shaft encoder of the main shaft when the main shaft is a real axis; and obtain the bit sequence transmission speed according to the position and running speed of the main shaft to control the electronic cam.
[0040] In the real axis mode, the real axis conversion module supports obtaining the position and running speed of the main shaft by processing the input main shaft encoder. After obtaining the position and running speed of the main shaft, it is also necessary to determine the bit sequence transmission speed according to the position and running speed of the main shaft to realize the function of controlling the electronic cam with the real axis.
[0041] In an embodiment of the present invention, the imaginary axis conversion module is further configured to obtain the bit sequence transmission speed according to the imaginary axis speed parameter configured by the user when the main shaft is an imaginary axis to control the electronic cam; wherein, the imaginary axis speed parameter includes initial speed, stable speed, acceleration, deceleration and end speed.
[0042] In the imaginary axis mode, the imaginary axis conversion module supports determining the bit sequence transmission speed by using the imaginary axis speed parameter configured by the user. The configurable speed parameters include initial speed, stable speed, acceleration, deceleration and end speed. And when the configured imaginary axis stable speed changes during the movement process, the electronic cam controller of the present invention can smoothly change the speed to the new imaginary axis speed to realize the function of controlling the electronic cam with the imaginary axis.
[0043] In an embodiment of the present invention, based on the main shaft movement speed, the processing module 13 can further determine the bit sequence transmission speed of the camshaft according to the proportional relationship between the actual main shaft and the camshaft. Specifically, the proportional relationship includes, but is not limited to, the pulse equivalent and encoder resolution between the main shaft and the camshaft.
[0044] In an embodiment of the present invention, the sending module 14 includes: a reading module, configured to sequentially read corresponding bit sequences from the storage module 12 according to the number of motion pulses executed by the main shaft and the motion direction of the electronic cam curve; wherein, the motion direction of the electronic cam curve includes a forward motion direction and a reverse motion direction; and a pulse output module, configured to send each bit sequence at a bit sequence sending speed, so as to output target pulses corresponding to the camshaft through the bit sequences; wherein, the target pulses include sending one pulse and not sending a pulse.
[0045] Whenever the main shaft moves one pulse, the reading module can sequentially read out the bit sequences from the specified storage area, and according to the bit sequence sending speed calculated by the processing module, control the bit-by-bit reading and execution of each bit in the bit sequence through the pulse output module. Specifically, when reading 1, one pulse is sent, and when reading 0, no pulse is sent.
[0046] Whenever the main shaft moves one pulse, the number of bit sequences that the reading module needs to read and execute is also determined when the electronic cam curve is converted into bit sequences, so as to ensure that the position relationship error between the main shaft and the camshaft during the motion process is at most 1 pulse.
[0047] In an embodiment of the present invention, the reading module is further configured to sequentially read the bit sequences corresponding to each electronic cam curve from the specified storage area in the storage module 12 according to the number of motion pulses executed by the main shaft and the motion direction of the electronic cam curve, so as to perform motion control on the corresponding camshaft through each electronic cam curve.
[0048] The reading direction of the reading module when reading the bit sequences from the specified storage area is determined by the motion direction of the main shaft, that is, it supports the forward and reverse motions of the cam curve. When the reading module reads the bit sequences from the storage module, it can read the bit sequences from different storage areas of the storage module to implement the motions of different electronic cam curves.
[0049] The high-precision electronic cam controller of the present invention can accurately achieve the position relationship between the main shaft and the camshaft according to requirements with high precision, and the error is within 1 pulse, regardless of whether the main shaft of the electronic cam corresponding to the electronic cam curve is a real shaft or a virtual shaft. One main shaft can simultaneously control multiple camshafts to implement the electronic cam function, and only need to configure the electronic cam curves of each camshaft and their proportional relationships with the main shaft.
[0050] The main process of implementing the control of the electronic cam by the high-precision electronic cam controller of the present invention includes: converting the input electronic cam curve into bit sequences, and storing the bit sequences in a specified storage area. By obtaining the real shaft position and speed of the main shaft or obtaining the virtual shaft speed, reading the bit sequences in the specified storage area, and sending them in sequence. Through the above method, during the implementation of the electronic cam, the control error can be realized within 1 pulse.
[0051] Please refer to Figure 2 , Figure 2 In an embodiment given, the high-precision electronic cam controller of the present invention may include a bit sequence generation module, a bit sequence storage module, a bit sequence transmission module, and a speed control module. The electronic cam curve is converted into a corresponding bit sequence by the bit sequence generation module, and this bit sequence is used to represent the pulse situation required for the camshaft to move for each pulse of the main shaft; the generated bit sequence is stored by the bit sequence storage module, and the speed calculation function of the main shaft encoder when the main shaft is a real axis and the virtual axis speed control function when the main shaft is a virtual axis are implemented through the speed control module (i.e., the processing module). Specifically, this module converts the encoder speed when the main shaft is a real axis or the virtual axis speed calculation when the main shaft is a virtual axis into the bit sequence transmission speed, so as to enable the camshaft to send the bit sequence according to the movement speed of the main shaft. The bit sequence transmission module can implement the functions of reading the bit sequence and sending the bit sequence according to the specified speed, so as to enable the camshaft to accurately follow the position of the main shaft according to the electronic cam curve, and make the position relationship accuracy between the main shaft and the camshaft reach 1 pulse during the movement process.
[0052] Please refer to Figure 3 , Figure 3 In an embodiment given, during the process of implementing electronic cam control, by converting the input electronic cam curve into a bit sequence, storing the bit sequence in a specified storage area, obtaining the main shaft position and speed or obtaining the virtual axis speed, reading the bit sequence in the specified storage area and sending it in sequence, the maximum position error during the movement process is 1 pulse. Specifically, at the start of the movement, by writing the electronic cam curve, the generation module 11 obtains this electronic cam curve and converts the electronic cam curve into a corresponding bit sequence. The bit sequence is stored by the storage module 12, and the movement speed of the main shaft is converted into the bit sequence transmission speed by the processing module 13. Subsequently, it is judged whether to start running the cam. If so, the transmission module 14 will sequentially read the bit sequence in the storage module 12 and send each bit sequence according to the bit sequence transmission speed, so as to output the target pulse corresponding to the camshaft through the bit sequence. It is judged whether the current bit sequence has been sent. If not, the sending of the bit sequence continues; if it has been sent, it is judged whether to close the cam. If not, continue to read other bit sequences in the storage module 12 and continue to send the bit sequence; if it is necessary to close the cam, the control process of the electronic cam ends.
[0053] Please refer to Figure 4 , Figure 4 In an embodiment given, during the process of executing the electronic cam function, by storing an electronic cam curve in the electronic cam controller and repeatedly executing this electronic cam curve, the camshaft and the main shaft can always maintain a certain relative position.
[0054] Specifically, in this embodiment, it includes a main shaft and a camshaft 1. The bit sequence generated by the electronic cam curve consists of 0s and 1s, and the length of the selected bit sequence is 32. When sending the bit sequence, 0 represents not sending a pulse, and 1 represents sending a pulse.
[0055] The converted bit sequence is as follows:
[0056] Storage address number Positive pulse bit sequence of camshaft 1 Negative pulse bit sequence of camshaft 1 0x0000 10000000000000001000000000000000 00000000000000000000000000000000 0x0001 10000001000000000000000100000000 00000000000000000000000000000000 0x0002 00110010110101011011010101101001 00000000000000000000000000000000 0x0003 00101011010101011010101011010101 00000000000000000000000000000000 …… …… …… 0x1001 00000001000000000000000100000000 00000000000000000000000000000000 0x1002 10000000000000001000000000000000 00000000000000000000000000000000 0x1003 00000000000000000000000000000000 10000000000000001000000000000001 0x1004 00000000000000000000000000000000 00000001000000000000000100000000 …… …… …… 0x2005 00000000000000000000000000000000 11101101011011010110110101101101 0x2006 00000000000000000000000000000000 00110010110101011011010101101001 0x2007 00000000000000000000000000000000 10000001000000000000000100000000 0x2008 00000000000000000000000000000000 10000000000000001000000000000000
[0057] According to the relative position relationship between the camshaft and the main shaft in the input cam curve, the 0s and 1s of each group of bit sequences are combined, and the generated bit sequences include the bit sequences for forward pulse output and the bit sequences for reverse pulse output. During the process of sending the bit sequence, whenever a group of bit sequences is sent, the sending module 14 reads the next group of bit sequences from the bit sequence storage area for sending. When all the bit sequences converted from the input cam curve are sent, the implementation of a cam is completed. If the cam needs to continue running, continue to read and send the bit sequences in order. The speed at which the sending module 14 sends the bit sequence is controlled by the speed control module. By adopting a control method with the main shaft as the real axis, after the speed control module processes the encoder of the input main shaft to obtain the position and running speed of the main shaft, it determines the speed at which the bit sequence is sent. The sending module 14 starts reading the bit sequences of positive and negative pulses from the storage space with the address of 0x0000, and completes a complete electronic cam control after reading and sending the bit sequences in the address of 0x2008.
[0058] Please refer to Figure 5 , a control method for the aforementioned high-precision electronic cam controller, including:
[0059] Obtain the electronic cam curve through the generation module 11, and convert the electronic cam curve into a corresponding bit sequence; wherein, the bit sequence includes the target pulses required for the camshaft to move corresponding to each pulse of the main shaft;
[0060] Store the bit sequence through the storage module 12;
[0061] Convert the running speed of the main shaft into the bit sequence sending speed through the processing module 13;
[0062] Read the bit sequences corresponding to each electronic cam curve in the storage module 12 in sequence through the sending module 14, and send each bit sequence at the bit sequence sending speed to output the target pulses corresponding to the camshaft through the bit sequence.
[0063] In summary, a high-precision electronic cam controller and control method disclosed by the present invention can achieve a position error within 1 pulse between the main shaft and the cam shaft during the electronic cam movement, with higher precision. The electronic cam controller can store multiple cam curves simultaneously, and supports real-time modification of curves and free switching between different curves, being more flexible. Moreover, it also supports one main shaft to control multiple cam shafts simultaneously for electronic cam movement. Therefore, the present invention effectively overcomes various drawbacks in the prior art and has high industrial utilization value.
[0064] The above embodiments are only illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Any person familiar with this technology can modify or change the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by those with ordinary knowledge in the technical field without departing from the spirit and technical ideas disclosed by the present invention should still be covered by the claims of the present invention.
Claims
1. A high-precision electronic cam controller, characterized in that: include: A generating module, used for acquiring an electronic cam curve and converting the electronic cam curve into a corresponding bit sequence; wherein the bit sequence includes a target pulse required for the cam shaft to move corresponding to each pulse of the main shaft moving; A storage module, used for storing the bit sequence; A processing module, used for converting the movement speed of the spindle into a bit sequence transmission speed; and A sending module, used for sequentially reading the bit sequence corresponding to each of the electronic cam curves in the storage module, and sending each of the bit sequences at the bit sequence sending speed, so as to output a target pulse corresponding to the camshaft through the bit sequence; Wherein, the storage module includes: A plurality of designated storage areas for storing the bit sequence converted from each of the electronic cam curves; and The changing module is used to add, modify and clear the bit sequence specified in the specified storage area.
2. The high-precision electronic cam controller according to claim 1, characterized in that: The generation module comprises: A curve analysis module, used to obtain an electronic cam curve, analyze the relative position of the main shaft and the cam shaft in the electronic cam curve, and obtain the target pulse, the combination sequence of the target pulses, and the pulse direction of the target pulse; wherein the target pulse includes sending a pulse and not sending a pulse, and the pulse direction includes a positive pulse and a negative pulse; and A sequence combination module is used to generate the bit sequence according to the target pulse and the combination sequence of the target pulse.
3. The high-precision electronic cam controller according to claim 1, characterized in that: The generating module is further used to obtain an electronic cam curve, and convert the electronic cam curve into a plurality of groups of bit sequences according to the length of each electronic cam curve.
4. The high-precision electronic cam controller according to claim 1, characterized in that: The processing module comprises: a real axis conversion module, used for converting the encoder speed of the main axis into the bit sequence transmission speed when the main axis is a real axis; and The virtual axis conversion module is used to convert the virtual axis speed of the main axis into the bit sequence sending speed when the main axis is a virtual axis.
5. The high-precision electronic cam controller according to claim 4, characterized in that: The real axis conversion module is also used to obtain the position and running speed of the main axis according to the main axis encoder of the main axis when the main axis is a real axis; and obtain the bit sequence sending speed according to the position and running speed of the main axis to control the electronic cam.
6. The high-precision electronic cam controller according to claim 4, characterized in that: The virtual axis conversion module is also used to obtain the bit sequence sending speed according to the virtual axis speed parameters configured by the user when the main axis is a virtual axis, so as to control the electronic cam; wherein the virtual axis speed parameters include initial speed, stable speed, acceleration, deceleration and terminal speed.
7. The high-precision electronic cam controller according to claim 1, characterized in that: The sending module comprises: A reading module, used for reading corresponding bit sequences from the storage module in sequence according to the number of executions of the motion pulse of the main shaft and the motion direction of the electronic cam curve; wherein the motion direction of the electronic cam curve includes a forward motion direction and a reverse motion direction; and A pulse output module is used to send each of the bit sequences at the bit sequence sending speed, so as to output a target pulse corresponding to the camshaft through the bit sequence; wherein the target pulse includes sending a pulse and not sending a pulse.
8. The high-precision electronic cam controller according to claim 7, characterized in that: The reading module is also used to read the bit sequence corresponding to each electronic cam curve from the designated storage area in the storage module in turn according to the number of executions of the motion pulse of the main shaft and the motion direction of the electronic cam curve, so as to control the motion of the corresponding cam shaft through each electronic cam curve.
9. A control method for the high-precision electronic cam controller according to any one of claims 1 to 8, characterized in that: include: The electronic cam curve is obtained through a generation module, and the electronic cam curve is converted into a corresponding bit sequence; wherein the bit sequence includes a target pulse required for the cam shaft to move corresponding to each pulse of the main shaft moving; Storing the bit sequence by a storage module; The movement speed of the spindle is converted into a bit sequence transmission speed through a processing module; The bit sequence corresponding to each electronic cam curve in the storage module is read in sequence by a sending module, and each bit sequence is sent at a sending speed of the bit sequence, so as to output a target pulse corresponding to the camshaft through the bit sequence.
Citation Information
Patent Citations
Motion control method for track
CN103699053A