How install axis mod with display of cuting parameters by D.L.?

More
27 Dec 2021 22:03 #230093 by dragon44
Came a day, in which I must come out from shadow and ask you at forum about my problem. Hello everyone ;)

I try install axis modification display parameters creating by D.L. from this topic forum.linuxcnc.org/21-axis/29735-axis-modifications?start=20 . I use debian buster with linuxcnc 2.8.2. I’m basic linuxs user, and I need help.

At the beginning i changed files axis, axis.tcl and glcanon.py, but I didn't how end this method… So I use finally solution:

In first step I downloading from this page github.com/ddotldot/linuxcnc/tree/2.8-axis-mod zip archive ( github.com/ddotldot/linuxcnc/archive/ref...ads/2.8-axis-mod.zip ).
Second step. I unpacking at terminal .zip $ unzip linuxcnc-2.8-axis-mod.zip
Third step. In  /linuxcnc-2.8-axis-mod/debian/ I must use ./configure command?
I’m stuck.
Mod is new and I can’t found any simply information at internet.

Sorry for my language.

Thanks for Your great job for Linuxcnc!

Bartek

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

More
28 Dec 2021 07:37 #230125 by D.L.
Hi.
There are 2 ways to install this mod:
1. Replace files(axis, axis.tcl and glcanon.py) in existing LinuxCNC, begins to work immediately.
2. Standard compilation from sources downloaded from: github.com/ddotldot/linuxcnc/archive/ref...ads/2.8-axis-mod.zip
linuxcnc.org/docs/devel/html/code/building-linuxcnc.html
The following user(s) said Thank You: dragon44

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

More
28 Dec 2021 08:59 #230127 by D.L.
Setup to existing LinuxCNC v 2.8.2:
cd ~
wget https://github.com/ddotldot/linuxcnc/archive/refs/heads/2.8-axis-mod.zip

unzip -t 2.8-axis-mod.zip
unzip 2.8-axis-mod.zip

sudo mv /usr/share/pyshared/rs274/glcanon.py /usr/share/pyshared/rs274/glcanon.py.orig
sudo mv /usr/share/axis/tcl/axis.tcl /usr/share/axis/tcl/axis.tcl.orig
sudo mv /usr/bin/axis /usr/bin/axis.orig

sudo cp linuxcnc-2.8-axis-mod/lib/python/rs274/glcanon.py /usr/share/pyshared/rs274/glcanon.py
sudo cp linuxcnc-2.8-axis-mod/share/axis/tcl/axis.tcl /usr/share/axis/tcl/axis.tcl

Open linuxcnc-2.8-axis-mod/src/emc/usr_intf/axis/scripts/axis.py with text editor and replace
#!/usr/bin/env python2
to
#!/usr/bin/python
and save file.
sudo cp linuxcnc-2.8-axis-mod/src/emc/usr_intf/axis/scripts/axis.py /usr/bin/axis
The following user(s) said Thank You: dragon44

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

More
28 Dec 2021 19:59 #230167 by dragon44
Hmm... Still I have problem.
First i changed files on my laptop (without LPT).
I replace my files axis, axis.tcl and glcanon.py on these:
github.com/ddotldot/linuxcnc/blob/06ecce...axis/scripts/axis.py
github.com/ddotldot/linuxcnc/blob/06ecce...re/axis/tcl/axis.tcl
github.com/ddotldot/linuxcnc/blob/06ecce...hon/rs274/glcanon.py
but was error
" Error constructing bar({'halpin': 'spindle-speed', 'max_': 3000}):
Duplicate item name 'spindle-speed' "
because I created pyvcp custompanel. I turn off pyvcp display and linuxcnc ran corect, but used old display configuration.

Maybe I've incorrect heading in axis.py, but i check
#!/usr/bin/python2 -my
#!/usr/bin/env python2
#!/usr/bin/python
but none was correct and all the time i saw old axis position at the display.

Maybe I didn't, maybe better is use standard compilation from sources - I can't broken ;D
wget -ok
unzip -t -ok
unzip -ok
sudo mv axis -ok
sudo mv axis.tcl -ok
sudo mv glcanon.py - invalid location. My location is: /usr/lib/python2.7/dist-packages/rs274/glcanon.py so I changed location i I copied file.
sudo cp axis -ok
sudo cp axis.tcl -ok
sudo cp glcanon.py -ok with my location.
Last step was changed heading in axis.py file and.... nothing.

I thought that, problem is in laptop with simulation, so I used PC with configuration for 7i76e + LPT with nativecam and I did everything once again, but I again see the same display. I check new configuration, simply milling by lpt... zero of progress...

So maybe... if I have different access path I can't copy wholes files and I restored my oryginall files and I manually changed files in accordance with github.com/ddotldot/linuxcnc/commit/06ec...dd61e88435f146a7ddb0 (was added one line more then in my axis.py - line 176 )
mdi_history_index= -1
resume_inhibit = 0
[b]continuous_jog_in_progress = False[/b]

help1 = [
("F1", _("Emergency stop")),

Mod still is inactive. Where I make mistake?

Bartek

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

More
28 Dec 2021 20:30 #230170 by D.L.

Last step was changed heading in axis.py file and.... nothing.
 

You activated menu items "Show spindle speed", "Show cutting speed", "Show feed per tooth | feed per rev", "Show spindle angle"?
The following user(s) said Thank You: dragon44

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

More
28 Dec 2021 21:21 #230174 by dragon44
Ten times i make the same, because i didn't use check marks, I love it xD
I must activated 4 position and deactivated "show offsets".

Its done.

Bartek

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

More
29 Dec 2021 16:41 #230253 by D.L.

" Error constructing bar({'halpin': 'spindle-speed', 'max_': 3000}):
Duplicate item name 'spindle-speed' "
 

To fix it I renamed hal pins to axisui.display-spindle-speed and axisui.display-spindle-angle.
And I added a short mod description and setup guide: forum.linuxcnc.org/21-axis/29735-axis-mo...ions?start=40#228305
 

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

Time to create page: 0.075 seconds
Powered by Kunena Forum