Home all axes not working as expected on my setup

More
21 Jun 2011 19:29 #10730 by alanb
Hi,
I have reconfigured emc so that I have two alternative setups, either XYBU as axes or XYBV. This is because I have an independant cutter on the U or V axis and this reflects whether the cutter is directed along the X axis to cut perpendicular to the axis of rotation Y, or towards the Y axis for faceplate work. Everything works ok and the display is what I anticipate so no problem there.
However when I select home all axes only the X and Y axes are homed in either setup. I then have to manually home the B and U or V. Is this to be expected?
My ini file has

HOME_OFFSET = 0.0
HOME_SEQUENCE = 0

for all axes so I thought that the B and U V would be included in the sequence but they dont seem to be. So what do I have to add to the ini file to get them included?

thanks

Alan

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

More
21 Jun 2011 19:50 #10732 by BigJohnT
Do all axes have a HOME_SEQUENCE specified?

And it follows the instructions here?
www.linuxcnc.org/docview/html/config_ini_homing.html#r0_1_2

John

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

More
21 Jun 2011 19:53 #10733 by alanb
Yes,
All axes have Home_SEQUENCE = 0

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

More
21 Jun 2011 19:57 #10734 by alanb
I just changed HOME_SEQUENCE = 1 for B and U to see if that made a difference but it didnt.
My ini file is


[EMC]
MACHINE = rose
DEBUG = 0

[DISPLAY]
DISPLAY = axis
GEOMETRY = B X Y U
EDITOR = gedit
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.2
INTRO_GRAPHIC = emc2.gif
INTRO_TIME = 5
PROGRAM_PREFIX = /home/alan/emc2/nc_files
INCREMENTS = 5mm 1mm .5mm .1mm .05mm .01mm .005mm
PYVCP = custompanel.xml

USER_COMMAND_FILE = tkapp.py
TKAPP = ngcgui_app.tcl
NGCGUI = ngcgui.tcl
NGCGUI_FONT = Courier -10 normal
NGCGUI_PREAMBLE = /home/alan/emc2/nc_files/in_std.ngc
NGCGUI_SUBFILE = /home/alan/emc2/nc_files/slot.ngc
NGCGUI_SUBFILE = /home/alan/emc2/nc_files/simp.ngc
NGCGUI_SUBFILE = /home/alan/emc2/nc_files/iquad.ngc
NGCGUI_SUBFILE = /home/alan/emc2/nc_files/gosper.ngc
NGCGUI_OPTIONS = nonew noremove nonew

[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

[TASK]
TASK = milltask
CYCLE_TIME = 0.010

[RS274NGC]
PARAMETER_FILE = emc.var

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

[HAL]
HALUI = halui
HALFILE = rose.hal
HALFILE = custom.hal
POSTGUI_HALFILE = custom_postgui.hal

[HALUI]
# add halui MDI commands here (max 64)

[TRAJ]
AXES = 9
COORDINATES = X Y U B
MAX_ANGULAR_VELOCITY = 60.00
DEFAULT_ANGULAR_VELOCITY = 6.00
LINEAR_UNITS = mm
ANGULAR_UNITS = degree
CYCLE_TIME = 0.010
DEFAULT_VELOCITY = 5.00
MAX_LINEAR_VELOCITY = 30.00

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

[AXIS_0]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 10.0
MAX_ACCELERATION = 30.0
STEPGEN_MAXACCEL = 37.5
SCALE = 80.0
FERROR = 1
MIN_FERROR = .25
MIN_LIMIT = -250.0
MAX_LIMIT = 250.0
HOME_OFFSET = 0.0
HOME_SEQUENCE = 0

[AXIS_1]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 10.0
MAX_ACCELERATION = 30.0
STEPGEN_MAXACCEL = 37.5
SCALE = 80.0
FERROR = 1
MIN_FERROR = .25
MIN_LIMIT = -200.0
MAX_LIMIT = 200.0
HOME_OFFSET = 0.0
HOME_SEQUENCE = 0

[AXIS_2]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 10.0
MAX_ACCELERATION = 30.0
STEPGEN_MAXACCEL = 37.5
SCALE = 133.333333333
FERROR = 1
MIN_FERROR = .25
MIN_LIMIT = -75.0
MAX_LIMIT = 75.0
HOME_OFFSET = 0.0
HOME_SEQUENCE = 1


[AXIS_3]
TYPE = ANGULAR
HOME = 0.0
MAX_VELOCITY = 360.0
MAX_ACCELERATION = 200.0
STEPGEN_MAXACCEL = 200.0
SCALE = 17.7777777778
FERROR = 1
MIN_FERROR = .25
MIN_LIMIT = -9999.0
MAX_LIMIT = 9999.0
HOME_OFFSET = 0.0
HOME_SEQUENCE = 1

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

More
21 Jun 2011 20:08 #10735 by BigJohnT
I'm pretty sure if you skip any axis then home all stops at the last one in sequence so Y is the last one in the XYZABCUVW sequence.

COORDINATES = X Y U B

John

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

More
22 Jun 2011 00:28 #10743 by andypugh
alanb wrote:

My ini file is
...
[TRAJ]
AXES = 9
...
[AXIS_0]
...
[AXIS_1]
...
[AXIS_2]
...
[AXIS_3]


You need axis stanzas up to 7. The V axis is axis 7, which is an explicit link in the code.
You can configure the HAL to use axes 0 through 3 for the joint parameters, but other parts of EMC2 look in the iNI file too.

Axis velocity limits, home positions and home sequence need to be in the hard-coded sections

This explicit link between cartesian axes and joints is actively being removed in one of the development branches of EMC2

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

More
22 Jun 2011 16:49 #10777 by alanb
Andy,
Does this also apply to the B axis? I thought that the [AXIS 3] bit of my ini file was related to the B axis through COORDINATES. As this may answer another question I was about to ask. Even though I have changed
MAX_ANGULAR_VELOCITY to 3600.00 and DEFAULT_ANGULAR_VELOCITY to 600.00 in TRAJ and also MAX_VELOCITY and MAX_ACCELERATION in the stanza? for [AXIS_3] these values havent made any difference. My machine still rotates the spindle at about 1 degree per second and I was wondering what to do to rectify this. Is the answer to have entries for all axes 0 though 8 ? If so I may as well use the 9 axis ini file.
Thanks
Alan

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

More
22 Jun 2011 17:03 - 22 Jun 2011 17:06 #10779 by andypugh
alanb wrote:

Does this also apply to the B axis? I thought that the [AXIS 3] bit of my ini file was related to the B axis through COORDINATES.

No, as far s I know (and it is possible that it has changed) all that COORDINATES does is alter what axes get displayed. It does not do any re-mapping of axis numbers to joints. (edit) It also defines which axis words are valid in the G-code.

MAX_VELOCITY and MAX_ACCELERATION in the stanza? for [AXIS_3] these values havent made any difference. My machine still rotates the spindle at about 1 degree per second and I was wondering what to do to rectify this. Is the answer to have entries for all axes 0 though 8 ?


You can afford to leave the unused axes pretty much blank, but yes, the speed and homing for the B axis will always come from [AXIS_4]
Last edit: 22 Jun 2011 17:06 by andypugh.

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

More
23 Jun 2011 16:14 #10819 by alanb
Thanks Andy,

I did this and now all is working fine.

Alan

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

Time to create page: 0.078 seconds
Powered by Kunena Forum