Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Z axis steppers enabled during entire print #8

Closed
ghost opened this issue Jan 29, 2012 · 5 comments
Closed

Z axis steppers enabled during entire print #8

ghost opened this issue Jan 29, 2012 · 5 comments

Comments

@ghost
Copy link

ghost commented Jan 29, 2012

Kia Ora

Firstly many thanks for excellent firmware and repetier-host. Keep up the good work.

I have noticed that the Z- axis steppers are enabled during entire print (motor hot and locked, current on). I have the following in the configuration file:

// Disables axis when it's not being used.

define DISABLE_X false

define DISABLE_Y false

define DISABLE_Z true

define DISABLE_E false

I'm running a sanguinolou v 1.3a and using pololu A 4988 stepper drivers.

The Z axis motors are disabled before print commences and after its complete, so it appears that the hardware is allowing disable/enable, just that it isn;t working while printing?

Any suggestions?

regards

Wayne

@repetier
Copy link
Owner

Till now only gen7 can't disable singe steppers.

The logic for disabling steppers in in Repetier-Firmware has in fact a wrong logic. Only after emptying the move queue it checks for steppers to be disabled. Not a problem with printing, but also not as expected. I will correct that for version 0.46.

@ghost
Copy link
Author

ghost commented Jan 31, 2012

Many thanks that works well :-) service with a smile. BTW no big deal, but to get the M80/M81 commands working I need to change the code to write the output low (current code just reverts back to input).

    case 80: // M81 - ATX Power On
    wait_until_end_of_move();
    if(PS_ON_PIN > -1) pinMode(PS_ON_PIN,OUTPUT); //GND
    digitalWrite(PS_ON_PIN, HIGH); //**********
    break;
  case 81: // M81 - ATX Power Off
    wait_until_end_of_move();
    //if(PS_ON_PIN > -1) pinMode(PS_ON_PIN,INPUT); //Floating
    digitalWrite(PS_ON_PIN, LOW); //***********
    break;

@repetier
Copy link
Owner

Thanks for the M80/81 info. I have no Gen7 to test, so I belive you that it works and will add it for the next release.

@repetier
Copy link
Owner

I just tried to validate your fix for atx power. It turned out that every firmware implementing it has it done the way I have. Reading the ATX specs, it says gnd is needed to enable and floating or high to disable it. Your changes inverse the existing logic. So is it possible you used the M80/81 commands just in the wrong order?
M80 is Power on
M81 is Power off

@ghost
Copy link
Author

ghost commented Jan 31, 2012

Yes, I have reversed it as I use a transistor on the output so that when the output is high the transistor is on and ATX green wire grounded and when output is low the transistor is off, atx green wire floating or high at 5V. I don't like the idea of connecting the output of the ATmega644 directly to the ATX 5V supply - risk having 5V on ATmega644 with no supply rail on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant