2019-06-05 23:33:15 +02:00
|
|
|
# Tests for the tmc drivers
|
|
|
|
CONFIG tmc.cfg
|
|
|
|
DICTIONARY atmega2560.dict
|
|
|
|
|
|
|
|
; Start by homing the printer.
|
|
|
|
G28
|
|
|
|
G90
|
|
|
|
G1 F6000
|
|
|
|
|
|
|
|
; Z / X / Y moves
|
|
|
|
G1 Z1
|
|
|
|
G1 X1
|
|
|
|
G1 Y1
|
|
|
|
|
|
|
|
; Test DUMP_TMC commands
|
|
|
|
DUMP_TMC STEPPER=stepper_x
|
|
|
|
DUMP_TMC STEPPER=stepper_x1
|
|
|
|
DUMP_TMC STEPPER=stepper_y
|
2019-06-18 21:43:18 +02:00
|
|
|
DUMP_TMC STEPPER=stepper_y1
|
2019-06-05 23:33:15 +02:00
|
|
|
DUMP_TMC STEPPER=stepper_z
|
|
|
|
DUMP_TMC STEPPER=stepper_z1
|
|
|
|
|
|
|
|
; Test INIT_TMC commands
|
|
|
|
INIT_TMC STEPPER=stepper_x
|
|
|
|
INIT_TMC STEPPER=stepper_x1
|
|
|
|
INIT_TMC STEPPER=stepper_y
|
2019-06-18 21:43:18 +02:00
|
|
|
INIT_TMC STEPPER=stepper_y1
|
2019-06-05 23:33:15 +02:00
|
|
|
INIT_TMC STEPPER=stepper_z
|
|
|
|
INIT_TMC STEPPER=stepper_z1
|
|
|
|
|
|
|
|
; Test SET_TMC_CURRENT commands
|
|
|
|
SET_TMC_CURRENT STEPPER=stepper_x CURRENT=.7
|
|
|
|
SET_TMC_CURRENT STEPPER=stepper_x1 CURRENT=.7
|
|
|
|
SET_TMC_CURRENT STEPPER=stepper_y CURRENT=.7
|
2019-06-18 21:43:18 +02:00
|
|
|
SET_TMC_CURRENT STEPPER=stepper_y1 CURRENT=.7
|
2019-06-05 23:33:15 +02:00
|
|
|
SET_TMC_CURRENT STEPPER=stepper_z CURRENT=.7
|
|
|
|
SET_TMC_CURRENT STEPPER=stepper_z1 CURRENT=.7
|
|
|
|
|
|
|
|
; Test SET_TMC_FIELD commands
|
2019-06-24 14:05:45 +02:00
|
|
|
SET_TMC_FIELD STEPPER=stepper_x FIELD=intpol VALUE=0
|
|
|
|
SET_TMC_FIELD STEPPER=stepper_x1 FIELD=intpol VALUE=0
|
|
|
|
SET_TMC_FIELD STEPPER=stepper_y FIELD=intpol VALUE=0
|
|
|
|
SET_TMC_FIELD STEPPER=stepper_y1 FIELD=intpol VALUE=0
|
|
|
|
SET_TMC_FIELD STEPPER=stepper_z FIELD=intpol VALUE=0
|
|
|
|
SET_TMC_FIELD STEPPER=stepper_z1 FIELD=INTPOL VALUE=0
|