User Tools

Site Tools


Sidebar

Home



Knowledge Base


Guides & Tutorials

Projects

Samples

  G-Code
   Square
   Arcs
   Mickey
   Arrow
   Bear
   Ball In Cage

  Dialogs
   Square
   Rounded Square
   Guess The Number

  O-Words
   Polygon

  Subprocedures
   Lissajous

   Lissajous (sub..endsub..call)
   Lissajous (call..sub..endsub)

   Lissajous (exec..O..M99)

   Lissajous (G65)
   Lissajous (G65 with GOTO)

   Palindrome
   PrimeFactors
   Fibonacci

  Splines
   Butterfly

  G06
   arrchr

  Dynamic
   Clock
   DateTime

  Python
   Lissajous Python

  3D Models
   3D CNC
   3dModel_TableA.txt

  Notepad++ Plugin
   Examples


kb:samples:lissajous

Lissajous

sub..endsub..call

%
O1000 sub
  G00 X#1 Y[#2+#10] Z#3
  #20 = 0
  O1002 while [#20 LE 360]
    #21 = [#4 * sin[#6 * #20 + #8]]
    #22 = [#5 * cos[#7 * #20 + #9]]
    G01 X[#1+[#10*#21]] Y[#2+[#10*#22]]
    #20 = [#20 + #11]
  O1002 endwhile
O1000 endsub
 
(#1=x #2=y #3=z #4=A #5=B #6=a #7=b #8=d #9=g #10=scale #11=res)
O1000 call [0] [0] [0] [1] [1] [1] [3] [0] [0] [100] [5]
;O1000 call [0] [0] [0] [1] [1] [2] [5] [0] [0] [100] [5]
;O1000 call [0] [0] [0] [1] [1] [5] [3] [0] [0] [100] [5]
%
kb/samples/lissajous.txt · Last modified: 2024/04/02 19:36 by 127.0.0.1

Page Tools