Welcome! Log In Create A New Profile

Advanced

What have I done wrong??

Posted by regpye 
What have I done wrong??
April 09, 2013 09:36AM
Calling on all the brains out there, cos mine in not working too good.

I have been setting up a machine that has been previously working OK, but I needed to change the extruder settings to get the correct filament output.
All that went well, but when I tried to use the machine a strange thing has happened.

The Y axis will not home any more. It just makes a short movement towards home and stops. Can move the Y axis in one direction, except for a small movement.

I checked the endstops and found that the Y axis homing has changed.

SENDING:M119
Reporting endstop status
x_min: TRIGGERED
y_max: TRIGGERED
z_min: TRIGGERED

I have checked the Y limit and it appears to be OK, no wires off, etc, but when I press it, nothing happens as if it is not connected.

Checked the wiring on the Y motor and that appears OK too.

The Mechanical Settings. are below;
I can't see anything wrong, but maybe someone else can see what the problem is? (I hope)

/===========================================================================
//=============================Mechanical Settings===========================
//===========================================================================

// Uncomment the following line to enable CoreXY kinematics
// #define COREXY

// corse Endstop Settings
#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors

#ifndef ENDSTOPPULLUPS
// fine Enstop settings: Individual Pullups. will be ignord if ENDSTOPPULLUPS is defined
#define ENDSTOPPULLUP_XMAX
#define ENDSTOPPULLUP_YMAX
#define ENDSTOPPULLUP_ZMAX
#define ENDSTOPPULLUP_XMIN
#define ENDSTOPPULLUP_YMIN
//#define ENDSTOPPULLUP_ZMIN
#endif

#ifdef ENDSTOPPULLUPS
#define ENDSTOPPULLUP_XMAX
#define ENDSTOPPULLUP_YMAX
#define ENDSTOPPULLUP_ZMAX
#define ENDSTOPPULLUP_XMIN
#define ENDSTOPPULLUP_YMIN
#define ENDSTOPPULLUP_ZMIN
#endif

// The pullups are needed if you directly connect a mechanical endswitch between the signal and ground pins.
const bool X_ENDSTOPS_INVERTING = false; // set to true to invert the logic of the endstops.
const bool Y_ENDSTOPS_INVERTING = false; // set to true to invert the logic of the endstops.
const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of the endstops.
//#define DISABLE_MAX_ENDSTOPS

// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
#define X_ENABLE_ON 0
#define Y_ENABLE_ON 0
#define Z_ENABLE_ON 0
#define E_ENABLE_ON 0 // For all extruders

// Disables axis when it's not being used.
#define DISABLE_X true
#define DISABLE_Y true
#define DISABLE_Z true
#define DISABLE_E false // For all extruders

#define INVERT_X_DIR false // for Genie model A false, for Genie model B true
#define INVERT_Y_DIR true // for Genie model A false, for Genie model B true
#define INVERT_Z_DIR false // for Genie set to false
#define INVERT_E0_DIR true // for direct drive extruder v9 set to true, for geared extruder set to false
#define INVERT_E1_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false
#define INVERT_E2_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false

// ENDSTOP SETTINGS:
// Sets direction of endstops when homing; 1=MAX, -1=MIN
#define X_HOME_DIR -1 //stop at motor end for Genie model A -1, stop at idler end for Genie model B 1
#define Y_HOME_DIR 1 // for Genie model A -1, for Genie model B 1
#define Z_HOME_DIR -1

#define min_software_endstops true //If true, axis won't move to coordinates less than HOME_POS.
#define max_software_endstops true //If true, axis won't move to coordinates greater than the defined lengths below.
// Travel limits after homing
#define X_MAX_POS 210
#define X_MIN_POS 0
#define Y_MAX_POS 210
#define Y_MIN_POS 0
#define Z_MAX_POS 130
#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)

// The position of the homing switches
//#define MANUAL_HOME_POSITIONS // If defined, MANUAL_*_HOME_POS below will be used
//#define BED_CENTER_AT_0_0 // If defined, the center of the bed is at (X=0, Y=0)

//Manual homing switch locations:
#define MANUAL_X_HOME_POS 0
#define MANUAL_Y_HOME_POS 0
#define MANUAL_Z_HOME_POS 0

