Install dependent package
pacman -S mono
Download RepetierHost
Decompress the tar file
tar xvf repetierHostLinux_1_5_6.tgz
Execute script file
./repetierHost
Please set baudrate = 115200
Reference:
M221 S40 ; amount of material
M104 S180 ; temperature
M221 S100 ; amount of material
M104 S190 ; temperature
awk '/; BEGIN_LAYER_RAFT z=1.55/{print;print "M221 S40 \nM109 S180";next}1' phone_stand.2.gcode > print.gcode
awk '/; BEGIN_LAYER_OBJECT z=2.20/{print;print "M221 S100 \n
M109 S190
";next}1' print.gcode > print_done.gcode
KISSlicer
M104 S<TEMP>; Start to preheat the header
G92 Z0; Set the current z postion as origin
G1 Z10; Move Z axis up to 10mm avoid probe bang the platform.
G28 Y; Y axis return to zero.
G28 X; X axis return to zero.
G1 X100 Y100 F6000; Header move to center of platform
M401; Put the probe down
G28 z; Z axis return to zero.
G29; Platform leveling correction dectective
G1 Z5 F3000 ; move z axis up to 5mm
M109 S<TEMP>; Wait for temperature up to working temperature.
M82; E axis use absolute coordinate
[happy@localhost build4709796185245500912.tmp]$ sudo avrdude -p m2560 -c stk500v2 -b 115200 -P/dev/ttyUSB0 -U flash:w:Marlin.cpp.hex:i -D
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x1e9801
avrdude: reading input file "Marlin.cpp.hex"
avrdude: writing flash (116672 bytes):
Writing | ################################################## | 100% 17.43s
avrdude: 116672 bytes of flash written
avrdude: verifying flash memory against Marlin.cpp.hex:
avrdude: load data flash data from input file Marlin.cpp.hex:
avrdude: input file Marlin.cpp.hex contains 116672 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 13.54s
avrdude: verifying ...
avrdude: 116672 bytes of flash verified
avrdude: safemode: Fuses OK (E:FF, H:D8, L:FF)
avrdude done. Thank you.
[happy@localhost build4709796185245500912.tmp]$ sudo avrdude -p m2560 -c stk500v2 -b 115200 -P/dev/ttyUSB0 -U flash:w:Marlin.cpp.hex:i -D
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x1e9801
avrdude: reading input file "Marlin.cpp.hex"
avrdude: writing flash (116672 bytes):
Writing | ################################################## | 100% 17.43s
avrdude: 116672 bytes of flash written
avrdude: verifying flash memory against Marlin.cpp.hex:
avrdude: load data flash data from input file Marlin.cpp.hex:
avrdude: input file Marlin.cpp.hex contains 116672 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 13.54s
avrdude: verifying ...
avrdude: 116672 bytes of flash verified
avrdude: safemode: Fuses OK (E:FF, H:D8, L:FF)
avrdude done. Thank you.