Marlin固件Configuration.adv简析
admin 本站

/**

 * Dual Steppers / Dual Endstops

 *双电机驱动开启 / 双限位开关开启

 * This section will allow you to use extra E drivers to drive a second motor for X, Y, or Z axes.

 *

 * For example, set X_DUAL_STEPPER_DRIVERS setting to use a second motor. If the motors need to

 * spin in opposite directions set INVERT_X2_VS_X_DIR. If the second motor needs its own endstop

 * set X_DUAL_ENDSTOPS. This can adjust for "racking." Use X2_USE_ENDSTOP to set the endstop plug

 * that should be used for the second endstop. Extra endstops will appear in the output of 'M119'.

 *

 * Use X_DUAL_ENDSTOP_ADJUSTMENT to adjust for mechanical imperfection. After homing both motors

 * this offset is applied to the X2 motor. To find the offset home the X axis, and measure the error

 * in X2. Dual endstop offsets can be set at runtime with 'M666 X<offset> Y<offset> Z<offset>'.

 */

 

//#define X_DUAL_STEPPER_DRIVERS

#if ENABLED(X_DUAL_STEPPER_DRIVERS)

  #define INVERT_X2_VS_X_DIR true   // Set 'true' if X motors should rotate in opposite directions

  //#define X_DUAL_ENDSTOPS

  #if ENABLED(X_DUAL_ENDSTOPS)

    #define X2_USE_ENDSTOP _XMAX_

    #define X_DUAL_ENDSTOPS_ADJUSTMENT  0

  #endif

#endif

 

//#define Y_DUAL_STEPPER_DRIVERS

#if ENABLED(Y_DUAL_STEPPER_DRIVERS)

  #define INVERT_Y2_VS_Y_DIR true   // Set 'true' if Y motors should rotate in opposite directions

  //#define Y_DUAL_ENDSTOPS

  #if ENABLED(Y_DUAL_ENDSTOPS)

    #define Y2_USE_ENDSTOP _YMAX_

    #define Y_DUAL_ENDSTOPS_ADJUSTMENT  0

  #endif

#endif

 

//#define Z_DUAL_STEPPER_DRIVERS  //打开此项,开启双步进器驱动双Z轴。

#if ENABLED(Z_DUAL_STEPPER_DRIVERS)

  //#define Z_DUAL_ENDSTOPS  //开启此项,开启双Z限位开关模式。一个Z限位开关对应一个Z轴电机,当对应的Z限位开关被触碰时,与之对应的电机才会停止。

  #if ENABLED(Z_DUAL_ENDSTOPS)

    #define Z2_USE_ENDSTOP _XMAX_  // Z轴第二个限位插到X-MAX限位槽内,在 configuration.h的限位设置里,X-MAX与Z-MIN 的值相同 (true 或 false)

    #define Z_DUAL_ENDSTOPS_ADJUSTMENT  0

  #endif

#endif

 

//#define Z_TRIPLE_STEPPER_DRIVERS  //三Z轴平台,开启3Z轴支持

#if ENABLED(Z_TRIPLE_STEPPER_DRIVERS)

  //#define Z_TRIPLE_ENDSTOPS  //三Z轴,对应三个Z限位开关,触碰即分别停止。在 configuration.h的限位设置里,X-MAX、Y-MAX与Z-MIN 的值相同 (true 或 false)

  #if ENABLED(Z_TRIPLE_ENDSTOPS)

    #define Z2_USE_ENDSTOP _XMAX_

    #define Z3_USE_ENDSTOP _YMAX_

    #define Z_TRIPLE_ENDSTOPS_ADJUSTMENT2  0

    #define Z_TRIPLE_ENDSTOPS_ADJUSTMENT3  0

  #endif

#endif


获取资料:加群获取最新STJ2203d打印机开源图纸 

 

交流群QQ:460937369 进群验证码:STJ 





返回列表