-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Final changes before releasing v1.6.8
- Loading branch information
1 parent
2353263
commit 2ac644a
Showing
11 changed files
with
141 additions
and
29 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
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
Binary file not shown.
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
## Author: Francois Giguere | ||
## Version: 1.6.8 | ||
## Email: [email protected] | ||
## Status: ready to test | ||
## Status: tested | ||
################################################## | ||
|
||
from _MachineMotion_1_6_8 import * | ||
|
@@ -31,11 +31,11 @@ def debug(data): | |
print ("Application Message: Acceleration configured \n") | ||
|
||
# Homing axis 1 | ||
mm.emitHome(1) | ||
print ("Application Message: Axis 1 is at home \n") | ||
mm.emitHomeAll() | ||
print ("Application Message: Axes at home \n") | ||
|
||
# Move the axis 1 to position 100 mm | ||
mm.emitCombinedAbsoluteMove([1, 2, 3], [100, 200, 100]) | ||
mm.emitCombinedAxesAbsoluteMove([1, 2, 3], [50, 100, 50]) | ||
print ("Application Message: Motion on-going ... \n") | ||
|
||
mm.waitForMotionCompletion() | ||
|
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
## Author: Francois Giguere | ||
## Version: 1.6.8 | ||
## Email: [email protected] | ||
## Status: ready to test | ||
## Status: tested | ||
################################################## | ||
|
||
from _MachineMotion_1_6_8 import * | ||
|
@@ -30,12 +30,12 @@ def debug(data): | |
mm.emitAcceleration(1000) | ||
print ("Application Message: Acceleration configured \n") | ||
|
||
# Homing axis 1 | ||
mm.emitHome(1) | ||
print ("Application Message: Axis 1 at home \n") | ||
# Homing all axes | ||
mm.emitHomeAll() | ||
print ("Application Message: Axes at home \n") | ||
|
||
# Move the axis one to position 100 mm | ||
mm.emitCombinedRelativeMove([1,2,3], ["positive","positive","positive"], [100, 200, 300]) | ||
mm.emitCombinedAxisRelativeMove([1, 2, 3], ["positive", "positive", "positive"], [100, 200, 300]) | ||
print ("Application Message: Multi-axis move on-going ... \n") | ||
|
||
mm.waitForMotionCompletion() | ||
|
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,63 @@ | ||
################################################## | ||
## Axis Direction | ||
################################################## | ||
## Author: Francois Giguere | ||
## Version: 1.6.8 | ||
## Email: [email protected] | ||
## Status: tested | ||
################################################## | ||
|
||
from _MachineMotion_1_6_8 import * | ||
|
||
# Define a callback to process controller gCode responses if desired. This is mostly used for debugging purposes. | ||
def debug(data): | ||
pass | ||
|
||
print ("Application Message: MachineMotion Program Starting \n") | ||
|
||
mm = MachineMotion(debug, DEFAULT_IP_ADDRESS.usb_windows) | ||
print ("Application Message: MachineMotion Controller Connected \n") | ||
|
||
# Configure the axis number 1, 8 uSteps and 150 mm / turn for a timing belt | ||
mm.configAxis(1, MICRO_STEPS.ustep_8, MECH_GAIN.timing_belt_150mm_turn) | ||
print ("Application Message: MachineMotion Axis 1 Configured \n") | ||
|
||
# Configuring the travel speed to 10000 mm / min | ||
mm.emitSpeed(10000) | ||
print ("Application Message: Speed configured \n") | ||
|
||
# Configuring the travel speed to 1000 mm / second^2 | ||
mm.emitAcceleration(1000) | ||
print ("Application Message: Acceleration configured \n") | ||
|
||
# Homing axis 1 | ||
mm.emitHome(1) | ||
print ("Application Message: Axis 1 is at home \n") | ||
|
||
# Move the axis 1 to position 100 mm | ||
mm.emitAbsoluteMove(1, 100) | ||
print ("Application Message: Motion on-going ... \n") | ||
|
||
mm.waitForMotionCompletion() | ||
print ("Application Message: Motion completed \n") | ||
|
||
|
||
mm.emitSetAxisDirection(1, "reverse") | ||
print ("Application Message: Axis direction set for axis 1 \n") | ||
|
||
# Homing axis 1 | ||
mm.emitHome(1) | ||
print ("Application Message: Axis 1 is at home \n") | ||
|
||
# Move the axis 1 to position 100 mm | ||
mm.emitAbsoluteMove(1, 100) | ||
print ("Application Message: Motion on-going ... \n") | ||
|
||
mm.waitForMotionCompletion() | ||
print ("Application Message: Motion completed \n") | ||
|
||
print ("Application Message: Program terminating ... \n") | ||
time.sleep(1) | ||
sys.exit(0) | ||
|
||
|
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
## Author: Francois Giguere | ||
## Version: 1.6.8 | ||
## Email: [email protected] | ||
## Status: released | ||
## Status: tested | ||
################################################## | ||
|
||
from _MachineMotion_1_6_8 import * | ||
|
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
## Author: Francois Giguere | ||
## Version: 1.6.8 | ||
## Email: [email protected] | ||
## Status: rdy for test | ||
## Status: tested | ||
################################################## | ||
|
||
from _MachineMotion_1_6_8 import * | ||
|
@@ -26,7 +26,7 @@ def debug(data): | |
mm.setPosition(1, 100) | ||
print ("Application Message: Position set to 100 mm on axis 1\n") | ||
|
||
mm.moveRelative(1, "negative", 50) | ||
mm.emitRelativeMove(1, "negative", 50) | ||
print ("Application Message: Moving in the negative direction ... \n") | ||
|
||
mm.waitForMotionCompletion() | ||
|
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