HowTo configure Homing

More
21 Feb 2019 20:02 #126873 by Ewok2
HowTo configure Homing was created by Ewok2
Hi
I have a CNC control by a Mesa 7I96.
It works fine.
But I would like to add a automatic homing.
I have performe the wiring modification.
Now I have to HAL sensor connect to the IO of the mesa card.

Did you now a nice HowTo document to add the homing function ?
I have try to look but I only found the LinuxCnC documentation that explain everything which is to complicate for the beginning :-)

Thanks

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

More
22 Feb 2019 07:49 #126890 by pl7i92
Replied by pl7i92 on topic HowTo configure Homing
its quite easy
if you use the configuration TOOL
github.com/jethornton/7i96

THE Inputs standard firmware maps GPIO 0..10 to 7I96 TB3 inputs 0..10
YOU can check by
halrun
loadrt hostmot2
loadrt hm2_eth board_ip=192.168. your ip

show pin

OR on running System as you said
FIRST Check the Signal in your Halmeter if it gets on off by hand
CHECK by the PIN of the 7i96

THEN the SAME as the Output with the extra not you can reverse the input
net homein <= YOUR PIN
net home-y <= parport.0.pin-12-in-not
net home-xz <= parport.0.pin-13-in
net all-limit <= hm2_7i96.0.gpio.000.in
and on the AXIS or Joint in the HAL yoiu set

THEN the out to the AXES as
net home-xz => axis.0.home-sw-in or the name you gave
net all-limit <= hm2_7i96.0.gpio.000.in
#
net all-limit => axis.0.home-sw-in
net all-limit => axis.1.home-sw-in
net all-limit => axis.2.home-sw-in

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

More
22 Feb 2019 09:20 #126899 by Ewok2
Replied by Ewok2 on topic HowTo configure Homing
Thanks for Reply

So I have :
Clone the configuration tools
Use it by assign Input to Joint Home
check in the running linuxCnC with Hal meter that
- hm2_7i96.0.gpio.000.in change to TRUE when the magnet is in position for X axis
- joint.0.home-sw-in change to TRUE when the magnet is in position for X axis

- hm2_7i96.0.gpio.001.in change to TRUE when the magnet is in position for Y axis
- joint.1.home-sw-in change to TRUE when the magnet is in position for Y axis

For the moment I do not home the Z axis...

But now I am not sure to understand what you mean with :
- THEN the SAME as the Output with the extra not you can reverse the input ?
- THEN the out to the AXES ?

Thanks

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

More
22 Feb 2019 19:07 #126934 by pl7i92
Replied by pl7i92 on topic HowTo configure Homing
so this is fine now the INI

Mashine is on metric

##############
ALL in mm
#############
[AXIS_X]
MIN_LIMIT = -0.5
MAX_LIMIT = 710.0
MAX_VELOCITY = 60.0
MAX_ACCELERATION = 200.0

[JOINT_0]

TYPE = LINEAR
HOME = 5.0
MAX_VELOCITY = 60.0
MAX_ACCELERATION = 200.0
STEPGEN_MAXACCEL = 225.0
SCALE = 100.0
FERROR = 1
MIN_FERROR = .25
MIN_LIMIT = -0.5
MAX_LIMIT = 710.0
HOME_OFFSET = 0.000000
HOME_SEARCH_VEL = 8.000000
HOME_LATCH_VEL = 2.000000
HOME_FINAL_VEL= 4
HOME_SEQUENCE = 0

[AXIS_Y]
MIN_LIMIT = -0.5
MAX_LIMIT = 516.0
MAX_VELOCITY = 60.0
MAX_ACCELERATION = 220.0

[JOINT_1]

TYPE = LINEAR
HOME = 510.0
MAX_VELOCITY = 60.0
MAX_ACCELERATION = 220.0
STEPGEN_MAXACCEL = 250.0
SCALE = 100.0
FERROR = 1
MIN_FERROR = .25
MIN_LIMIT = -0.5
MAX_LIMIT = 516.0
HOME_OFFSET = 515.0
HOME_SEARCH_VEL = -8.000000
HOME_LATCH_VEL = -2.000000
HOME_FINAL_VEL= 4
HOME_SEQUENCE = 1

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

More
22 Feb 2019 19:21 #126938 by Ewok2
Replied by Ewok2 on topic HowTo configure Homing
So you mean with the tools I have set the configuration in the hal file.
And I have just to modify my ini file ?
And you provide your ini file, so I just have to add the
HOME_OFFSET
HOME_SEARCH_VEL
HOME_LATCH_VEL
HOME_FINAL_VEL
HOME_SEQUENCE

With some value and it should works ?

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

More
22 Feb 2019 19:25 #126940 by PCW
Replied by PCW on topic HowTo configure Homing
Basically yes, you need to set these values for all axis in your .ini file

The definitions of these values, and how they affect homing are described here:

linuxcnc.org/docs/html/config/ini-homing.html

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

More
22 Feb 2019 19:33 #126941 by Ewok2
Replied by Ewok2 on topic HowTo configure Homing
Ok thanks
I think I begin to understand better this page now :-)
And will the homing be perform automaticly at power on ? or do I have to use the LinuxCnC to activate it ?

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

More
22 Feb 2019 19:36 #126942 by Ewok2
Replied by Ewok2 on topic HowTo configure Homing
Stupid question ... I just perform the test :-)
And it does not start automaticly...

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

More
22 Feb 2019 19:49 #126944 by PCW
Replied by PCW on topic HowTo configure Homing
You _can_ home automatically (when LinuxCNC in changed to machine-on state) but for many machines, this is quite dangerous...

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

More
22 Feb 2019 20:08 #126946 by Ewok2
Replied by Ewok2 on topic HowTo configure Homing
I belive you but I am also curious :-)
Could you explain wy is it dangerous ?

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

Moderators: PCWjmelson
Time to create page: 0.359 seconds
Powered by Kunena Forum