Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
e98aba9
docs: the two poses differ in the first rotary from the tool
grandixximo Oct 4, 2026
f137bbd
canon: refuse a move whose joints leave their travel along it
grandixximo Oct 5, 2026
3e3cb4f
motion: report the tool frame in the work frame in status
grandixximo Oct 10, 2026
fa440d0
glcanon: point the tool marker along the tool frame the kinematics re…
grandixximo Oct 10, 2026
042447d
motion: jog X, Y and Z along the tilted work plane or the tool
grandixximo Oct 10, 2026
174fce3
halui: select the jog frame
grandixximo Oct 10, 2026
4a2661d
axis: select the jog frame from the View menu or with %
grandixximo Oct 10, 2026
cb69759
interp: cut a tilted work plane on the part under the machine frame k…
grandixximo Oct 19, 2026
2c47934
preview: draw the tool on the part under the machine frame kinematics
grandixximo Oct 26, 2026
9fe2148
preview: read the point back from the joints at a kinematics switch
grandixximo Oct 27, 2026
3ab8fd7
kinematics: frames from the pose, for a type whose forward iterates
grandixximo Oct 28, 2026
8baab1b
genhexkins, pentakins: state the frames from the pose
grandixximo Oct 28, 2026
937a472
kinematics: turn the offset across the tool with the pose
grandixximo Oct 28, 2026
d069eca
motion: read the [AXIS_L] box on the platform of a parallel machine
grandixximo Oct 28, 2026
c38f9e8
interp: orient the tool on a parallel machine
grandixximo Oct 28, 2026
fb67077
kinematics: the forward and the inverse of any type, as the type in f…
grandixximo Oct 30, 2026
3d1a2cf
tp, motion: a joint segment that follows a line on another kinematics…
grandixximo Oct 30, 2026
27eafe8
interp: G53.6 keeps the tool tip on the part all along under the mach…
grandixximo Oct 30, 2026
0bfe0d5
interp: G92, G10 L20, G43 and M6 wait for the G49 that cancels G43.4
grandixximo Nov 1, 2026
ecb5d96
preview: restate G43.4 and G43.5 with the machine's offset
grandixximo Nov 9, 2026
bd5c96f
motion_planning: the poses along a line and an arc, and how often to …
grandixximo Nov 3, 2026
f365434
preview: follow the joints along each move and warn before the run
grandixximo Nov 3, 2026
cae9e17
interp: turn a coordinate system about X and Y as well as Z
grandixximo Nov 9, 2026
7190509
gmoccapy: the offset page shows and sets the I, J and K rotations
Sigma1912 Nov 22, 2026
1ed3a49
preview: restate the G52 and G92 offsets by value
grandixximo Nov 14, 2026
2251d34
gladevcp, qtvcp: show the relative position in the tilted work plane
grandixximo Nov 14, 2026
ec76c14
gladevcp, qtvcp: show the relative position in the plane under G13.1
grandixximo Nov 14, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/src/code/nml-messages.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ EMC_TRAJ_SET_G92_TYPE
EMC_TRAJ_CLEAR_PROBE_TRIPPED_FLAG_TYPE
EMC_TRAJ_PROBE_TYPE
EMC_TRAJ_SET_TELEOP_ENABLE_TYPE
EMC_TRAJ_SET_JOG_FRAME_TYPE
EMC_TRAJ_SET_SPINDLESYNC_TYPE
EMC_TRAJ_SET_SPINDLE_SCALE_TYPE
EMC_TRAJ_SET_FO_ENABLE_TYPE
Expand Down
9 changes: 6 additions & 3 deletions docs/src/config/ini-config.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,8 @@ See <<cha:gmoccapy,GMOCCAPY>> document for GMOCCAPY details.
. The proper GEOMETRY string depends on the machine configuration and the kinematics used to control it.
The order of the letters is important.
For example, rotating around C then B is different than rotating around B then C.
. The tool marker does not use GEOMETRY where the kinematics type in force reports its tool and work frames: it is drawn along the tool as the kinematics places it against the work, the `tool_frame` the Python interface reports.
GEOMETRY orients it under an identity kinematics type and with a module that reports no frames.
. Rotations are by default applied with respect to the machine origin.
Example: `GEOMETRY=CXYZ` first translates the control point to X, Y, Z and then performs a C rotation about the Z axis centered at the machine origin.
. UVW translation example: `GEOMETRY=XYZUVW` causes UVW to move in the coordinate system of the tool and XYZ to move in the coordinate system of the material.
Expand Down Expand Up @@ -1204,9 +1206,10 @@ These settings are verified at startup when the trivkins kinematics modules is s
The `[JOINT_N]MIN_LIMIT`/`MAX_LIMIT` settings are enforced while jogging in joint mode prior to homing.
After homing, `[AXIS_L]MIN_LIMIT`/`MAX_LIMIT` coordinate limits are used as constraints for axis (coordinate letter) jogging
and by the trajectory planning used for G-code moves (programs and MDI commands).
The trajectory planner works in Cartesian space (XYZABCUVW) and has no information about the motion of joints implemented by *any* kinematics module.
It is possible for joint limit violations to occur for G-code that obeys trajectory planning position limits when non identity kinematics are used.
The motion module always detects joint position limit violations and faults if they occur during the execution of G-code commands.
The trajectory planner works in Cartesian space (XYZABCUVW).
On a kinematics that is not the identity, every move of a program or an MDI command is also followed through the kinematics module ahead of motion, and a move that would take a joint past `MIN_LIMIT` or `MAX_LIMIT` anywhere along it is refused before it runs, its line failing with the joint and the limit; the preview follows the joints the same way when a program is loaded, and AXIS warns of such moves when Run is pressed; see the <<cha:switchable-kinematics,Switchable Kinematics>> chapter, INI file limit settings.
A kinematics module that can only be evaluated in realtime is checked at the ends of each move.
The motion module detects a joint position limit violation during the execution of G-code commands and faults, for what cannot be seen ahead of it.
See also related https://github.com/LinuxCNC/linuxcnc/issues/97[GitHub issue #97].
====

