mirror of
https://github.com/sinseman44/PyCNC.git
synced 2026-07-16 08:37:09 +00:00
first commit
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
g21
|
||||
g90
|
||||
; move to start position
|
||||
g1x50y50f1800
|
||||
z20
|
||||
g91
|
||||
; run
|
||||
x100
|
||||
y100
|
||||
x-100
|
||||
y-90
|
||||
x90
|
||||
y80
|
||||
x-80
|
||||
y-70
|
||||
x70
|
||||
y60
|
||||
x-60
|
||||
y-50
|
||||
x50
|
||||
y40
|
||||
x-40
|
||||
y-30
|
||||
x30
|
||||
y20
|
||||
x-20
|
||||
y-10
|
||||
x10
|
||||
y5
|
||||
x-5
|
||||
y-2.5
|
||||
x2.5
|
||||
; homing
|
||||
g28
|
||||
|
||||
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
PASS=raspberry
|
||||
ADDR=pi@192.168.0.208
|
||||
if [ ! -z $1 ]; then
|
||||
ADDR=$1
|
||||
fi
|
||||
sshpass -p${PASS} scp $(dirname "$0")/../rpgpio_private.py "${ADDR}:~"
|
||||
sshpass -p${PASS} scp $(dirname "$0")/../rpgpio.py "${ADDR}:~"
|
||||
sshpass -p${PASS} ssh -t ${ADDR} "sudo ~/rpgpio.py"
|
||||
@@ -0,0 +1,28 @@
|
||||
%
|
||||
g28
|
||||
n1 g1x0y0z0
|
||||
n1 g1 x1 y1 z1 ; check if comments is ok
|
||||
g1(check if inline comments work)x2y2(two times)z2
|
||||
(or on separated line)
|
||||
; or like this
|
||||
m3s04000
|
||||
g4 p0.5
|
||||
m5
|
||||
f500
|
||||
g91
|
||||
g20
|
||||
g0x1
|
||||
g0x1
|
||||
g0x1
|
||||
g0x-1
|
||||
g0x-1
|
||||
g0x-1
|
||||
g21
|
||||
g1y1
|
||||
g1y-1
|
||||
g90
|
||||
g92x100y100z100
|
||||
m111
|
||||
g1x98y98z98
|
||||
(head should be in zero position, and last movent with 500 mm/min velocity)
|
||||
m2
|
||||
Reference in New Issue
Block a user