test: Add a dual_carriage test case

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2018-06-17 09:44:15 -04:00
parent ea18034258
commit d94dc44e98
2 changed files with 145 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
# Test cases on printers with dual carriage and multiple extruders
CONFIG dual_carriage.cfg
DICTIONARY atmega2560-16mhz.dict
# First home the printer
G90
G28
# Perform a dummy move
G1 X10 F6000
# Activate alternate carriage
SET_DUAL_CARRIAGE CARRIAGE=1
G1 X190 F6000
# Go back to main carriage
SET_DUAL_CARRIAGE CARRIAGE=0
G1 X20 F6000
# Test changing extruders
G1 X5
T1
G91
G1 X-10 E.2
T0
G91
G1 X20 E.2
G90
# Servo tests
SET_SERVO servo=my_servo angle=160
SET_SERVO servo=my_servo angle=130
# Verify STEPPER_BUZZ
STEPPER_BUZZ STEPPER=dual_carriage
STEPPER_BUZZ STEPPER=extruder
STEPPER_BUZZ STEPPER=extruder1