Import LinuxCNC source tree

This commit is contained in:
Wang Dequan
2026-08-20 06:17:39 +08:00
commit 2c814634c3
9429 changed files with 10556013 additions and 0 deletions

View File

@@ -0,0 +1 @@
*.expanded

View File

@@ -0,0 +1,22 @@
ini_with_includes
Demo for using a #INCLUDE directive(s) in an ini file
Examples:
1) relative file spec (relative to ini dir):
#INCLUDE filename.inc
#INCLUDE ./filename.inc
#INCLUDE ../filename.inc
2) absolute file spec:
#INCLUDE /tmp/filename.inc
#INCLUDE /home/myname/inc/filename.inc
3) tilde file spec:
#INCLUDE ~/linuxcnc/myincludes/filename.inc
Note:
The .inc suffix is recommended for included files.
Using a .ini suffix would mistakenly allow the partial file to appear as a config choice.

View File

@@ -0,0 +1,5 @@
[AXIS_X]
MIN_LIMIT = -100.0
MAX_LIMIT = 100.0
MAX_VELOCITY = 5
MAX_ACCELERATION = 50.0

View File

@@ -0,0 +1,5 @@
[AXIS_Y]
MIN_LIMIT = -100.0
MAX_LIMIT = 100.0
MAX_VELOCITY = 5
MAX_ACCELERATION = 50.0

View File

@@ -0,0 +1,5 @@
[AXIS_Z]
MIN_LIMIT = -100.0
MAX_LIMIT = 100.0
MAX_VELOCITY = 5
MAX_ACCELERATION = 50.0

View File

@@ -0,0 +1,16 @@
[DISPLAY]
DISPLAY = axis
CYCLE_TIME = 0.100
HELP_FILE = doc/help.txt
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.2
MAX_SPINDLE_OVERRIDE = 1.0
MAX_LINEAR_VELOCITY = 1.2
DEFAULT_LINEAR_VELOCITY = .25
PROGRAM_PREFIX = ../../nc_files/
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5
EDITOR = gedit
TOOL_EDITOR = tooledit
INCREMENTS = 1 in, 0.1 in, 10 mil, 1 mil, 1mm, .1mm, 1/8000 in

View File

@@ -0,0 +1,5 @@
[EMC]
VERSION = 1.1
MACHINE = LinuxCNC-expand includes demo
DEBUG = 0

View File

@@ -0,0 +1,4 @@
[EMCIO]
TOOL_TABLE = sim.tbl
TOOL_CHANGE_POSITION = 0 0 0
TOOL_CHANGE_QUILL_UP = 1

View File

@@ -0,0 +1,6 @@
[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
BASE_PERIOD = 0
SERVO_PERIOD = 1000000

View File

@@ -0,0 +1,7 @@
[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Grayscale Depth Image
PROGRAM_EXTENSION = .py Python Script
png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python3

View File

@@ -0,0 +1,8 @@
[HAL]
# The run script first uses halcmd to execute any HALFILE
# files, and then to execute any individual HALCMD commands.
#
# list of hal config files to run through halcmd
# files are executed in the order in which they appear
HALFILE = LIB:basic_sim.tcl
HALUI = halui

View File

@@ -0,0 +1,36 @@
# Example ini file with:
# multiple #INCLUDE directives
# comingled with standard [SECTION]s
[EXAMPLE_A]
parm1 = 1
parm2 = 2 22
#INCLUDE display.inc
#INCLUDE emc.inc
#INCLUDE emcio.inc
#INCLUDE emcmot.inc
#INCLUDE filter.inc
[EXAMPLE_B]
parm3 = 3 33 333
parm4 = 4
#INCLUDE hal.inc
#INCLUDE rs274ngc.inc
#INCLUDE task.inc
#INCLUDE traj.inc
#INCLUDE kins.inc
#INCLUDE joint_0.inc
#INCLUDE joint_1.inc
#INCLUDE joint_2.inc
#INCLUDE axis_x.inc
#INCLUDE axis_y.inc
#INCLUDE axis_z.inc
# error examples to show prints to stderr:
# Actual error is disabled because it just stops the program
# INCLUDE
# INCLUDE nosuchfile
# final section
[EXAMPLE_C]
parm5 = 5
parm6 = 6 66

View File

@@ -0,0 +1,11 @@
[JOINT_0]
TYPE = LINEAR
HOME = 0.000
MAX_VELOCITY = 5
MAX_ACCELERATION = 50.0
MIN_LIMIT = -100.0
MAX_LIMIT = 100.0
HOME_OFFSET = 0.0
HOME_SEARCH_VEL = 20.0
HOME_LATCH_VEL = 20.0
HOME_SEQUENCE = 1

View File

@@ -0,0 +1,11 @@
[JOINT_1]
TYPE = LINEAR
HOME = 0.000
MAX_VELOCITY = 5
MAX_ACCELERATION = 50.0
MIN_LIMIT = -100.0
MAX_LIMIT = 100.0
HOME_OFFSET = 0.0
HOME_SEARCH_VEL = 20.0
HOME_LATCH_VEL = 20.0
HOME_SEQUENCE = 1

View File

@@ -0,0 +1,11 @@
[JOINT_2]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 5
MAX_ACCELERATION = 50.0
MIN_LIMIT = -100.0
MAX_LIMIT = 100.0
HOME_OFFSET = 1.0
HOME_SEARCH_VEL = 20.0
HOME_LATCH_VEL = 20.0
HOME_SEQUENCE = 0

View File

@@ -0,0 +1,3 @@
[KINS]
KINEMATICS = trivkins
JOINTS = 3

View File

@@ -0,0 +1,4 @@
[RS274NGC]
PARAMETER_FILE = sim.var
SUBROUTINE_PATH = ../../nc_files/ngcgui_lib:../../nc_files/ngcgui_lib/utilitysubs
USER_M_PATH = ../../nc_files/ngcgui_lib/mfiles

View File

@@ -0,0 +1 @@
../../sim.tbl

View File

@@ -0,0 +1,4 @@
[TASK]
TASK = milltask
CYCLE_TIME = 0.001

View File

@@ -0,0 +1,8 @@
[TRAJ]
NO_FORCE_HOMING = 1
COORDINATES = X Y Z
LINEAR_UNITS = inch
ANGULAR_UNITS = degree
DEFAULT_LINEAR_VELOCITY = 10
POSITION_FILE = position.txt
MAX_LINEAR_VELOCITY = 10