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 revision
Previous revision
mycnc:independent_pulse_generator [2020/02/20 08:54] ivanmycnc:independent_pulse_generator [2022/02/11 15:45] (current) ivan
Line 6: Line 6:
 <code> <code>
 Independent Pulse Generator was added to firmware dated July 20, 2018. Independent Pulse Generator was added to firmware dated July 20, 2018.
-At the moment the firmware is available as the 
-"Testing" version at the "Support" widget. 
 </code> </code>
  
Line 23: Line 21:
  
  
-Originally the Pulse generator was supposed to use as Coolant control.+Originally the Pulse generator was meant to be used as Coolant control.
 Global register GVAR_PLC_COOLANT_STATE (#7372) is used to detect the Current State of the Pulse generator. Global register GVAR_PLC_COOLANT_STATE (#7372) is used to detect the Current State of the Pulse generator.
  
Line 37: Line 35:
 Global variable registers can be written in either Hardware or Software PLC. Global variable registers can be written in either Hardware or Software PLC.
  
-<code>Q: Why the Frequency Ratio need+<code>Q: Why is the Frequency Ratio needed
-A: Internal frequency unit has no sense for a normal user. It is convenient  +A: Internal frequency units do not make sense for a normal user. It is convenient  
-to set up the ratio and has the Frequency value in a unit usable for a user.  +to set up the ratio and has the Frequency value in a unit that would be usable for a user.  
-Depends on Frequency generator application the unit might be very different.+Depending on the Frequency generator applicationthe unit might be very different.
  
-It can be [1Hz] if you need a simple frequency generator, +It may be [1Hz] if you need a simple frequency generator, 
 or [ml/hour] for Coolant control or [ml/hour] for Coolant control
 or [rpm] for Spindle speed through pulse-dir servo controller. or [rpm] for Spindle speed through pulse-dir servo controller.
Line 53: Line 51:
  
 === Pulse Generator settings in the Software PLC === === Pulse Generator settings in the Software PLC ===
-The rate, ratio and acceleration can be set up in the Software PLC as well. +The rate, ratio and acceleration can be set up in the Software PLCas well as in the User Settings widget (the Step-Dir Coolant Control section)
  
 "HANDLER_INIT.plc" procedure is started just after the configuration is sent to the myCNC controller. A few lines to set up the Frequency generator can be added there. "HANDLER_INIT.plc" procedure is started just after the configuration is sent to the myCNC controller. A few lines to set up the Frequency generator can be added there.
Line 177: Line 175:
 <code C> <code C>
   // Send generator frequency value   // Send generator frequency value
-  gvarset (8130.0); timer = 30; do {timer -;} while (timer> 0); // Delay for 30ms+  gvarset(8130,0); timer = 30; do {timer -;} while (timer> 0); // Delay for 30ms
   exit (99); // normal exit   exit (99); // normal exit
 </code> </code>
Line 316: Line 314:
   * stepper motor based coolant system.   * stepper motor based coolant system.
  
 +
 +==== Additional Notes ====
 +
 +++++ Synchronization |
 +
 +When using the spindle as a rotary B/C axis, synchronization will be performed automatically, since the C and Y axes are controlled from the program by the G-code commands. When switching to the "proper" spindle mode, synchronization is done via the spindle encoder and is used in the corresponding threading commands. 
 +
 +++++
  
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