Under the hode I use a ATMEL MEGA 2560 and some cheap stepper motors and drivers.
For the first setup I use Merlin as base of my own g-code interpreter firmware.
It lifes here are my first output via RS232 with 250000 baud.
Code: Select all
connected
press [esc] to disconnect ...
start
echo:Marlin1.0.0
echo: Free Memory: 3795 PlannerBufferBytes: 1232
echo:Hardcoded Default Settings Loaded
echo:Steps per unit:
echo: M92 X78.74 Y78.74 Z2560.00 E105.00
echo:Maximum feedrates (mm/s):
echo: M203 X400.00 Y400.00 Z2.00 E45.00
echo:Maximum Acceleration (mm/s2):
echo: M201 X1400 Y1400 Z100 E80000
echo:Acceleration: S=acceleration, T=retract acceleration
echo: M204 S1400.00 T5000.00
echo:Advanced variables: S=Min feedrate (mm/s), T=Min travel feedrate (mm/s), B=
minimum segment time (ms), X=maximum XY jerk (mm/s), Z=maximum Z jerk (mm/s),
E=maximum E jerk (mm/s)
echo: M205 S0.00 T0.00 B20000 X13.50 Z0.30 E5.00
echo:Home offset (mm):
echo: M206 X0.00 Y0.00 Z0.00
echo:PID settings:
echo: M301 P19.86 I1.00 D98.93
echo:SD card ok
Joshy
Code: Select all
#ifdef __FB_WIN32__
const PORT = "COM16" ' windows
#else
const PORT = "/dev/ttyUSB0" ' linux
#endif
const BAUD = "250000"
var hFile = FreeFile()
var result = open com(PORT & ":" & BAUD & "," & "N,8,1,CD,CS,DS,OP,BIN",as #hFile)
if result then
print "error: can't open port: " & PORT & " with " & BAUD & " baud !"
beep : sleep : end 1
end if
print "connected"
print "press [esc] to disconnect ..."
while inkey()=""
while not EOF(hFile)
dim as ubyte char
get #hFile,,char,1
if char>31 then
print chr(char);
else
print
end if
wend
sleep 100
wend
print "dsconnected"
close #1
sleep