MKFirmware / MarlinKimbra

📟 MK 3D Printer Firmware for Arduino
52 stars 39 forks source link

M218 Doesnt Work #194

Open c3D-Dan opened 5 years ago

c3D-Dan commented 5 years ago

Hi, Using 4.3.9 Configured with the online configurator. Have 2 nozzles set up by adding the following to configuration_overall.h

define SWITCHING_NOZZLE

if ENABLED(SWITCHING_NOZZLE)

define SWITCHING_NOZZLE_SERVO_NR 0

//#define SWITCHING_NOZZLE_E1_SERVO_NR 1 // If two servos are used, the index of the second

define SWITCHING_NOZZLE_SERVO_ANGLES { 122, 87 } // Angles for E0, E1 (single servo) or lowered/raised (dual servo)

endif

Running M503 shows Hotend offsets for H0 and H1 Running M218 H1 X10 Y10 appears to do nothing, Running T0 or T1 Nothing happens, servo does not switch and X / Y axis doesn't move, even after being homed M503 shows no changes occured after running the M218 command.

Am I going crazy or is there something I'm missing (or has this feature not been fully integrated yet?).

Thanks for your help.

M218 H1 X50 Y50 Z50 T0 T1 M503 11:38:32.990 : N14 M50316 11:38:32.993 : Config: G21 ; Units in (mm) 11:38:32.997 : Config:Steps per unit: 11:38:32.997 : Config: M92 X80.000 Y44.445 Z240.000 11:38:32.997 : Config: M92 T0 E810.676 11:38:32.997 : Config: M92 T1 E831.000 11:38:33.002 : Config:Maximum Acceleration (units/s2): 11:38:33.002 : Config: M201 X200 Y200 Z50 11:38:33.002 : Config: M201 T0 E1000 11:38:33.005 : Config: M201 T1 E1000 11:38:33.005 : Config:Maximum feedrates (units/s): 11:38:33.006 : Config: M203 X100.000 Y100.000 Z40.000 11:38:33.006 : Config: M203 T0 E30.000 11:38:33.010 : Config: M203 T1 E30.000 11:38:33.014 : Config:Acceleration (units/s2): P V T R 11:38:33.014 : Config: M204 P700.000 V700.000 11:38:33.014 : Config: M204 T0 R1000.000 11:38:33.018 : Config: M204 T1 R1000.000 11:38:33.022 : Config:Advanced: B S V 11:38:33.022 : Config: M205 B20000 S0.000 V0.000 11:38:33.026 : Config:Jerk: X Y Z T* E 11:38:33.026 : Config: M205 X10.000 Y10.000 Z0.400 11:38:33.030 : Config: M205 T0 E5.000 11:38:33.030 : Config: M205 T1 E5.000 11:38:33.030 : Config:Set axis max travel: 11:38:33.030 : Config: M228 S0 X500.000 Y500.000 Z290.000 11:38:33.034 : Config:Set axis min travel: 11:38:33.034 : Config: M228 S1 X0.000 Y0.000 Z0.000 11:38:33.038 : Config:Heater Sensor parameters: H P S A B C R L O: 11:38:33.043 : Config: M305 H0 P0 S1 A100000.0 B4092.0 C0.0000000000 R4700.0 L0 O0 11:38:33.051 : Config:Heater parameters: H P A B C F L O U<Use Pid 0-1> I<Hardware Inverted 0-1> R<Thermal Protection 0-1> Q<Pwm Hardware 0-1>: 11:38:33.055 : Config: M306 H0 P3 A40 B230 C255 F250 L5 O275 U1 I0 Q1 R0 11:38:33.059 : Config:Heater PID parameters: H P I D: 11:38:33.059 : Config: M301 H0 P40.00 I7.00 D60.00 11:38:33.063 : Config:Heater Sensor parameters: H P S A B C R L O: 11:38:33.067 : Config: M305 H1 P2 S1 A100000.0 B4092.0 C0.0000000000 R4700.0 L0 O0 11:38:33.076 : Config:Heater parameters: H P A B C F L O U<Use Pid 0-1> I<Hardware Inverted 0-1> R<Thermal Protection 0-1> Q<Pwm Hardware 0-1>: 11:38:33.079 : Config: M306 H1 P8 A40 B230 C255 F250 L5 O275 U1 I0 Q1 R0 11:38:33.079 : Config:Heater PID parameters: H P I D: 11:38:33.084 : Config: M301 H1 P40.00 I7.00 D60.00 11:38:33.084 : Config:Z raise: Z: 11:38:33.084 : Config: M217 Z0.50 11:38:33.088 : Config:Hotend offset (unit): H X Y Z: 11:38:33.088 : Config: M218 H0 X0.000 Y0.000 Z0.000 11:38:33.092 : Config:Hotend offset (unit): H X Y Z: 11:38:33.092 : Config: M218 H1 X0.000 Y0.000 Z0.000 11:38:33.096 : Config:Fans: P U L X F I<Hardware Inverted 0-1> H T 11:38:33.100 : Config: M106 P0 U6 L0 X255 F250 I0 H-1 11:38:33.104 : Config:Fans: P U L X F I<Hardware Inverted 0-1> H T 11:38:33.104 : Config: M106 P1 U5 L0 X255 F250 I0 H0 T50 11:38:33.108 : Config:Endstops logic: 11:38:33.108 : Config: M123 X1 Y1 Z1 P0 11:38:33.108 : Config:Endstops pullup: 11:38:33.109 : Config: M124 X1 Y1 Z1 P1 11:38:33.112 : Config: M149 C ; Units in Celsius 11:38:33.112 : Config:SD Restart Job 11:38:33.112 : Config: M413 S1 11:38:33.112 : Config:Servo Angles: P L U: 11:38:33.117 : Config: M281 P0 L104 U122 11:38:33.117 : Config:Auto Bed Leveling 11:38:33.117 : Config: M420 S1 Z0.00 11:38:33.120 : Config:Probe Offset X Y Z, speed Fast and Slow [mm/min], Repetitions 11:38:33.121 : Config: M851 X0.000 Y0.000 Z-1.000 F1000 S200 R1 11:38:33.125 : Config:Material heatup parameters 11:38:33.125 : Config: M145 S0 H190 F255 11:38:33.125 : Config: M145 S1 H240 F255 11:38:33.129 : Config: M145 S2 H230 F255 11:38:33.129 : Config:Stepper driver pins E D

