-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A Z homing safety (G28 Z) code was added and now the printer starts its gohome function by homing Z before the other axes. Many CSV files were created and already have the placeholders for the predicted positions. The main code was updated to implement some of the CSV-based positions
- Loading branch information
Showing
13 changed files
with
157 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
CDISK1,23.8,173.8,None | ||
CDISK2,23.8,173.8,None | ||
CDISK3,23.8,173.8,None | ||
CDISK4,23.8,173.8,None | ||
CDISK5,23.8,173.8,None | ||
CDISK6,23.8,173.8,None | ||
CDISK7,23.8,173.8,None | ||
CDISK8,23.8,173.8,None | ||
CDISK9,23.8,173.8,None | ||
CDISK10,23.8,173.8,None | ||
CDTRAY_Z1,None,None,133 | ||
CDTRAY_Z2,None,None,141.5 | ||
CDTRAY_Z3,None,None,137 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
UDISK1,23.8,173.8,None | ||
UDISK2,23.8,173.8,None | ||
UDISK3,23.8,173.8,None | ||
UDISK4,23.8,173.8,None | ||
UDISK5,23.8,173.8,None | ||
UDISK6,23.8,173.8,None | ||
UDISK7,23.8,173.8,None | ||
UDISK8,23.8,173.8,None | ||
UDISK9,23.8,173.8,None | ||
UDISK10,23.8,173.8,None | ||
UDTRAY_Z1,None,None,133 | ||
UDTRAY_Z2,None,None,141.5 | ||
UDTRAY_Z3,None,None,137 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
ROTATOR_A,23.8,173.8,None | ||
ROTATOR_B,23.8,173.8,None | ||
ROTATOR_C,23.8,173.8,None | ||
ROTATOR_D,23.8,173.8,None | ||
CHARGER,23.8,173.8,None | ||
CHARGER_Z1,23.8,173.8,None | ||
CHARGER_Z2,23.8,173.8,None | ||
LASER,23.8,173.8,None | ||
LASER_Z1,23.8,173.8,None | ||
LASER_Z2,23.8,173.8,None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
HOME,20,20,20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
PH_OPENED,23.8,173.8,None | ||
PH_CLOSED,23.8,173.8,None | ||
PH_L1,23.8,173.8,None | ||
PH_L2,23.8,173.8,None | ||
PH_L3,23.8,173.8,None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
PH_STUB1,23.8,173.8,None | ||
PH_STUB2,23.8,173.8,None | ||
PH_STUB3,23.8,173.8,None | ||
PH_STUB4,23.8,173.8,None | ||
PH_STUB5,23.8,173.8,None | ||
PH_STUB6,23.8,173.8,None | ||
PH_STUB7,23.8,173.8,None | ||
PH_STUB8,23.8,173.8,None | ||
PH_STUB9,23.8,173.8,None | ||
PH_STUB10,23.8,173.8,None | ||
PH_STUB11,23.8,173.8,None | ||
PH_STUB12,23.8,173.8,None | ||
PH_STUB13,23.8,173.8,None | ||
PH_STUB14,23.8,173.8,None | ||
PH_STUB15,23.8,173.8,None | ||
PH_Z1,None,None,133 | ||
PH_Z2,None,None,141.5 | ||
PH_Z3,None,None,137 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
TSTUB1,23.8,173.8,None | ||
TSTUB2,23.8,173.8,None | ||
TSTUB3,23.8,173.8,None | ||
TSTUB4,23.8,173.8,None | ||
TSTUB5,23.8,173.8,None | ||
TSTUB6,23.8,173.8,None | ||
TSTUB7,23.8,173.8,None | ||
TSTUB8,23.8,173.8,None | ||
TSTUB9,23.8,173.8,None | ||
TSTUB10,23.8,173.8,None | ||
TSTUB11,23.8,173.8,None | ||
TSTUB12,23.8,173.8,None | ||
TSTUB13,23.8,173.8,None | ||
TSTUB14,23.8,173.8,None | ||
TSTUB15,23.8,173.8,None | ||
TSTUB16,23.8,173.8,None | ||
TSTUB17,23.8,173.8,None | ||
TSTUB18,23.8,173.8,None | ||
STRAY_Z1,None,None,133 | ||
STRAY_Z2,None,None,141.5 | ||
STRAY_Z3,None,None,137 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
BCP1,90,120,60 | ||
BCP2,90,120,60 | ||
BCP3,90,120,60 | ||
BCP4,90,120,60 | ||
HOME,90,120,60 | ||
REST,15,15,15 | ||
STUB1,23.8,173.8,None | ||
STUB2,23.8,173.8,None | ||
STUB3,23.8,173.8,None | ||
STUB4,23.8,173.8,None | ||
STUB5,23.8,173.8,None | ||
STUB6,23.8,173.8,None | ||
STUB7,23.8,173.8,None | ||
STUB8,23.8,173.8,None | ||
STUB9,23.8,173.8,None | ||
STUB10,23.8,173.8,None | ||
STUB11,23.8,173.8,None | ||
STUB12,23.8,173.8,None | ||
STUB13,23.8,173.8,None | ||
STUB14,23.8,173.8,None | ||
STUB15,23.8,173.8,None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import csv | ||
import os | ||
CWD = os.getcwd() | ||
positions = {} | ||
|
||
def float_or_none(s): | ||
if s == 'None': | ||
return None | ||
return float(s) | ||
|
||
|
||
def read_CSV_into_positions(path=CWD + '\\alab_control\\SEM_autoprep\\Tests\\SampleFile.csv'): | ||
with open(path, mode ='r') as file: | ||
csvFile = csv.reader(file) | ||
for lines in csvFile: | ||
#Each line has a list of 4 arguments, argument 0 is the name of the position, and argument 1, 2, 3 correspond to x, y, z, respectively | ||
positions[lines[0]] = ((float_or_none(lines[1]), float_or_none(lines[2]), float_or_none(lines[3]))) | ||
return positions | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters