Home Button
- rider-83
- Offline
- Elite Member
Less
More
- Posts: 237
- Thank you received: 10
13 Mar 2021 18:06 #202122
by rider-83
Home Button was created by rider-83
No mouse, only keyboard connected:
I can drive all my Axis to the home position, but with out a mouse, how do I select HOME so I can switch to Auto mode?
Nick..
I can drive all my Axis to the home position, but with out a mouse, how do I select HOME so I can switch to Auto mode?
Nick..
Please Log in or Create an account to join the conversation.
- HansU
- Offline
- Moderator
Less
More
- Posts: 633
- Thank you received: 182
13 Mar 2021 18:20 #202124
by HansU
Replied by HansU on topic Home Button
You can home your axis' with a button connected to "halui.home-all".
Gmoccapy is designed to have a pointer device like a tochscreen or a mouse. Or to be used with physical buttons on the right and lower side: linuxcnc.org/docs/html/gui/gmoccapy.html..._bottom_button_lists
If you want to use keyboard shortcuts then AXIS would be the better choice.
Gmoccapy is designed to have a pointer device like a tochscreen or a mouse. Or to be used with physical buttons on the right and lower side: linuxcnc.org/docs/html/gui/gmoccapy.html..._bottom_button_lists
If you want to use keyboard shortcuts then AXIS would be the better choice.
Please Log in or Create an account to join the conversation.
- rider-83
- Offline
- Elite Member
Less
More
- Posts: 237
- Thank you received: 10
14 Mar 2021 14:43 #202212
by rider-83
Replied by rider-83 on topic Home Button
The lathe I'm working doesn't have any physical limit switches. I think it would be a good idea to fit one for each axis.
Would it be a simple exercise to use these switches to register as 'home' and bring gmoccapy out of it's waiting state ready for use?
I could connect each switch to pins 11 & 12 of the LPT port.
What would I need to do next?
Nick.
Would it be a simple exercise to use these switches to register as 'home' and bring gmoccapy out of it's waiting state ready for use?
I could connect each switch to pins 11 & 12 of the LPT port.
What would I need to do next?
Nick.
Please Log in or Create an account to join the conversation.
- newbynobi
- Offline
- Moderator
Less
More
- Posts: 2075
- Thank you received: 406
14 Mar 2021 16:02 #202223
by newbynobi
Replied by newbynobi on topic Home Button
You may want to use NO_FORCE_HOMING = 1 in your INI file, in [TRAJ] section, that way gmoccapy will work also without homing.
IMHO not a good idea, but possible.
If you connect home switches to LPT PORT PIN 11 and 12
you will need to add something like the following to your hal file:
Assuming you have a min limit switch you want to use also as homing switch.
And you need to set the homing order and homing positions as well as the velocities in your INI File as shown in previous post.
Norbert
IMHO not a good idea, but possible.
If you connect home switches to LPT PORT PIN 11 and 12
you will need to add something like the following to your hal file:
###############################################
# Homing and Limit switches #
# connect them to pins #
# (c) Norbert Schechner #
###############################################
# Axis-X
net min-home-x joint.0.neg-lim-sw-in <= parport.0.pin-11-in
net min-home-x => joint.0.home-sw-in
# Axis-Z
net min-home-z joint.1.neg-lim-sw-in <= parport.0.pin-12-in
net min-home-z => joint.1.home-sw-in
Assuming you have a min limit switch you want to use also as homing switch.
And you need to set the homing order and homing positions as well as the velocities in your INI File as shown in previous post.
Norbert
Please Log in or Create an account to join the conversation.
- rider-83
- Offline
- Elite Member
Less
More
- Posts: 237
- Thank you received: 10
14 Mar 2021 18:55 #202244
by rider-83
Replied by rider-83 on topic Home Button
Thanks for the HAL information, that looks like what I require. I shall try that next.
'And you need to set the homing order and homing positions as well as the velocities in your INI File as shown in previous post.'
Which previous post do you refer to?
Thanks,
Nick..
'And you need to set the homing order and homing positions as well as the velocities in your INI File as shown in previous post.'
Which previous post do you refer to?
Thanks,
Nick..
Please Log in or Create an account to join the conversation.
- HansU
- Offline
- Moderator
Less
More
- Posts: 633
- Thank you received: 182
14 Mar 2021 21:07 #202257
by HansU
Replied by HansU on topic Home Button
If you need the "homed" state, you can also home without switches. So when you select home, it is homed at the current position.
Therefore set HOME_SEARCH_VEL and HOME_LATCH_VEL to zero.
Therefore set HOME_SEARCH_VEL and HOME_LATCH_VEL to zero.
[JOINT_0]
...
HOME_SEARCH_VEL = 0
HOME_LATCH_VEL = 0
Please Log in or Create an account to join the conversation.
- newbynobi
- Offline
- Moderator
Less
More
- Posts: 2075
- Thank you received: 406
14 Mar 2021 21:32 #202262
by newbynobi
Replied by newbynobi on topic Home Button
Sorry, I mixed up two threads.
This one
Please Log in or Create an account to join the conversation.
- rider-83
- Offline
- Elite Member
Less
More
- Posts: 237
- Thank you received: 10
16 Mar 2021 18:17 #202495
by rider-83
Replied by rider-83 on topic Home Button
Is it possible for me to drive my axis (X and Z) via the keyboard cursor keys, towards the home switches, then when the switches make contact, the control registers it is at 'home'?
I'm trying to understand , but I'm finding all these different commands very confusing and complicated.
Nick..
I'm trying to understand , but I'm finding all these different commands very confusing and complicated.
Nick..
Please Log in or Create an account to join the conversation.
- newbynobi
- Offline
- Moderator
Less
More
- Posts: 2075
- Thank you received: 406
16 Mar 2021 21:30 - 16 Mar 2021 21:31 #202516
by newbynobi
Replied by newbynobi on topic Home Button
You can set your INI file to home the axis as soon as you press the home button, if you set the search vel and latch vel to zero. That way you can jog the axis to a desired position and home it there. But why to do that if you want to install home switches?
Or just set in your INI file no force homing and you are fine.
Or just set in your INI file no force homing and you are fine.
Last edit: 16 Mar 2021 21:31 by newbynobi. Reason: Typo
Please Log in or Create an account to join the conversation.
- HansU
- Offline
- Moderator
Less
More
- Posts: 633
- Thank you received: 182
16 Mar 2021 21:33 - 16 Mar 2021 21:34 #202517
by HansU
Replied by HansU on topic Home Button
If you have physical home switches - why don't you want to use the automatic homing procedure?
Edit: Haha, Norbert you were faster
Hans
Edit: Haha, Norbert you were faster
Hans
Last edit: 16 Mar 2021 21:34 by HansU.
Please Log in or Create an account to join the conversation.
Moderators: newbynobi, HansU
Time to create page: 0.067 seconds