config_EGearSlave()
Describe
The axis following function of the electronic gear ratio can be set. After enabling this function, the target machine will move according to the electronic gear ratio and the coordinate axis.
Grammar
machine.config_EGearSlave(target, xRatio, yRatio, zRatio);
Parameter
machine
: It is an object of Machine
. .
target
: It is an object Machine
, and this target machine will move along the coordinate axis according to the electronic gear ratio. .
xRatio
: The electronic gear ratio corresponding to the X-axis. .
yRatio
: The electronic gear ratio corresponding to the Y axis. .
zRatio
: The electronic gear ratio corresponding to the Z axis. .
Return
bool
:
true: Both machines exist and were created successfully.
false: Any machine does not exist or failed to create.
Example
slave_machine will follow the machine to perform G-code movement according to the electronic gear ratio (1.5, 0.5, 1.0).
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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
|
The text of the 86Duino reference follows the Creative Commons Attribution-ShareAlike 3.0 License. Code examples in reference materials have been published in the public domain.
86Duino cānkǎo zīliào de wénběn zūnxún zhīshì gòngxiǎng shǔmíng-x