Browse Source

het begint te werken!

Probescreenv2
ton, LinuxCNCMESA 3 years ago
parent
commit
6c76468639
  1. 14
      gmoccapy_preferences
  2. 394
      mesa_2019 (copy 1).ini
  3. 86
      mesa_2019.ini
  4. 6
      mesa_2019.var
  5. 6
      mesa_2019.var.bak
  6. 27
      tool.tbl

14
gmoccapy_preferences

@ -1,5 +1,5 @@
[DEFAULT]
blockheight = 22.8
blockheight = 10.13
spindle_start_rpm = 800.0
scale_jog_vel = 27.0
scale_spindle_override = 3.0
@ -50,31 +50,31 @@ use_auto_units = False
probeheight = 40.5
searchvel = 85.0
probevel = 20.0
use_toolmeasurement = True
use_toolmeasurement = False
reload_tool = True
blockdel = False
opstop = False
enable_dro = True
show_offsets = True
show_dtg = True
show_dtg = False
view_tool_path = True
view_dimension = True
gremlin_view = rbt_view_p
run_from_line = run
run_from_line = no_run
unlock_way = no
unlock_code = 123
show_preview_on_offset = False
use_keyboard_shortcuts = True
abs_color = #0000FF
rel_color = #000000
dtg_color = #FFFF00
dtg_color = #9ca00000ffff
homed_color = #00FF00
unhomed_color = #FF0000
dro_digits = 3
toggle_readout = True
tool_in_spindle = 63
tool_in_spindle = 81
show_keyboard_on_file_selection = False
offset_axis_x = 0.0
offset_axis_y = 0.0
offset_axis_z = -1.0
offset_axis_z = 0.0

394
mesa_2019 (copy 1).ini

@ -0,0 +1,394 @@
# This file was created with the 7i96 Wizard on Apr 19 2019 14:51:58
# Changes to most things are ok and will be read by the wizard
[EMC]
VERSION = 1.1
MACHINE = mesa_2019
DEBUG = 0x00000000
[HOSTMOT2]
DRIVER = hm2_eth
IPADDRESS = "10.10.10.10"
BOARD = 7i96
STEPGENS = 4
ENCODERS = 1
SSERIAL_PORT = 1
[DISPLAY]
# required NativeCAM item :
#NCAM_DIR = ncam
# required NativeCAM item :
#EMBED_TAB_NAME = NativeCAM
#EMBED_TAB_LOCATION = ntb_user_tabs
#EMBED_TAB_COMMAND = gladevcp -x {XID} -U --catalog=mill /usr/share/linuxcnc/aux_gladevcp/NativeCAM/ncam.ui
DISPLAY = gmoccapy
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = COMMANDED
CYCLE_TIME = 150
INTRO_GRAPHIC = emc2.gif
INTRO_TIME = 0
OPEN_FILE = ""
PREFERENCE_FILE_PATH = gmoccapy_preferences
DEFAULT_LINEAR_VELOCITY = 166.666
MAX_LINEAR_VELOCITY = 166.666
MAX_FEED_OVERRIDE = 1.5
MAX_SPINDLE_OVERRIDE = 15
MIN_SPINDLE_OVERRIDE = 0.2
# required NativeCAM item :
#PROGRAM_PREFIX = ncam/scripts/
PROGRAM_PREFIX = ../../nc_files/
#EMBED_TAB_NAME=Probe Screen
#EMBED_TAB_LOCATION = ntb_preview
#EMBED_TAB_COMMAND = gladevcp -x {XID} -u python/probe_screen.py probe_icons/probe_screen.glade
EMBED_TAB_NAME = Camera
EMBED_TAB_LOCATION = ntb_preview
EMBED_TAB_COMMAND = mplayer -quiet -msglevel all=-1 -wid {XID} tv://0 -vf rectangle=-1:2:-1:240,rectangle=2:-1:320:-1
#EMBED_TAB_NAME = DRO
#EMBED_TAB_LOCATION = ntb_preview
#EMBED_TAB_COMMAND = gladevcp -x {XID} dro.glade
#EMBED_TAB_NAME = Native CAM
#EMBED_TAB_LOCATION = ntb_preview
#EMBED_TAB_COMMAND = gladevcp -x {XID} -U --catalog=mill /usr/share/linuxcnc/aux_gladevcp/NativeCAM/ncam.ui
[KINS]
KINEMATICS = trivkins coordinates=XYYZ kinstype=BOTH
JOINTS = 4
[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = tool.tbl
[RS274NGC]
PARAMETER_FILE = mesa_2019.var
# required NativeCAM item :
SUBROUTINE_PATH = macros
# Enables the reading of INI and HAL values from gcode
FEATURES=12
# is the sub, with is called when a error during tool change happens
ON_ABORT_COMMAND=O <on_abort> call
# The remap code
REMAP=M6 modalgroup=6 prolog=change_prolog ngc=change epilog=change_epilog
[TOOLSENSOR]
X = 500
Y = 50
Z = 0
MAXPROBE = -55
[CHANGE_POSITION]
X = 400
Y = 50
Z = 0
[PYTHON]
# The path to start a search for user modules
PATH_PREPEND = python
# The start point for all.
TOPLEVEL = python/toplevel.py
[EMCMOT]
EMCMOT = motmod
SERVO_PERIOD = 1000000
[TASK]
TASK = milltask
CYCLE_TIME = 0.010
[TRAJ]
COORDINATES = XYYZ
LINEAR_UNITS = metric
ANGULAR_UNITS = degree
MAX_LINEAR_VELOCITY = 230
[HAL]
#TWOPASS = ON
HALFILE = mesa_2019.hal
HALFILE = io.hal
HALFILE = custom.hal
#HALFILE = postgui.hal
HALUI = halui
POSTGUI_HALFILE = postgui.hal
HALFILE = LIB:xhc-hb04.tcl
[HALUI]
[XHC_HB04_CONFIG]
# specify layout = n for LIB:xhc-hb04-layout{n}.cfg files
layout = 2
# coords: specify upto 4 letters from set {x y z a b c u v w}
# coords: switch labels are xyza but any unique 4 letters
# from the set {xyxabcuvw) can be used (if the coord exists)
coords = x y z
# lowpass settings:
# coef: slows rate of change of output, range: 0 < coef < 1
coefs = 1 1 1 1
# scale plus or minus, rotaries may require larger scale factor:
scales = 1 -1 1 1
# jogmode normal(default) or vnormal
jogmode = normal
# sequence 1: 0.001,0.010,0.100,1.000 (mm-based machine)
# sequence 2: 0.001,0.005,0.010,0.020 (inch-based machine)
# sequence 3: 0.001,0.010,0.100
# sequence 4: 0.001,0.005,0.010,0.020,0.050,0.100
# sequence 5: 0.001,0.010,0.050,0.100,1.000
sequence = 1
# require_pendant = yes|no: create xhc-hb04 hal pins when pendant not
# connected at startup
require_pendant = no
# inch_or_mm = in | mm
inch_or_mm = mm
# mpg_accels: provision for reduced acceleration for manual mode jogging
mpg_accels = 1 2 20 600
[APPLICATIONS]
APP = monitor-xhc-hb04
[XHC_HB04_BUTTONS]
# use button names according to layout file LIB:xhc-hb04-layout{n}.cfg
# note: "start-pause" is connected for standard behavior
# controlling halui.pause/halui.resume/halui.run
# these are examples, edit as required:
goto-zero = halui.mdi-command-00
# synthesized per-axis buttons for goto-zero button:
goto-zero-x = "g0 x0"
goto-zero-y = "g0 y0"
goto-zero-z = "g0 z0"
goto-zero-a = ""
start-pause = std_start_pause
rewind = halui.program.step
# probe-input for simulating a probe:
#probe-z = motion.probe-input
macro-3 = halui.mdi-command-03
half = halui.spindle.stop
# synthesized per-axis buttons for half button:
half-x = ""
half-y = ""
half-z = ""
half-a = ""
zero = ""
# synthesized per-axis buttons for zero button:
zero-x = halui.mdi-command-12
zero-y = halui.mdi-command-13
zero-z = halui.mdi-command-14
zero-a = halui.mdi-command-15
safe-z = halui.mdi-command-10
# in this sim, home-all only works first time, hold down till finished:
home = halui.home-all
macro-1 = halui.mdi-command-04
macro-2 = halui.mdi-command-03
spindle = halui.spindle.start
step = xhc-hb04.stepsize-up
mode = ""
macro-6 = halui.mdi-command-06
macro-7 = halui.mdi-command-07
stop = halui.program.stop
reset = halui.estop.activate
[HALUI]
# these are examples, edit as required:
# a halui hal pin is created for each MDI_COMMAND below
# halui.mdi-command-00, halui.mdi-command-01,... etc
MDI_COMMAND=G0 X0 Y0 Z0
MDI_COMMAND=(debug, example: mdi-01)
MDI_COMMAND=(debug, example: mdi-02)
#03 M110: clears notifications
MDI_COMMAND=M110
MDI_COMMAND=(debug, example: mdi-04)
MDI_COMMAND=(debug, example: mdi-05)
MDI_COMMAND=(debug, example: mdi-06)
#07 M101: example print to stdout
MDI_COMMAND=M101
MDI_COMMAND=(debug, example: mdi-08)
MDI_COMMAND=(debug, example: mdi-09)
MDI_COMMAND=(debug, example: mdi-10)
MDI_COMMAND=(debug, example: mdi-11)
#12
MDI_COMMAND= G10 L20 P0 X0
#13
MDI_COMMAND= G10 L20 P0 Y0
#14
MDI_COMMAND= G10 L20 P0 Z0
#15
MDI_COMMAND= G10 L20 P0 C0
[AXIS_X]
MIN_LIMIT = 0
MAX_LIMIT = 541
MAX_VELOCITY = 30
MAX_ACCELERATION = 45
[AXIS_Y]
MIN_LIMIT = 0
MAX_LIMIT = 581
MAX_VELOCITY = 55
MAX_ACCELERATION = 80
[JOINT_0]
AXIS = X
MIN_LIMIT = 0
MAX_LIMIT = 541
MAX_VELOCITY = 30
MAX_ACCELERATION = 45
TYPE = LINEAR
SCALE = 500
STEPGEN_MAX_VEL = 36.0
STEPGEN_MAX_ACC = 54.0
FERROR = 0.0051
MIN_FERROR = 0.0025
DIRSETUP = 100000
DIRHOLD = 100000
STEPLEN = 22000
STEPSPACE = 22000
DEADBAND = 0
P = 1000
I = 0
D = 0
FF0 = 0
FF1 = 1
FF2 = 0.00013
BIAS = 0
MAX_OUTPUT = 0
MAX_ERROR = 0.0127
HOME = 541
HOME_OFFSET = 540
HOME_SEARCH_VEL = -25
HOME_LATCH_VEL = -2.5
HOME_SEQUENCE = 1
HOME_USE_INDEX = False
HOME_IGNORE_LIMITS = false
[JOINT_1]
AXIS = Y
MIN_LIMIT = 0
MAX_LIMIT = 581
MAX_VELOCITY = 55
MAX_ACCELERATION = 80
TYPE = LINEAR
SCALE = 50
STEPGEN_MAX_VEL = 66.0
STEPGEN_MAX_ACC = 96.0
FERROR = 0.0051
MIN_FERROR = 0.0025
DIRSETUP = 100000
DIRHOLD = 100000
STEPLEN = 22000
STEPSPACE = 22000
DEADBAND = 0
P = 1000
I = 0
D = 0
FF0 = 0
FF1 = 1
FF2 = 0.00013
BIAS = 0
MAX_OUTPUT = 0
MAX_ERROR = 0.0127
HOME = 580
HOME_OFFSET = 579
HOME_SEARCH_VEL = -25
HOME_LATCH_VEL = 2
HOME_SEQUENCE = -1
HOME_USE_INDEX = false
HOME_IGNORE_LIMITS = false
[JOINT_2]
AXIS = Y
MIN_LIMIT = 0
MAX_LIMIT = 581
MAX_VELOCITY = 55
MAX_ACCELERATION = 80
TYPE = LINEAR
SCALE = 50
STEPGEN_MAX_VEL = 66.0
STEPGEN_MAX_ACC = 96.0
FERROR = 0.0051
MIN_FERROR = 0.0025
DIRSETUP = 100000
DIRHOLD = 100000
STEPLEN = 22000
STEPSPACE = 22000
DEADBAND = 0
P = 1000
I = 0
D = 0
FF0 = 0
FF1 = 1
FF2 = 0.00013
BIAS = 0
MAX_OUTPUT = 0
MAX_ERROR = 0.0127
HOME = 580
HOME_OFFSET = 579
HOME_SEARCH_VEL = -25
HOME_LATCH_VEL = 2
HOME_SEQUENCE = -1
HOME_USE_INDEX = False
HOME_IGNORE_LIMITS = False
[AXIS_Z]
MIN_LIMIT = -72
#0
MAX_LIMIT = 0
#72
MAX_VELOCITY = 20
#20
MAX_ACCELERATION = 30
#30
[JOINT_3]
AXIS = Z
MIN_LIMIT = -72
#0
MAX_LIMIT = 0
#74
HOME = 0
#65
HOME_OFFSET = 0
#72
HOME_SEARCH_VEL = -10
HOME_LATCH_VEL = -2
HOME_SEQUENCE = 0
HOME_USE_INDEX = False
HOME_IGNORE_LIMITS = False
MAX_VELOCITY = 20
MAX_ACCELERATION = 30
TYPE = LINEAR
SCALE = 50
STEPGEN_MAX_VEL = 24.0
STEPGEN_MAX_ACC = 36.0
FERROR = 0.0051
MIN_FERROR = 0.0025
DIRSETUP = 100000
DIRHOLD = 100000
STEPLEN = 22000
STEPSPACE = 22000
DEADBAND = 0
P = 1000
I = 0
D = 0
FF0 = 0
FF1 = 1
FF2 = 0.00013
BIAS = 0
MAX_OUTPUT = 0
MAX_ERROR = 0.0127

86
mesa_2019.ini

@ -82,14 +82,14 @@ ON_ABORT_COMMAND=O <on_abort> call
REMAP=M6 modalgroup=6 prolog=change_prolog ngc=change epilog=change_epilog
[TOOLSENSOR]
X = 500
Y = 50
X = -80
Y = -530
Z = 0
MAXPROBE = -55
[CHANGE_POSITION]
X = 400
Y = 50
X = -50
Y = -560
Z = 0
[PYTHON]
@ -232,21 +232,36 @@ MDI_COMMAND= G10 L20 P0 C0
[AXIS_X]
MIN_LIMIT = 0
MAX_LIMIT = 541
MIN_LIMIT = -541
#0
MAX_LIMIT = 0
#541
MAX_VELOCITY = 30
MAX_ACCELERATION = 45
[AXIS_Y]
MIN_LIMIT = 0
MAX_LIMIT = 581
MIN_LIMIT = -581
#0
MAX_LIMIT = 0
#581
MAX_VELOCITY = 55
MAX_ACCELERATION = 80
[JOINT_0]
AXIS = X
MIN_LIMIT = 0
MAX_LIMIT = 541
MIN_LIMIT = -541
#0
MAX_LIMIT = 0
#541
HOME = 0
HOME_OFFSET = -1
HOME_SEARCH_VEL = -25
HOME_LATCH_VEL = -2.5
HOME_SEQUENCE = 1
HOME_USE_INDEX = False
HOME_IGNORE_LIMITS = false
MAX_VELOCITY = 30
MAX_ACCELERATION = 45
TYPE = LINEAR
@ -269,19 +284,24 @@ FF2 = 0.00013
BIAS = 0
MAX_OUTPUT = 0
MAX_ERROR = 0.0127
HOME = 541
HOME_OFFSET = 540
HOME_SEARCH_VEL = -25
HOME_LATCH_VEL = -2.5
HOME_SEQUENCE = 1
HOME_USE_INDEX = False
HOME_IGNORE_LIMITS = false
[JOINT_1]
AXIS = Y
MIN_LIMIT = 0
MAX_LIMIT = 581
MIN_LIMIT = -581
#0
MAX_LIMIT = 0
#581
MAX_VELOCITY = 55
HOME = 0
#580
HOME_OFFSET = -1
#579
HOME_SEARCH_VEL = -25
HOME_LATCH_VEL = 2
HOME_SEQUENCE = -1
HOME_USE_INDEX = false
HOME_IGNORE_LIMITS = false
MAX_ACCELERATION = 80
TYPE = LINEAR
SCALE = 50
@ -303,18 +323,23 @@ FF2 = 0.00013
BIAS = 0
MAX_OUTPUT = 0
MAX_ERROR = 0.0127
HOME = 580
HOME_OFFSET = 579
[JOINT_2]
AXIS = Y
MIN_LIMIT = -581
#0
MAX_LIMIT = 0
#581
HOME = 0
#580
HOME_OFFSET = -1
#579
HOME_SEARCH_VEL = -25
HOME_LATCH_VEL = 2
HOME_SEQUENCE = -1
HOME_USE_INDEX = false
HOME_IGNORE_LIMITS = false
HOME_USE_INDEX = False
HOME_IGNORE_LIMITS = False
[JOINT_2]
AXIS = Y
MIN_LIMIT = 0
MAX_LIMIT = 581
MAX_VELOCITY = 55
MAX_ACCELERATION = 80
TYPE = LINEAR
@ -337,13 +362,6 @@ FF2 = 0.00013
BIAS = 0
MAX_OUTPUT = 0
MAX_ERROR = 0.0127
HOME = 580
HOME_OFFSET = 579
HOME_SEARCH_VEL = -25
HOME_LATCH_VEL = 2
HOME_SEQUENCE = -1
HOME_USE_INDEX = False
HOME_IGNORE_LIMITS = False
[AXIS_Z]

6
mesa_2019.var

@ -27,9 +27,9 @@
5218 0.000000
5219 0.000000
5220 1.000000
5221 2.136060
5222 33.327760
5223 -3.765188
5221 -541.000000
5222 -541.651600
5223 -34.814030
5224 0.000000
5225 0.000000
5226 0.000000

6
mesa_2019.var.bak

@ -27,9 +27,9 @@
5218 0.000000
5219 0.000000
5220 1.000000
5221 2.136060
5222 33.327760
5223 -3.765188
5221 -541.000000
5222 -541.651600
5223 -34.814030
5224 0.000000
5225 0.000000
5226 0.000000

27
tool.tbl

@ -1,13 +1,14 @@
T0 P0 ;
T0 P0 ;
T0 P0 ;
T1 P1 Z+1.618900 ;
T42 P42 D6.350000 X+1.000000 Y+1.000000 ;added 20190422
T24 P24 D6.350000 Z+1.677700 ;comment
T6 P6 Z-5.514300 ;comment
T99 P99 D1.000000 Z-28.776100 ;60 degre v-bit
T31 P0 D2.000000 Z+7.930100 ;comment
T111 P0 Z+13.110800 ;60 degree small
T5 P5 D6.000000 Z-19.036700 ;2 Flute End Mill Cutter Spiral Drill Bit CNC Tool 6x6x24x68mm
T61 P61 D6.350000 Z-258.566300 ;6.35
T63 P63 D3.175000 Z-35.988270 ;3.175 mm carbid single flute
T0 P0 X0.0 Y0.0 Z0.0 A0.0 B0.0 C0.0 U0.0 V0.0 W0.0 D0.0 I0.0 J0.0 Q0.0 ;
T0 P0 X0.0 Y0.0 Z0.0 A0.0 B0.0 C0.0 U0.0 V0.0 W0.0 D0.0 I0.0 J0.0 Q0.0 ;
T0 P0 X0.0 Y0.0 Z0.0 A0.0 B0.0 C0.0 U0.0 V0.0 W0.0 D0.0 I0.0 J0.0 Q0.0 ;
T52 P52 X0.0 Y0.0 Z0.4948 A0.0 B0.0 C0.0 U0.0 V0.0 W0.0 D3.0 I0.0 J0.0 Q0.0 ;Boor 3 mm
T42 P42 X1.0 Y1.0 Z0.0 A0.0 B0.0 C0.0 U0.0 V0.0 W0.0 D6.35 I0.0 J0.0 Q0.0 ;added 20190422
T24 P24 X0.0 Y0.0 Z1.6777 A0.0 B0.0 C0.0 U0.0 V0.0 W0.0 D6.35 I0.0 J0.0 Q0.0 ;comment
T6 P6 X0.0 Y0.0 Z-5.5143 A0.0 B0.0 C0.0 U0.0 V0.0 W0.0 D0.0 I0.0 J0.0 Q0.0 ;comment
T99 P99 X0.0 Y0.0 Z-28.7761 A0.0 B0.0 C0.0 U0.0 V0.0 W0.0 D1.0 I0.0 J0.0 Q0.0 ;60 degre v-bit
T31 P0 X0.0 Y0.0 Z7.9301 A0.0 B0.0 C0.0 U0.0 V0.0 W0.0 D2.0 I0.0 J0.0 Q0.0 ;comment
T111 P0 X0.0 Y0.0 Z13.1108 A0.0 B0.0 C0.0 U0.0 V0.0 W0.0 D0.0 I0.0 J0.0 Q0.0 ;60 degree small
T5 P5 X0.0 Y0.0 Z-19.0367 A0.0 B0.0 C0.0 U0.0 V0.0 W0.0 D6.0 I0.0 J0.0 Q0.0 ;2 Flute End Mill Cutter Spiral Drill Bit CNC Tool 6x6x24x68mm
T61 P61 X0.0 Y0.0 Z-49.8209 A0.0 B0.0 C0.0 U0.0 V0.0 W0.0 D6.35 I0.0 J0.0 Q0.0 ;6.35
T63 P63 X0.0 Y0.0 Z-61.9227 A0.0 B0.0 C0.0 U0.0 V0.0 W0.0 D3.175 I0.0 J0.0 Q0.0 ;3.175 mm carbid single flute
T81 P81 X0.0 Y0.0 Z-49.0 A0.0 B0.0 C0.0 U0.0 V0.0 W0.0 D6.35 I0.0 J0.0 Q0.0 ;1/4" Shank 1/4" Blade Woodworking Double Flutes Straight Router Bit Cutter M02

Loading…
Cancel
Save