Gscreen force to mm and homed
17 Apr 2016 19:46 #73502
by terkaa
Gscreen force to mm and homed was created by terkaa
Hi,
I would like to know if it is possible to force mm/inch button to mm mode at loading Gscreen also I will be using absolute encoders do I would like to be "homed" at start. Any pins for these that can be set to 1 at HAL ?
Tero
I would like to know if it is possible to force mm/inch button to mm mode at loading Gscreen also I will be using absolute encoders do I would like to be "homed" at start. Any pins for these that can be set to 1 at HAL ?
Tero
Please Log in or Create an account to join the conversation.
18 Apr 2016 09:26 #73513
by andypugh
You might be able to just use NO_FORCE_HOMING in the INI file:
linuxcnc.org/docs/2.7/html/config/ini-config.html#_traj_section (bottom of the [TRAJ] section.
You can configure immediate homing by setting home search and home latch velocities to zero for each axis.
That still needs you to press the "Home" button, but there is a HAL pin for that too, which could be linked to the machine-on signal or similar.
Replied by andypugh on topic Gscreen force to mm and homed
I will be using absolute encoders do I would like to be "homed" at start. Any pins for these that can be set to 1 at HAL
You might be able to just use NO_FORCE_HOMING in the INI file:
linuxcnc.org/docs/2.7/html/config/ini-config.html#_traj_section (bottom of the [TRAJ] section.
You can configure immediate homing by setting home search and home latch velocities to zero for each axis.
That still needs you to press the "Home" button, but there is a HAL pin for that too, which could be linked to the machine-on signal or similar.
Please Log in or Create an account to join the conversation.
18 Apr 2016 09:34 - 18 Apr 2016 09:35 #73514
by terkaa
Replied by terkaa on topic Gscreen force to mm and homed
Ok,
What is this Hal pin that can be used for this? (I believe that was the actual question here )
Tero
What is this Hal pin that can be used for this? (I believe that was the actual question here )
Tero
Last edit: 18 Apr 2016 09:35 by terkaa.
Please Log in or Create an account to join the conversation.
18 Apr 2016 10:07 - 18 Apr 2016 10:08 #73517
by andypugh
halui.joint.N.home
Part of halui: linuxcnc.org/docs/2.7/html/man/man1/halui.1.html
halui runs in userspace, so be aware that it isn't ideal for time-critical functions. But auto-homing isn't time-critical.
Replied by andypugh on topic Gscreen force to mm and homed
What is this Hal pin that can be used for this? (I believe that was the actual question here
halui.joint.N.home
Part of halui: linuxcnc.org/docs/2.7/html/man/man1/halui.1.html
halui runs in userspace, so be aware that it isn't ideal for time-critical functions. But auto-homing isn't time-critical.
Last edit: 18 Apr 2016 10:08 by andypugh.
The following user(s) said Thank You: terkaa
Please Log in or Create an account to join the conversation.
18 Apr 2016 10:38 #73518
by terkaa
Replied by terkaa on topic Gscreen force to mm and homed
Ok,
This is good info. Now I still have figure out how to make mm default and disable inch button. I believe it is time to learn some glade UI...
Tero
This is good info. Now I still have figure out how to make mm default and disable inch button. I believe it is time to learn some glade UI...
Tero
Please Log in or Create an account to join the conversation.
18 Apr 2016 10:43 - 18 Apr 2016 10:43 #73519
by andypugh
Replied by andypugh on topic Gscreen force to mm and homed
What do you have in [TRAJ]LINEAR_UNITS ?
linuxcnc.org/docs/2.7/html/config/ini-config.html#_traj_section
I would have expected the GUI to look at that.
linuxcnc.org/docs/2.7/html/config/ini-config.html#_traj_section
I would have expected the GUI to look at that.
Last edit: 18 Apr 2016 10:43 by andypugh.
Please Log in or Create an account to join the conversation.
18 Apr 2016 10:50 #73520
by terkaa
Replied by terkaa on topic Gscreen force to mm and homed
Hi,
There is mm/inch button on top right corner of Gscreen. I believe it affects only to DRO readings. Inches are not needed here so it will only cause confusion if I leave it there....
Tero
There is mm/inch button on top right corner of Gscreen. I believe it affects only to DRO readings. Inches are not needed here so it will only cause confusion if I leave it there....
Tero
Please Log in or Create an account to join the conversation.
18 Apr 2016 18:08 #73554
by terkaa
Replied by terkaa on topic Gscreen force to mm and homed
Ok, so I changed mm/inch button from visible to unvisible with Glade and toggled metric from Gscreen preferences. That made the trick there. Modding hal file like this made homing unneeded:
net x-is-home halui.joint.0.home halui.joint.1.home halui.joint.2.home halui.joint.5.home halui.machine.is-on
Tero
net x-is-home halui.joint.0.home halui.joint.1.home halui.joint.2.home halui.joint.5.home halui.machine.is-on
Tero
Please Log in or Create an account to join the conversation.
Time to create page: 0.074 seconds