- Configuring LinuxCNC
- Basic Configuration
- After installing Native Cam having issues setting up touch off plate.
After installing Native Cam having issues setting up touch off plate.
- Dougefresh
- Offline
- New Member
Less
More
- Posts: 13
- Thank you received: 0
15 Feb 2017 06:02 #87983
by Dougefresh
Trying to get my touch off plate going, I can see it working in hal. I recently installed Native cam as well and it is working. I'm thinking my issue is that fact that they each have their own subroutine paths.
Please Log in or Create an account to join the conversation.
- Dougefresh
- Offline
- New Member
Less
More
- Posts: 13
- Thank you received: 0
15 Feb 2017 18:38 #88008
by Dougefresh
Replied by Dougefresh on topic After installing Native Cam having issues setting up touch off plate.
The ini info says to use a semicolon to search multiple directories... Hopefully I will get it to load nativecam then search for probe buttons/functions after. I will post ini later after I make a mess of things lol.
Please Log in or Create an account to join the conversation.
- cncnoob1979
- Offline
- Platinum Member
Less
More
- Posts: 403
- Thank you received: 75
18 Feb 2017 01:00 - 18 Feb 2017 01:02 #88148
by cncnoob1979
Replied by cncnoob1979 on topic After installing Native Cam having issues setting up touch off plate.
yes when you are editing your ini files and looking in multiple directories it should look like this:
Here is my ini with "work with probe" and NCam.
SUBROUTINE_PATH = ncam/lib/mill:ncam/lib/utilities:/home/bridgeport_axis/linuxcnc/configs/bridgeport_axis/macros/
Here is my ini with "work with probe" and NCam.
Warning: Spoiler!
#INCLUDE /home/bridgeport/linuxcnc/configs/bridgeport_axis/xhc-hb04/layout2.inc
[EMC]
# The version string for this INI file.
VERSION = 1.0
MACHINE = bridgeport
DEBUG = 0
[DISPLAY]
DISPLAY = axis
EMBED_TAB_NAME=Huanyang VFD
EMBED_TAB_COMMAND=halcmd loadusr -Wn vfd gladevcp -c vfd -x {XID} -u handler.py huanyang.glade
EMBED_TAB_NAME=Probe Screen
EMBED_TAB_COMMAND=halcmd loadusr -Wn probe_screen gladevcp -c probe_screen -u python/probe_screen.py -x {XID} probe_icons/probe_screen.glade
#******** required 'NativeCAM' items:********************************************
## ncam.ui is required in this directory, relative or absolute
GLADEVCP = -U --catalog=mill ncam.ui
PROGRAM_PREFIX = ncam/scripts/
# NCAM_DIR ***'MUST'*** match the first dir of SUBROUTINE_PATHS
NCAM_DIR = ncam
#********************************************************************************
EDITOR = kate
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 2.000000
MAX_SPINDLE_OVERRIDE = 1.20000
MIN_SPINDLE_OVERRIDE = 0.050000
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 3
PROGRAM_PREFIX = /home/bridgeport/linuxcnc/nc_files
INCREMENTS = .1in .05in .01in .005in .001in .0005in .0001in
POSITION_FEEDBACK = ACTUAL
DEFAULT_LINEAR_VELOCITY = 0.250000
MAX_LINEAR_VELOCITY = 2.0
MIN_LINEAR_VELOCITY = 0.010000
DEFAULT_ANGULAR_VELOCITY = 0.250000
MAX_ANGULAR_VELOCITY = 1.000000
MIN_ANGULAR_VELOCITY = 0.010000
GEOMETRY = xyz
[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image
PROGRAM_EXTENSION = .py Python Script
png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python
[RS274NGC]
FEATURES=30
PARAMETER_FILE = linuxcnc.var
#******** required 'NativeCAM' items will be created the first time***
# "NCAM_DIR must be specified"
SUBROUTINE_PATH = ncam/lib/mill:ncam/lib/utilities:/home/bridgeport_axis/linuxcnc/configs/bridgeport_axis/macros/
#*********************************************************************
[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
COMM_WAIT = 0.010
SERVO_PERIOD = 1000000
[TASK]
TASK = milltask
CYCLE_TIME = 0.010
[HAL]
HALUI = halui
HALFILE = bridgeport.hal
HALFILE = custom.hal
***************HB04*****************
HALFILE = LIB:xhc-hb04.tcl
************************************
POSTGUI_HALFILE = custom_postgui.hal
SHUTDOWN = shutdown.hal
[TRAJ]
AXES = 3
COORDINATES = X Y Z
LINEAR_UNITS = inch
ANGULAR_UNITS = degree
CYCLE_TIME = 0.010
DEFAULT_LINEAR_VELOCITY = 6.0
MAX_LINEAR_VELOCITY = 6.00
[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = tool.tbl
#********************
# Axis X
#********************
[KINS]
KINEMATICS = trivkins
JOINTS = 3
[AXIS_X]
MIN_LIMIT = -17.755
MAX_LIMIT = 0.04
MAX_VELOCITY = 3.10
MAX_ACCELERATION = 5.0
[JOINT_0]
TYPE = LINEAR
HOME = 0.0
FERROR = 1.003
MIN_FERROR = 1.003
MAX_VELOCITY = 3.10
MAX_ACCELERATION = 5.0
P = 150
I = 0
D = 0
FF0 = 0
FF1 = 2.74
FF2 = 0.003
BIAS = 0
DEADBAND = 0.00009
MAX_OUTPUT = 10
ENCODER_SCALE = -50800
OUTPUT_SCALE = 10
OUTPUT_MIN_LIMIT = -10
OUTPUT_MAX_LIMIT = 10
MIN_LIMIT = -17.755
MAX_LIMIT = 0.04
HOME_OFFSET = 0.0
HOME_SEARCH_VEL = 0.5
HOME_LATCH_VEL = 0.017
HOME_FINAL_VEL = 0.000000
HOME_USE_INDEX = NO
HOME_SEQUENCE = 1
#********************
# Axis Y
#********************
[AXIS_Y]
MIN_LIMIT = -11.373
MAX_LIMIT = 0.303
MAX_VELOCITY = 3.10
MAX_ACCELERATION = 5.0
[JOINT_1]
TYPE = LINEAR
HOME = 0.0
FERROR = 0.003
MIN_FERROR = 0.003
MAX_VELOCITY = 3.10
MAX_ACCELERATION = 5.0
P = 150
I = 0
D = 0
FF0 = 0
FF1 = 2.74
FF2 = 0.003
BIAS = 0
DEADBAND = 0.000059
MAX_OUTPUT = 10
ENCODER_SCALE = -50800
OUTPUT_SCALE = 10
OUTPUT_MIN_LIMIT = -10
OUTPUT_MAX_LIMIT = 10
MIN_LIMIT = -11.373
MAX_LIMIT = 0.303
HOME_OFFSET = 0.000000
HOME_SEARCH_VEL = 0.500000
HOME_LATCH_VEL = 0.016667
HOME_FINAL_VEL = 0.000000
HOME_USE_INDEX = NO
HOME_SEQUENCE = 2
#********************
# Axis Z
#********************
[AXIS_Z]
MIN_LIMIT = -4.465
MAX_LIMIT = 0.069
MAX_VELOCITY = 2.5
MAX_ACCELERATION = 5.0
[JOINT_2]
TYPE = LINEAR
HOME = 0.0
FERROR = 0.003
MIN_FERROR = 0.003
MAX_VELOCITY = 2.5
MAX_ACCELERATION = 5.0
P = 150
I = 0
D = 0
FF0 = 0
FF1 = 2.74
FF2 = 0.003
BIAS = 0
DEADBAND = 0.000059
MAX_OUTPUT = 10
ENCODER_SCALE = -50800
OUTPUT_SCALE = 10
OUTPUT_MIN_LIMIT = -10
OUTPUT_MAX_LIMIT = 10
MIN_LIMIT = -4.465
MAX_LIMIT = 0.069
HOME_OFFSET = 0.000000
HOME_SEARCH_VEL = 0.50000
HOME_LATCH_VEL = 0.016667
HOME_FINAL_VEL = 0.000000
HOME_USE_INDEX = NO
HOME_SEQUENCE = 0
#********************
# Spindle
#********************
[TOOLSENSOR]
# Control probe rapid feed (in machine units per minute)
RAPID_SPEED = 100
[HOSTMOT2]
# **** This is for info only ****
# DRIVER0=hm2_pci
# BOARD0=5i25
[SPINDLE_9]
P = 0
I = 0
D = 0
FF0 = 1
FF1 = 0
FF2 = 0
BIAS = 0
DEADBAND = 0
MAX_OUTPUT = 10
#********************
# Handwheel
#********************
[MPG]
HAND_WHEEL_SCALE = 0.00000016
Z_MINUS_LIMIT = 0.000008
[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 = 2
# 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 = in
# mpg_accels: provision for reduced acceleration for manual mode jogging
mpg_accels = 2 2 1 600
[APPLICATIONS]
APP = xhc-hb04-accels
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 = ""
goto-zero-y = ""
goto-zero-z = ""
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-01
macro-2 = halui.mdi-command-02
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
[EMC]
# The version string for this INI file.
VERSION = 1.0
MACHINE = bridgeport
DEBUG = 0
[DISPLAY]
DISPLAY = axis
EMBED_TAB_NAME=Huanyang VFD
EMBED_TAB_COMMAND=halcmd loadusr -Wn vfd gladevcp -c vfd -x {XID} -u handler.py huanyang.glade
EMBED_TAB_NAME=Probe Screen
EMBED_TAB_COMMAND=halcmd loadusr -Wn probe_screen gladevcp -c probe_screen -u python/probe_screen.py -x {XID} probe_icons/probe_screen.glade
#******** required 'NativeCAM' items:********************************************
## ncam.ui is required in this directory, relative or absolute
GLADEVCP = -U --catalog=mill ncam.ui
PROGRAM_PREFIX = ncam/scripts/
# NCAM_DIR ***'MUST'*** match the first dir of SUBROUTINE_PATHS
NCAM_DIR = ncam
#********************************************************************************
EDITOR = kate
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 2.000000
MAX_SPINDLE_OVERRIDE = 1.20000
MIN_SPINDLE_OVERRIDE = 0.050000
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 3
PROGRAM_PREFIX = /home/bridgeport/linuxcnc/nc_files
INCREMENTS = .1in .05in .01in .005in .001in .0005in .0001in
POSITION_FEEDBACK = ACTUAL
DEFAULT_LINEAR_VELOCITY = 0.250000
MAX_LINEAR_VELOCITY = 2.0
MIN_LINEAR_VELOCITY = 0.010000
DEFAULT_ANGULAR_VELOCITY = 0.250000
MAX_ANGULAR_VELOCITY = 1.000000
MIN_ANGULAR_VELOCITY = 0.010000
GEOMETRY = xyz
[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image
PROGRAM_EXTENSION = .py Python Script
png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python
[RS274NGC]
FEATURES=30
PARAMETER_FILE = linuxcnc.var
#******** required 'NativeCAM' items will be created the first time***
# "NCAM_DIR must be specified"
SUBROUTINE_PATH = ncam/lib/mill:ncam/lib/utilities:/home/bridgeport_axis/linuxcnc/configs/bridgeport_axis/macros/
#*********************************************************************
[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
COMM_WAIT = 0.010
SERVO_PERIOD = 1000000
[TASK]
TASK = milltask
CYCLE_TIME = 0.010
[HAL]
HALUI = halui
HALFILE = bridgeport.hal
HALFILE = custom.hal
***************HB04*****************
HALFILE = LIB:xhc-hb04.tcl
************************************
POSTGUI_HALFILE = custom_postgui.hal
SHUTDOWN = shutdown.hal
[TRAJ]
AXES = 3
COORDINATES = X Y Z
LINEAR_UNITS = inch
ANGULAR_UNITS = degree
CYCLE_TIME = 0.010
DEFAULT_LINEAR_VELOCITY = 6.0
MAX_LINEAR_VELOCITY = 6.00
[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = tool.tbl
#********************
# Axis X
#********************
[KINS]
KINEMATICS = trivkins
JOINTS = 3
[AXIS_X]
MIN_LIMIT = -17.755
MAX_LIMIT = 0.04
MAX_VELOCITY = 3.10
MAX_ACCELERATION = 5.0
[JOINT_0]
TYPE = LINEAR
HOME = 0.0
FERROR = 1.003
MIN_FERROR = 1.003
MAX_VELOCITY = 3.10
MAX_ACCELERATION = 5.0
P = 150
I = 0
D = 0
FF0 = 0
FF1 = 2.74
FF2 = 0.003
BIAS = 0
DEADBAND = 0.00009
MAX_OUTPUT = 10
ENCODER_SCALE = -50800
OUTPUT_SCALE = 10
OUTPUT_MIN_LIMIT = -10
OUTPUT_MAX_LIMIT = 10
MIN_LIMIT = -17.755
MAX_LIMIT = 0.04
HOME_OFFSET = 0.0
HOME_SEARCH_VEL = 0.5
HOME_LATCH_VEL = 0.017
HOME_FINAL_VEL = 0.000000
HOME_USE_INDEX = NO
HOME_SEQUENCE = 1
#********************
# Axis Y
#********************
[AXIS_Y]
MIN_LIMIT = -11.373
MAX_LIMIT = 0.303
MAX_VELOCITY = 3.10
MAX_ACCELERATION = 5.0
[JOINT_1]
TYPE = LINEAR
HOME = 0.0
FERROR = 0.003
MIN_FERROR = 0.003
MAX_VELOCITY = 3.10
MAX_ACCELERATION = 5.0
P = 150
I = 0
D = 0
FF0 = 0
FF1 = 2.74
FF2 = 0.003
BIAS = 0
DEADBAND = 0.000059
MAX_OUTPUT = 10
ENCODER_SCALE = -50800
OUTPUT_SCALE = 10
OUTPUT_MIN_LIMIT = -10
OUTPUT_MAX_LIMIT = 10
MIN_LIMIT = -11.373
MAX_LIMIT = 0.303
HOME_OFFSET = 0.000000
HOME_SEARCH_VEL = 0.500000
HOME_LATCH_VEL = 0.016667
HOME_FINAL_VEL = 0.000000
HOME_USE_INDEX = NO
HOME_SEQUENCE = 2
#********************
# Axis Z
#********************
[AXIS_Z]
MIN_LIMIT = -4.465
MAX_LIMIT = 0.069
MAX_VELOCITY = 2.5
MAX_ACCELERATION = 5.0
[JOINT_2]
TYPE = LINEAR
HOME = 0.0
FERROR = 0.003
MIN_FERROR = 0.003
MAX_VELOCITY = 2.5
MAX_ACCELERATION = 5.0
P = 150
I = 0
D = 0
FF0 = 0
FF1 = 2.74
FF2 = 0.003
BIAS = 0
DEADBAND = 0.000059
MAX_OUTPUT = 10
ENCODER_SCALE = -50800
OUTPUT_SCALE = 10
OUTPUT_MIN_LIMIT = -10
OUTPUT_MAX_LIMIT = 10
MIN_LIMIT = -4.465
MAX_LIMIT = 0.069
HOME_OFFSET = 0.000000
HOME_SEARCH_VEL = 0.50000
HOME_LATCH_VEL = 0.016667
HOME_FINAL_VEL = 0.000000
HOME_USE_INDEX = NO
HOME_SEQUENCE = 0
#********************
# Spindle
#********************
[TOOLSENSOR]
# Control probe rapid feed (in machine units per minute)
RAPID_SPEED = 100
[HOSTMOT2]
# **** This is for info only ****
# DRIVER0=hm2_pci
# BOARD0=5i25
[SPINDLE_9]
P = 0
I = 0
D = 0
FF0 = 1
FF1 = 0
FF2 = 0
BIAS = 0
DEADBAND = 0
MAX_OUTPUT = 10
#********************
# Handwheel
#********************
[MPG]
HAND_WHEEL_SCALE = 0.00000016
Z_MINUS_LIMIT = 0.000008
[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 = 2
# 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 = in
# mpg_accels: provision for reduced acceleration for manual mode jogging
mpg_accels = 2 2 1 600
[APPLICATIONS]
APP = xhc-hb04-accels
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 = ""
goto-zero-y = ""
goto-zero-z = ""
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-01
macro-2 = halui.mdi-command-02
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
Last edit: 18 Feb 2017 01:02 by cncnoob1979.
Please Log in or Create an account to join the conversation.
- Dougefresh
- Offline
- New Member
Less
More
- Posts: 13
- Thank you received: 0
19 Feb 2017 18:12 #88282
by Dougefresh
Replied by Dougefresh on topic After installing Native Cam having issues setting up touch off plate.
Thanks again cnc noob, got it working!
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Basic Configuration
- After installing Native Cam having issues setting up touch off plate.
Time to create page: 0.072 seconds