Gscreen force to mm and homed

More
17 Apr 2016 19:46 #73502 by terkaa
terkaa created the topic: Gscreen force to mm and homed
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
More
18 Apr 2016 09:26 #73513 by andypugh
andypugh replied the topic: Gscreen force to mm and homed

terkaa wrote: 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.
More
18 Apr 2016 09:34 - 18 Apr 2016 09:35 #73514 by terkaa
terkaa replied the 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
Last Edit: 18 Apr 2016 09:35 by terkaa.
More
18 Apr 2016 10:07 - 18 Apr 2016 10:08 #73517 by andypugh
andypugh replied the topic: Gscreen force to mm and homed

terkaa wrote: 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
More
18 Apr 2016 10:38 #73518 by terkaa
terkaa replied the 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
More
18 Apr 2016 10:43 - 18 Apr 2016 10:43 #73519 by andypugh
andypugh replied the 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.
Last Edit: 18 Apr 2016 10:43 by andypugh.
More
18 Apr 2016 10:50 #73520 by terkaa
terkaa replied the 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
More
18 Apr 2016 18:08 #73554 by terkaa
terkaa replied the 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
Time to create page: 0.191 seconds
Powered by Kunena Forum