New to Arduino getting an "expected unqualified-id before numeric constant"

All, Im recently new to Arduino and loving it! Ive completed one project to connect an EcoBee 3 to a hybrid boiler/heatpump system. I am now trying to do some automation of my wood shop and I am getting an error "expected unqualified-id before numeric constant" Im sure I am missing a ; or something somewhere but I just dont see it. Any help is appreciated.

// Initialize Inputs:
const int DPI = 22;
const int PLI = 23;
const int JLI = 24;
const int CBI = 25;
const int BI = 26;
const int DCI = 27;
const int ACI = 28;
const int TI = 29;


// Intialize Outputs:
const int T = 31;
const int DC = 33;
const int AC = 35;
const int DP = 36;
const int PL = 38;
const int JL = 40;
const int CB = 42;
const int B = 44;
const int VFD = 37;


// Variables that will change:
int DPIState = 0; 
int PLIState = 0;
int JLIState = 0;
int CBIState = 0;
int BIState = 0;
int DCIState = 0;
int ACIState = 0;
int TIState = 0;


void setup(){  
 
//Drive all relays to High to begin
digitalWrite(T, HIGH);
digitalWrite(DC, HIGH);
digitalWrite(AC, HIGH);
digitalWrite(DP, HIGH);
digitalWrite(PL, HIGH);
digitalWrite(JL, HIGH);
digitalWrite(CB, HIGH);
digitalWrite(B, HIGH);
digitalWrite(VFD, HIGH);

// Pin Outputs to Ouputs
pinMode(T, OUTPUT);
pinMode(DC, OUTPUT);
pinMode(AC, OUTPUT);
pinMode(DP, OUTPUT);
pinMode(PL, OUTPUT);
pinMode(JL, OUTPUT);
pinMode(CB, OUTPUT);
pinMode(B, OUTPUT);
pinMode(VFD, OUTPUT);

  // Pin Inputs to Inputs:
pinMode(DPI, INPUT_PULLUP);
pinMode(PLI, INPUT_PULLUP);
pinMode(JLI, INPUT_PULLUP);
pinMode(CBI, INPUT_PULLUP);
pinMode(BI, INPUT_PULLUP);
pinMode(DCI, INPUT_PULLUP);
pinMode(ACI, INPUT_PULLUP);
pinMode(TI, INPUT_PULLUP);


}

void loop() 
{

  
  // read if 440V transformer should be turned on
  TIState = digitalRead(TI);
  // check if the pushbutton is pressed.
  // if it is, the buttonState is LOW:
  if (TIState == LOW){
    //Turn on transformer
    digitalWrite(T, LOW);
  }
  else {
    digitalWrite(T, HIGH);
  }
  
  // read the state of the Drill Press Switch value:
  // Drill Press does not require dust collection
  DPIState = digitalRead(DPI);

  // check if the pushbutton is pressed.
  // if it is, the buttonState is LOW:
  if (DPIState == LOW) {
    // turn DP relay on and Turn on Inverter
    digitalWrite(DP, LOW);
    digitalWrite(VFD, LOW);
  }
  else {
    digitalWrite(DP, HIGH);
    digitalWrite(VFD, HIGH);
  }


  // read the state of the Planer Switch value:
  //planer requires dust collector
  PLIState = digitalRead(PLI);

  // check if the pushbutton is pressed.
  // if it is, the buttonState is LOW:
  if (PLIState == LOW) {
    // turn Planer relay on and Turn on Inverter
    digitalWrite(PL, LOW);
    digitalWrite(VFD, LOW);
    digitalWrite(DC, LOW);
  }
  else {
    digitalWrite(PL, HIGH);
    digitalWrite(VFD, HIGH);
    digitalWrite(DC, HIGH);
  }
 

  // read the state of the Jointer Switch value:
  //Jointer requires dust collector
  JLIState = digitalRead(JLI);

  // check if the pushbutton is pressed.
  // if it is, the buttonState is LOW:
  if (JLIState == LOW) {
    // turn Planer relay on and Turn on Inverter
    digitalWrite(JL, LOW);
    digitalWrite(VFD, LOW);
    digitalWrite(DC, LOW);
  }
  else {
    digitalWrite(JL, HIGH);
    digitalWrite(VFD, HIGH);
    digitalWrite(DC, HIGH);
  }


  // read the state of the Crescent Bandsaw Switch value:
  //Bandsaw requires dust collector
  CBIState = digitalRead(CBI);

  // check if the pushbutton is pressed.
  // if it is, the buttonState is LOW:
  if (CBIState == LOW) {
    // turn Planer relay on and Turn on Inverter
    digitalWrite(CB, LOW);
    digitalWrite(VFD, LOW);
    digitalWrite(DC, LOW);
  }
  else {
    digitalWrite(CB, HIGH);
    digitalWrite(VFD, HIGH);
    digitalWrite(DC, HIGH);
  }


  // read the state of the Oliver Bandsaw Switch value:
  //Bandsaw requires dust collector
  BIState = digitalRead(BI);

  // check if the pushbutton is pressed.
  // if it is, the buttonState is LOW:
  if (BIState == LOW) {
    // turn Planer relay on and Turn on Inverter
    digitalWrite(B, LOW);
    digitalWrite(VFD, LOW);
    digitalWrite(DC, LOW);
  }
  else {
    digitalWrite(B, HIGH);
    digitalWrite(VFD, HIGH);
    digitalWrite(DC, HIGH);
  }

}

HI,
For some reason it doesn't like a constant to be declared as ACI.
I got the same error.

I changed the name to ACIa and it compiled.
So ACI must be a system constant, so I suggest you change all ACI in your sketch to another constant name.

Tom... :slight_smile:

Awesome! thank you I would not have found that. I changed to ACPI and it compiled for me as well.

Thanks for the quick response.

ACI: Analog Comparator Interrupt Flag