Import LinuxCNC source tree
This commit is contained in:
1
configs/sim/axis/ini_with_includes/.gitignore
vendored
Normal file
1
configs/sim/axis/ini_with_includes/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*.expanded
|
||||
22
configs/sim/axis/ini_with_includes/README
Normal file
22
configs/sim/axis/ini_with_includes/README
Normal 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.
|
||||
5
configs/sim/axis/ini_with_includes/axis_x.inc
Normal file
5
configs/sim/axis/ini_with_includes/axis_x.inc
Normal file
@@ -0,0 +1,5 @@
|
||||
[AXIS_X]
|
||||
MIN_LIMIT = -100.0
|
||||
MAX_LIMIT = 100.0
|
||||
MAX_VELOCITY = 5
|
||||
MAX_ACCELERATION = 50.0
|
||||
5
configs/sim/axis/ini_with_includes/axis_y.inc
Normal file
5
configs/sim/axis/ini_with_includes/axis_y.inc
Normal file
@@ -0,0 +1,5 @@
|
||||
[AXIS_Y]
|
||||
MIN_LIMIT = -100.0
|
||||
MAX_LIMIT = 100.0
|
||||
MAX_VELOCITY = 5
|
||||
MAX_ACCELERATION = 50.0
|
||||
5
configs/sim/axis/ini_with_includes/axis_z.inc
Normal file
5
configs/sim/axis/ini_with_includes/axis_z.inc
Normal file
@@ -0,0 +1,5 @@
|
||||
[AXIS_Z]
|
||||
MIN_LIMIT = -100.0
|
||||
MAX_LIMIT = 100.0
|
||||
MAX_VELOCITY = 5
|
||||
MAX_ACCELERATION = 50.0
|
||||
16
configs/sim/axis/ini_with_includes/display.inc
Normal file
16
configs/sim/axis/ini_with_includes/display.inc
Normal 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
|
||||
5
configs/sim/axis/ini_with_includes/emc.inc
Normal file
5
configs/sim/axis/ini_with_includes/emc.inc
Normal file
@@ -0,0 +1,5 @@
|
||||
[EMC]
|
||||
VERSION = 1.1
|
||||
MACHINE = LinuxCNC-expand includes demo
|
||||
DEBUG = 0
|
||||
|
||||
4
configs/sim/axis/ini_with_includes/emcio.inc
Normal file
4
configs/sim/axis/ini_with_includes/emcio.inc
Normal file
@@ -0,0 +1,4 @@
|
||||
[EMCIO]
|
||||
TOOL_TABLE = sim.tbl
|
||||
TOOL_CHANGE_POSITION = 0 0 0
|
||||
TOOL_CHANGE_QUILL_UP = 1
|
||||
6
configs/sim/axis/ini_with_includes/emcmot.inc
Normal file
6
configs/sim/axis/ini_with_includes/emcmot.inc
Normal file
@@ -0,0 +1,6 @@
|
||||
[EMCMOT]
|
||||
EMCMOT = motmod
|
||||
COMM_TIMEOUT = 1.0
|
||||
BASE_PERIOD = 0
|
||||
SERVO_PERIOD = 1000000
|
||||
|
||||
7
configs/sim/axis/ini_with_includes/filter.inc
Normal file
7
configs/sim/axis/ini_with_includes/filter.inc
Normal 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
|
||||
8
configs/sim/axis/ini_with_includes/hal.inc
Normal file
8
configs/sim/axis/ini_with_includes/hal.inc
Normal 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
|
||||
36
configs/sim/axis/ini_with_includes/includes_demo.ini
Normal file
36
configs/sim/axis/ini_with_includes/includes_demo.ini
Normal 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
|
||||
11
configs/sim/axis/ini_with_includes/joint_0.inc
Normal file
11
configs/sim/axis/ini_with_includes/joint_0.inc
Normal 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
|
||||
11
configs/sim/axis/ini_with_includes/joint_1.inc
Normal file
11
configs/sim/axis/ini_with_includes/joint_1.inc
Normal 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
|
||||
11
configs/sim/axis/ini_with_includes/joint_2.inc
Normal file
11
configs/sim/axis/ini_with_includes/joint_2.inc
Normal 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
|
||||
3
configs/sim/axis/ini_with_includes/kins.inc
Normal file
3
configs/sim/axis/ini_with_includes/kins.inc
Normal file
@@ -0,0 +1,3 @@
|
||||
[KINS]
|
||||
KINEMATICS = trivkins
|
||||
JOINTS = 3
|
||||
4
configs/sim/axis/ini_with_includes/rs274ngc.inc
Normal file
4
configs/sim/axis/ini_with_includes/rs274ngc.inc
Normal 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
|
||||
1
configs/sim/axis/ini_with_includes/sim.tbl
Symbolic link
1
configs/sim/axis/ini_with_includes/sim.tbl
Symbolic link
@@ -0,0 +1 @@
|
||||
../../sim.tbl
|
||||
4
configs/sim/axis/ini_with_includes/task.inc
Normal file
4
configs/sim/axis/ini_with_includes/task.inc
Normal file
@@ -0,0 +1,4 @@
|
||||
[TASK]
|
||||
TASK = milltask
|
||||
CYCLE_TIME = 0.001
|
||||
|
||||
8
configs/sim/axis/ini_with_includes/traj.inc
Normal file
8
configs/sim/axis/ini_with_includes/traj.inc
Normal 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
|
||||
Reference in New Issue
Block a user