Gscreen - a GTK / Glade / Python based screen

More
13 years 4 months ago #35370 by dgarrett
You didn't report how you have installed linuxcnc or what version you are using.
Applying a patch can be done with the patch utility when one builds an application from source files.

Applying a patch to an installed package may not be a job that a beginner is comfortable doing but you can edit the referenced file directly as it is not compiled or relocated by a build. The + signs are additions, the - signs are deletions. In python the indentation matters (a lot).

For an install from a deb, the file referenced is probably:
/usr/share/pyshared/gladevcp/hal_gremlin.py

As installed files are not user writable, you probably need to use sudo (sudo gedit for example.
Editing mistakes can render your system unworkable and require a new install.

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

More
13 years 4 months ago #35456 by newbynobi
Hallo Chris,

there seems to be a bug in run_from_line!

Please use industrial, home the machine, load arcspiral.ngc from exapmles folder and click run_from line.

Do not delete the "0", just enter 123 and click OK.

You will see the program begins to run from line 83 instead of 123.

I could not find out why.

Norbert

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

More
13 years 4 months ago #35458 by cmorley
Nice catch
Well this is a problem with the calculator widget (which run at line uses)

the calculator widget uses eval() to parse the line for the math.
eval() thinks numbers preceded with a 0 is in octal instead of decimal it seems.

010 = 8
020= 16
021 = 17

Not sure how i can fix that easily....

Chris M

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

More
13 years 4 months ago #35462 by LAIR82
Is this only happening in "Industrial" or is it possible in regular gscreen as well?

I recall the operator on the one machine said he did a Run From Line once and it didn't start from the right line. I just figured he fat fingered the keyboard.

Thanks

Rick

Sidenote, both machines running Gscreen standard, full production for 4 weeks, and no noticeable issues yet.

Hooray!!!!

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

More
13 years 4 months ago #35463 by jlviloria
It is because that when you select the option run-from-line, is selected 0, and type in the required line erases the 0, must pass on any of GScreen skin as it is the same widget.

We always delete zero, although we had not noticed the error, we configure it by typing "enter" run a program, and so far no errors. clarified that always delete the zero. but default it is selected.


jorge

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

More
13 years 4 months ago #35464 by newbynobi
it does not matter what interface you use, it will happen on gscreen and industrial and gmoccapy too, because all of them use the same widget.

Norbert

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

Time to create page: 0.597 seconds
Powered by Kunena Forum