Help with homing

More
08 May 2023 09:22 - 08 May 2023 09:35 #270910 by Dimitrios2
Help with homing was created by Dimitrios2
Hello,
 
 I'm using linuxcnc 2.8.4 with Probe Basic and I'm new to linuxcnc. I have the following home sequence in the INI file below. My problem is that it's time I home my machine, my table is moving to Z-1, X-221 and Y-57 after the home switches are triggered as it should be but, is not setting the trigger points as 0. Actually the X and Y axis are a bit off, by 0.2mm and it's causing me troubles. 

I do remember that yesterday the soft limit switches were working correctly. So, this is now. Did I mess up something?

Thanks in advance for your help.



[EMC]
MACHINE = Opti-mill
DEBUG = 0
VERSION = 1.1

[DISPLAY]
DISPLAY = probe_basic
CONFIG_FILE = custom_config.yml
FULLSCREEN = True
OPEN_FILE = /home/jimmy/linuxcnc/nc_files/pb_examples/blank.ngc
EDITOR = gedit
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
ARCDIVISION = 64
GRIDS = 10mm 20mm 50mm 100mm 1in 2in 5in 10in
MAX_FEED_OVERRIDE = 1.2
MIN_SPINDLE_OVERRIDE = 0.5
MAX_SPINDLE_OVERRIDE = 1.2
DEFAULT_LINEAR_VELOCITY = 2.30
MIN_LINEAR_VELOCITY = 0
MAX_LINEAR_VELOCITY = 23
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 0
PROGRAM_PREFIX = /home/jimmy/linuxcnc/nc_files
INCREMENTS = JOG 5mm 1mm .5mm .1mm .05mm .01mm .005mm

[KINS]
JOINTS = 3
KINEMATICS = trivkins coordinates=XYZ

[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image
PROGRAM_EXTENSION = .py Python Script
PROGRAM_EXTENSION = .nc,.tap G-Code File
png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python

[TASK]
TASK = milltask
CYCLE_TIME = 0.010

[RS274NGC]
PARAMETER_FILE = linuxcnc.var
SUBROUTINE_PATH = /home/jimmy/linuxcnc/configs/Opti-mill/subroutines/

[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
BASE_PERIOD = 100000
SERVO_PERIOD = 1000000

[HAL]
HALUI = halui
HALFILE = Opti-mill.hal
HALFILE = custom.hal
POSTGUI_HALFILE = postgui_call_list.hal

[TRAJ]
COORDINATES = X Y Z
LINEAR_UNITS = mm
ANGULAR_UNITS = degree
DEFAULT_LINEAR_VELOCITY = 2.30
MAX_LINEAR_VELOCITY = 23
NO_FORCE_HOMING=1

[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = tool.tbl

[AXIS_X]
MAX_VELOCITY = 23
MAX_ACCELERATION = 50.0
MIN_LIMIT = 0.0
MAX_LIMIT = 436.0

[JOINT_0]
TYPE = LINEAR
MIN_LIMIT = 0.0
MAX_LIMIT = 436.0
MAX_VELOCITY = 23
MAX_ACCELERATION = 50.0
#STEPGEN_MAXACCEL = 62.5
STEPGEN_MAXACCEL = 75
BACKLASH = 0.057
SCALE = 400.0
FERROR = 1
MIN_FERROR = .25
HOME = 221.0
HOME_OFFSET = 0.50
HOME_SEARCH_VEL = -8.00
HOME_LATCH_VEL = 0.50
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = -1
HOME_IS_SHARED = 1
HOME_IGNORE_LIMITS = YES
HOME_USE_INDEX = NO
VOLATILE_HOME = 1


[AXIS_Y]
MAX_VELOCITY = 23
MAX_ACCELERATION = 50.0
MIN_LIMIT = 0.0
MAX_LIMIT = 111.0

[JOINT_1]
TYPE = LINEAR
MIN_LIMIT = 0.0
MAX_LIMIT = 111.0
MAX_VELOCITY = 23
MAX_ACCELERATION = 50.0
#STEPGEN_MAXACCEL = 62.5
STEPGEN_MAXACCEL = 75
BACKLASH = 0.036
SCALE = 400.0
FERROR = 1
MIN_FERROR = .25
HOME = 57.0
HOME_OFFSET = 0.50
HOME_SEARCH_VEL = -8.00
HOME_LATCH_VEL = 0.50
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = -1
HOME_IS_SHARED = 1
HOME_IGNORE_LIMITS = YES
HOME_USE_INDEX = NO
VOLATILE_HOME = 1


[AXIS_Z]
MAX_VELOCITY = 23
MAX_ACCELERATION = 50.0
MIN_LIMIT = -282.50
MAX_LIMIT = 0.0

[JOINT_2]
TYPE = LINEAR
MIN_LIMIT = -282.50
MAX_LIMIT = 0.0
MAX_VELOCITY = 23
MAX_ACCELERATION = 50.0
#STEPGEN_MAXACCEL = 62.5
STEPGEN_MAXACCEL = 75
BACKLASH = 0.021
SCALE = 400.0
FERROR = 1
MIN_FERROR = .25
HOME = -1.00
HOME_OFFSET = 0.50
HOME_SEARCH_VEL = 8.00
HOME_LATCH_VEL = -0.50
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 0
HOME_IS_SHARED = 1
HOME_IGNORE_LIMITS = YES
HOME_USE_INDEX = NO
VOLATILE_HOME = 1
Last edit: 08 May 2023 09:35 by Dimitrios2.

Please Log in or Create an account to join the conversation.

More
08 May 2023 10:00 #270913 by JPL
Replied by JPL on topic Help with homing

... Actually the X and Y axis are a bit off, by 0.2mm and it's causing me troubles. ...

 


This is possibly because you did not specify HOME_FINAL_VEL. Without this the last move is made at maximum velocity and probably overshoot the position. (see here: linuxcnc.org/docs/stable/html/config/ini...html#_home_final_vel)

Please Log in or Create an account to join the conversation.

More
08 May 2023 10:12 #270914 by JPL
Replied by JPL on topic Help with homing

.. my table is moving to Z-1, X-221 and Y-57 after the home switches are triggered as it should be but, is not setting the trigger points as 0

 

I'm not sure I understand where you wan the 0 to be but I see that you have HOME_OFFSET = 0.50. This will set the 0 (home) to be 0.5mm away from the limit switches. If you want the 0 where the limit switches are triggered then HOME_OFFSET should be 0.

Is this what you want?
(Disclaimer: 5:00AM here, my brain may be slightly dysfunctional at this time)
 

Please Log in or Create an account to join the conversation.

More
08 May 2023 10:48 - 08 May 2023 11:11 #270918 by Dimitrios2
Replied by Dimitrios2 on topic Help with homing
Hi,
Then why I'm able to pass the 0.5 without triggering the soft limit switches neither getting an error message to the end of travel? Isn't the home offset the end of travel after homing?

My home and hard limit switches are shared. I was expecting the table to be stopped before I hit the limit switches after homing.

P.S. Funny, I've tested by approaching slowly the switches and it worked. Now if I back off and go even faster it's working as expected. The machine is stopping where it should. I don't know, let me tested a bit more and I will come back if need it.
Last edit: 08 May 2023 11:11 by Dimitrios2.

Please Log in or Create an account to join the conversation.

More
08 May 2023 11:14 #270919 by Dimitrios2
Replied by Dimitrios2 on topic Help with homing
Sorry, I figure it out. My home switch was a bit loose.
The following user(s) said Thank You: joekline9

Please Log in or Create an account to join the conversation.

Time to create page: 0.099 seconds
Powered by Kunena Forum