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
291ba60
canon: refuse a move whose joints leave their travel along it
grandixximo Oct 5, 2026
25bdb6c
motion: report the tool frame in the work frame in status
grandixximo Oct 10, 2026
7710dad
glcanon: point the tool marker along the tool frame the kinematics re…
grandixximo Oct 10, 2026
b32fae3
motion: jog X, Y and Z along the tilted work plane or the tool
grandixximo Oct 10, 2026
845f1ec
halui: select the jog frame
grandixximo Oct 10, 2026
2e33d71
axis: select the jog frame from the View menu or with %
grandixximo Oct 10, 2026
19f032d
interp: cut a tilted work plane on the part under the machine frame k…
grandixximo Oct 19, 2026
cd32890
preview: draw the tool on the part under the machine frame kinematics
grandixximo Oct 26, 2026
4b33180
preview: read the point back from the joints at a kinematics switch
grandixximo Oct 27, 2026
3e0509c
kinematics: frames from the pose, for a type whose forward iterates
grandixximo Oct 28, 2026
c60c9d0
genhexkins, pentakins: state the frames from the pose
grandixximo Oct 28, 2026
9ba3c60
kinematics: turn the offset across the tool with the pose
grandixximo Oct 28, 2026
7503925
motion: read the [AXIS_L] box on the platform of a parallel machine
grandixximo Oct 28, 2026
ef58ea4
interp: orient the tool on a parallel machine
grandixximo Oct 28, 2026
6e14100
kinematics: the forward and the inverse of any type, as the type in f…
grandixximo Oct 30, 2026
99590c5
tp, motion: a joint segment that follows a line on another kinematics…
grandixximo Oct 30, 2026
295a2aa
interp: G53.6 keeps the tool tip on the part all along under the mach…
grandixximo Oct 30, 2026
31492f2
interp: G92, G10 L20, G43 and M6 wait for the G49 that cancels G43.4
grandixximo Nov 1, 2026
761a2b4
preview: restate G43.4 and G43.5 with the machine's offset
grandixximo Nov 9, 2026
a9fbada
motion_planning: the poses along a line and an arc, and how often to …
grandixximo Nov 3, 2026
9c2efed
preview: follow the joints along each move and warn before the run
grandixximo Nov 3, 2026
314dfe2
interp: turn a coordinate system about X and Y as well as Z
grandixximo Nov 9, 2026
81d7fef
gmoccapy: the offset page shows and sets the I, J and K rotations
Sigma1912 Nov 22, 2026
c4e7153
preview: restate the G52 and G92 offsets by value
grandixximo Nov 14, 2026
389a43f
gladevcp, qtvcp: show the relative position in the tilted work plane
grandixximo Nov 14, 2026
f49e1dc
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