Jogging Direction Error On A Lathe
07 Apr 2017 01:25 #90985
by phillc54
Jogging Direction Error On A Lathe was created by phillc54
I have just switched from 2.7 to 2.8.0-pre1-2930-g18ad724 and cannot get Axis to jog in the correct direction via the keyboard.
If I put JOG_AXES = XZ in the [DISPLAY] section the following happens after starting LinuxCNC from the command line:
The following displays in the console:
note: jog_order='XZ'
note: jog_invert=set()
Before homing the left/right keys operate the X axis and the up/down keys operate the Z axis.
After homing the left/right keys operate the X axis and the up/down keys operate the Z axis.
If I put JOG_AXES = ZX in the [DISPLAY] section (or omit it completely) the following happens after starting LinuxCNC from the command line:
The following displays in the console:
note: jog_order='ZX'
note: jog_invert=set()
Before homing the left/right keys operate the X axis and the up/down keys operate the Z axis.
After homing the left/right keys operate the Z axis and the up/down keys operate the X axis.
According to this link the first config above should be correct.
INI File =
HAL File =
########## BASE SYSTEM #################################################
loadrt [KINS]KINEMATICS
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS
addf motion-command-handler servo-thread
addf motion-controller servo-thread
########## ESTOP #######################################################
setp iocontrol.0.emc-enable-in 1
#***** x-axis **************************
net xpos joint.0.motor-pos-cmd => joint.0.motor-pos-fb
#***** z-axis **************************
net zpos joint.1.motor-pos-cmd => joint.1.motor-pos-fb
If I put JOG_AXES = XZ in the [DISPLAY] section the following happens after starting LinuxCNC from the command line:
The following displays in the console:
note: jog_order='XZ'
note: jog_invert=set()
Before homing the left/right keys operate the X axis and the up/down keys operate the Z axis.
After homing the left/right keys operate the X axis and the up/down keys operate the Z axis.
If I put JOG_AXES = ZX in the [DISPLAY] section (or omit it completely) the following happens after starting LinuxCNC from the command line:
The following displays in the console:
note: jog_order='ZX'
note: jog_invert=set()
Before homing the left/right keys operate the X axis and the up/down keys operate the Z axis.
After homing the left/right keys operate the Z axis and the up/down keys operate the X axis.
According to this link the first config above should be correct.
INI File =
Warning: Spoiler!
#*** /home/phill/linuxcnc/configs/sherline/sherline-sim.ini.expanded
#*** Created: Friday 7 April 11:07:15 AEST 2017
#*** Autogenerated file with expanded #INCLUDEs
[EMC]
VERSION = 1.0
MACHINE = SHERLINE-LATHE-SIM
DEBUG = 0
[HAL]
HALFILE = sherline-sim.hal
#HALFILE = LIB:xhc-hb04.tcl
SHUTDOWN = shutdown.hal
HALUI = halui
#*** Begin #INCLUDE file: sherline-common-ini.inc
[DISPLAY]
DISPLAY = axis
#DISPLAY = ../../../working/gui-lui/lui
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.0
MIN_SPINDLE_OVERRIDE = 0.0
MAX_SPINDLE_OVERRIDE = 1.0
DEFAULT_SPINDLE_SPEED = 300
PROGRAM_PREFIX = ../../nc_files/lathe
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 1
CYCLE_TIME = 0.05
DEFAULT_LINEAR_VELOCITY = 15
MAX_LINEAR_VELOCITY = 15
MIN_LINEAR_VELOCITY = 0
DEFAULT_ANGULAR_VELOCITY = 15
MIN_ANGULAR_VELOCITY = 0
MAX_ANGULAR_VELOCITY = 15
INCREMENTS = 10, 1, .1, .01, .001
GRIDS = 10mm 20mm 50mm 100mm 1in 2in 5in 10in
OPEN_FILE = ../../nc_files//lathe/phills_lathe.ngc
EDITOR = geany
TOOL_EDITOR = geany
LATHE = 1
#GEOMETRY = XZ
ARCDIVISION = 64
MDI_HISTORY_FILE = mdi-history.txt
GLADEVCP = -u ../../gladevcp/lathe-panel.py -H ../../gladevcp/lathe-panel.hal ../../gladevcp/lathe-panel.glade
EMBED_TAB_NAME = Probe
EMBED_TAB_COMMAND = halcmd loadusr -Wn lathe-probe gladevcp -c lathe-probe -x {XID} -u ../../gladevcp/lathe-probe.py -H ../../gladevcp/lathe-probe.hal ../../gladevcp/lathe-probe.glade
TKPKG = Ngcgui 1.0
NGCGUI_PREAMBLE = preamble.ngc
NGCGUI_POSTAMBLE = postamble.ngc
NGCGUI_SUBFILE = ""
JOG_AXES = ZX
[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Grayscale Depth Image
PROGRAM_EXTENSION = .py Python Script
PROGRAM_EXTENSION = .dxf 2D ACAD Drawing
png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python
dxf = ~/linuxcnc/gcode_apps/dxf2gcode/dxf2gcode_b02.py
[TASK]
TASK = milltask
CYCLE_TIME = 0.01
[RS274NGC]
RS274NGC_STARTUP_CODE = G7 G18 G21 G40 G49 G64 P0.02 G80 G90 G92.1 G94 G97 G98
PARAMETER_FILE = parameters.txt
SUBROUTINE_PATH = ../../ngcgui/lathe:../../ngcgui/lathe/ambles
USER_M_PATH = ../../mfiles
TOLERANCE_MM = 0.0282
[EMCMOT]
EMCMOT = motmod
BASE_PERIOD = 32000
SERVO_PERIOD = 1000000
[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = tool.tbl
[TRAJ]
ARC_BLEND_ENABLE = 1
ARC_BLEND_FALLBACK_ENABLE = 0
ARC_BLEND_OPTIMIZATION_DEPTH = 50
ARC_BLEND_GAP_CYCLES = 4
ARC_BLEND_RAMP_FREQ = 20
COORDINATES = X Z
LINEAR_UNITS = mm
ANGULAR_UNITS = degree
POSITION_FILE = position.txt
NO_FORCE_HOMING = 1
[KINS]
KINEMATICS = trivkins coordinates=xz
JOINTS = 2
[AXIS_X]
MIN_LIMIT = -0.001
MAX_LIMIT = 59.001
MAX_VELOCITY = 15.0
MAX_ACCELERATION = 130.0
[JOINT_0]
MIN_LIMIT = -0.001
MAX_LIMIT = 59.001
MAX_VELOCITY = 15.0
MAX_ACCELERATION = 130.0
TYPE = LINEAR
BACKLASH = 0.0
MIN_FERROR = 0.01
FERROR = 1
HOME = 40.0
HOME_OFFSET = 40.0
HOME_SEQUENCE = 0
STEPGEN_MAXACCEL = 150.0
SCALE = -400.0
STEPLEN = 1
STEPSPACE = 0
DIRSETUP = 8000
DIRHOLD = 5000
[AXIS_Z]
MIN_LIMIT = -0.001
MAX_LIMIT = 382.001
MAX_VELOCITY = 15.0
MAX_ACCELERATION = 150.0
[JOINT_1]
TYPE = LINEAR
MAX_VELOCITY = 15.0
MAX_ACCELERATION = 150.0
BACKLASH = 0.0
MIN_LIMIT = -0.001
MAX_LIMIT = 382.001
MIN_FERROR = .01
FERROR = 1
HOME = 82.0
HOME_OFFSET = 82.0
HOME_SEQUENCE = 0
STEPGEN_MAXACCEL = 600.0
SCALE = -400.0
STEPLEN = 1
STEPSPACE = 0
DIRSETUP = 8000
DIRHOLD = 5000
HOME_SEQUENCE = 0
#*** End #INCLUDE file: sherline-common-ini.inc
##INCLUDE ../lathe-pendant-ini.inc
#*** Created: Friday 7 April 11:07:15 AEST 2017
#*** Autogenerated file with expanded #INCLUDEs
[EMC]
VERSION = 1.0
MACHINE = SHERLINE-LATHE-SIM
DEBUG = 0
[HAL]
HALFILE = sherline-sim.hal
#HALFILE = LIB:xhc-hb04.tcl
SHUTDOWN = shutdown.hal
HALUI = halui
#*** Begin #INCLUDE file: sherline-common-ini.inc
[DISPLAY]
DISPLAY = axis
#DISPLAY = ../../../working/gui-lui/lui
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.0
MIN_SPINDLE_OVERRIDE = 0.0
MAX_SPINDLE_OVERRIDE = 1.0
DEFAULT_SPINDLE_SPEED = 300
PROGRAM_PREFIX = ../../nc_files/lathe
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 1
CYCLE_TIME = 0.05
DEFAULT_LINEAR_VELOCITY = 15
MAX_LINEAR_VELOCITY = 15
MIN_LINEAR_VELOCITY = 0
DEFAULT_ANGULAR_VELOCITY = 15
MIN_ANGULAR_VELOCITY = 0
MAX_ANGULAR_VELOCITY = 15
INCREMENTS = 10, 1, .1, .01, .001
GRIDS = 10mm 20mm 50mm 100mm 1in 2in 5in 10in
OPEN_FILE = ../../nc_files//lathe/phills_lathe.ngc
EDITOR = geany
TOOL_EDITOR = geany
LATHE = 1
#GEOMETRY = XZ
ARCDIVISION = 64
MDI_HISTORY_FILE = mdi-history.txt
GLADEVCP = -u ../../gladevcp/lathe-panel.py -H ../../gladevcp/lathe-panel.hal ../../gladevcp/lathe-panel.glade
EMBED_TAB_NAME = Probe
EMBED_TAB_COMMAND = halcmd loadusr -Wn lathe-probe gladevcp -c lathe-probe -x {XID} -u ../../gladevcp/lathe-probe.py -H ../../gladevcp/lathe-probe.hal ../../gladevcp/lathe-probe.glade
TKPKG = Ngcgui 1.0
NGCGUI_PREAMBLE = preamble.ngc
NGCGUI_POSTAMBLE = postamble.ngc
NGCGUI_SUBFILE = ""
JOG_AXES = ZX
[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Grayscale Depth Image
PROGRAM_EXTENSION = .py Python Script
PROGRAM_EXTENSION = .dxf 2D ACAD Drawing
png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python
dxf = ~/linuxcnc/gcode_apps/dxf2gcode/dxf2gcode_b02.py
[TASK]
TASK = milltask
CYCLE_TIME = 0.01
[RS274NGC]
RS274NGC_STARTUP_CODE = G7 G18 G21 G40 G49 G64 P0.02 G80 G90 G92.1 G94 G97 G98
PARAMETER_FILE = parameters.txt
SUBROUTINE_PATH = ../../ngcgui/lathe:../../ngcgui/lathe/ambles
USER_M_PATH = ../../mfiles
TOLERANCE_MM = 0.0282
[EMCMOT]
EMCMOT = motmod
BASE_PERIOD = 32000
SERVO_PERIOD = 1000000
[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = tool.tbl
[TRAJ]
ARC_BLEND_ENABLE = 1
ARC_BLEND_FALLBACK_ENABLE = 0
ARC_BLEND_OPTIMIZATION_DEPTH = 50
ARC_BLEND_GAP_CYCLES = 4
ARC_BLEND_RAMP_FREQ = 20
COORDINATES = X Z
LINEAR_UNITS = mm
ANGULAR_UNITS = degree
POSITION_FILE = position.txt
NO_FORCE_HOMING = 1
[KINS]
KINEMATICS = trivkins coordinates=xz
JOINTS = 2
[AXIS_X]
MIN_LIMIT = -0.001
MAX_LIMIT = 59.001
MAX_VELOCITY = 15.0
MAX_ACCELERATION = 130.0
[JOINT_0]
MIN_LIMIT = -0.001
MAX_LIMIT = 59.001
MAX_VELOCITY = 15.0
MAX_ACCELERATION = 130.0
TYPE = LINEAR
BACKLASH = 0.0
MIN_FERROR = 0.01
FERROR = 1
HOME = 40.0
HOME_OFFSET = 40.0
HOME_SEQUENCE = 0
STEPGEN_MAXACCEL = 150.0
SCALE = -400.0
STEPLEN = 1
STEPSPACE = 0
DIRSETUP = 8000
DIRHOLD = 5000
[AXIS_Z]
MIN_LIMIT = -0.001
MAX_LIMIT = 382.001
MAX_VELOCITY = 15.0
MAX_ACCELERATION = 150.0
[JOINT_1]
TYPE = LINEAR
MAX_VELOCITY = 15.0
MAX_ACCELERATION = 150.0
BACKLASH = 0.0
MIN_LIMIT = -0.001
MAX_LIMIT = 382.001
MIN_FERROR = .01
FERROR = 1
HOME = 82.0
HOME_OFFSET = 82.0
HOME_SEQUENCE = 0
STEPGEN_MAXACCEL = 600.0
SCALE = -400.0
STEPLEN = 1
STEPSPACE = 0
DIRSETUP = 8000
DIRHOLD = 5000
HOME_SEQUENCE = 0
#*** End #INCLUDE file: sherline-common-ini.inc
##INCLUDE ../lathe-pendant-ini.inc
HAL File =
Warning: Spoiler!
########## BASE SYSTEM #################################################
loadrt [KINS]KINEMATICS
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS
addf motion-command-handler servo-thread
addf motion-controller servo-thread
########## ESTOP #######################################################
setp iocontrol.0.emc-enable-in 1
#***** x-axis **************************
net xpos joint.0.motor-pos-cmd => joint.0.motor-pos-fb
#***** z-axis **************************
net zpos joint.1.motor-pos-cmd => joint.1.motor-pos-fb
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19226
- Thank you received: 6443
07 Apr 2017 09:04 #90990
by tommylight
Replied by tommylight on topic Jogging Direction Error On A Lathe
Check if before homing you have the Linuxcnc set to joint mode. Some configs will do that, namely before homing all axis Linuxcnc is in Joimt mode and afte homing it goes to Worls mode.
You can check that in the "view" menu at the bottom.
The first version is working as it should, that is exactly what you wrote on your post. Or am i missing something?
You can check that in the "view" menu at the bottom.
The first version is working as it should, that is exactly what you wrote on your post. Or am i missing something?
Please Log in or Create an account to join the conversation.
07 Apr 2017 11:06 #90999
by phillc54
Replied by phillc54 on topic Jogging Direction Error On A Lathe
I cannot see anything on the view menu about World or Joint modes.
Yes, the first version is working correctly. Unfortunately I would like to use the second version as it makes more sense for a lathe to use left/right for Z and up/down for X.
Yes, the first version is working correctly. Unfortunately I would like to use the second version as it makes more sense for a lathe to use left/right for Z and up/down for X.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19226
- Thank you received: 6443
07 Apr 2017 13:14 #91003
by tommylight
Replied by tommylight on topic Jogging Direction Error On A Lathe
Ok, got it now. Did you try changing " geomentry " in the ini file to ZX ?
Please Log in or Create an account to join the conversation.
07 Apr 2017 22:50 #91021
by phillc54
Replied by phillc54 on topic Jogging Direction Error On A Lathe
I gave that a try but it had no effect.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19226
- Thank you received: 6443
07 Apr 2017 23:17 #91022
by tommylight
Replied by tommylight on topic Jogging Direction Error On A Lathe
You should wait for Andy, he seems bussy ATM, he has several lathes with Linuxcnc so most probably he knows what to do regarding that.
Still waiting for my lathe to arrive so am working on finishing a bigger cnc plasma cutter, have to finish this to make room for the lathe.
Still waiting for my lathe to arrive so am working on finishing a bigger cnc plasma cutter, have to finish this to make room for the lathe.
Please Log in or Create an account to join the conversation.
08 Apr 2017 06:57 #91033
by phillc54
Replied by phillc54 on topic Jogging Direction Error On A Lathe
Your first reply gave a hint to the problem.
Dewey has explained to me the different jogging characteristics of joint and world modes in the Axis gui.
Easy option:
Fit homing switches so I don't need to jog before homing.
Hard option:
Modify joint jogging in the Axis gui.
Thanks for your input.
Dewey has explained to me the different jogging characteristics of joint and world modes in the Axis gui.
Easy option:
Fit homing switches so I don't need to jog before homing.
Hard option:
Modify joint jogging in the Axis gui.
Thanks for your input.
Please Log in or Create an account to join the conversation.
08 Apr 2017 09:14 #91035
by rodw
Replied by rodw on topic Jogging Direction Error On A Lathe
I vote for homing switches!!
I have one shared limit/home switch out of necessity and it is not as good as those axes where I have separate limit and home switches. I can't think what it would be like without home switches (although I have one axis set up that way pending gettting the steppers installed on the axis, so it is not an issue at all as there is no movement...).
I have one shared limit/home switch out of necessity and it is not as good as those axes where I have separate limit and home switches. I can't think what it would be like without home switches (although I have one axis set up that way pending gettting the steppers installed on the axis, so it is not an issue at all as there is no movement...).
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19226
- Thank you received: 6443
08 Apr 2017 09:16 #91036
by tommylight
Replied by tommylight on topic Jogging Direction Error On A Lathe
You are welcomed, always.
Please Log in or Create an account to join the conversation.
08 Apr 2017 12:25 #91040
by phillc54
Replied by phillc54 on topic Jogging Direction Error On A Lathe
I would prefer not to have home switches as I haven't yet had a usage problem without them but it does seem the best or at least quickest option to progress to 2.8.
I also rely solely on soft limits.
I also rely solely on soft limits.
Please Log in or Create an account to join the conversation.
Time to create page: 0.084 seconds