int array[24][4];
int inPins[] = {22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,
37,38,39,40,41,42,43};
int outPins[] = {44,45,46,47,48,49,50,51,52,53,3,4,5,6,7,8,9,10,
11,12,13,14,15,16};
const int numOfMotors = 24; //constant for number of machines(invertors) working
int reply,reply2,reply3; //user input for menu selection
int machineNumber; //user input for machine number selection
unsigned long displayTime; //no real use; but will display the user with the amount of total time the program was running
unsigned long menuTime1,menuTime2,menuElapsed; //is used to calculate the time elapsed during the user input
unsigned long normalTime1,normalTime2,normalElapsed; //is used to calculate the microseconds spent during the void() loop
int x,y,days,hours,minutes,seconds,totalCount,showCount,tableCount1,tableCount2,tempA,tempB,tempC;
void setup() {
int w,x,y,z;
Serial.begin(9600); // open the serial port at 9600 bps:
//setting value to zero for consistancy
normalElapsed = 0;
normalTime2 = 0;
normalTime1 = 0;
menuTime1 = 0;
menuTime2 = 0;
menuElapsed = 0;
days = -1;
hours = -1;
minutes = -1;
seconds = -1;
displayTime = 0;
machineNumber = -1;
reply = reply2 = reply3 = -1;
for (int w = 0; w < numOfMotors ; w++) {
pinMode(inPins[w],OUTPUT);
}
for (int x = 0; x < numOfMotors ; x++) {
pinMode(outPins[x],INPUT);
}
//Initialization
for(y = 0; y < numOfMotors; y++) {
for(z = 0; z < 4; z++) {
array[y][z] = 0;
}
}
}