first commit

This commit is contained in:
Nikolay Khabarov
2017-05-10 04:25:12 +03:00
commit b70dd3c9ea
23 changed files with 1594 additions and 0 deletions
+35
View File
@@ -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
+10
View File
@@ -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"
+28
View File
@@ -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