User Tools

Site Tools


mycnc:timers

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:timers [2018/04/30 16:41] skirillovmycnc:timers [2018/04/30 19:41] skirillov
Line 4: Line 4:
  
   * Each timer can be assigned to any output pin.    * Each timer can be assigned to any output pin. 
-  * Pulse time (in miliseconds) and Pause time (in miliseconds) can be setup for each timer+  * Pulse time (in milliseconds) and Pause time (in milliseconds) can be setup for each timer
   * Timers can be enabled/disabled from myCNC software setup dialog or through number of Global Variable registers.   * Timers can be enabled/disabled from myCNC software setup dialog or through number of Global Variable registers.
  
Line 16: Line 16:
 ^ Timer0 ^  ^  ^ ^ Timer0 ^  ^  ^
 | GVAR_TIMER0_ENABLED | 8100 | Writing "0" to this register will disable Timer0, \\ writing "1" will enable Timer0 | | GVAR_TIMER0_ENABLED | 8100 | Writing "0" to this register will disable Timer0, \\ writing "1" will enable Timer0 |
-| GVAR_TIMER0_PORT | 8101 | Writig to this register will change Output pin connected to Timer0. Writing value is the Output Pin# | +| GVAR_TIMER0_PORT | 8101 | Writing to this register will change Output pin connected to Timer0. Writing value is the Output Pin# | 
-| GVAR_TIMER0_PULSE | 8102 | A value written to this register is Timer 0 Pulse width in miliseconds +| GVAR_TIMER0_PULSE | 8102 | A value written to this register is Timer 0 Pulse width in milliseconds 
-| GVAR_TIMER0_PAUSE | 8103 | A value written to this register is Timer 0 Pause in miliseconds |+| GVAR_TIMER0_PAUSE | 8103 | A value written to this register is Timer 0 Pause in milliseconds |
 ^ Timer1 ^  ^  ^ ^ Timer1 ^  ^  ^
 | GVAR_TIMER1_ENABLED | 8104 | Writing "0" to this register will disable Timer1, \\ writing "1" will enable Timer1 | | GVAR_TIMER1_ENABLED | 8104 | Writing "0" to this register will disable Timer1, \\ writing "1" will enable Timer1 |
-| GVAR_TIMER1_PORT | 8105 | Writig to this register will change Output pin connected to Timer1. Writing value is the Output Pin# | +| GVAR_TIMER1_PORT | 8105 | Writing to this register will change Output pin connected to Timer1. Writing value is the Output Pin# | 
-| GVAR_TIMER1_PULSE | 8106 | A value written to this register is Timer 1 Pulse width in miliseconds +| GVAR_TIMER1_PULSE | 8106 | A value written to this register is Timer 1 Pulse width in milliseconds 
-| GVAR_TIMER1_PAUSE | 8107 | A value written to this register is Timer 1 Pause in miliseconds |+| GVAR_TIMER1_PAUSE | 8107 | A value written to this register is Timer 1 Pause in milliseconds |
 ^ Timer2 ^  ^  ^ ^ Timer2 ^  ^  ^
 | GVAR_TIMER2_ENABLED | 8108 | Writing "0" to this register will disable Timer2, \\ writing "1" will enable Timer2 | | GVAR_TIMER2_ENABLED | 8108 | Writing "0" to this register will disable Timer2, \\ writing "1" will enable Timer2 |
-| GVAR_TIMER2_PORT | 8109 | Writig to this register will change Output pin connected to Timer2. Writing value is the Output Pin# | +| GVAR_TIMER2_PORT | 8109 | Writing to this register will change Output pin connected to Timer2. Writing value is the Output Pin# | 
-| GVAR_TIMER2_PULSE | 8110 | A value written to this register is Timer 2 Pulse width in miliseconds +| GVAR_TIMER2_PULSE | 8110 | A value written to this register is Timer 2 Pulse width in milliseconds 
-| GVAR_TIMER2_PAUSE | 8111 | A value written to this register is Timer 2 Pause in miliseconds |+| GVAR_TIMER2_PAUSE | 8111 | A value written to this register is Timer 2 Pause in milliseconds |
 ^ Timer3 ^  ^  ^ ^ Timer3 ^  ^  ^
 | GVAR_TIMER3_ENABLED | 8112 | Writing "0" to this register will disable Timer3, \\ writing "1" will enable Timer3 | | GVAR_TIMER3_ENABLED | 8112 | Writing "0" to this register will disable Timer3, \\ writing "1" will enable Timer3 |
-| GVAR_TIMER3_PORT | 8113 | Writig to this register will change Output pin connected to Timer3. Writing value is the Output Pin# | +| GVAR_TIMER3_PORT | 8113 | Writing to this register will change Output pin connected to Timer3. Writing value is the Output Pin# | 
-| GVAR_TIMER3_PULSE | 8114 | A value written to this register is Timer 3 Pulse width in miliseconds +| GVAR_TIMER3_PULSE | 8114 | A value written to this register is Timer 3 Pulse width in milliseconds 
-| GVAR_TIMER3_PAUSE | 8115 | A value written to this register is Timer 3 Pause in miliseconds |+| GVAR_TIMER3_PAUSE | 8115 | A value written to this register is Timer 3 Pause in milliseconds |
  
  
 ==== How to use Timers in Hardware PLC ==== ==== How to use Timers in Hardware PLC ====
  
-Here is example with Timer0 setup in PLC procedure+Here is an example of Timer0 setup in PLC procedure
  
 M169 is Timer0 initialization and start M169 is Timer0 initialization and start
mycnc/timers.txt · Last modified: 2022/03/07 16:09 by ivan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki