Gscreen - a GTK / Glade / Python based screen

More
13 years 8 months ago #29644 by BigJohnT

andypugh wrote:

cmorley wrote: AXIS uses touch-off and you pre-select whether its for origin setting or tool setting.

And I forget to pre-select so often that I am probably going to edit Axis on my lathe to have two separate buttons.
(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.

More
13 years 8 months ago #29654 by newbynobi
Hallo Chris and all the others,

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.

More
13 years 8 months ago #29655 by newbynobi
Hallo Chris,

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.

More
13 years 8 months ago #29656 by andypugh

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.

More
13 years 8 months ago #29657 by newbynobi
@andypugh,

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.

More
13 years 8 months ago #29658 by newbynobi
Next I found:

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
Code:
; Gmoccapy_2_tools_with_compensation.ngc ; Testprogramm um mit zwei Werkzeugen Kreise zu fräsen ; Grundparameter einstellen G17 G21 G54 G61 G40 G49 G80 G90 ; 1. Testwerkzeug holen T3 M6 G43 G0 Z30 ; fahre in die Mitte des Werkstückes G0 Y50 G0 X50 ; Spindel einschalten S3000 M3 G0 Z10 F250 G1 Z0 ; Werkzeugradienkompensation ein ; Anfahrradius mit Eintauchgeschwindigkeit G41 G3 X70 Y 50 Z-1 I10 J0 ; 1. Kreis mit Vorschubgeschwindigkeit fräsen F1000 G3 I -20 ; Aus dem Werkstück G3 X50 Y 50 Z1 I-10 J0 G0 Z 30 ; Kein Werkzeugwechsel möglich wenn Fräserradienkorrektur eingeschaltet G40 T1 M6 G43 G0Z 10 ; fahre in die Mitte des Werkstückes G0 Y50 G0 X50 ; Spindel einschalten S6000 M3 G0 Z10 F250 G1 Z1 ; Werkzeugradienkompensation ein ; Anfahrradius mit Eintauchgeschwindigkeit G41 G3 X65 Y 50 Z-1 I7.5 J0 ; 2. Kreis mit Vorschubgeschwindigkeit fräsen F1000 G3 I -15 ; Aus dem Werkstück G3 X50 Y 50 Z1 I-7.5 J0 G0 Z 30 G0 Z 30 G0 Y 50 G0 X 50 M5 M2
Code:
; different_speeds.ngc ; Grundparameter einstellen G17 G21 G54 G61 G40 G49 G80 G90 ; 1. Testwerkzeug holen T3 M6 G43 S2500 M3 G42 F5000 G01 X0 Y0 Z30 G00 X0 Y0 Z0 G01 X100 F500 G01 Y100 F400 G01 X0 F300 G01 Y0 F250 G0 Z 30 G0 Y 50 G0 X 50 G40 G49 M5 M2

Please Log in to join the conversation.

More
13 years 8 months ago #29659 by andypugh

newbynobi wrote: do you mean setting my computer to English locale?
Mine is De_de set to German.

In that case I would have expected a comma-separator to work. (and the fact that is doesn't sounds like a bug)

Please Log in to join the conversation.

More
13 years 8 months ago #29663 by newbynobi
So, everything has been renamed to

gmoccapy

now.

Should this be the final name?

Norbert

Please Log in to join the conversation.

More
13 years 8 months ago #29681 by cmorley
The tool table widget doesn't know locale.
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.

More
13 years 8 months ago #29682 by cmorley

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.

Time to create page: 0.117 seconds
Powered by Kunena Forum