From c4e3fa445d43ec4b627ff428b94de763bd4ed340 Mon Sep 17 00:00:00 2001 From: bartoolina Date: Wed, 17 Dec 2025 15:05:58 +0100 Subject: [PATCH] pierwsze uruchomienie DZIALA --- .gitignore | 3 + linuxcnc.var | 119 +++++++++++++++++++++++++++++++++++++++ linuxcnc.var.bak | 119 +++++++++++++++++++++++++++++++++++++++ mayo-mill-probebasic.hal | 2 +- mayo-mill-probebasic.ini | 71 +++++++++++++---------- 5 files changed, 283 insertions(+), 31 deletions(-) create mode 100644 .gitignore create mode 100644 linuxcnc.var create mode 100644 linuxcnc.var.bak diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e7a5db7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +__pycache__ +*.pickle +*.pyc \ No newline at end of file diff --git a/linuxcnc.var b/linuxcnc.var new file mode 100644 index 0000000..dde6d08 --- /dev/null +++ b/linuxcnc.var @@ -0,0 +1,119 @@ +5161 0.000000 +5162 0.000000 +5163 0.000000 +5164 0.000000 +5165 0.000000 +5166 0.000000 +5167 0.000000 +5168 0.000000 +5169 0.000000 +5181 0.000000 +5182 0.000000 +5183 0.000000 +5184 0.000000 +5185 0.000000 +5186 0.000000 +5187 0.000000 +5188 0.000000 +5189 0.000000 +5210 0.000000 +5211 0.000000 +5212 0.000000 +5213 0.000000 +5214 0.000000 +5215 0.000000 +5216 0.000000 +5217 0.000000 +5218 0.000000 +5219 0.000000 +5220 1.000000 +5221 61.735000 +5222 53.370000 +5223 0.000000 +5224 0.000000 +5225 0.000000 +5226 0.000000 +5227 0.000000 +5228 0.000000 +5229 0.000000 +5230 0.000000 +5241 0.000000 +5242 0.000000 +5243 0.000000 +5244 0.000000 +5245 0.000000 +5246 0.000000 +5247 0.000000 +5248 0.000000 +5249 0.000000 +5250 0.000000 +5261 0.000000 +5262 0.000000 +5263 0.000000 +5264 0.000000 +5265 0.000000 +5266 0.000000 +5267 0.000000 +5268 0.000000 +5269 0.000000 +5270 0.000000 +5281 0.000000 +5282 0.000000 +5283 0.000000 +5284 0.000000 +5285 0.000000 +5286 0.000000 +5287 0.000000 +5288 0.000000 +5289 0.000000 +5290 0.000000 +5301 0.000000 +5302 0.000000 +5303 0.000000 +5304 0.000000 +5305 0.000000 +5306 0.000000 +5307 0.000000 +5308 0.000000 +5309 0.000000 +5310 0.000000 +5321 0.000000 +5322 0.000000 +5323 0.000000 +5324 0.000000 +5325 0.000000 +5326 0.000000 +5327 0.000000 +5328 0.000000 +5329 0.000000 +5330 0.000000 +5341 0.000000 +5342 0.000000 +5343 0.000000 +5344 0.000000 +5345 0.000000 +5346 0.000000 +5347 0.000000 +5348 0.000000 +5349 0.000000 +5350 0.000000 +5361 0.000000 +5362 0.000000 +5363 0.000000 +5364 0.000000 +5365 0.000000 +5366 0.000000 +5367 0.000000 +5368 0.000000 +5369 0.000000 +5370 0.000000 +5381 0.000000 +5382 0.000000 +5383 0.000000 +5384 0.000000 +5385 0.000000 +5386 0.000000 +5387 0.000000 +5388 0.000000 +5389 0.000000 +5390 0.000000 diff --git a/linuxcnc.var.bak b/linuxcnc.var.bak new file mode 100644 index 0000000..dde6d08 --- /dev/null +++ b/linuxcnc.var.bak @@ -0,0 +1,119 @@ +5161 0.000000 +5162 0.000000 +5163 0.000000 +5164 0.000000 +5165 0.000000 +5166 0.000000 +5167 0.000000 +5168 0.000000 +5169 0.000000 +5181 0.000000 +5182 0.000000 +5183 0.000000 +5184 0.000000 +5185 0.000000 +5186 0.000000 +5187 0.000000 +5188 0.000000 +5189 0.000000 +5210 0.000000 +5211 0.000000 +5212 0.000000 +5213 0.000000 +5214 0.000000 +5215 0.000000 +5216 0.000000 +5217 0.000000 +5218 0.000000 +5219 0.000000 +5220 1.000000 +5221 61.735000 +5222 53.370000 +5223 0.000000 +5224 0.000000 +5225 0.000000 +5226 0.000000 +5227 0.000000 +5228 0.000000 +5229 0.000000 +5230 0.000000 +5241 0.000000 +5242 0.000000 +5243 0.000000 +5244 0.000000 +5245 0.000000 +5246 0.000000 +5247 0.000000 +5248 0.000000 +5249 0.000000 +5250 0.000000 +5261 0.000000 +5262 0.000000 +5263 0.000000 +5264 0.000000 +5265 0.000000 +5266 0.000000 +5267 0.000000 +5268 0.000000 +5269 0.000000 +5270 0.000000 +5281 0.000000 +5282 0.000000 +5283 0.000000 +5284 0.000000 +5285 0.000000 +5286 0.000000 +5287 0.000000 +5288 0.000000 +5289 0.000000 +5290 0.000000 +5301 0.000000 +5302 0.000000 +5303 0.000000 +5304 0.000000 +5305 0.000000 +5306 0.000000 +5307 0.000000 +5308 0.000000 +5309 0.000000 +5310 0.000000 +5321 0.000000 +5322 0.000000 +5323 0.000000 +5324 0.000000 +5325 0.000000 +5326 0.000000 +5327 0.000000 +5328 0.000000 +5329 0.000000 +5330 0.000000 +5341 0.000000 +5342 0.000000 +5343 0.000000 +5344 0.000000 +5345 0.000000 +5346 0.000000 +5347 0.000000 +5348 0.000000 +5349 0.000000 +5350 0.000000 +5361 0.000000 +5362 0.000000 +5363 0.000000 +5364 0.000000 +5365 0.000000 +5366 0.000000 +5367 0.000000 +5368 0.000000 +5369 0.000000 +5370 0.000000 +5381 0.000000 +5382 0.000000 +5383 0.000000 +5384 0.000000 +5385 0.000000 +5386 0.000000 +5387 0.000000 +5388 0.000000 +5389 0.000000 +5390 0.000000 diff --git a/mayo-mill-probebasic.hal b/mayo-mill-probebasic.hal index 23fe242..4ec975c 100644 --- a/mayo-mill-probebasic.hal +++ b/mayo-mill-probebasic.hal @@ -2,7 +2,7 @@ # If you make changes to this file, they will be # overwritten when you run stepconf again loadrt [KINS]KINEMATICS -loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS +loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS num_dio=6 num_aio=3 loadrt hal_parport cfg="0 out" setp parport.0.reset-time 5000 loadrt stepgen step_type=0,0,0 diff --git a/mayo-mill-probebasic.ini b/mayo-mill-probebasic.ini index 2ba4157..7f924c0 100644 --- a/mayo-mill-probebasic.ini +++ b/mayo-mill-probebasic.ini @@ -3,29 +3,41 @@ # overwritten when you run stepconf again [EMC] -MACHINE = mayo-mill +MACHINE = mayo-mill-probebasic DEBUG = 0 VERSION = 1.1 [DISPLAY] -DISPLAY = qtvcp qtdragon -PREFERENCE_FILE_PATH = WORKINGFOLDER/qtdragon.pref -EDITOR = gedit +DISPLAY = probe_basic +OPEN_FILE = ~/linuxcnc/nc_files/pb_examples/blank.ngc +#PROGRAM_PREFIX = /home/cnc/linuxcnc/nc_files +CONFIG_FILE = custom_config.yml POSITION_OFFSET = RELATIVE POSITION_FEEDBACK = ACTUAL ARCDIVISION = 64 -GRIDS = 10mm 20mm 50mm 100mm 1in 2in 5in 10in +GRIDS = 10mm 20mm 50mm 100mm MAX_FEED_OVERRIDE = 1.2 -MIN_SPINDLE_OVERRIDE = 0.5 +#MAX_FEED_OVERRIDE = 2.000000 # Recommended Setting for Probe Basic MAX_SPINDLE_OVERRIDE = 1.2 -DEFAULT_LINEAR_VELOCITY = 5.00 +#MAX_SPINDLE_OVERRIDE = 2.000000 # Recommended Setting for Probe Basic +MIN_SPINDLE_OVERRIDE = 0.5 +#MIN_SPINDLE_OVERRIDE = 0.500000 # Recommended Setting for Probe Basic MIN_LINEAR_VELOCITY = 0 MAX_LINEAR_VELOCITY = 50.00 -CYCLE_TIME = 0.100 -INTRO_GRAPHIC = linuxcnc.gif +INTRO_GRAPHIC = pbsplash.png INTRO_TIME = 5 -PROGRAM_PREFIX = /home/cnc/linuxcnc/nc_files INCREMENTS = 5mm 1mm .5mm .1mm .05mm .01mm .005mm +DEFAULT_LINEAR_VELOCITY = 5.00 +CYCLE_TIME = 0.100 +#INCREMENTS = JOG .01in .001in .0001in +GEOMETRY = xyz +USER_TABS_PATH = user_tabs/ +USER_BUTTONS_PATH = user_buttons/ +USER_DROS_PATH = user_dro_display/ +DRO_DISPLAY = xyz +# ATC tab display options, 0 = no atc tab displayed, 1 = Carousel atc display, 2 = rack atc display +ATC_TAB_DISPLAY = 0 +#USER_ATC_BUTTONS_PATH = user_atc_buttons/ [KINS] JOINTS = 3 @@ -45,35 +57,31 @@ TASK = milltask CYCLE_TIME = 0.010 [RS274NGC] -PARAMETER_FILE = linuxcnc.var - # start up G/M codes when first loaded RS274NGC_STARTUP_CODE = G17 G21 G40 G43H0 G54 G64P0.0127 G80 G90 G94 G97 M5 M9 +#RS274NGC_STARTUP_CODE = F10 S300 G20 G17 G40 G49 G54 G64 P.001 G80 G90 G91.1 G92.1 G94 G97 G98 +PARAMETER_FILE = linuxcnc.var +OWORD_NARGS = 1 +NO_DOWNCASE_OWORD = 1 # subroutine/remap path list -SUBROUTINE_PATH =\ -~/linuxcnc/nc_files/examples/ngcgui_lib:\ -~/linuxcnc/nc_files/examples/ngcgui_lib/utilitysubs:\ -~/linuxcnc/nc_files/examples/remap-subroutines:\ -~/linuxcnc/nc_files/examples/remap_lib +SUBROUTINE_PATH = subroutines +#SUBROUTINE_PATH =\ +#~/linuxcnc/nc_files/examples/ngcgui_lib:\ +#~/linuxcnc/nc_files/examples/ngcgui_lib/utilitysubs:\ +#~/linuxcnc/nc_files/examples/remap-subroutines:\ +#~/linuxcnc/nc_files/examples/remap_lib # is the sub, with is called when a error during tool change happens. -ON_ABORT_COMMAND=O call +#ON_ABORT_COMMAND=O call # The remap code for QtVCP's versaprobe's automatic tool probe of Z -REMAP=M6 modalgroup=6 prolog=change_prolog ngc=qt_auto_probe_tool epilog=change_epilog +#REMAP=M6 modalgroup=6 prolog=change_prolog ngc=qt_auto_probe_tool epilog=change_epilog # required for python remaps [PYTHON] -# The path to start a search for user modules. ie python's sys.path.insert(0,PATH) -#PATH_PREPEND = ~/linuxcnc/nc_files/examples/remap_lib/python-stdglue/python - -# The path start point for all remap searches ie. python's sys.path.append() -PATH_APPEND = ~/linuxcnc/nc_files/examples/remap_lib/python-stdglue/python -# path to the tremap's 'oplevel file -TOPLEVEL = ~/linuxcnc/nc_files/examples/remap_lib/python-stdglue/python/toplevel.py -# set remap debug level -#LOG_LEVEL = 1000 +TOPLEVEL = ./python/toplevel.py +PATH_APPEND = ./python/ [EMCMOT] EMCMOT = motmod @@ -82,11 +90,14 @@ BASE_PERIOD = 100000 SERVO_PERIOD = 1000000 [HAL] -HALFILE = mayo-mill.hal +HALUI = halui +HALFILE = mayo-mill-probebasic.hal HALFILE = custom.hal -POSTGUI_HALFILE = postgui_call_list.hal +POSTGUI_HALFILE = probe_basic_postgui.hal +TWOPASS = one [TRAJ] +AXES = 3 # or number of axes of your machine COORDINATES = X Y Z LINEAR_UNITS = mm ANGULAR_UNITS = degree