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

  Notepad++ Plugin
   Examples

  3D Models
   small_cnc.txt
   3dModel_TableA.txt


kb:samples:lissajous_g65_with_goto

Lissajous (G65 with GOTO)

%
GOTO 500
 
O1000
  G00 X#<xvalue> Y[#<yvalue>+#<svalue>] Z#<zvalue>
  #<step> = 0
  O<loop> while [#<step> LE 360]
    #<x> = [#<avalue> * sin[#<uvalue> * #<step> + #<dvalue>]]
    #<y> = [#<bvalue> * cos[#<vvalue> * #<step> + #<evalue>]]
    G01 X[#<xvalue>+[#<svalue>*#<x>]] Y[#<xvalue>+[#<svalue>*#<y>]]
    #<step> = [#<step> + #<rvalue>]
  O<loop> endwhile
M99
 
N500
G65 P1000 X0 Y0 Z0 A1 B1 U1 V3 D0 E0 S100 R5
M2
%
kb/samples/lissajous_g65_with_goto.txt · Last modified: 2024/04/02 19:49 by 127.0.0.1

Page Tools