Skip to content

Bed calibration fails when home offset is not zero #340

Description

@edwinvers

With a quick-swap kit and bracing kit installed on my A350 the nozzle deviates from the (X0, Y0)-position on the bed. This can be corrected by:

M206 X-17.00 Y-14.00 ; set offse to home position
M500 ; save settings to eeprom
G28 ; home all axes
G90 ; absolute positioning
G0 X0 Y0 Z10 ; move to origin of the bed

After this the nozzle is located at the (0,0) position of the bed.

However, when proceeding with the calibration-routine for leveling the bed, the routine fails on the outer position of the grid in Y-direction.

I fixed it in my local repository for my A350 by making changes to \src\module\linear.cpp, lines 661 and further:

if (linear_p->machine_size() == MACHINE_SIZE_A250 || linear_p->machine_size() == MACHINE_SIZE_A350) {
    if (kit_combination_type & QUICK_CHANGE_ADAPTER_MSK) {
      X_MAX_POS += INSTALL_QUICK_CHANGE_ADAPTER_LENGTH_CHANGE_X;
      Y_MAX_POS += INSTALL_QUICK_CHANGE_ADAPTER_LENGTH_CHANGE_Y;
      Z_MAX_POS += INSTALL_QUICK_CHANGE_ADAPTER_LENGTH_CHANGE_Z;

      X_DEF_SIZE += INSTALL_QUICK_CHANGE_ADAPTER_LENGTH_CHANGE_X;
      Y_DEF_SIZE += INSTALL_QUICK_CHANGE_ADAPTER_LENGTH_CHANGE_Y;
      Z_DEF_SIZE += INSTALL_QUICK_CHANGE_ADAPTER_LENGTH_CHANGE_Z;

      MAGNET_X_SPAN +=  INSTALL_QUICK_CHANGE_ADAPTER_LENGTH_CHANGE_X;
      MAGNET_Y_SPAN +=  INSTALL_QUICK_CHANGE_ADAPTER_LENGTH_CHANGE_Y;      
    }
  }

  if (linear_p->machine_size() != MACHINE_SIZE_UNKNOWN) {
    if (kit_combination_type & REINFORCEMENT_KIT_MSK) {
      X_MAX_POS += REINFORCEMENT_KIT_LENGTH_CHANGE_X;
      Y_MAX_POS += REINFORCEMENT_KIT_LENGTH_CHANGE_Y;
      Z_MAX_POS += REINFORCEMENT_KIT_LENGTH_CHANGE_Z;

      X_DEF_SIZE += REINFORCEMENT_KIT_LENGTH_CHANGE_X;
      Y_DEF_SIZE += REINFORCEMENT_KIT_LENGTH_CHANGE_Y;
      Z_DEF_SIZE += REINFORCEMENT_KIT_LENGTH_CHANGE_Z;

      MAGNET_X_SPAN += REINFORCEMENT_KIT_LENGTH_CHANGE_X;
      MAGNET_Y_SPAN += REINFORCEMENT_KIT_LENGTH_CHANGE_Y;
    }
  }

Please review these proposed changes and decide if this can me merged into main.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions