Gscreen - a GTK / Glade / Python based screen

More
12 Jan 2013 16:54 #28621 by cmorley
pushed some of the discussed changes.

No cycles start pin or offsets page yet... but system tab unlock code is there (the unlock code is 123)

Chris M

Please Log in or Create an account to join the conversation.

More
13 Jan 2013 02:01 - 13 Jan 2013 02:02 #28630 by cmorley
So I think i would like to build the offsets page as a HAL widget so others can use it in their own screens.
Just wondering what people think it should look like and include.

I could build a label widget that displays a single user selectable offset (just like the DRO widget)
Or could build a widget that displays all the current available offsets ( I would probably make one for all G5x offsets and one for G92 offsets)
and where does tool length fall in there? do we need a widget for that too?

The single label widget is the most flexible but of course and is the most work for the user to build in the GLADE file.
The all offsets widget is quick to use but only displays in a limited way.


Related to this is in Gscreen I still need to set up fixture offsets aka tooltable reference setting.
I'm thinking that having the 'fixture touchoff' button on either the offsets page or the tooltable page would make sense.
So that the origin offset button is on the setup page (as it is now) and then the tooltable reference button would be on a page you would need to be on anyways.

I don't like to use the same button for two different procedures (as AXIS does)

Opinions?
Last edit: 13 Jan 2013 02:02 by cmorley.

Please Log in or Create an account to join the conversation.

More
13 Jan 2013 08:20 #28634 by cmorley
In reference to a cycle start button:

I have to decide on behaviour for run-at-line.

Do we select the line with run-at-line dialog then use cycle start or
Do we select the line with run-at-line dialog and start the cycle from that dialog button?

Please Log in or Create an account to join the conversation.

More
13 Jan 2013 09:34 #28636 by cmorley
Well I pushed the cycle-start work.

as it stands this is how it (hopefully) works:

the pin name is gscreen.cycle-start

If in MDI mode the command in the MDI text box will execute.
if in AUTO mode the program will either start at line 0 or if linuxcnc is already paused it will step the program.

Note this stepping behaviour is different from the on screen buttons (there is a separate single-step button)
I actually like this better and am considering changing the on screen buttons to match.

Also note. as it stands now, run-at-line will start the program without the cycle-start button being pressed.

Chris M

Please Log in or Create an account to join the conversation.

More
13 Jan 2013 18:52 - 13 Jan 2013 21:35 #28646 by newbynobi
Hallo Chris,


will "Start of Line" check the code in front of the startline?
This will be needed!

Otherwise the machine may begin it's work without coolant and a stopped spindle.
Also the position may be incorrect, if the program contains G53 steps and some other stuff may occur.
We discussed that matter in the german mocca thread and mocca do check all lines from the beginning of the program, sets the G and M values and reaches then the strartline, now the G Code is transmitted to the interpreter, all other code is gone to a cero device. So all start parameters should be set up correctly.

If you build an offset screen, have you thought about an touch off screen to?
Are you able to integrate an touch off dialog to calculate the angle error of the position of the workpiece?
I meen an angle error of the workpiece to the table axis.

I added the touch off dialog of original mocca.

Regards Norbert

P.S. Kantentaster Durchmesser = diameter of the touch off tool (will be taken in care when touching)
Attachments:
Last edit: 13 Jan 2013 21:35 by newbynobi. Reason: errors

Please Log in or Create an account to join the conversation.

More
14 Jan 2013 01:15 #28658 by newbynobi
Hallo,

now the new computer is working!
AMD64-4800 with 2 GB Ram and an GeForce 9600GT and 17" Touchscreen.
Now gscreen is running well!

I just play a little around with gscreen (default screen) and I got two questions:

- Where can I set the feed rate? I know I can set it with an MDI Command, but how to do it on an touch screen?
clicking in the MDI Input label should open an screen as it does in the entry spin box.
(Launch Keyboard do not work)

- I like the function "Move To", but it reduces the feed rate to 60, this is in metric very sow!
Just do enter F300 in MDI, then 250 in the entry box and then move to.

And how can I get rid of the big dial showing the spindle rpm?

Norbert

Please Log in or Create an account to join the conversation.

More
14 Jan 2013 02:15 #28659 by cmorley
If you are seeing a velocity of 60 then you must be in inch mode (unless I'm missing a bug)
the button on the top right tells you what metrics you are using at the moment. you can press it to change.
If you want gscreen to always start in metric mode then select metric in the preference page.
The Gscreen will always start in metric mode but you can always change it with the upper right button

to set manual feedrates select 'set overrides' ( I know not a very clear name )
now select jog rate
use the +- keys to adjust up or down
use the 'set at' key to set the rate at the entrybox number.

Hmm it seems you can't set the default jog velocity - I will fix this
There seems to be some conversion error too I will look into this ( I confess I don't test metric enough )

As for the launch keyboard button. What version of Ubuntu are you using Onboard is the name of the keyboard program.
It should be on 10.04 and 12.04, possibly in 8.04 too.
open a terminal and enter 'onboard' and see what it says
MDI requires a full keyboard and that is what Onboard is for I am not interested in building a keyboard dialog screen.

'Move to' should use the current jog rate.

The sample Gscreen config has added gladeVCP panels (thats what the spindle dial is from)
in the INI file remove these lines:

EMBED_TAB_NAME = Embedded 1
EMBED_TAB_LOCATION = vcp_box
EMBED_TAB_COMMAND = gladevcp -x {XID} -t Redmond vcp_box.glade

EMBED_TAB_NAME = Embedded 2
EMBED_TAB_LOCATION = notebook_mode
EMBED_TAB_COMMAND = gladevcp -x {XID} -t Redmond gladevcp-test.ui

now both the VCP panels are gone.
There is also some sample popup message dialogs that you don't need:

remove:

MESSAGE_BOLDTEXT =NONE
MESSAGE_TEXT = This is a statusbar test
MESSAGE_TYPE = status
MESSAGE_PINNAME = statustest

MESSAGE_BOLDTEXT = NONE
MESSAGE_TEXT = This is a yes no dialog test
MESSAGE_TYPE = yesnodialog
MESSAGE_PINNAME = yndialogtest

MESSAGE_BOLDTEXT = This is the short text
MESSAGE_TEXT = This is the longer text of the both type test. It can be longer then the status bar text
MESSAGE_TYPE = okdialog status
MESSAGE_PINNAME = bothtest

Chris M

Please Log in or Create an account to join the conversation.

More
14 Jan 2013 08:34 #28668 by cmorley

Hallo Chris,


will "Start of Line" check the code in front of the startline?
This will be needed!

Otherwise the machine may begin it's work without coolant and a stopped spindle.
Also the position may be incorrect, if the program contains G53 steps and some other stuff may occur.
We discussed that matter in the german mocca thread and mocca do check all lines from the beginning of the program, sets the G and M values and reaches then the strartline, now the G Code is transmitted to the interpreter, all other code is gone to a cero device. So all start parameters should be set up correctly.

If you build an offset screen, have you thought about an touch off screen to?
Are you able to integrate an touch off dialog to calculate the angle error of the position of the workpiece?
I meen an angle error of the workpiece to the table axis.

I added the touch off dialog of original mocca.

Regards Norbert

P.S. Kantentaster Durchmesser = diameter of the touch off tool (will be taken in care when touching)


No I wasn't planning on having run-at-line go through the gcode to set spindle etc.
I think that is a great idea - the Lathe I used at work did that.
I'd like to know how successful that is with really fancy gcode with O words and remaps etc in it.

A probing screen would be nice too but I will wait on that.

Chris M

Please Log in or Create an account to join the conversation.

More
14 Jan 2013 08:40 #28670 by cmorley
pushed some new stuff:
-at speed indicator displays the commanded spindle speed
-Gscreen now honours the default jog speed in the INI file
- all the sample screens except gaxis have an alarm page now
- The alarm page records when the control was launched and whe the machine is estopped and machine turned on
- You can set the display cycle time in the INI file. A slower computer may work better with a larger cycle time. default is 100 milliseconds

Chris M

Please Log in or Create an account to join the conversation.

More
14 Jan 2013 16:44 #28676 by cncbasher
heck slow down Chris , before you burn out ... haha
looking good , great additions

Please Log in or Create an account to join the conversation.

Time to create page: 0.312 seconds
Powered by Kunena Forum