Post your configuration.h for Marlin FW please?

Here is a place we can talk about using ZTW CNC platform for 3D printing. Your experience with software setup, configuration for different type of filament and etc.

Post your configuration.h for Marlin FW please?

Postby pendragn » Tue May 28, 2013 12:17 am

Hi all...can someone post their configuration.h file for the Marlin firmware from a working 3D printing setup, please? Ideally that would be using the ZTW Extruder as well, but anything would help! :) Thanks!

I am specifically interested in the steps per unit settings....the example config file from the Wiki has 400,400,400 for XYZ, but should not the third number be something different if using the F8 screw for Z, and the M20 for X/Y ? Or maybe the first two should be different?
User avatar
pendragn
Normal User
 
Posts: 4
Joined: Sat May 18, 2013 12:21 am
Zen Model: Zen 0712 (Ext. Mod)

Re: Post your configuration.h for Marlin FW please?

Postby roller » Tue May 28, 2013 6:58 am

PM me if no one replies by Monday ... I don't have time to dig the config out at the moment and I will have to tweak for you to match your configuration. Bit surprised you have an F8 screw in Z.
User avatar
roller
Forum Moderator
 
Posts: 474
Joined: Wed Jan 26, 2011 8:54 pm
Location: Brisbane, Australia
Zen Model: Zen 0712 (Ext. Mod)

Re: Post your configuration.h for Marlin FW please?

Postby pendragn » Tue May 28, 2013 10:56 am

I will PM you later this evening, yes, if no one responds.....I say I have that as I only very recently purchased the 3D printing kit and the X/Y screws have an aggressive pitch while the Z has a much finer one.

I am able to control the machine with pronterface manually, and get extrusion to the correct amount/distance, but the moment I load a model (one of the calibration models from thingiverse) and hit "print" the machine flies off to the X limit and jams....it might also fly off to the Y limit, but I am too rushed to see :) That is after I send the G92 X0 Y0 Z0 E0 code to manually home. Something is definitely wrong with the config file.
User avatar
pendragn
Normal User
 
Posts: 4
Joined: Sat May 18, 2013 12:21 am
Zen Model: Zen 0712 (Ext. Mod)

Re: Post your configuration.h for Marlin FW please?

Postby Hawk » Tue May 28, 2013 4:46 pm

pendragn,

I have the F8's on X and Y, and the standard 1.5 on Z. This is my Marlin configuration.h.
The only thing you might need to change is the thermistor table for the hotbed, and bed size (I am running our new hotbed for testing).

Code: Select all
ifndef __CONFIGURATION_H
#define __CONFIGURATION_H
#define STRING_VERSION_CONFIG_H "Marlin-Tue, 4 Sep 2012 08:20:27 +0200 - abf0693e8e970311cfb66244bb622b092c3fe603"
#define STRING_CONFIG_H_AUTHOR "Build-Me-Marlin"
#define BAUDRATE 115200
#define __ARDUINO_NR__ 2
#define EXTRUDERS 1
#define MINIMUM_PLANNER_SPEED 0.05
#define MOTHERBOARD 62
#define HEATER_0_USES_THERMISTOR
#define THERMISTORHEATER_0 6
#define HEATER_0_MINTEMP 5
#define HEATER_0_MAXTEMP 275
#define BED_USES_THERMISTOR
#define THERMISTORBED 4
#define BED_MINTEMP 5
#define BED_MAXTEMP 150
#ifdef BED_LIMIT_SWITCHING
#define BED_HYSTERESIS 2
#endif
#define BED_CHECK_INTERVAL 5000
#define TEMP_RESIDENCY_TIME 10
#define TEMP_HYSTERESIS 3
#define TEMP_WINDOW 1
#define TEMP_SENSOR_AD595_OFFSET 0.000000
#define TEMP_SENSOR_AD595_GAIN   1.000000
#define CooldownNoWait true
#define HEATING_EARLY_FINISH_DEG_OFFSET 1
#define PIDTEMP
#define PID_MAX 255
#define PID_INTEGRAL_DRIVE_MAX 255
#define K1 0.95
#define PID_dT 0.128
#define PID_PID
#define  DEFAULT_Kp 22.2
#define  DEFAULT_Ki 1.08
#define  DEFAULT_Kd 114
#define PID_ADD_EXTRUSION_RATE
#define  DEFAULT_Kc (1)
#define ENDSTOPPULLUPS
#define ENDSTOPPULLUP_XMAX
#define ENDSTOPPULLUP_YMAX
#define ENDSTOPPULLUP_ZMAX
#define ENDSTOPPULLUP_XMIN
#define ENDSTOPPULLUP_YMIN
#define ENDSTOPPULLUP_ZMIN
const bool X_ENDSTOPS_INVERTING = false;
const bool Y_ENDSTOPS_INVERTING = false;
const bool Z_ENDSTOPS_INVERTING = false;
#define X_ENABLE_ON 0
#define Y_ENABLE_ON 0
#define Z_ENABLE_ON 0
#define E_ENABLE_ON 0
#define DISABLE_X false
#define DISABLE_Y false
#define DISABLE_Z false
#define DISABLE_E false
#define INVERT_X_DIR false
#define INVERT_Y_DIR false
#define INVERT_Z_DIR true
#define INVERT_E0_DIR true
#define INVERT_E1_DIR false
#define INVERT_E2_DIR false
#define X_HOME_DIR -1
#define Y_HOME_DIR -1
#define Z_HOME_DIR -1
#define min_software_endstops false
#define max_software_endstops false
#define X_MAX_POS 205
#define X_MIN_POS 0
#define Y_MAX_POS 205
#define Y_MIN_POS 0
#define Z_MAX_POS 200
#define Z_MIN_POS 0
#define X_MAX_LENGTH (X_MAX_POS - X_MIN_POS)
#define Y_MAX_LENGTH (Y_MAX_POS - Y_MIN_POS)
#define Z_MAX_LENGTH (Z_MAX_POS - Z_MIN_POS)
#define X_HOME_POS 0
#define Y_HOME_POS 0
#define Z_HOME_POS 0
#define NUM_AXIS 4
#define HOMING_FEEDRATE {500, 500, 80, 0}
#define X_HOME_RETRACT_MM 5
#define Y_HOME_RETRACT_MM 5
#define Z_HOME_RETRACT_MM 1
#define QUICK_HOME
#define AXIS_RELATIVE_MODES {false, false, false, false}
#define MAX_STEP_FREQUENCY 40000
#define DEFAULT_AXIS_STEPS_PER_UNIT   {400,400,2555,93}
#define DEFAULT_MAX_FEEDRATE          {60, 60, 20, 450}
#define DEFAULT_MAX_ACCELERATION      {150,150,150,500}
#define DEFAULT_ACCELERATION          400
#define DEFAULT_RETRACT_ACCELERATION  500
#define DEFAULT_MINIMUMFEEDRATE       0.0
#define DEFAULT_MINTRAVELFEEDRATE     0.0
#define DEFAULT_MINSEGMENTTIME        20000
#define DEFAULT_XYJERK                20.0
#define DEFAULT_ZJERK                 0.4
#define DEFAULT_EJERK                 5.0
#define SLOWDOWN
#define DEFAULT_STEPPER_DEACTIVE_TIME 60
#define DEFAULT_STEPPER_DEACTIVE_COMMAND "M84 X Y E"
#define EEPROM_SETTINGS
#define EEPROM_CHITCHAT
#define PLA_PREHEAT_HOTEND_TEMP 180
#define PLA_PREHEAT_HPB_TEMP 70
#define PLA_PREHEAT_FAN_SPEED 255
#define ABS_PREHEAT_HOTEND_TEMP 240
#define ABS_PREHEAT_HPB_TEMP 100
#define ABS_PREHEAT_FAN_SPEED 255
#define MM_PER_ARC_SEGMENT 1
#define N_ARC_CORRECTION 25
#define PREVENT_DANGEROUS_EXTRUDE
#define PREVENT_LENGTHY_EXTRUDE
#define EXTRUDE_MINTEMP 170
#define EXTRUDE_MAXLENGTH (X_MAX_LENGTH+Y_MAX_LENGTH)
const int dropsegments=5;
#define FAST_PWM_FAN
#define BLOCK_BUFFER_SIZE 16
#define MAX_CMD_SIZE 96
#define BUFSIZE 4
#define INVERT_X_STEP_PIN false
#define INVERT_Y_STEP_PIN false
#define INVERT_Z_STEP_PIN false
#define INVERT_E_STEP_PIN false
#include "thermistortables.h"
#endif //__CONFIGURATION_H



Hope that helps a little.....

Ken
User avatar
Hawk
Forum Resident
 
Posts: 227
Joined: Sat Dec 04, 2010 1:20 pm


Return to 3D Printing with ZTW Filament and CNC

cron

x