Difference between revisions of "Program Examples:Helical Interpolation"

From SoftMC-Wiki
Jump to: navigation, search
m (Introduction)
(Program)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{Languages|Program_Examples:Helical_Interpolation}}
 
==Introduction==
 
==Introduction==
  
 +
This article demonstrates the use of [[MC-Basic:CIRCLE|CIRCLE]] command to build helix. This example is based on the previous example of Cartesian XYZ group.
  
[[File:CIRCDEMO.PNG|Double helix demo|thumb|400px]]
+
[[File:CIRCDEMO.PNG|Double helix demo|400px]]
 
 
This page will demonstrate the usage of [[MC-BASIC:CIRCLE|CIRCLE]] command to build helix. This example is based on the previous example of Cartesian XYZ group.
 
  
 
== Program ==
 
== Program ==
  
First of all attach the group and enable the motors:
+
First, attach the group and enable the motors:
  
 
<pre>
 
<pre>
Line 23: Line 23:
 
</pre>
 
</pre>
  
First helix from X=50,Y=0,Z=0 up to x=50, Y=100, Z=100 it means helix around line at X=50,Y=50 of 540 degrees:
+
First helix from X=50,Y=0,Z=0 up to x=50, Y=100, Z=100 means helix around line at X=50,Y=50 of 540 degrees:
 
<pre>
 
<pre>
 
     Circle Angle = -(360+180) CircleCenter=#{50,50,100}
 
     Circle Angle = -(360+180) CircleCenter=#{50,50,100}
<pre>
+
</pre>
  
Move parallel to X axis for 100mm:
+
Move parallel to X axis for 100 mm:
  
 
<pre>
 
<pre>
Line 35: Line 35:
  
  
Second helix from X=150,Y=100,Z=100 down to x=150, Y=0, Z=0 it means helix around line at X=150,Y=50 of 540 degrees:
+
Second helix from X=150,Y=100,Z=100 down to x=150, Y=0, Z=0 means helix around line at X=150,Y=50 of 540 degrees:
  
 
<pre>
 
<pre>
Line 41: Line 41:
 
</pre>
 
</pre>
  
Back to the initial position, and detach from the program:
+
Return to the initial position, and detach from the program:
 
<pre>
 
<pre>
 
     Moves #{50,0,0}
 
     Moves #{50,0,0}
 
   Detach
 
   Detach
 
</pre>
 
</pre>

Latest revision as of 12:48, 4 June 2018

Language: English  • 中文(简体)‎

Introduction

This article demonstrates the use of CIRCLE command to build helix. This example is based on the previous example of Cartesian XYZ group.

Double helix demo

Program

First, attach the group and enable the motors:

  Attach
    En=1

Go to initial position:

    Moves #{50,0,0}
    Delay 10
    Sleep 100

First helix from X=50,Y=0,Z=0 up to x=50, Y=100, Z=100 means helix around line at X=50,Y=50 of 540 degrees:

    Circle Angle = -(360+180) CircleCenter=#{50,50,100}

Move parallel to X axis for 100 mm:

    Moves #{150,100,100}


Second helix from X=150,Y=100,Z=100 down to x=150, Y=0, Z=0 means helix around line at X=150,Y=50 of 540 degrees:

    Circle Angle = -(360+180) CircleCenter=#{150,50,0}

Return to the initial position, and detach from the program:

    Moves #{50,0,0}
  Detach