How linuxcnc/linuxcnc-gbp works
LinuxCNC is an open-source CNC control system for mills, lathes, plasma cutters, robots, and other machinery. A principal user workflow is to operate a machine through a user interface, issue or load G-code, and have the control system execute motion. The tree exposes distinct interface, interpreter, task, motion, kinematics, and HAL areas; QTVCP also supplies machine-screen widgets and utilities. Most controller internals were not sampled, so their relationships are not asserted here; dashed links mark the high-level workflow inferred from the product description.
Main entry points: screens QTVCP screens · motion.c Motion control · emctask.cc Task controller · core.py QTVCP core
Components 17
Machine interfaces
- QTVCP screens
share/qtvcp/screens - QTVCP core
lib/python/qtvcp/core.py - HAL and status
lib/python/qtvcp/core.py
Program workflow
- G-code editor
lib/python/qtvcp/widgets/gcode_editor.py - File manager
lib/python/qtvcp/widgets/file_manager.py - MDI input
lib/python/qtvcp/widgets/mdi_line.py - G-code utilities
lib/python/qtvcp/lib/gcode_utility - NGC GUI
lib/python/qtvcp/lib/qt_ngcgui/ngcgui.py
CNC control
- G-code interpreter
src/emc/rs274ngc/interpmodule.cc - Task controller
src/emc/task/emctask.cc - Motion control
src/emc/motion/motion.c - Trajectory planner
src/emc/tp/tp.c - Kinematics
src/emc/kinematics/kinematics.h
Hardware interface
- Python HAL API
lib/python/hal.py - I/O task
src/emc/iotask/ioControl.cc
Other components
- Machine operator
- CNC machinery
Connections 17
- Machine operator → QTVCP screens: operates
- QTVCP screens → QTVCP core: uses
share/qtvcp/screens/qtdragon/qtdragon_handler.py - QTVCP screens → G-code editor: uses
share/qtvcp/screens/qtdragon/qtdragon_handler.py - QTVCP screens → File manager: uses
share/qtvcp/screens/qtdragon/qtdragon_handler.py - QTVCP screens → MDI input: uses
share/qtvcp/screens/qtdragon/qtdragon_handler.py - QTVCP screens → G-code utilities: uses
share/qtvcp/screens/qtdragon/qtdragon_handler.py - QTVCP screens → NGC GUI: uses
share/qtvcp/screens/qtdragon/qtdragon_handler.py - QTVCP core → HAL and status: provides
lib/python/qtvcp/core.py - G-code editor → G-code interpreter: loads and highlights
- MDI input → Task controller: submits commands
- G-code interpreter → Task controller: provides interpreted commands
- Task controller → Motion control: commands motion
- Motion control → Trajectory planner: plans motion
- Motion control → Kinematics: uses transforms
- HAL and status → Python HAL API: interfaces with HAL
lib/python/qtvcp/core.py - I/O task → CNC machinery: controls I/O
- Kinematics → CNC machinery: maps machine motion