High-precision electronic cam controller and control method
通过设计高精度电子凸轮控制器,利用生成、存储、处理和发送位序列的方法,解决了现有技术中控制精度低和灵活性不足的问题,实现了主轴与凸轮轴的高精度位置控制和多条曲线的灵活管理。
Patent Information
- Application Number
- CN202510163932.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-14
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2045-02-14
AI Technical Summary
The existing electronic cam controller algorithm is complex and costly, and does not support the storage, switching and real-time modification of multiple cam curves, resulting in low control accuracy.
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 camshaft is within 1 pulse, which improves control accuracy, and supports storage, real-time modification and switching of multiple curves, enhancing flexibility.
Smart Images

Figure CN119668187A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of cam automation control, and in particular to a high-precision electronic cam controller and a control method. Background Art
[0002] Electronic cam is a software system that uses the corresponding cam curve to simulate the mechanical cam to achieve the same relative motion between the camshaft and the main shaft as the mechanical cam system. Electronic cam can make up for the easy wear, high cost and inflexibility of mechanical cam, 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 according to the position relationship specified in the cam curve under the speed control of the main shaft encoder or virtual axis.
[0003] The existing electronic cam controller algorithms are complex and costly, and almost none of them 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 electronic cam control accuracy of the existing electronic cam controller is an angle, and the actual control process uses periodic motion control, that is, after each motion cycle, the camshaft is controlled to move a certain distance, and the motion cycle is often in the millisecond level. The distance that the spindle has moved in a motion cycle is often much greater than 1 pulse, and the number of pulses controlling the camshaft movement is also often much greater than 1. Therefore, the positional relationship between the spindle and the camshaft during the actual motion process cannot be accurately determined to 1 pulse, resulting in low accuracy in the electronic cam control process. Summary of the invention
[0004] In view of the shortcomings of the prior art mentioned above, the object of the present invention is to provide a high-precision electronic cam controller and a control method, which are used to solve the problems that the existing electronic cam controllers in the prior art have complex algorithms, high costs, and almost no support for the storage and switching of multiple cam curves and real-time modification of cam curves at the same time, and the control process of the electronic cam has low accuracy.
[0005] To achieve the above-mentioned purpose and other related purposes, the present invention provides a high-precision electronic cam controller, including: a generation module, used to obtain an electronic cam curve and convert 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; a storage module, used to store the bit sequence; a processing module, used to convert the movement speed of the main shaft into a bit sequence sending speed; and a sending module, used to read the bit sequence corresponding to each electronic cam curve in the storage module in turn, 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.
[0006] In one embodiment of the present invention, the generation module includes: a curve analysis module, which is used to obtain the electronic cam curve, analyze the relative positions of the main shaft and the cam shaft 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 a 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 pulse.
[0007] In one embodiment of the present invention, the generating module is further used to obtain the electronic cam curve, and convert the electronic cam curve into a plurality 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 for storing the bit sequence converted from each electronic cam curve; and a modification module for adding, modifying and clearing the designated bit sequence in the designated storage area.
[0009] In one embodiment of the present invention, the processing module includes: a real axis conversion module, which is used to convert the encoder speed of the spindle into a bit sequence transmission speed when the spindle is a real axis; and a virtual axis conversion module, which is used to convert the virtual axis speed of the spindle into a bit sequence transmission speed when the spindle is a virtual axis.
[0010] In one embodiment of the present invention, the real axis conversion module is also used to obtain the position and running speed of the spindle according to the spindle encoder of the spindle when the spindle is a real axis; and obtain the bit sequence sending speed according to the position and running speed of the spindle to control the electronic cam.
[0011] In one embodiment of the present invention, 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 the 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.
[0012] In one embodiment of the present invention, the sending module includes: a reading module, which is used to read the corresponding bit sequence from the storage module in sequence according to the number of execution times 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, which is used to send each bit sequence according to the bit sequence sending speed, so as to output the target pulse corresponding to the cam shaft through the bit sequence; wherein the target pulse includes sending a pulse and not sending a pulse.
[0013] In one embodiment of the present invention, 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 sequence according to the number of executions of the main shaft's motion pulses 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.
[0014] To achieve the above-mentioned purpose and other related purposes, a control method for the aforementioned high-precision electronic cam controller includes: The electronic cam curve is obtained through the 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 means of 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 the sending module, and each bit sequence is sent according to the bit sequence sending speed, so as to output the target pulse corresponding to the cam shaft through the bit sequence.
[0015] As described above, a high-precision electronic cam controller and control method of the present invention have the following beneficial effects: it can achieve that during the electronic cam movement, the position error between the main shaft and the cam shaft is within 1 pulse, with higher precision. The electronic cam controller can store multiple cam curves at the same time, and supports real-time modification of the curves and free switching between different curves, which is more flexible. It also supports one main shaft to control multiple cam shafts at the same time to perform electronic cam movement. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 Shown is a structural block diagram of an electronic cam controller provided by an embodiment of the present invention.
[0017] Figure 2 A schematic diagram showing an electronic cam control process provided by an embodiment of the present invention is shown.
[0018] Figure 3 A flow chart showing high-precision electronic cam control steps provided by an embodiment of the present invention.
[0019] Figure 4 A schematic diagram showing an electronic CAM curve provided by an embodiment of the present invention is shown.
[0020] Figure 5 Shown is a flow chart of a control method provided by an embodiment of the present invention.
[0021] Component number description Generating module 11; storing module 12; processing module 13; sending module 14. DETAILED DESCRIPTION
[0022] The following is an explanation of the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the features in the following embodiments and the embodiments can be combined with each other without conflict. It should also be understood that the terms used in the embodiments of the present invention are intended to describe specific embodiments, rather than to limit the scope of protection of the present invention. The test methods for which specific conditions are not specified in the following examples are usually carried out under conventional conditions or according to the conditions recommended by the manufacturers.
[0023] See also 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 and the cam shaft corresponding to the cam curve is within 1 pulse, and the precision is higher; and one main shaft can control multiple cam shafts to perform electronic cam movement at the same time. The high-precision electronic cam controller can include a generation module 11, a storage module 12, a processing module 13, and a sending module 14.
[0024] See also Figure 1 The present invention provides a high-precision electronic cam controller, including: a generating module 11, 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 12, used for storing the bit sequence; a processing module 13, used for converting the movement speed of the main shaft into a bit sequence sending speed; and a sending module 14, used for sequentially reading the bit sequence corresponding to each electronic cam curve in the storage module 12, and sending 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.
[0025] In one 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 sending speed of the bit sequence according to the spindle movement speed, thereby controlling the output pulse of the camshaft, so that the position error between the spindle and the camshaft is within one pulse, and the accuracy is higher. Specifically, when the electronic cam curve is input, the electronic cam curve is obtained by the generation module 11, and the electronic cam curve is converted into a corresponding bit sequence. Regarding the bit sequence of the present invention, it is used to indicate the pulse situation (that is, the target pulse) required for the camshaft to move for each pulse of the spindle. After obtaining the bit sequence, the storage module 12 is used to store the bit sequence corresponding to the generated electronic cam curve. It is worth noting that when the storage module 12 stores the bit sequence corresponding to the electronic cam curve, it can store multiple electronic cam curves to improve the flexibility of processing the electronic cam curve. After the bit sequence corresponding to the electronic cam curve is stored, the processing module 13 is used to generate the bit sequence sending speed according to the movement speed of the main shaft, so that the sending module 14 reads the bit sequence corresponding to each electronic cam curve in the storage module 12 in sequence according to the sequence sending speed, and sends the target pulse corresponding to the bit sequence to the cam shaft in sequence. In the above manner, it can be ensured that when the cam shaft pulse is controlled, the position of the cam shaft following the main shaft can be accurately controlled according to the electronic cam curve, so that the position relationship accuracy of the main shaft and the cam shaft during the movement reaches one pulse.
[0026] In one 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 cam shaft 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 a 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 pulse.
[0027] After the electronic cam curve is obtained, the curve parsing module can be used to 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 according to the relative position relationship between the main shaft and the cam shaft, the target pulse, the combination order of the target pulse and the pulse direction of the target pulse are obtained. Specifically, the bit sequence includes sending a pulse and not sending a pulse, wherein a pulse is represented by 1 and not sending a pulse is represented by 1. The length of a set 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 to perform pulse output, such as a positive pulse or a negative pulse. After obtaining the target pulse and the combination order of the target pulse, a corresponding bit sequence is generated. Specifically, according to the relative position of the main shaft and the cam shaft in the electronic cam curve, the pulse combination order of 0 and 1 in each set of bit sequences is obtained, that is, the position relationship between the main shaft and the cam shaft is accurately determined to the pulse level.
[0028] In an embodiment of the present invention, the generating module 11 is further used to obtain the electronic cam curve, and convert the electronic cam curve into a plurality of bit sequences according to the length of each electronic cam curve.
[0029] In the process of generating the bit sequence, the generating module 11 may decompose the electronic cam curve by length according to the specific situation of the electronic cam curve, so as to generate multiple groups of bit sequences according to the length of the electronic cam curve.
[0030] In one embodiment of the present invention, the storage module 12 includes: a plurality of designated storage areas for storing the bit sequence converted from each electronic cam curve; and a modification module for adding, modifying and clearing the designated bit sequence in the designated storage area.
[0031] When storing the generated bit sequence, the storage module 12 can convert multiple electronic cam curves into bit sequences respectively, and store the converted bit sequences in different designated storage areas respectively. In addition, the module can be changed to add, modify and clear the bit sequences in each designated storage area, so as to timely respond to the changes of the electronic cam curve during the movement and the needs of phase shift.
[0032] In one embodiment of the present invention, the processing module 13 includes: a real axis conversion module, which is used to convert the encoder speed of the spindle into a bit sequence transmission speed when the spindle is a real axis; and a virtual axis conversion module, which is used to convert the virtual axis speed of the spindle into a bit sequence transmission speed when the spindle is a virtual axis.
[0033] In the process of generating the bit sequence transmission speed according to the spindle movement speed by the processing module 13, the spindle can be a real axis or a virtual axis. The real axis conversion module can realize the calculation of the spindle encoder speed when the spindle is a real axis, that is, when the spindle is a real axis, the encoder speed of the spindle can be converted into the bit sequence transmission speed through the real axis conversion module. The virtual axis conversion module can realize the virtual axis speed control when the spindle is a virtual axis, that is, when the spindle is a virtual axis, the virtual axis speed of the spindle is calculated and converted into the bit sequence transmission speed.
[0034] In one embodiment of the present invention, the real axis conversion module is also used to obtain the position and running speed of the spindle according to the spindle encoder of the spindle when the spindle is a real axis; and obtain the bit sequence sending speed according to the position and running speed of the spindle to control the electronic cam.
[0035] In real axis mode, the real axis conversion module supports processing the input spindle encoder to obtain the spindle position and running speed. After obtaining the spindle position and running speed, it is also necessary to determine the bit sequence sending speed according to the spindle position and running speed to realize the function of real axis control electronic cam.
[0036] In one embodiment of the present invention, 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 the 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.
[0037] In the virtual axis mode, the virtual axis conversion module supports the use of user-configured virtual axis speed parameters to determine the bit sequence transmission speed. The configurable speed parameters include initial speed, stable speed, acceleration, deceleration, and terminal speed. If the configured virtual axis stable speed changes during the motion process, the electronic cam controller of the present invention can smoothly change the speed to the new virtual axis speed, thereby realizing the function of virtual axis controlling the electronic cam.
[0038] In one embodiment of the present invention, the processing module 13 can further determine the bit sequence transmission speed of the camshaft based on the actual proportional relationship between the main shaft and the camshaft, based on the main shaft movement speed. Specifically, the proportional relationship includes but is not limited to the pulse equivalent of the main shaft and the camshaft and the encoder resolution.
[0039] In one embodiment of the present invention, the sending module 14 includes: a reading module, which is used to read the corresponding bit sequence from the storage module 12 in sequence according to the number of execution times of the motion pulse of the main shaft and the movement direction of the electronic cam curve; wherein the movement direction of the electronic cam curve includes a forward movement direction and a reverse movement direction; and a pulse output module, which is used to send each bit sequence according to the bit sequence sending speed, so as to output the target pulse corresponding to the camshaft through the bit sequence; wherein the target pulse includes sending a pulse and not sending a pulse.
[0040] Each time the spindle moves a pulse, the reading module can read the bit sequence from the specified storage area in sequence, and according to the bit sequence sending speed calculated by the processing module, the pulse output module controls the reading and execution of each bit in the bit sequence bit by bit. Specifically, a pulse is sent when 1 is read, and no pulse is sent when 0 is read.
[0041] Every time the spindle moves one pulse, the number of bit sequences that the reading module needs to read and execute is also determined by the conversion of the electronic cam curve into a bit sequence, thereby ensuring that the positional relationship error between the spindle and the camshaft during movement is at most 1 pulse.
[0042] In one embodiment of the present invention, 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 12 in sequence according to the number of executions of the main shaft's motion pulses and the movement direction of the electronic cam curve, so as to control the motion of the corresponding cam shaft through each electronic cam curve.
[0043] The reading direction of the reading module when reading the bit sequence from the specified storage area is determined by the movement direction of the main axis, that is, it supports the forward and reverse movement of the cam curve. When the reading module reads the bit sequence from the storage module, it can realize the movement of different electronic cam curves by reading the bit sequence from different storage areas of the storage module.
[0044] The high-precision electronic cam controller of the present invention can realize the positional relationship between the main shaft and the cam shaft according to the requirements with high precision, and the error is within 1 pulse, no matter whether the main shaft of the electronic cam corresponding to the electronic cam curve adopts a real shaft or an imaginary shaft. One main shaft can control multiple cam shafts at the same time to realize the electronic cam function, and it is only necessary to configure the electronic cam curve of each cam shaft and its proportional relationship with the main shaft.
[0045] The high-precision electronic cam controller of the present invention realizes the main process of electronic cam control, including: converting the input electronic cam curve into a bit sequence, and storing the bit sequence in a designated storage area. By obtaining the real axis position and speed of the main axis or obtaining the imaginary axis speed, the bit sequence in the designated storage area is read and sent in sequence. In the above manner, in the process of realizing the electronic cam, the control error can be realized within 1 pulse.
[0046] See also Figure 2 , Figure 2 In one 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 the bit sequence is used to indicate the pulse situation of the camshaft required to move for each pulse of the main shaft; the generated bit sequence is stored by the bit sequence storage module, and the speed control module (that is, the processing module) is used to realize the spindle encoder speed calculation function when the main shaft is a real shaft and the virtual shaft speed control function when the main shaft is a virtual shaft. Specifically, the module converts the encoder speed when the main shaft is a real shaft or the virtual shaft speed when the main shaft is a virtual shaft into a 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 realize the functions of reading the bit sequence and sending the bit sequence according to the specified speed, so as to realize that the camshaft accurately follows the position of the main shaft according to the electronic cam curve, and the position relationship accuracy of the main shaft and the camshaft during the movement reaches 1 pulse.
[0047] See also Figure 3 , Figure 3 In one embodiment, in the process of realizing electronic cam control, the input electronic cam curve is converted into a bit sequence, the bit sequence is stored in a designated storage area, the spindle position and speed or the virtual axis speed is obtained, the bit sequence in the designated storage area is read and sent in sequence, and the maximum position error during the movement is 1 pulse. Specifically, when the movement starts, the electronic cam curve is written, the generation module 11 obtains the 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 spindle is converted into the bit sequence sending speed by the processing module 13. Then, it is determined whether to start running the cam. If so, the bit sequence in the storage module 12 will be read in sequence by the sending module 14, and each bit sequence will be sent according to the bit sequence sending speed, so as to output the target pulse corresponding to the cam shaft through the bit sequence. It is determined whether the current bit sequence has been sent. If not, the bit sequence will continue to be sent; if it has been sent, it is determined whether to close the cam. If not, other bit sequences in the storage module 12 will continue to be read and the bit sequence will continue to be sent; if the cam needs to be closed, the control process of the electronic cam is terminated.
[0048] See also Figure 4 , Figure 4 In one embodiment, during the execution of the electronic cam function, an electronic cam curve is stored in the electronic cam controller and the electronic cam curve is repeatedly executed, so that the cam shaft and the main shaft always maintain a certain relative position.
[0049] Specifically, this embodiment includes a main shaft and a cam shaft 1, and the bit sequence generated by the electronic cam curve is composed of 0 and 1, and the selected bit sequence length is 32. When sending the bit sequence, 0 represents not sending a pulse, and 1 represents sending a pulse.
[0050] The converted bit sequence is as follows: Storage address number Positive pulse sequence of camshaft 1 Negative pulse 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 According to the relative position relationship between the camshaft and the main shaft in the input cam curve, the 0 and 1 of each group of bit sequences are combined, and the generated bit sequence includes the bit sequence of the forward pulse output and the bit sequence of the reverse pulse output. In the process of sending the bit sequence, every time 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 realization of a cam is completed. If the cam needs to continue to run, the bit sequence is read again in order and sent. The speed at which the sending module 14 sends the bit sequence is controlled by the speed control module. The speed control module can determine the speed of the bit sequence sending by processing the input encoder of the main shaft to obtain the position and running speed of the main shaft by adopting the control mode of the main shaft as the real shaft. The sending module 14 starts to read the bit sequence of positive and negative pulses from the storage space with the address 0x0000, and completes a complete electronic cam control after reading and sending the bit sequence in the address 0x2008.
[0051] See also Figure 5 , a control method for the aforementioned high-precision electronic cam controller, comprising: The electronic cam curve is obtained by the generation module 11, 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 means of the storage module 12; The processing module 13 converts the movement speed of the spindle into a bit sequence transmission speed; The bit sequence corresponding to each electronic cam curve in the storage module 12 is read in sequence by the sending module 14, and each bit sequence is sent according to the bit sequence sending speed, so as to output the target pulse corresponding to the cam shaft through the bit sequence.
[0052] In summary, the high-precision electronic cam controller and control method disclosed in the present invention can achieve a position error of the main shaft and the cam shaft within 1 pulse during the electronic cam movement, with higher precision. The electronic cam controller can store multiple cam curves at the same time, and supports real-time modification of the curves and free switching between different curves, which is more flexible. It also supports one main shaft to control multiple cam shafts at the same time to perform electronic cam movement. Therefore, the present invention effectively overcomes various shortcomings in the prior art and has a high industrial utilization value.
[0053] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall 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 The sending module is used to read the bit sequence corresponding to each electronic cam curve in the storage module in sequence, and send each bit sequence according to the bit sequence sending speed, so as to output the target pulse corresponding to the camshaft through the bit sequence.
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 storage module comprises: 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.
5. 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.
6. The high-precision electronic cam controller according to claim 5, 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.
7. The high-precision electronic cam controller according to claim 5, 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.
8. 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.
9. The high-precision electronic cam controller according to claim 8, 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.
10. A control method for the high-precision electronic cam controller according to any one of claims 1 to 9, 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
Six-axis joint robot distributed control system and method
CN105929797A
Electronic cam curve generation method and system, computer storage medium and terminal
CN113468465A
Motion controller
JP1993337729A
Electronic cam controller
JP2011221850A