S L M 11:38:33.133 : Config: M352 X E37 D34 S35 L0 M0 11:38:33.133 : Config: M352 Y E33 D23 S22 L0 M0 11:38:33.133 : Config: M352 Z E24 D26 S25 L0 M0 11:38:33.137 : Config: M352 T0 E48 D46 S47 L0 M0 11:38:33.137 : Config: M352 T1 E45 D36 S44 L0 M0 11:38:33.137 : Config:Stepper Direction 11:38:33.137 : Config: M569 X0 Y0 Z0 11:38:33.141 : Config: M569 T0 E0 11:38:33.141 : Config: M569 T1 E0 11:38:33.145 : Config:Stepper driver control Q D P R 11:38:33.145 : Config: M569 Q1 D0 P2 R500000 11:38:33.145 : Config:Hysteresis Correction 11:38:33.150 : Config: M99 X0.00 Y0.00 Z0.00 F1.00 11:38:33.150 : Stats: Total:0, Finished:0, Failed:0 11:38:33.153 : Stats: Total print time:0s, Longest job:0s 11:38:33.153 : Stats: Power on time:1h 15m 30s 11:38:33.153 : Stats: Filament used:0mm

c3D-Dan commented 5 years ago

By the way, changes DO occur if I set them in configuration_overall.h file however Running T0/T1 will only cause the gantry to move, the servo does not.

