Hello, how to add additional A B C axis ?

How i can add A B C axis in repetier firmware dev2 ?

Comments

  • In crease in configuration.h
    NUM_AXES to 5, 6, 7 for A, B, C and define the corresponding motors in configuration_io and also make sure to add them in

    #define MOTORS \
    { &XMotor, &YMotor, &ZMotor, &E1Motor, &E2Motor }
    #define MOTOR_NAMES \
    { PSTR("X"), PSTR("Y"), PSTR("Z"), PSTR("E0"), PSTR("E1") }

    Motor names are AMotor, BMotor and CMotor you need to define.
    That is actually all needed to have them.

    For what are they needed? Often it is better to not have them and just switch E motor with that motor. Every extra motor adds code for stepping etc so motions get reduced max. speed from this. If you need them all to move same time that is the way to go. But e.g. for small adjustments or clearing plate you would sore them as E motor use function and restore e motor. Of course then requires own special gcodes to make sense of it.
  • In file included from src\Repetier.h:480:0,
                     from src\Configuration.cpp:29:
    src\motion/MotionLevel3.h: In static member function 'static void Motion3::unstepMotors()':
    src\motion/MotionLevel3.h:117:9: error: 'AMotor' was not declared in this scope
             AMotor.unstep();
             ^~~~~~
    src\motion/MotionLevel3.h:117:9: note: suggested alternative: 'ZMotor'
             AMotor.unstep();
             ^~~~~~
             ZMotor
    src\motion/MotionLevel3.h:120:9: error: 'BMotor' was not declared in this scope
             BMotor.unstep();
             ^~~~~~
    src\motion/MotionLevel3.h:120:9: note: suggested alternative: 'ZMotor'
             BMotor.unstep();
             ^~~~~~
             ZMotor
    In file included from src/Repetier.h:480:0,
                     from src\PrinterTypes\Printer.cpp:19:
    src/motion/MotionLevel3.h: In static member function 'static void Motion3::unstepMotors()':
    src/motion/MotionLevel3.h:117:9: error: 'AMotor' was not declared in this scope
             AMotor.unstep();
             ^~~~~~
    src/motion/MotionLevel3.h:117:9: note: suggested alternative: 'ZMotor'
             AMotor.unstep();
             ^~~~~~
             ZMotor
    src/motion/MotionLevel3.h:120:9: error: 'BMotor' was not declared in this scope
             BMotor.unstep();
             ^~~~~~
    src/motion/MotionLevel3.h:120:9: note: suggested alternative: 'ZMotor'
             BMotor.unstep();
             ^~~~~~
             ZMotor
    In file included from src/Repetier.h:480:0,
                     from src\PrinterTypes\PrinterTypeCartesian.cpp:19:
    src/motion/MotionLevel3.h: In static member function 'static void Motion3::unstepMotors()':
    src/motion/MotionLevel3.h:117:9: error: 'AMotor' was not declared in this scope
             AMotor.unstep();
             ^~~~~~
    src/motion/MotionLevel3.h:117:9: note: suggested alternative: 'ZMotor'
             AMotor.unstep();
             ^~~~~~
             ZMotor
    src/motion/MotionLevel3.h:120:9: error: 'BMotor' was not declared in this scope
             BMotor.unstep();
             ^~~~~~
    src/motion/MotionLevel3.h:120:9: note: suggested alternative: 'ZMotor'
             BMotor.unstep();
             ^~~~~~
             ZMotor
    In file included from src/Repetier.h:480:0,
                     from src\PrinterTypes\PrinterTypeCoreXYZ.cpp:19:
    src/motion/MotionLevel3.h: In static member function 'static void Motion3::unstepMotors()':
    src/motion/MotionLevel3.h:117:9: error: 'AMotor' was not declared in this scope
             AMotor.unstep();
             ^~~~~~
    src/motion/MotionLevel3.h:117:9: note: suggested alternative: 'ZMotor'
             AMotor.unstep();
             ^~~~~~
             ZMotor
    src/motion/MotionLevel3.h:120:9: error: 'BMotor' was not declared in this scope
             BMotor.unstep();
             ^~~~~~
    src/motion/MotionLevel3.h:120:9: note: suggested alternative: 'ZMotor'
             BMotor.unstep();
             ^~~~~~
             ZMotor
    In file included from src/Repetier.h:480:0,
                     from src\PrinterTypes\PrinterTypeDelta.cpp:19:
    src/motion/MotionLevel3.h: In static member function 'static void Motion3::unstepMotors()':
    src/motion/MotionLevel3.h:117:9: error: 'AMotor' was not declared in this scope
             AMotor.unstep();
             ^~~~~~
    src/motion/MotionLevel3.h:117:9: note: suggested alternative: 'ZMotor'
             AMotor.unstep();
             ^~~~~~
             ZMotor
    src/motion/MotionLevel3.h:120:9: error: 'BMotor' was not declared in this scope
             BMotor.unstep();
             ^~~~~~
    src/motion/MotionLevel3.h:120:9: note: suggested alternative: 'ZMotor'
             BMotor.unstep();
             ^~~~~~
             ZMotor
    src\PrinterTypes\PrinterTypeDelta.cpp: In static member function 'static void PrinterType::restoreFromConfiguration()':
    src\PrinterTypes\PrinterTypeDelta.cpp:322:17: error: 'BED_RADIUS' was not declared in this scope
         bedRadius = BED_RADIUS;
                     ^~~~~~~~~~
    In file included from src/Repetier.h:480:0,
                     from src\PrinterTypes\PrinterTypeDualXAxis.cpp:36:
    src/motion/MotionLevel3.h: In static member function 'static void Motion3::unstepMotors()':
    src/motion/MotionLevel3.h:117:9: error: 'AMotor' was not declared in this scope
             AMotor.unstep();
             ^~~~~~
    *** [.pio\build\due\src\Configuration.cpp.o] Error 1
    src/motion/MotionLevel3.h:117:9: note: suggested alternative: 'ZMotor'
             AMotor.unstep();
             ^~~~~~
             ZMotor
    src/motion/MotionLevel3.h:120:9: error: 'BMotor' was not declared in this scope
             BMotor.unstep();
             ^~~~~~
    *** [.pio\build\due\src\PrinterTypes\PrinterTypeCartesian.cpp.o] Error 1
    *** [.pio\build\due\src\PrinterTypes\PrinterTypeCoreXYZ.cpp.o] Error 1
    src/motion/MotionLevel3.h:120:9: note: suggested alternative: 'ZMotor'
             BMotor.unstep();
             ^~~~~~
             ZMotor
    src\PrinterTypes\PrinterTypeDelta.cpp:322:17: note: suggested alternative: 'E_AXIS'
         bedRadius = BED_RADIUS;
                     ^~~~~~~~~~
                     E_AXIS
    *** [.pio\build\due\src\PrinterTypes\Printer.cpp.o] Error 1
    In file included from src/Repetier.h:480:0,
                     from src\SdFat\FatLib\FatFile.cpp:25:
    src/motion/MotionLevel3.h: In static member function 'static void Motion3::unstepMotors()':
    src/motion/MotionLevel3.h:117:9: error: 'AMotor' was not declared in this scope
             AMotor.unstep();
             ^~~~~~
    src/motion/MotionLevel3.h:117:9: note: suggested alternative: 'ZMotor'
             AMotor.unstep();
             ^~~~~~
             ZMotor
    src/motion/MotionLevel3.h:120:9: error: 'BMotor' was not declared in this scope
             BMotor.unstep();
             ^~~~~~
    src/motion/MotionLevel3.h:120:9: note: suggested alternative: 'ZMotor'
             BMotor.unstep();
             ^~~~~~
             ZMotor
    In file included from src/Repetier.h:480:0,
                     from src\SdFat\FatLib\FatFileLFN.cpp:25:
    src/motion/MotionLevel3.h: In static member function 'static void Motion3::unstepMotors()':
    src/motion/MotionLevel3.h:117:9: error: 'AMotor' was not declared in this scope
             AMotor.unstep();
             ^~~~~~
    src/motion/MotionLevel3.h:117:9: note: suggested alternative: 'ZMotor'
             AMotor.unstep();
             ^~~~~~
             ZMotor
    src/motion/MotionLevel3.h:120:9: error: 'BMotor' was not declared in this scope
             BMotor.unstep();
             ^~~~~~
    *** [.pio\build\due\src\PrinterTypes\PrinterTypeDelta.cpp.o] Error 1
    *** [.pio\build\due\src\PrinterTypes\PrinterTypeDualXAxis.cpp.o] Error 1
    src/motion/MotionLevel3.h:120:9: note: suggested alternative: 'ZMotor'
             BMotor.unstep();
             ^~~~~~
             ZMotor
    *** [.pio\build\due\src\SdFat\FatLib\FatFileLFN.cpp.o] Error 1
    *** [.pio\build\due\src\SdFat\FatLib\FatFile.cpp.o] Error 1

  • i get errors
  • You did not add one of the motor definition RAyWB showed you in configuration_io.h so AMotor is not defined causing the errors. They get defined same as x,y z motor but you need to add them.
Sign In or Register to comment.