setMpgRatio()
Describe
Sets the magnification of the Encoder change amount and distance in MPG mode.
Grammarmachine.setMpgRatio(rate);
Parameter
machine
: It is an object of Machine
. .
rate
: Encoder The magnification of the change amount and distance, this value should be greater than 0. .
Return
No return value.
Example
Set the basic parameters of the machine and enable MPG mode. The X-axis will be connected when the Encoder value changes.
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 |
|
See also
beginMpg()
endMpg()
setMpgSpeed()
setMpgAxis()
getJogPos()
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.