configuration_overall.h `/***

define CONFIGURATION_OVERALL

/***

/*****

/***

//#define PROBE_MANUALLY //#define Z_PROBE_FIX_MOUNTED //#define BLTOUCH //#define Z_PROBE_SENSORLESS //#define Z_PROBE_SLED

define SLED_DOCKING_OFFSET 5

define X_PROBE_OFFSET_FROM_NOZZLE 0

define Y_PROBE_OFFSET_FROM_NOZZLE 0

define Z_PROBE_OFFSET_FROM_NOZZLE -1

define XY_PROBE_SPEED 8000

define Z_PROBE_SPEED_FAST 1000

define Z_PROBE_SPEED_SLOW 200

define Z_PROBE_REPETITIONS 1

define Z_MIN_PROBE_REPEATABILITY_TEST

//#define PAUSE_BEFORE_DEPLOY_STOW

define Z_PROBE_DEPLOY_HEIGHT 10

define Z_PROBE_BETWEEN_HEIGHT 10

define Z_PROBE_AFTER_PROBING 0

define Z_PROBE_LOW_POINT -5

define Z_PROBE_OFFSET_RANGE_MIN -50

define Z_PROBE_OFFSET_RANGE_MAX 50

//#define PROBING_HEATERS_OFF // Turn heaters off when probing //#define PROBING_FANS_OFF // Turn fans off when probing //#define LCD_BED_LEVELING

define LCD_Z_STEP 0.025

define LCD_PROBE_Z_RANGE 4 // (mm) Z Range centered on Z MIN POS for LCD Z adjustment

//#define MESH_EDIT_MENU // Add a menu to edit mesh points //#define LEVEL_BED_CORNERS

define LEVEL_CORNERS_INSET 30 // (mm) An inset for corner leveling

//#define LEVEL_CENTER_TOO // Move to the center after the last corner

define X_HOME_DIR -1

define Y_HOME_DIR -1

define Z_HOME_DIR 1

define MIN_Z_HEIGHT_FOR_HOMING 0

define X_ENABLE_ON 0

define Y_ENABLE_ON 0

define Z_ENABLE_ON 0

define E_ENABLE_ON 0

define INVERT_X_STEP_PIN false

define INVERT_Y_STEP_PIN false

define INVERT_Z_STEP_PIN false

define INVERT_E_STEP_PIN false

define INVERT_X_DIR false

define INVERT_Y_DIR false

define INVERT_Z_DIR false

define INVERT_E0_DIR false

define INVERT_E1_DIR false

define INVERT_E2_DIR false

define INVERT_E3_DIR false

define INVERT_E4_DIR false

define INVERT_E5_DIR false

define DISABLE_X false

define DISABLE_Y false

define DISABLE_Z false

define DISABLE_E false

//#define DISABLE_INACTIVE_EXTRUDER

define X_MAX_POS 500

define X_MIN_POS 0

define Y_MAX_POS 500

define Y_MIN_POS 0

define Z_MAX_POS 290

define Z_MIN_POS 0

define E_MIN_POS 0

define AXIS_RELATIVE_MODES {false, false, false, false}

//#define Z_SAFE_HOMING

define Z_SAFE_HOMING_X_POINT 100

define Z_SAFE_HOMING_Y_POINT 100

//#define MESH_BED_LEVELING //#define AUTO_BED_LEVELING_UBL //#define AUTO_BED_LEVELING_LINEAR //#define AUTO_BED_LEVELING_BILINEAR

define AUTO_BED_LEVELING_3POINT

//#define MESH_EDIT_GFX_OVERLAY

define MESH_INSET 10

//#define G26_MESH_VALIDATION

define MESH_TEST_NOZZLE_SIZE 0.4 // (mm) Diameter of primary nozzle.

define MESH_TEST_LAYER_HEIGHT 0.2 // (mm) Default layer height for the G26 Mesh Validation Tool.

define MESH_TEST_HOTEND_TEMP 200 // (c) Default nozzle temperature for the G26 Mesh Validation Tool.

define MESH_TEST_BED_TEMP 60 // (c) Default bed temperature for the G26 Mesh Validation Tool.

define G26_XY_FEEDRATE 20 // (mm/s) Feedrate for XY Moves for the G26 Mesh Validation Tool.

//#define MESH_G28_REST_ORIGIN

define UBL_MESH_EDIT_MOVES_Z

//#define UBL_Z_RAISE_WHEN_OFF_MESH 2.5

define GRID_MAX_POINTS_X 3

define GRID_MAX_POINTS_Y 3

define LEFT_PROBE_BED_POSITION 20

define RIGHT_PROBE_BED_POSITION 180

define FRONT_PROBE_BED_POSITION 20

define BACK_PROBE_BED_POSITION 180

define MIN_PROBE_EDGE 10

//#define PROBE_Y_FIRST //#define ABL_BILINEAR_SUBDIVISION

define BILINEAR_SUBDIVISIONS 3

define PROBE_PT_1_X 15

define PROBE_PT_1_Y 180

define PROBE_PT_2_X 15

define PROBE_PT_2_Y 15

define PROBE_PT_3_X 180

define PROBE_PT_3_Y 15

//#define Z_PROBE_END_SCRIPT "G1 Z10 F8000\nG1 X10 Y10\nG1 Z0.5"

define ENABLE_LEVELING_FADE_HEIGHT

//#define BED_CENTER_AT_0_0 //#define MANUAL_X_HOME_POS 0 //#define MANUAL_Y_HOME_POS 0 //#define MANUAL_Z_HOME_POS 0

define DEFAULT_AXIS_STEPS_PER_UNIT {80,44.445,240,810.676,831,625,625,625,625}

define DEFAULT_MAX_FEEDRATE {100,100,40,30,30,100,100,100,100}

define MANUAL_FEEDRATE {10060,10060,260,360}

define SHORT_MANUAL_Z_MOVE 0.025

define DEFAULT_MIN_FEEDRATE 0.0

define DEFAULT_MIN_TRAVEL_FEEDRATE 0.0

define MINIMUM_PLANNER_SPEED 0.05 // (mm/sec)

define DEFAULT_MAX_ACCELERATION {200,200,50,1000,1000,3000,3000,3000,3000}

define DEFAULT_RETRACT_ACCELERATION {1000,1000,10000,10000,10000,10000}

define DEFAULT_ACCELERATION 700

define DEFAULT_TRAVEL_ACCELERATION 700

define DEFAULT_XJERK 10

define DEFAULT_YJERK 10

define DEFAULT_ZJERK 0.4

define DEFAULT_EJERK {5,5,5,5,5,5}

define HOMING_FEEDRATE_X (100*60)

define HOMING_FEEDRATE_Y (100*60)

define HOMING_FEEDRATE_Z (40*60)

//#define SLOW_HOMING

define X_HOME_BUMP_MM 5

define Y_HOME_BUMP_MM 5

define Z_HOME_BUMP_MM 2

define HOMING_BUMP_DIVISOR {5,5,2}

define HOTEND_OFFSET_X {0,0,0,0}

define HOTEND_OFFSET_Y {0,0,0,0}

define HOTEND_OFFSET_Z {0,0,0,0}

define HYSTERESIS_FEATURE

define HYSTERESIS_AXIS_MM {0,0,0}

define HYSTERESIS_CORRECTION 1

/*****

/*****

/****