Expand Down
39 changes: 38 additions & 1 deletion docs/src/config/python-interface.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,14 @@ see <<python:reading-ini-values,ReadingINI file values>> for an example.
*g68_active*:: '(returns integer)' -
a tilted work plane (G68.2) is in effect.

*g68_kins_offset*:: '(returns tuple of floats)' -
under the machine frame kinematics, the shift of the second feature coordinate system the tilted work plane is cut through (3+2), in machine units: the part as the primary kinematics places it, carried onto the machine frame with the rotaries held, after the whole offset chain. Zero where there is none.

*g68_kins_rotation*:: '(returns tuple of floats)' -
the rotation of that second feature coordinate system, nine values row by row; the identity where there is none.

*g68_offset*:: '(returns tuple of floats)' -
origin of the tilted work plane, in the coordinate system it was defined in.
origin of the tilted work plane, in the coordinate system it was defined in, the same under every kinematics type.

*g68_rotation*:: '(returns tuple of floats)' -
rotation of the tilted work plane, nine values row by row; its columns are the plane's X, Y and Z.
Expand Down Expand Up @@ -224,6 +230,12 @@ see <<python:reading-ini-values,ReadingINI file values>> for an example.
INTERP_FILE_NOT_OPEN, INTERP_ERROR.
see src/emc/nml_intf/interp_return.hh

*jog_frame*:: '(returns integer)' -
the frame world jogs of X, Y and Z move along, set by `jog_frame()`. One of:
* JOG_FRAME_MACHINE
* JOG_FRAME_PLANE
* JOG_FRAME_TOOL

*joint*:: '(returns tuple of dicts)' -
reflecting current joint values. See
<<sec:the-joint-dictionary,The joint dictionary>>.
Expand Down Expand Up @@ -295,6 +307,11 @@ see <<python:reading-ini-values,ReadingINI file values>> for an example.
*optional_stop*:: '(returns integer)' -
option stop flag.

*part_position*:: '(returns tuple of floats)' -
the commanded joints as the module's primary kinematics type, the one that follows the part, reads them: where the tool stands against the part, in machine units.
The same as *position*, except under another type of a switchable module, the machine frame type <<gcode:g12.1-g13.1,G13.1>> selects, where *position* is in machine coordinates.
The backplot of the G-code preview is drawn from it, minus the tool offset.

*paused*:: '(returns boolean)' -
`motion paused` flag.

Expand Down Expand Up @@ -344,6 +361,14 @@ see <<python:reading-ini-values,ReadingINI file values>> for an example.
*rotation_xy*:: '(returns float)' -
current XY rotation angle around Z axis.

*rotation_yz*:: '(returns float)' -
current rotation of the coordinate system around the X axis, in degrees
(G10 L2 I). The coordinate system turns about X, then Y, then Z.

*rotation_zx*:: '(returns float)' -
current rotation of the coordinate system around the Y axis, in degrees
(G10 L2 J).

*settings*:: '(returns tuple of floats)' -
current interpreter settings: +
settings[0] = sequence number, +
Expand Down Expand Up @@ -380,6 +405,11 @@ see <<python:reading-ini-values,ReadingINI file values>> for an example.
task main loop heartbeat counter. Increments every task cycle.
Rate is determined by `[TASK]CYCLE_TIME` in the INI file.

*tool_frame*:: '(returns tuple of floats or None)' -
orientation of the tool in the work frame at the commanded joints, nine values row by row; its columns are the tool's X, Y and Z, Z pointing from the tip towards the holder.
Under an identity type of a switchable module the frames are the primary type's, the one that follows the part, so a display can draw the tool against the part there too.
None where no type reports tool and work frames.

*tool_from_pocket*:: '(returns integer)' -
pocket number for the currently loaded tool (0 if no tool loaded).

Expand Down Expand Up @@ -729,6 +759,13 @@ c.tool_offset(toolno, z_offset, x_offset, diameter, frontangle, backangle, orie
the known coordinate letters XYZABCUVW
(x=>0,y=>1,z=>2,a=>3,b=>4,c=>5,u=>6,v=>7,w=>8)

`jog_frame(int)`::
set the frame an axis jog of X, Y and Z moves along: the machine's axes, the axes of the active tilted work plane, or the tool's own axes; see <<sec:jog-frame,Jogging in a frame>>. Refused while a jog is under way. The other axis letters jog along their own axes in every frame. +
Constants;;
JOG_FRAME_MACHINE +
JOG_FRAME_PLANE +
JOG_FRAME_TOOL

`load_tool_table()`::
reload the tool table.

Expand Down
Loading