Category: G&M Codes
Hello everyone,I am a new LinuxCNC user and developer. This time, I would like to use LinuxCNC in combination with my cutting simulation process. I have encountered some problems and would like to know if there are any known solutions in LinuxCNC. If not, I am interested in developing features similar to G43.4 and G43.5.Before we get into the details, let me provide some context. I am running LinuxCNC 2.9.4 on Debian 12 with PREEMPT_RT. Please note that for my simulation process, real-time (RT) capability is not a strict requirement. My simulation uses the configuration from
configs/sim/axis/vismach/5axis/table-dual-rotary/xyzab-tdr.ini
, which matches the machine type I need.Here is my understanding of the five-axis xyzab-tdr support:
The key is the toolpath (TP) transformation. Five-axis machines are different because they require transforming the workspace coordinates to real joint positions, which involves both forward and inverse kinematics. The xyzab-tdr configuration provides these transformations. The main parameters for these transformations are seven in total:
,
,
,
,
,
, and
. The
,
,
,
,
, and
define the machine’s geometry, while
functions similarly to Fanuc's G43.4 RTCP (Rotating Tool Center Point) tool compensation.In RTCP, G-code is typically provided in two forms:
Fanuc-like:
G43.4 T1
G01 X107.10843 Y-258.10506 Z16.72037 A-82.485727 B-2.152027
G49
G43.5 T1
G01 X118.38752 Y-257.36350 Z-13.21382 I=-0.087062004 J=-0.995672089 K=-0.032516115
G01
Siemens-like:TRAORI(1)
N23 X131.06394 Y-257.06181 Z-28.17010 A3=-.088284415 B3=-.990423696 C3=-.106145012
TRAFOOF
My questions are:
- In Fanuc, G43.4 is modal. Does LinuxCNC use the TP transformation as a modal mode as well? In other words, when using five-axis TP, is G43 equivalent to G43.4 in LinuxCNC?
- The IJK parameters are used for Freeform Surface toolpaths. Does the G-code parser in LinuxCNC support IJK-style input?
Thank you in advance for your help and insights!