- Posts: 55
- Thank you received: 37
Axis Modifications
- D.L.
- Offline
- Senior Member
-
Less
More
4 years 10 months ago - 4 years 10 months ago #228305
by D.L.
Replied by D.L. on topic Axis Modifications
Axis cutting parameters mod.
Mod hal pins axisui.display-spindle-speed and axisui.display-spindle-angle
Connection in file custom_postgui.hal, for example:
or
Setup mod
There are 2 ways to install this mod:
1. Replace files(axis, axis.tcl and glcanon.py) in existing installation LinuxCNC v2.8.2, begins to work immediately.
2. Standard compilation from sources downloaded from:
github.com/ddotldot/linuxcnc/archive/ref...ads/2.8-axis-mod.zip
github.com/ddotldot/linuxcnc/archive/ref...ads/2.7-axis-mod.zip
Building guide: linuxcnc.org/docs/devel/html/code/building-linuxcnc.html
Setup to existing installation LinuxCNC v2.8.2:
Open linuxcnc-2.8-axis-mod/src/emc/usr_intf/axis/scripts/axis.py with text editor and replace
to
Setup to existing installation LinuxCNC v2.7.15:
It is possible to setup only the old version mod!
Old version mod hal pins:
motion.analog-in-00 (spindle speed)
motion.analog-in-01 (spindle angle)
Connection in any hal file.
Mod links:
github.com/ddotldot/linuxcnc/tree/2.7-axis-mod
github.com/ddotldot/linuxcnc/tree/2.8-axis-mod
Mod hal pins axisui.display-spindle-speed and axisui.display-spindle-angle
Connection in file custom_postgui.hal, for example:
Code:
net spindle-vel-cmd-rpm-abs => axisui.display-spindle-speed
Code:
net spindle-fb-rpm-abs-filtered => axisui.display-spindle-speed
net spindle-revs => axisui.display-spindle-angle
Setup mod
There are 2 ways to install this mod:
1. Replace files(axis, axis.tcl and glcanon.py) in existing installation LinuxCNC v2.8.2, begins to work immediately.
2. Standard compilation from sources downloaded from:
github.com/ddotldot/linuxcnc/archive/ref...ads/2.8-axis-mod.zip
github.com/ddotldot/linuxcnc/archive/ref...ads/2.7-axis-mod.zip
Building guide: linuxcnc.org/docs/devel/html/code/building-linuxcnc.html
Setup to existing installation LinuxCNC v2.8.2:
Code:
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/lib/python2.7/dist-packages/rs274/glcanon.py /usr/lib/python2.7/dist-packages/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/lib/python2.7/dist-packages/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
Code:
#!/usr/bin/env python2
Code:
#!/usr/bin/python
Code:
sudo cp linuxcnc-2.8-axis-mod/src/emc/usr_intf/axis/scripts/axis.py /usr/bin/axis
Setup to existing installation LinuxCNC v2.7.15:
It is possible to setup only the old version mod!
Code:
cd ~
wget http://forum.linuxcnc.org/media/kunena/attachments/30800/axis-mod-2715.zip
unzip -t axis-mod-2715.zip
unzip -d axis-mod-2715 axis-mod-2715.zip
sudo mv /usr/lib/python2.7/dist-packages/rs274/glcanon.py /usr/lib/python2.7/dist-packages/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 axis-mod-2715/glcanon.py /usr/lib/python2.7/dist-packages/rs274/glcanon.py
sudo cp axis-mod-2715/axis.tcl /usr/share/axis/tcl/axis.tcl
sudo cp axis-mod-2715/axis /usr/bin/axis
Old version mod hal pins:
motion.analog-in-00 (spindle speed)
motion.analog-in-01 (spindle angle)
Connection in any hal file.
Mod links:
github.com/ddotldot/linuxcnc/tree/2.7-axis-mod
github.com/ddotldot/linuxcnc/tree/2.8-axis-mod
Last edit: 4 years 10 months ago by D.L..
Please Log in or Create an account to join the conversation.
- D.L.
- Offline
- Senior Member
-
Less
More
- Posts: 55
- Thank you received: 37
4 years 10 months ago #228306
by D.L.
Replied by D.L. on topic Axis Modifications
Simple mod - homing request message when press Machine Power button:
In axis file replace this code:
to this code(2.
:
to this code(2.7):
In axis file replace this code:
Code:
def onoff_clicked(event=None):
s.poll()
if s.task_state == linuxcnc.STATE_ESTOP_RESET:
c.state(linuxcnc.STATE_ON)
else:
c.state(linuxcnc.STATE_OFF)
Code:
def onoff_clicked(event=None):
s.poll()
if s.task_state == linuxcnc.STATE_ESTOP_RESET:
c.state(linuxcnc.STATE_ON)
runHoming=prompt_areyousure(_("Homing request"),_("After turning on the machine power,\nYou need find axes origins.\n\n Run homing process?"))
if runHoming:
commands.home_all_joints()
else:
c.state(linuxcnc.STATE_OFF)
Code:
def onoff_clicked(event=None):
s.poll()
if s.task_state == linuxcnc.STATE_ESTOP_RESET:
c.state(linuxcnc.STATE_ON)
runHoming=prompt_areyousure(_("Homing request"),_("After turning on the machine power,\nYou need find axes origins.\n\n Run homing process?"))
if runHoming:
commands.home_all_axes()
else:
c.state(linuxcnc.STATE_OFF)
Please Log in or Create an account to join the conversation.
- alkabal
- Offline
- Platinum Member
-
Less
More
- Posts: 476
- Thank you received: 52
4 years 9 months ago #232198
by alkabal
Replied by alkabal on topic Axis Modifications
Hello
Many thanks for sharing this mod !
If the proposition for PR your patch is actual can you consider to try ?
andypugh post=227243 userid=723
Many thanks for sharing this mod !
If the proposition for PR your patch is actual can you consider to try ?
andypugh post=227243 userid=723
BrDoes it make sense to add this mod to the LinuxCNC build?
I think that if you can format it as a pull-request on Github then there might be interest.
Please Log in or Create an account to join the conversation.
- D.L.
- Offline
- Senior Member
-
Less
More
- Posts: 55
- Thank you received: 37
4 years 9 months ago #232289
by D.L.
Replied by D.L. on topic Axis Modifications
Hi.
Create a PR not difficult, only there are other small difficulties:
I can not test mod for 2.9.
And need check mod compatibility(should not affect) with other linuxcnc screens, glcannon.py used not only for AXIS.
I will be glad any help in testing mod.
Mod for 2.9 link: github.com/ddotldot/linuxcnc/tree/2.9-axis-mod
Create a PR not difficult, only there are other small difficulties:
I can not test mod for 2.9.
And need check mod compatibility(should not affect) with other linuxcnc screens, glcannon.py used not only for AXIS.
I will be glad any help in testing mod.
Mod for 2.9 link: github.com/ddotldot/linuxcnc/tree/2.9-axis-mod
Please Log in or Create an account to join the conversation.
- radom
- Offline
- Senior Member
-
Less
More
- Posts: 64
- Thank you received: 8
4 years 8 months ago #234021
by radom
Replied by radom on topic Axis Modifications
Please Log in or Create an account to join the conversation.
- radom
- Offline
- Senior Member
-
Less
More
- Posts: 64
- Thank you received: 8
4 years 8 months ago - 4 years 8 months ago #234023
by radom
Replied by radom on topic Axis Modifications
Ok now I get it, you cannot have offsets showing with this mod
Last edit: 4 years 8 months ago by radom.
Please Log in or Create an account to join the conversation.
Time to create page: 0.167 seconds