command to home Y axis

More
27 Mar 2018 01:40 #107939 by lorenzn
Is there a command-line way to home only the y axis? I'm configuring proximity switches and would like to repeat homing. The manual mentions axis-remote but I don't see the available commands.

AXIS Help->Quick reference says the Home key will 'Send active joint home'. This does work for X and Z for me but nothing for Y. I'm using the master branch with KINEMATICS = trivkins coordinates=XYYZ.

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

More
27 Mar 2018 01:57 #107940 by DanMN
Replied by DanMN on topic command to home Y axis
I haven't found a way to do that - it seems the homing sequence is fairly "canned", without a lot of flexibility until it is homed. While you're fiddling with the prox switches, you could set HOME for Z and X to be just barely backed off their own switches, then when you go to repeat the homing sequence to tweak Y, the X and Z will zip through their sequence in a couple of seconds, with the gantry homing starting just after that.

I
The following user(s) said Thank You: lorenzn

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

More
27 Mar 2018 02:55 - 27 Mar 2018 03:01 #107941 by dgarrett
Replied by dgarrett on topic command to home Y axis
The LinuxCNC master branch (2.8~pre) includes a simulation
config for a gantry with two joints (motors) driving a
single axis (coordinate letter).

The configuration is available from the Configuration
Selector as:
configs/sim/axis/gantry

No special hardware is needed (it's a simulation).

You can experiment with this axis-gui-based config to show
both 'Home All' and individual joint homing (and unhoming):
  1) Home All ------------ a  main screen button
  2) Machine/Homing/ ----- menu dropdown
  3) Machine/Unhoming/ --- menu dropdown

Note that when joints are synchronized (using negative
HOME_SEQUENCE numbers), the synchronized joints
are always homed together (not individually). Synchronized
joints cannot be jogged prior to homing but the corresponding
axis coordinate can be jogged after homing of course.

Using the trivkins specifier kinstype=both helps to clarify
the distinctions of joints and axis letters in this sim config.

Important notes for configuring machines with nontrivial kinematics
(including gantries with two motors for a single coordinate)
are at:

linuxcnc.org/docs/devel/html/getting-sta...dating-linuxcnc.html

and especially:
linuxcnc.org/docs/devel/html/getting-sta..._axes_specifications


More information on the trivkins kinematics module are in the man
page ($ man trivkins) or at:

linuxcnc.org/docs/devel/html/man/man9/trivkins.9.html


Excerpts from configs/sim/axis/gantry.ini:
[KINS]
JOINTS = 4
KINEMATICS = trivkins coordinates=XYZY kinstype=BOTH
# Notes:
#  KINEMATICS coordinates=value  MUST agree with [TRAJ]COORDINATES
#
#  X: JOINT_0
#  Y: JOINT_1 and JOINT_3
#  Z: JOINT_2
#
#  kinstype=BOTH specifies non-identity kinematics
#
#  HOME ALL sequence:
#  HOME_SEQUENCE  0 (first)  JOINT_0             (coordinate X)
#  HOME_SEQUENCE -1 (second) JOINT_1 and JOINT_3 (coordinate Y)
#  HOME_SEQUENCE  2 (third)  JOINT_2             (coordinate Z)
#  The negative (-1) sequence indicates synchronization of
#  the final move for all joints in the sequence
...
[HAL]
HALFILE = gantrysim.hal
HALFILE = sim_spindle_encoder.hal
HALFILE = simulated-gantry-home.hal
...
[TRAJ]
COORDINATES = XYZY
Last edit: 27 Mar 2018 03:01 by dgarrett.
The following user(s) said Thank You: Mike_Eitel, lorenzn

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

More
28 Mar 2018 01:30 #108016 by lorenzn
Replied by lorenzn on topic command to home Y axis
I tested configs/sim/axis/gantry.ini. To home only Y I can switch to joint mode, then select joint 1, then home. After homing it reverts back to World mode automatically where I can jog Y. After jogging Y, the key sequence to home Y again is then:
$, 1, Home, Enter

I will update my config similar to this.

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

More
28 Mar 2018 01:57 #108017 by DanMN
Replied by DanMN on topic command to home Y axis
The setting "kinstype= both" will give you options to jog in individual joint mode - but I don't think it's going to serve your purposes.

Homing is the process by which two coordinated joints are recognized as an axis - so there is no "Y axis" until homing of the two joints that comprise the Y axis is complete. You will be able to move the right and left sides of your ganty one at a time - but this can totally mess things up, racking, bending and possibly breaking your gantry. Until a coordinated homing cycle is complete you will remain in Joint Mode - only after successfully homing will the controller combine the two joints and switch to World Mode, where your axes earn their letter names.

Just be careful out there!

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

More
28 Mar 2018 02:52 - 28 Mar 2018 02:55 #108018 by dgarrett
Replied by dgarrett on topic command to home Y axis

You will be able to move the right and left sides of your
ganty one at a time

Incorrect.
As mentioned earlier:

Synchronized joints cannot be jogged prior to homing but
the corresponding axis coordinate can be jogged after homing of
course.


This behavior is documented in the section on HOME_SEQUENCE (3.10):
in the chapter on 'Homing Configuration'. Excerpt:

Joint mode jogging of joints having a negative HOME_SEQUENCE
is disallowed. In common gantry applications, such jogging can lead
to misalignment (racking). Note that conventional jogging in
world coordinates is always available once a machine is homed.


Ref: linuxcnc.org/docs/devel/html/config/ini-homing.html
linuxcnc.org/docs/devel/html/config/ini-....html#_home_sequence

Some machines with complex kinematics require a calibration
procedure to jog joints prior to homing but the homing final
moves must be synchronized. This can be accomplished by changing
the HOME_SEQUENCE settings temporarily but provisions must be
made to inhibit homing under these conditions. The inifile
HOME_SEQUENCE items can be altered between runs or one can use a
different inifile for the calibration procedures. A method using
hal logic for doing this within a running system is described in
'3.14. Inhibiting Homing' in the referenced docs Homing
Configuration chapter.

Ref: linuxcnc.org/docs/devel/html/config/ini-...l#_inhibiting_homing
Last edit: 28 Mar 2018 02:55 by dgarrett.

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

More
28 Mar 2018 03:08 #108019 by DanMN
Replied by DanMN on topic command to home Y axis
That must have disappeared from a later release of 2.8pre - since the version I started on allowed the right and left to move independently. I did it quite a bit during early setup. I have since both upgraded and stopped using kinstype= both, so I didn't notice the change. Sorry for the disinformation!

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

More
28 Mar 2018 03:33 #108021 by dgarrett
Replied by dgarrett on topic command to home Y axis

release of 2.8pre

There are *no* releases of the master branch (2.8~pre).
Changes are made on an ongoing basis and may occasionally
break things or alter behavior.

Users building from git can monitor commits from
the command line ('$ git fetch' for instance); users
using deb packages from the buildbot may need to
monitor commit messages as the buildbot makes debs
when new commits are made.

Developers try to maintain the 'Updating' docs when
signficant behaviors are changed:

linuxcnc.org/docs/devel/html/getting-sta...dating-linuxcnc.html

However, the best information about the state of the master branch
is attained by monitoring the commit messages made with
each commit.

Ref: github.com/LinuxCNC/linuxcnc/commits/master

Users need to understand the potential instabilities and
the risk inherent in any software particularly a code
with ongoing development.

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

More
29 Mar 2018 01:56 #108055 by lorenzn
Replied by lorenzn on topic command to home Y axis
I set up my config like the example gantry except it's XYYZ.

I find I can home Y through the menu (in either World mode or Joint mode) Machine->Homing->Home Joint 1 (Sequence -1 SYNC)
or Home Joint 2 (Sequence -1 SYNC)

The Home shortcut key, however, does not work in World mode. If pressed, there is a message in the terminal "home_joint <y> Use joint mode for homing".

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

More
29 Mar 2018 02:08 #108057 by dgarrett
Replied by dgarrett on topic command to home Y axis
To use the 'Home' key in world mode, you will need to return to joint mode first.
In the axis gui, you can toggle between world and joint mode with the '$' key.

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

Time to create page: 0.173 seconds
Powered by Kunena Forum