//// MOVEMENT SETTINGS
#define NUM_AXIS 4 // The axis order in all axis related arrays is X, Y, Z, E
#define HOMING_FEEDRATE {50*60, 50*60, 4*60, 0} // set the homing speeds (mm/min)

// default settings

#define DEFAULT_AXIS_STEPS_PER_UNIT {53.333,53.333,2560,106.532878666666} // 53.333 for T5 12T, 80 for GT2 22T, 2560 for M8 Z srive shafts, last number adjust for filament extruded
// To calcuate extruder
// 1,018.59249615640488/drive wheel diameter
// Check by turning off cold extruder M302,
// remove nozzle, feed filament end of hotend tube, cut off flush,
//send out 100mm, cut off flush. measure length actually sent out.
//Takeaway difference and add or take away this percentage to calculated amount.
// Example sent out 100mm, actual was 87mm so calculated was 97.94 steps change to 97.94 *100/87 = 112.5747

#define DEFAULT_MAX_FEEDRATE {500, 500, 5, 45} // (mm/sec)
#define DEFAULT_MAX_ACCELERATION {9000,9000,100,10000} // X, Y, Z, E maximum start speed for accelerated moves. E default values are good for skeinforge 40+, for older versions raise them a lot.

#define DEFAULT_ACCELERATION 3000 // X, Y, Z and E max acceleration in mm/s^2 for printing moves
#define DEFAULT_RETRACT_ACCELERATION 3000 // X, Y, Z and E max acceleration in mm/s^2 for r retracts

//
#define DEFAULT_XYJERK 20.0 // (mm/sec)
#define DEFAULT_ZJERK 0.4 // (mm/sec)
#define DEFAULT_EJERK 5.0 // (mm/sec)

//===========================================================================
Re: What have I done wrong??
April 10, 2013 10:53AM
it would be easier if you could tell what machine you have.

looking over config here are some settings I would change

#define min_software_endstops true


if you have min end stops, then get rid of min software stops. this prevents movements to less than zero, a requirement for homing to min with end stops.
change to this:

//#define min_software_endstops true

also double check switch, use continuity tester to verify switch contact.


also x,y steppers should be always enabled. end of run or time out will still disable them, just not between moved

#define DISABLE_X true
#define DISABLE_Y true

change to

#define DISABLE_X false
#define DISABLE_Y false

homing feed rate seems kind of high

#define HOMING_FEEDRATE {50*60, 50*60, 4*60, 0} // set the homing speeds (mm/min)

change to this:

#define HOMING_FEEDRATE {20*60, 20*60, 3*60, 0} // set the homing speeds (mm/min)


finally does y home to max or min position? if it is min then something has changed here:

change
#define Y_HOME_DIR 1 // for Genie model A -1, for Genie model B 1
to this:

#define Y_HOME_DIR -1


post how it works for you, others will help you!
Re: What have I done wrong??
April 10, 2013 12:10PM
I agree with James.

If you're able, test the switch is working with a continuity tester.

If you're getting "Triggered" when the switch isn't pressed with M119 then change:
const bool Y_ENDSTOPS_INVERTING = false;
to this:
const bool Y_ENDSTOPS_INVERTING = true;

Then try M119 again.

If the Y endstop should be pressed when the Y axis is at home (like most printers) then I definitely agree with:

change
#define Y_HOME_DIR 1 // for Genie model A -1, for Genie model B 1
to this:
#define Y_HOME_DIR -1



PrintB.it
Re: What have I done wrong??
April 10, 2013 07:09PM
Thanks guys for your comments.
I checked the files and found that I had a corrupt file and loaded a new version saved on my other computer.
I re-flashed and the problem was fixed.

I did check the limit switch, it was working OK. I also checked all the wiring in case a lead had come off.
Not sure how a text file could be corrupted, but after replacing both configuration.h and pins.h the problem was solved.

The machine is a Genie T model A, it is based on the design of a Prusa Air2, but has many differences,. especially in the hardware parts for the axis which are all powder coated aluminium. Has a direct drive extruder and a hotend based on a J head.

Reg
Re: What have I done wrong??
April 10, 2013 08:14PM
do you mind editing your post with (fixed) after it in subject . thanks!
Re: What have I done wrong?? (Fixed)
April 10, 2013 08:43PM
All working now.
Was a file problem.
Sorry, only registered users may post in this forum.

Click here to login