Commit ff470b55 authored by 42loop's avatar 42loop
Browse files

removed ready signals from inverters, not needed

parent 9f9e275a
......@@ -29,7 +29,7 @@ limitP[0]=limitXP;
limitP[1]=limitYP;
limitP[2]=limitZP;
/*
readyX=digitalRead(readyXpin);
readyY=digitalRead(readyYpin);
readyZ=digitalRead(readyZpin);
......@@ -38,13 +38,14 @@ readyZ=digitalRead(readyZpin);
machineready[0]=readyX;
machineready[1]=readyY;
machineready[2]=readyZ;
*/
bool limitchanged=false;
error=-1;
for (int ax=0;ax<max_ax;ax++)
{
if (!machineready[ax]) {error=ax;}
// if (!machineready[ax]) {error=ax;}
if (limitM[ax]!=lastlimitM[ax]) {limitchanged=true;}
if (limitP[ax]!=lastlimitP[ax]) {limitchanged=true;}
}
......@@ -79,10 +80,9 @@ void reportinputs()
Serial.print(limitYM);Serial.print("\t");
Serial.print(limitYP);Serial.print("\t");
Serial.print(limitZM);Serial.print("\t");
Serial.print(limitZP);Serial.print("\t");
Serial.print(readyX);Serial.print("\t");
Serial.print(limitZP);Serial.println("\t");
/*Serial.print(readyX);Serial.print("\t");
Serial.print(readyY);Serial.print("\t");
Serial.println(readyZ);
Serial.println(readyZ);*/
}
......@@ -51,10 +51,13 @@ pinMode(limitZMpin,INPUT);
pinMode(refX,INPUT);
pinMode(refY,INPUT);
pinMode(refZ,INPUT);
/*
pinMode(readyXpin,INPUT);
pinMode(readyYpin,INPUT);
pinMode(readyZpin,INPUT);
*/
digitalWrite(limitXPpin,HIGH);
digitalWrite(limitXMpin,HIGH);
......@@ -66,10 +69,11 @@ digitalWrite(limitZMpin,HIGH);
digitalWrite(refX,HIGH);
digitalWrite(refY,HIGH);
digitalWrite(refZ,HIGH);
/*
digitalWrite(readyXpin,HIGH);
digitalWrite(readyYpin,HIGH);
digitalWrite(readyZpin,HIGH);
*/
pinMode(led,OUTPUT);
digitalWrite(led,HIGH);
......
......@@ -20,9 +20,9 @@
#define limitZPpin 7 //cable 15, EXT A,6
//ready inputs from amps, leveled by external circuit
#define readyXpin 9 //EXT B,2
#define readyYpin 10 //EXT B,4
#define readyZpin 11 //EXT B,6
//#define readyXpin 9 //EXT B,2
//#define readyYpin 10 //EXT B,4
//#define readyZpin 11 //EXT B,6
//unused ref switches:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment