Lathe Macros

More
28 Dec 2013 03:49 - 28 Dec 2013 03:55 #42075 by strykerg
strykerg replied the topic: Lathe Macros
I am using Axis.

is there anymore info I can provide? error log:

File Attachment:

File Name: error.txt
File Size:3 KB
Attachments:
Last Edit: 28 Dec 2013 03:55 by strykerg.
More
28 Dec 2013 05:40 #42079 by andypugh
andypugh replied the topic: Lathe Macros
I am not sure what the problem is that you are seeing.

I think there is a problem queueing up to confound you later, that the G-code relies on reading HAL pins directly and, that is a feature only available in Master. (which reports itself as 2.6, but isn't)

It is possible to install Master from the buildbot, it might even solve the current problem. (I have been using it for many months with no issues)
More
28 Dec 2013 15:17 #42101 by strykerg
strykerg replied the topic: Lathe Macros
sounds complicated for my Linux knowledge.

I just wanted to give it a try it looks really neat. Your old lathe macros work fine for me, the only annoying thing is keying in the values in the spinboxes.
More
28 Dec 2013 18:13 #42103 by andypugh
andypugh replied the topic: Lathe Macros
Switching to using the development version is just a case of following the instructions at buildbot.linuxcnc.org

You can make the spinbox a bit friendlier by swapping pyvcp_widgets.py on your system with this file here:
www.bodgesoc.org/lathe/pyvcp_widgets.py
That allows you to press "enter" to confirm a value, rather than toggling up-down on the arrows.
(I am not entirely sure where the file lives, and I am not on a LinuxCNC system at the moment. Probably /usr/bin )
More
29 Dec 2013 18:53 #42147 by strykerg
strykerg replied the topic: Lathe Macros
thanks for the info but I cant manage to install the latest dev version :(

1st, I couldn't find this: "To use these packages on your computer, put one of these stanzas in your /etc/apt/sources.list.d/linuxcnc-buildbot.list:" so instead I opened System>administration>software sources and put the two (lucid master-rt) lines in the other software tab (and unchecked the version 2.5). After that I did this:
root@strykernc:/home/strykernc# sudo apt-get update
--a couple of pages of addresses here--
Reading package lists... Done
root@strykernc:/home/strykernc# sudo apt-get install linuxcnc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  linuxcnc: Depends: libmodbus5 but it is not installable
            Recommends: hostmot2-firmware but it is not installable
E: Broken packages
root@strykernc:/home/strykernc#

I hope that this isn't too much off-topic
More
30 Dec 2013 06:41 #42182 by andypugh
andypugh replied the topic: Lathe Macros

strykerg wrote: 1st, I couldn't find this: "To use these packages on your computer, put one of these stanzas in your /etc/apt/sources.list.d/linuxcnc-buildbot.list:"

If the file doesn't exist then you have to create it. But...

so instead I opened System>administration>software sources and put the two (lucid master-rt) lines in the other software tab (and unchecked the version 2.5).

This achieves much the same thing. Either way out to work.

Ignore the following stuff, the stupid reply editor box greys-out if I delete a line-end character.






The following packages have unmet dependencies:
linuxcnc: Depends: libmodbus5 but it is not installable
Recommends: hostmot2-firmware but it is not installable


I think that the first thing can be avoided with sudo apt-get install libmodbus.
However, LinuxCNC ought to run without either of those packages.
Does linuxCNC run? What version does the splash-screen say it is?
More
30 Dec 2013 18:01 - 31 Dec 2013 00:13 #42197 by ArcEye
ArcEye replied the topic: Lathe Macros

andypugh wrote: [quote=

The following packages have unmet dependencies:
linuxcnc: Depends: libmodbus5 but it is not installable
Recommends: hostmot2-firmware but it is not installable


I think that the first thing can be avoided with sudo apt-get install libmodbus.
However, LinuxCNC ought to run without either of those packages.
Does linuxCNC run? What version does the splash-screen say it is?


libmodbus5 is required unless you change the configure options before build, hostmot2 is not

From configure --help
--with-libmodbus Specify whether or not to build the drivers that use libmodbus (defaults to "yes")


Try fetching libmodbus-dev,
I seem to remember that under Ubuntu 10.04 the package provides libmodbus5, just trying to install the lib does not work

They exist as separate packages under Debian

regards
Last Edit: 31 Dec 2013 00:13 by ArcEye.
More
31 Dec 2013 17:10 #42216 by strykerg
strykerg replied the topic: Lathe Macros
the splash screen show 2.5.3 and yes currently it works perfectly.

I will try sudo apt-get install libmodbus and get back

ArcEye: Try fetching libmodbus-dev << this is Chinese to me :S
More
31 Dec 2013 17:21 - 31 Dec 2013 17:21 #42217 by ArcEye
ArcEye replied the topic: Lathe Macros

I will try sudo apt-get install libmodbus and get back

ArcEye: Try fetching libmodbus-dev << this is Chinese to me :S


Just try sudo apt-get install libmodbus-dev if just fetching libmodbus does not work

I remember I had problems with it under Ubuntu some while back , when it started to become a requirement for building the master.

Trying to fetch libmodbus5 did not work and I wanted the headers anyway, my notes seem to show that I switched to libmodbus-dev (which probably has libmodbus as a requirement so fetches it anyway)

regards
Last Edit: 31 Dec 2013 17:21 by ArcEye.
More
31 Dec 2013 17:34 - 31 Dec 2013 17:37 #42219 by strykerg
strykerg replied the topic: Lathe Macros
ok managed to install the dev version. I had to:

goto System>administration>software sources and re-tick the 2.5 version and untick the dev version.
do sudo apt-get update and sudo apt-get install libmodbus5 (I think libmodbus didn't work)
then change back the software sources to the dev and installed as per buildbot instructions.

it works, but when I added Andy's config I get an error (which I can understand I think) and I think I am missing the postgui hal file couldn't find it in the zip file
** (gladevcp:4014): CRITICAL **: clearlooks_style_draw_box_gap: assertion `height >= -1' failed
custom_postgui.hal:9: Pin 'pyvcp.stop' does not exist
/usr/bin/gladevcp:292: GtkWarning: GdkWindow 0x3e00003 unexpectedly destroyed
  gtk.main()
**** GLADE VCP ERROR:    X Protocol Error: 3

*edit*
oh I actually have a pyvcp.stop linked to halui.program.stop in my custom_postgui.hal :/
Last Edit: 31 Dec 2013 17:37 by strykerg.
Time to create page: 0.123 seconds
Powered by Kunena Forum