getJogPos()
Describe
Get the target position of the machine in JOG/MPG mode.
Grammar
machine.getJogPos(axis);
machine.getJogPos(x, y, z);
Parameter
machine
: It is an object of Machine
. .
axis
: The motion axis to obtain the position can be AXIS_X, AXIS_Y or AXIS_Z.
x
: Obtain the target position of the X-axis.
y
: Obtain the target position of the Y axis.
z
: Obtain the target position of the Z axis.
Return
getActualPos(axis)
:
double
: Return the position of the motion axis. .
getActualPos(x, y, z)
:
There is no back-pass value, use the reference directly to obtain the X, Y, Z axis positions.
Example
Sets the basic parameters of the machine and enables Jog mode to move when the button is triggered.
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 |
|
See also
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.