MKFirmware / MK4duo

MK4duo Firmware Printers 3D for Arduino and Arduino due
http://www.marlinkimbra.it
GNU General Public License v3.0
206 stars 117 forks source link

Bug in bed level #539

Open Hans007a opened 6 years ago

Hans007a commented 6 years ago

Because UBL dont works, I test the other BL and here the first bug:

sketch\src\core\commands\gcode/bedlevel/m420.h:160:15: error: 'abl' was not declared in this scope

               abl.virt_interpolate();

configaration_core.h :

`

define MESH_BED_LEVELING

//#define AUTO_BED_LEVELING_UBL //#define AUTO_BED_LEVELING_LINEAR //#define AUTO_BED_LEVELING_BILINEAR //#define AUTO_BED_LEVELING_3POINT

// Enable detailed logging of G28, G29, G30, M48, etc. // Turn on with the command 'M111 S32'. // NOTE: Requires a lot of PROGMEM!

define DEBUG_LEVELING_FEATURE

// enable a graphics overly while editing the mesh from auto-level //#define MESH_EDIT_GFX_OVERLAY

// Mesh inset margin on print area

define MESH_INSET 10

// Enable the G26 Mesh Validation Pattern tool.

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 205.0 // (c) Default nozzle temperature for the G26 Mesh Validation Tool.

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

/ START MESH BED LEVELING / // Default mesh area is an area with an inset margin on the print area. // Below are the macros that are used to define the borders for the mesh // area, made available here for specialized needs.

define MESH_MIN_X (X_MIN_POS + (MESH_INSET))

define MESH_MAX_X (X_MAX_POS - (MESH_INSET))

define MESH_MIN_Y (Y_MIN_POS + (MESH_INSET))

define MESH_MAX_Y (Y_MAX_POS - (MESH_INSET))

// After homing all axes ('G28' or 'G28 XYZ') rest Z at Z MIN POS //#define MESH_G28_REST_ORIGIN / END MESH BED LEVELING /

/ START UNIFIED BED LEVELING / // Default mesh area is an area with an inset margin on the print area. // Below are the macros that are used to define the borders for the mesh area, // made available here for specialized needs, ie dual extruder setup.

define UBL_MESH_MIN_X (X_MIN_POS + (MESH_INSET))

define UBL_MESH_MAX_X (X_MAX_POS - (MESH_INSET))

define UBL_MESH_MIN_Y (Y_MIN_POS + (MESH_INSET))

define UBL_MESH_MAX_Y (Y_MAX_POS - (MESH_INSET))

// Sophisticated users prefer no movement of nozzle

define UBL_MESH_EDIT_MOVES_Z

// Save the currently active mesh in the current slot on M500

define UBL_SAVE_ACTIVE_ON_M500

// When the nozzle is off the mesh, this value is used as the Z-Height correction value. //#define UBL_Z_RAISE_WHEN_OFF_MESH 2.5 / END UNIFIED BED LEVELING /

/ START MESH BED LEVELING or AUTO BED LEVELING LINEAR or AUTO BED LEVELING BILINEAR or UNIFIED BED LEVELING / // Set the number of grid points per dimension

define GRID_MAX_POINTS_X 7

define GRID_MAX_POINTS_Y 7

/ END MESH BED LEVELING or AUTO BED LEVELING LINEAR or AUTO BED LEVELING BILINEAR or UNIFIED BED LEVELING /

/ START AUTO BED LEVELING LINEAR or AUTO BED LEVELING BILINEAR / // Set the boundaries for probing (where the probe can reach).

define LEFT_PROBE_BED_POSITION 41

define RIGHT_PROBE_BED_POSITION 315

define FRONT_PROBE_BED_POSITION 15

define BACK_PROBE_BED_POSITION 310

// The Z probe minimum outer margin (to validate G29 parameters).

define MIN_PROBE_EDGE 10

// Probe along the Y axis, advancing X after each column //#define PROBE_Y_FIRST

// Experimental Subdivision of the grid by Catmull-Rom method. // Synthesizes intermediate points to produce a more detailed mesh.

define ABL_BILINEAR_SUBDIVISION

// Number of subdivisions between probe points

define BILINEAR_SUBDIVISIONS 4

/ END AUTO_BED_LEVELING_LINEAR or AUTO_BED_LEVELING_BILINEAR /

/ START AUTO_BED_LEVELING_3POINT or UNIFIED BED LEVELING / // 3 arbitrary points to probe. // A simple cross-product is used to estimate the plane of the bed.

define PROBE_PT_1_X 31

define PROBE_PT_1_Y 310

define PROBE_PT_2_X 31

define PROBE_PT_2_Y 15

define PROBE_PT_3_X 315

define PROBE_PT_3_Y 15

/ END AUTO_BED_LEVELING_3POINT or UNIFIED BED LEVELING / `

Regards

Hans

Hans007a commented 6 years ago

This:

//#define ABL_BILINEAR_SUBDIVISION

made the bug gone...

But what is with the ubl?

Hans007a commented 6 years ago

Now its strange, my printer shows the splash screen and this was all...

MagoKimbra commented 6 years ago

Why UBL not function? The errore in abl is very strange...

Hans007a commented 6 years ago

I dont know, why UBL doesnt work. Configurating the UBL works without problems, but not when printing. The z-axis dont move at all it doesnt matter how much the UBL is changed. Another thing not working is the editing of the UBL points. After Hitting "Edit-Mesh" on the LCD-display it says, that the printer is going to home all the axis, but it doesnt to anything and the whole printer is no longer responding. Resetting the EEPROM didnt change the result.