I'm following the instructions from
https://docfirmwarev2.repetier.com/ and trying to compile firmware version 2 (the very 1st time). I am getting errors that are most likely caused by incorrect settings in my Configuration file. I'd appreciate any help/guidance.
My IDEX printer has two X motors, one Y motor, two Z motors and 2 extruder motors. So, 7 motors in total. Each motor is connected to its own driver on Ultratronics Pro board. 'Dual X Axis Printer' configuration sample published here
https://docfirmwarev2.repetier.com/config/printer_type/ contains the following
#define NUM_AXES 5 // X,Y,Z and E for extruder A,B,C would be 5,6,7
Why this example contains 5 axes? Dual X printer should have at least two X, one Y, one Z and 2 extruder motors. So, the number should be 6 or higher. If not, than what is the meaning of AXES in this context?
Other 2 settings that are puzzling me are
#define MOTORS \
{ &XMotor, &YMotor, &ZMotor, &AL1Motor, &AL2Motor }
#define MOTOR_NAMES \
{ PSTR("X"), PSTR("Y"), PSTR("Z"), PSTR("Adj. 1"), PSTR("Adj. 2") }
I tried to replace the last 2 entries in each of these lines with with A, B, C and D, but getting several errors like this:
src\motion/MotionLevel3.h:113:9: error: 'AMotor' was not declared in this scope
Prior to this I was getting several Servo related errors, nevertheless I defined NUM_SERVOS as 0.
Here are couple of them:
src/Configuration_io.h: In constructor 'Servo1Class::Servo1Class()':
src\io/io_servos.h:36:18: error: 'servoMicroseconds' is not a member of 'HAL'
HAL::servoMicroseconds(slot, neutral, 1000); \
^
src/Configuration_io.h:179:1: note: in expansion of macro 'SERVO_ANALOG'
SERVO_ANALOG(Servo1, 0, Servo1Pin, 500, 2500, 1050)
^~~~~~~~~~~~
I was able to get rid of these errors by commenting out the line
// SERVO_ANALOG(Servo1, 0, Servo1Pin, 500, 2500, 1050)
from Configuration_io.h file, but I don't know if this is good workaround.
Thanks