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