line()
Description
Perform linear motion to the target point at the feed rate.
For more information on various motion methods, please refer to the Motion Method Explanation page.
Syntax
machine.line(x, y, z);
machine.line(x, y, z, feedrate);
Parameters
machine
: Machine
object.
x
: Target X coordinate.
y
: Target X coordinate.
z
: Target X coordinate.
feedrate
: Feedrate. If no parameter is passed, the last recorded feedrate will be used.
Return
bool
:
true: The machine exists and is created successfully.
false: The machine does not exist or fails to be created.
Example
Set the basic parameters of the machine and move the machine back and forth to (10, 10, 10).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
|
Library Reference
The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.