2018-07-03 19:34:33 +03:00
|
|
|
# Tests for miscellaneous g-code commands
|
2019-03-22 19:36:18 +03:00
|
|
|
DICTIONARY atmega2560.dict
|
2020-11-17 02:47:32 +03:00
|
|
|
CONFIG ../../config/example-cartesian.cfg
|
2018-07-03 19:34:33 +03:00
|
|
|
|
|
|
|
# Simple status commands
|
|
|
|
GET_POSITION
|
2018-07-05 18:02:48 +03:00
|
|
|
M114
|
2018-07-03 19:34:33 +03:00
|
|
|
|
|
|
|
STATUS
|
|
|
|
|
|
|
|
HELP
|
|
|
|
|
|
|
|
QUERY_ENDSTOPS
|
|
|
|
|
2018-07-05 18:02:48 +03:00
|
|
|
M115
|
|
|
|
|
|
|
|
M18
|
|
|
|
|
2019-05-26 18:08:48 +03:00
|
|
|
# G-code state commands
|
|
|
|
G28
|
|
|
|
SAVE_GCODE_STATE
|
|
|
|
G92 Z-5
|
|
|
|
G92 E5
|
|
|
|
SAVE_GCODE_STATE NAME=test
|
|
|
|
G1 Z-5
|
|
|
|
G91
|
|
|
|
G1 Z0
|
|
|
|
RESTORE_GCODE_STATE NAME=test
|
|
|
|
G1 Z-5
|
|
|
|
RESTORE_GCODE_STATE
|
|
|
|
G1 Z0 E0
|
|
|
|
RESTORE_GCODE_STATE MOVE=1
|
|
|
|
|
2018-07-03 19:34:33 +03:00
|
|
|
# Update commands
|
|
|
|
SET_GCODE_OFFSET Z=.1
|
2018-07-05 18:02:48 +03:00
|
|
|
M206 Z-.2
|
2018-07-03 19:34:33 +03:00
|
|
|
SET_GCODE_OFFSET Z_ADJUST=-.1
|
|
|
|
|
2018-07-08 21:08:21 +03:00
|
|
|
SET_VELOCITY_LIMIT ACCEL=100 VELOCITY=20 SQUARE_CORNER_VELOCITY=1 ACCEL_TO_DECEL=200
|
2018-07-03 19:34:33 +03:00
|
|
|
M204 S500
|
|
|
|
|
|
|
|
SET_PRESSURE_ADVANCE EXTRUDER=extruder ADVANCE=.001
|
|
|
|
SET_PRESSURE_ADVANCE ADVANCE=.002 ADVANCE_LOOKAHEAD_TIME=.001
|
2020-04-29 05:53:12 +03:00
|
|
|
|
|
|
|
# Restart command (must be last in test)
|
|
|
|
RESTART
|