User Tools

Site Tools


mycnc:independent_pulse_generator

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
mycnc:independent_pulse_generator [2019/10/03 14:10] ivanmycnc:independent_pulse_generator [2019/10/03 14:31] ivan
Line 276: Line 276:
 <code> 515499347/768 = 671223</code> <code> 515499347/768 = 671223</code>
  
-By setting these values ​​in the M03.plc and SPN.plc procedures, we obtain the generation of the required 750 kHz frequency when the spindle speed is set to 4500, as well as smooth frequency control over the entire range from 0 to 4500 rpm.+By setting these values ​​in the M03.plc and SPN.plc procedures, we will generate the required 750 kHz frequency when the spindle speed is set to 4500, as well as smooth frequency control over the entire range from 0 to 4500 rpm.
  
  
 **A method for evaluating the required acceleration of a generator** **A method for evaluating the required acceleration of a generator**
  
-The unit of the generator Acceleration task in a very rough approximation is 1 impulse / s2. +One unit of the generator acceleration is, by a very rough approximation1 impulse / s2. This means that with such an acceleration, the generator “accelerates”  to a frequency of 1 Hz in 1 second. If, in our case, the maximum frequency is 750,000, then the acceleration must be equal to the same value in order to “accelerate” to this frequency in 1 second.
-This means that with such an acceleration, the generator “accelerates”  to a frequency of 1 Hz in 1 second. +
- +
-If, in our case, the maximum frequency is 750,000, then the acceleration must be equal to the same value in order to “accelerate” to this frequency in 1 second.+
  
 **Test code for spindle start-up and spindle speed adjustment procedures**: **Test code for spindle start-up and spindle speed adjustment procedures**:
Line 319: Line 316:
  
  
-  gvarset(8131, 500000); timer=30;do{timer--;}while(timer>0); //Задержка на 30мс+  gvarset(8131, 500000); timer=30;do{timer--;}while(timer>0); //30ms delay
   k=671223;    k=671223; 
   freq=val*k; //calculate the RAW frequency   freq=val*k; //calculate the RAW frequency
   if (freq>515499348) {freq=515499348;};   if (freq>515499348) {freq=515499348;};
-  gvarset(8130,freq); timer=30;do{timer--;}while(timer>0); //Задержка на 30мс+  gvarset(8130,freq); timer=30;do{timer--;}while(timer>0); //30ms delay
  
  
Line 361: Line 358:
 ==== Low level CNC registers to control independent pulse generator ==== ==== Low level CNC registers to control independent pulse generator ====
  
-This is for records only. Users don't have to use low-level access.+This is for records only. Users don't have to utilize these settings which are changed by having low-level access to the controller.
  
 ^ Register Name ^ Address ^ Description ^ ^ Register Name ^ Address ^ Description ^
mycnc/independent_pulse_generator.txt · Last modified: 2022/02/11 15:45 by ivan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki