User Tools

Site Tools


plc:spindle_speed_control_through_-10v_dac_channel_et10

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
plc:spindle_speed_control_through_-10v_dac_channel_et10 [2022/09/13 13:50] ivanplc:spindle_speed_control_through_-10v_dac_channel_et10 [2022/09/13 13:51] (current) ivan
Line 51: Line 51:
 As of September 2022, the firmware for the ET10 boards has been updated to make DAC control easier. For instance, now users can run code such as this: As of September 2022, the firmware for the ET10 boards has been updated to make DAC control easier. For instance, now users can run code such as this:
  
-<code>main()+<code C>main()
  
 {  timer=0; {  timer=0;
Line 69: Line 69:
      
   portclr(OUTPUT_CCW_SPINDLE);   portclr(OUTPUT_CCW_SPINDLE);
-  portset(OUTPUT_SPINDLE);  gvarset(7370,1); timer=30;do{timer--;}while (timer>0); //Spindle State +  portset(OUTPUT_SPINDLE);   
-  gvarset(7371,eparam); timer=30;do{timer--;}while (timer>0); //Spindle Speed Mirror register  //gvarset(7372,0);//Mist State+  gvarset(7370,1);timer=30;do{timer--;}while (timer>0); //Spindle State 
 +  gvarset(7371,eparam);timer=30;do{timer--;}while (timer>0); //Spindle Speed Mirror register   
 +  //gvarset(7372,0);//Mist State
      
   //timer=30;do{timer--;}while (timer>0); //   //timer=30;do{timer--;}while (timer>0); //
plc/spindle_speed_control_through_-10v_dac_channel_et10.txt · Last modified: 2022/09/13 13:51 by ivan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki