repetier / Repetier-Firmware

Firmware for Arduino based RepRap 3D printer.
811 stars 734 forks source link

x_axis move one dirction why ? used repetier 1.04 #993

Open qusai210 opened 3 years ago

qusai210 commented 3 years ago

my configuration // ################# XYZ movements ###################

define X_ENABLE_ON 0

define Y_ENABLE_ON 0

define Z_ENABLE_ON 0

define DISABLE_X 0

define DISABLE_Y 0

define DISABLE_Z 0

define DISABLE_E 0

define INVERT_X_DIR 0

define INVERT_Y_DIR 1

define INVERT_Z_DIR 0

define INVERT_Z2_DIR 0

define INVERT_Z3_DIR 0

define INVERT_Z4_DIR 0

define X_HOME_DIR -1

define Y_HOME_DIR -1

define Z_HOME_DIR -1

define X_MAX_LENGTH 250

define Y_MAX_LENGTH 210

define Z_MAX_LENGTH 210

define X_MIN_POS 0

define Y_MIN_POS 0

define Z_MIN_POS 0

define PARK_POSITION_X 0

define PARK_POSITION_Y 10

define PARK_POSITION_Z_RAISE 10

define DISTORTION_CORRECTION 0

define DISTORTION_CORRECTION_POINTS 5

define DISTORTION_LIMIT_TO 2

define DISTORTION_CORRECTION_R 100

define DISTORTION_PERMANENT 1

define DISTORTION_UPDATE_FREQUENCY 15

define DISTORTION_START_DEGRADE 0.5

define DISTORTION_END_HEIGHT 1

define DISTORTION_EXTRAPOLATE_CORNERS 0

define DISTORTION_XMIN 10

define DISTORTION_YMIN 10

define DISTORTION_XMAX 190

define DISTORTION_YMAX 190

// ########################################################################################## // ## Movement settings ## // ##########################################################################################

define FEATURE_BABYSTEPPING 1

define BABYSTEP_MULTIPLICATOR 1

define DELTA_SEGMENTS_PER_SECOND_PRINT 180 // Move accurate setting for print moves

define DELTA_SEGMENTS_PER_SECOND_MOVE 70 // Less accurate setting for other moves

define EXACT_DELTA_MOVES 1

// Delta settings

define DELTA_HOME_ON_POWER 0

define DELTASEGMENTS_PER_PRINTLINE 24

define STEPPER_INACTIVE_TIME 360L

define MAX_INACTIVE_TIME 0L

define MAX_FEEDRATE_X 200

define MAX_FEEDRATE_Y 200

define MAX_FEEDRATE_Z 2

define HOMING_FEEDRATE_X 40

define HOMING_FEEDRATE_Y 40

define HOMING_FEEDRATE_Z 2

define HOMING_ORDER HOME_ORDER_XYTZ

define ZHOME_MIN_TEMPERATURE 0

define ZHOME_HEAT_ALL 1

define ZHOME_HEAT_HEIGHT 20

define ZHOME_X_POS 999999

define ZHOME_Y_POS 999999

define ENABLE_BACKLASH_COMPENSATION 0

define X_BACKLASH 0

define Y_BACKLASH 0

define Z_BACKLASH 0

define RAMP_ACCELERATION 1

define STEPPER_HIGH_DELAY 0

define DIRECTION_DELAY 0

define STEP_DOUBLER_FREQUENCY 12000

define ALLOW_QUADSTEPPING 1

define DOUBLE_STEP_DELAY 0 // time in microseconds

define MAX_ACCELERATION_UNITS_PER_SQ_SECOND_X 1000

define MAX_ACCELERATION_UNITS_PER_SQ_SECOND_Y 1000

define MAX_ACCELERATION_UNITS_PER_SQ_SECOND_Z 100

define MAX_TRAVEL_ACCELERATION_UNITS_PER_SQ_SECOND_X 1000

define MAX_TRAVEL_ACCELERATION_UNITS_PER_SQ_SECOND_Y 1000

define MAX_TRAVEL_ACCELERATION_UNITS_PER_SQ_SECOND_Z 100

define INTERPOLATE_ACCELERATION_WITH_Z 0

define ACCELERATION_FACTOR_TOP 100

define MAX_JERK 20

define MAX_ZJERK 0.3

define PRINTLINE_CACHE_SIZE 16

define MOVE_CACHE_LOW 10

define LOW_TICKS_PER_MOVE 250000

define EXTRUDER_SWITCH_XY_SPEED 100

define DUAL_X_AXIS 0

define FEATURE_TWO_XSTEPPER 0

define X2_STEP_PIN ORIG_E1_STEP_PIN

define X2_DIR_PIN ORIG_E1_DIR_PIN

define X2_ENABLE_PIN ORIG_E1_ENABLE_PIN

define FEATURE_TWO_YSTEPPER 0

define Y2_STEP_PIN ORIG_E1_STEP_PIN

define Y2_DIR_PIN ORIG_E1_DIR_PIN

define Y2_ENABLE_PIN ORIG_E1_ENABLE_PIN

define FEATURE_TWO_ZSTEPPER 0

define Z2_STEP_PIN ORIG_E1_STEP_PIN

define Z2_DIR_PIN ORIG_E1_DIR_PIN

define Z2_ENABLE_PIN ORIG_E1_ENABLE_PIN

define FEATURE_THREE_ZSTEPPER 0

define Z3_STEP_PIN ORIG_E2_STEP_PIN

define Z3_DIR_PIN ORIG_E2_DIR_PIN

define Z3_ENABLE_PIN ORIG_E2_ENABLE_PIN

define FEATURE_DITTO_PRINTING 0

define USE_ADVANCE 0

define ENABLE_QUADRATIC_ADVANCE 0

repetier commented 3 years ago

Please provide a question e.g. when does it move in one direction and which one is it. Could be just a end stop preventing different direction or you haven't homes and can not go left.

qusai210 commented 3 years ago

go to left just and dose not go to home when i set home go left when move here to rirht cant move why?

repetier commented 3 years ago

Your home position is the left side. So after homing you can only go right.

So I think you have wrong end stop sides or homing directions or move directions causing this problems.

Have you ALWAYS_CHECK_ENDSTOPS 0 ? then moving does ignore end stops so you can exclude that reason.

Also check what M119 returns to see if end stops are set correctly. A triggered end stop prevents moves if ALWAYS_CHECK_ENDSTOPS is 1

qusai210 commented 3 years ago

hi haw change the pid in code kp , ki , kd what is code ?

repetier commented 3 years ago

You can change them with eeprom editor. That is the easiest way. Repetier-Host and Repetier-Server have one included.

qusai210 commented 3 years ago

i dont have the eeprom so haw i changed them in code can you tell me what is the main code for them ? and i will set M301 H1 kp ki kd in start g code there is true ?

repetier commented 3 years ago

In configuration it is this: /** \brief The maximum value, I-gain can contribute to the output.

A good value is slightly higher then the output needed for your temperature. Values for starts: 130 => PLA for temperatures from 170-180 deg C 180 => ABS for temperatures around 240 deg C

The precise values may differ for different nozzle/resistor combination. Overridden if EEPROM activated. */

define EXT0_PID_INTEGRAL_DRIVE_MAX 205

/** \brief lower value for integral part

The I state should converge to the exact heater output needed for the target temperature. To prevent a long deviation from the target zone, this value limits the lower value. A good start is 30 lower then the optimal value. You need to leave room for cooling. Overridden if EEPROM activated. */

define EXT0_PID_INTEGRAL_DRIVE_MIN 60

/* P-gain. Overridden if EEPROM activated. /

define EXT0_PID_PGAIN_OR_DEAD_TIME 24

/* I-gain. Overridden if EEPROM activated. /

define EXT0_PID_I 0.88

/* Dgain. Overridden if EEPROM activated./

define EXT0_PID_D 80

// maximum time the heater is can be switched on. Max = 255. Overridden if EEPROM activated.

define EXT0_PID_MAX 255

With gcode it is M204

qusai210 commented 3 years ago

thank you repetier

qusai210 commented 3 years ago

how write g code give me example pls

repetier commented 3 years ago

M204 X20 Y10 Z5 S0 sets p 20 I 10 D 5 for extruder 0

qusai210 commented 3 years ago

thanks

qusai210 commented 3 years ago

hi i change this value for retraction and dont any thing change why ? and i change this value in cura host but still the problem can you help me

define FEATURE_RETRACTION 0

define AUTORETRACT_ENABLED 0

define RETRACTION_LENGTH 5

define RETRACTION_LONG_LENGTH 13

define RETRACTION_SPEED 45

repetier commented 3 years ago

Either because eeprom has different values set from previous upload and you did not reset them or because your slicer is not using G10/G11 but uses directly G1 to move E so it has more control over the retraction handling.

qusai210 commented 3 years ago

Hallo repetier I miss you
I have MkS GEN L v2.1 I confused which mother board select Can you help me which one select

repetier commented 3 years ago

It is a ramps 1.4 compatibel board so select ramps 1.4 and in ide ArduinoMega 2560 that should compile it.

qusai210 commented 3 years ago

And eeprom Which select

repetier commented 3 years ago

What do you mean? avr has build in eeprom so just use EEPROM_MODE 1 or 2 doe snot matter.