User Tools

Site Tools


mycnc:mycnc_setup_examples

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
Next revisionBoth sides next revision
mycnc:mycnc_setup_examples [2021/02/05 16:05] ivanmycnc:mycnc_setup_examples [2021/11/17 16:07] ivan
Line 59: Line 59:
  
 === How to set up a Lathe/Turning machine === === How to set up a Lathe/Turning machine ===
 +
 +[[quickstart:mycnc-quick-start:lathe_setup|Lathe/Turning Set up tips]]
 +
  
 1. Select Basic profile as "Lathe" in **Cfg** - **Preferences** - **Common** dialog 1. Select Basic profile as "Lathe" in **Cfg** - **Preferences** - **Common** dialog
Line 396: Line 399:
  
 === Setting up a 2-motor X+Y X-Y 3D-printer=== === Setting up a 2-motor X+Y X-Y 3D-printer===
 +
 +A 3D printer shown below is an example of a setup which utilized the X+Y and X-Y axis configuration in Settings -> Config -> Axes/Motors:
  
 http://forum.pv-automation.com/download/file.php?id=1135&t=1 http://forum.pv-automation.com/download/file.php?id=1135&t=1
 +http://forum.pv-automation.com/download/file.php?id=1134&t=1
 +
 +=== Setting up a waterjet system === 
 +
 +Certain CAM software packages can automatically insert necessary waterjet M-codes at some desired distance from the corners to properly accelerate and decelerate the machine. These M-codes are M64/M65, as well as M164/M165 - the first two turn a specified output on/off on the fly without stopping (using the special FlyCut license that we provide), while M164/M165 are reserved for controlling the PWM output. 
 +
 +Some profiles within myCNC software (such as X1366P) contain a Software PLC procedure (WATERJET_SLOWSPEED) that works by monitoring the state of the output that the above codes toggle on and off:
 +
 +<code C> main()  
 +{
 + a0=gvarget(7184)&(1<<10); 
 +do{ 
 +a1=gvarget(7184)&(1<<10);
 +if (a0!=a1) 
 +{  
 + a0=a1; 
 + if (a0==0) //normal speed   
 +  {   
 +   gvarset(9379,0);
 +  }else //slow speed 
 +  {     
 +    gvarset(9379,1);   
 +  }; 
 +};    
 +}while(1);       
 +};   
 +</code>
 +
 +The above software PLC monitors the state of the desired output and switches the state of the global variable #9379. Writing "1" to this global variable results in a timer being started in the myCNC system, allowing the software, with the help of "Overspeed %" value, to smoothly reduce/increase the speed while passing a corner.
 +
 +As mentioned before, this functionality requires a FlyCut license, which is available to purchase on request. 
  
mycnc/mycnc_setup_examples.txt · Last modified: 2024/01/30 12:09 by ivan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki