- Posts: 3410
- Thank you received: 0
Gscreen - a GTK / Glade / Python based screen
andypugh wrote:
And I forget to pre-select so often that I am probably going to edit Axis on my lathe to have two separate buttons.cmorley wrote: AXIS uses touch-off and you pre-select whether its for origin setting or tool setting.
(Because if you get it wrong, the whole tool table ends up wrong)
I had that problem so much that I added some pyvcp buttons to do the touch off using G code.
John
Please Log in to join the conversation.
first:
Yes, Gscreen is very easy to customize!
Thanks Chris for giving an name to my custom screen.
From now on it will be called Gmoccapy
(G for Gscreen, mocca for the layout I borrowed an py for Python sound good.
By the way is there anybody willing to test?
You van get the latest from mah git (moccapy_master)
I had the tool editor on my ToDo list!
Better you do the work
I am missing on that page the button to select a tool.
After powering your machine it is needed to set a certain tool,
i.e. the edge finder, but you will have to distinguish two situations,
First situation:
The tool is mounted already in the spindle,
so you will have to give an M61 Q5 to set tool 5
without doing any move off the machine.
I am doing that with a button getting the value from the entry dialog.
The second situation:
There is no tool in the spindle, but you need to get it from the changer,
so you will have to enter T5 M6 resulting
in machine movement.
I do this with an MDI command.
(shouldn't sending any MDI command from a button be integrated in gscreen?)
I couldn' find a function "self.command.mdi("MDI STRING").
Both should only be allowed if machine is in all_homed state!
I was dreaming from an tool editor page where I can just select the tool highlighting the line and press a button!
So the error messages "requested tool 99 not found in the tool table" is gone.
Next question to answer:
For a tool change you have to give first G40 to unselect cutter radius compensation,
then you select the tool and after that you will have to give an G43
to activate tool length compensation.
Should we include this steps in gscreen, or shell this be done in an remap procedure?
(At the moment I have to do it in any gcode program)
I also got a suggestion for the entry dialog.
Why not give the user the possibility to preset the values in the preferences page?
I am making this for the axis touch off buttons, because I use a lot my edge finder with 10 mm diameter,
so the axis X and Y have to be set to -5 mm after touching the workpiece and to touch the Z high I use
an high measure block with have 50 mm when the indicator shows "0".
I just sore the entered values in the preference file.
This could be done also for spindle speed an so on. But do we need really the math functions? I don't think so!
Norbert
Please Log in to join the conversation.
I just found:
Entering a non float value in the tool table Z length will give an python exception!
I entered -153,345 (note the "," instead ".") In germany we are used to give values with "," as decimal separator.
Can you add a replace , by . function?
Norbert
Please Log in to join the conversation.
newbynobi wrote: Entering a non float value in the tool table Z length will give an python exception!
I entered -153,345 (note the "," instead ".") In germany we are used to give values with "," as decimal separator.
Are you sure that setting the locale doesn't fix that?
Please Log in to join the conversation.
do you mean setting my computer to English locale?
Mine is De_de set to German.
The same happen also in axis.
Norbert
Please Log in to join the conversation.
gremlin is not indicating the tool path correct:
I attached two files (I can't attach them as attachment), please run first
Gmoccapy_two_tools_with_compensation.ngc
and then
differnt_speeds.ngc
Look on the tool path.
At the first run you can see very well, that the tool is running on the inside!
Now take a look on the second program, ok on the outside, also OK
and now just reload the first program and run it, and look on the tool path!
What is this? The tool runs on different paths.
The real movement is fine!
Norbert
Please Log in to join the conversation.
In that case I would have expected a comma-separator to work. (and the fact that is doesn't sounds like a bug)newbynobi wrote: do you mean setting my computer to English locale?
Mine is De_de set to German.
Please Log in to join the conversation.
gmoccapy
now.
Should this be the final name?
Norbert
Please Log in to join the conversation.
I didn't program it. Never thought of it.
Actually the calculator widget doesn't either.
Though Gscreen, it's self has been programmed for locale but I have not tested it much.
I need a running bug / feature list - as I can't get to all this right away.
I'll try to remember to look into these.
Please Log in to join the conversation.
newbynobi wrote: So, everything has been renamed to
gmoccapy
now.
Should this be the final name?
Norbert
mmm G i'd like some MOCCA PY...
gmocca_py
g_mocca_py
It's your screen - call it as you like
I like the play on mocca pie
i was going to recommend you put all the image files in a folder so it is easier to copy them into another folder.
Chris M
Please Log in to join the conversation.
