Re: [Emc-users] Joint position from VCP

2012-08-19 Thread Viesturs Lācis
2012/8/19 John Thornton : > Basically there are a dozen lines that do magic then you just add a > define for each signal you create in the Gtk Interface Designer to do > the function you want. > > The most confusing thing for me is there is so many ways to get to the > end you can get lost along th

Re: [Emc-users] Joint position from VCP

2012-08-19 Thread Viesturs Lācis
2012/8/19 Viesturs Lācis : > 2012/8/19 Gabriel Willen : > >> Its really easy to write a hal component using halcomp and >> attach the python handlers to those i/o pins you create. > > I feel familiar with comp, I have customized HAL components for some > of my machines. Sorry for bothering, but it

Re: [Emc-users] Joint position from VCP

2012-08-19 Thread John Thornton
Basically there are a dozen lines that do magic then you just add a define for each signal you create in the Gtk Interface Designer to do the function you want. The most confusing thing for me is there is so many ways to get to the end you can get lost along the way... What controls does your

Re: [Emc-users] Joint position from VCP

2012-08-19 Thread Viesturs Lācis
2012/8/19 Gabriel Willen : > Hey Viesturs, > > I have successfully done this twice, its fairly simple. I would be more > than happy to help you through it. Including a homing process. Thank You for the offer! I appreciate that! > Its really easy to write a hal component using halcomp and > atta

Re: [Emc-users] Joint position from VCP

2012-08-19 Thread Viesturs Lācis
2012/8/19 John Thornton : > I think I understand but the accent gave me a rough time... I'm not > running my GUI on top of or embedded in Axis or any other LinuxCNC GUI. > > DISPLAY=MyGui > > So yes it is running stand alone with all of LinuxCNC available to my > GUI via the python interface. > Ok

Re: [Emc-users] Joint position from VCP

2012-08-19 Thread Gabriel Willen
Hey Viesturs, I have successfully done this twice, its fairly simple. I would be more than happy to help you through it. Including a homing process. I would suggest only using glade for the User Interface, not to handle any time based commands. Found this out very quickly. Its really easy to

Re: [Emc-users] Joint position from VCP

2012-08-19 Thread John Thornton
I think I understand but the accent gave me a rough time... I'm not running my GUI on top of or embedded in Axis or any other LinuxCNC GUI. DISPLAY=MyGui So yes it is running stand alone with all of LinuxCNC available to my GUI via the python interface. On 8/19/2012 11:53 AM, andy pugh wrote:

Re: [Emc-users] Joint position from VCP

2012-08-19 Thread andy pugh
On 19 August 2012 18:20, John Thornton wrote: >> What do you get if you only put your GUI in the INI? > You mean if I don't copy the files to the installed folders? Perhaps I should have said "If you put only your GUI in the INI" ie, can yours be the only GUI? -- atp If you can't fix it, you d

Re: [Emc-users] Joint position from VCP

2012-08-19 Thread John Thornton
You mean if I don't copy the files to the installed folders? On 8/19/2012 9:42 AM, andy pugh wrote: > On 19 August 2012 16:33, John Thornton wrote: > >> The new GUI doesn't replace the others it just lives beside them... > What do you get if you only put your GUI in the INI? > -

Re: [Emc-users] Joint position from VCP

2012-08-19 Thread andy pugh
On 19 August 2012 16:33, John Thornton wrote: > The new GUI doesn't replace the others it just lives beside them... What do you get if you only put your GUI in the INI? -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto --

Re: [Emc-users] Joint position from VCP

2012-08-19 Thread John Thornton
I've only been able to figure out how to run my GUI with halrun from a terminal which is not very elegant as you have to type in exit or quit to unload the real time environment unless you know the secret to halrun closing when the GUI closes? The new GUI doesn't replace the others it just live

Re: [Emc-users] Joint position from VCP

2012-08-19 Thread andy pugh
On 19 August 2012 15:48, John Thornton wrote: > The problem I've run across with trying to use halrun is how to shut it > down when finished. I have however stumbled across how to "install" your > custom gui and run it from linuxcnc without jumping through a bunch of > hoops. > > http://gnipsel.co

Re: [Emc-users] Joint position from VCP

2012-08-19 Thread John Thornton
changing my search string to "ubuntu 10.04 how to run a program on startup" brings up even better results On 8/19/2012 8:09 AM, Viesturs Lācis wrote: > 2012/8/19 andy pugh : >> On 19 August 2012 14:14, John Thornton wrote: >>> Have you looked at halui to home the joint? >>> >>> Have you seen th

Re: [Emc-users] Joint position from VCP

2012-08-19 Thread John Thornton
The problem I've run across with trying to use halrun is how to shut it down when finished. I have however stumbled across how to "install" your custom gui and run it from linuxcnc without jumping through a bunch of hoops. http://gnipsel.com/linuxcnc/gui/gui03b.html A goodle search for "ubuntu

Re: [Emc-users] Joint position from VCP

2012-08-19 Thread andy pugh
On 19 August 2012 15:09, Viesturs Lācis wrote: > How can I tell Ubuntu to do these 2 commands right after startup? > cd /home/machine/linuxcnc/configs/hm2_stepper > halrun -I -f whatever.hal Probably in .bashrc. (or some other startup script magic). > BTW, where can I see, what do those -l and

Re: [Emc-users] Joint position from VCP

2012-08-19 Thread andy pugh
On 19 August 2012 15:04, Viesturs Lācis wrote: > I am not sure that I understand, how did You mean that. Stepgen has a "counts" output. You need to store that value somewhere in HAL at the point when the home switch is tripped. (alternatively, store the position-fb value). That value is your "ho

Re: [Emc-users] Joint position from VCP

2012-08-19 Thread Viesturs Lācis
2012/8/19 andy pugh : > On 19 August 2012 14:14, John Thornton wrote: >> Have you looked at halui to home the joint? >> >> Have you seen this? >> >> http://linuxcnc.org/index.php/english/component/kunena/?func=view&catid=48&id=23317&limit=6 >> > > Or, for that matterr: > http://linuxcnc.org/index.

Re: [Emc-users] Joint position from VCP

2012-08-19 Thread Viesturs Lācis
2012/8/19 andy pugh : > On 19 August 2012 14:00, Viesturs Lācis wrote: > >> Anyway, I have an issue of reproducing homing routine either in HAL or >> in Ladder. Can anyone share some advice, how to do that? I do not >> really understand, how can I reset stepgen position to 0 or whatever >> fixed v

Re: [Emc-users] Joint position from VCP

2012-08-19 Thread andy pugh
On 19 August 2012 14:14, John Thornton wrote: > Have you looked at halui to home the joint? > > Have you seen this? > > http://linuxcnc.org/index.php/english/component/kunena/?func=view&catid=48&id=23317&limit=6 > Or, for that matterr: http://linuxcnc.org/index.php/english/component/kunena/?func=

Re: [Emc-users] Joint position from VCP

2012-08-19 Thread andy pugh
On 19 August 2012 14:00, Viesturs Lācis wrote: > Anyway, I have an issue of reproducing homing routine either in HAL or > in Ladder. Can anyone share some advice, how to do that? I do not > really understand, how can I reset stepgen position to 0 or whatever > fixed value, based on the state of i

Re: [Emc-users] Joint position from VCP

2012-08-19 Thread John Thornton
Have you looked at halui to home the joint? Have you seen this? http://linuxcnc.org/index.php/english/component/kunena/?func=view&catid=48&id=23317&limit=6 On 8/19/2012 7:00 AM, Viesturs Lācis wrote: > 2012/8/19 John Thornton : >> You could roll your own in GladeVCP... have you seen my tutoria

Re: [Emc-users] Joint position from VCP

2012-08-19 Thread Viesturs Lācis
2012/8/19 John Thornton : > You could roll your own in GladeVCP... have you seen my tutorials on that? > Yes, I have played a little with Glade. It is really nice, but there is some learning curve for me to climb. I already am over deadline with this machine, so I am interested to spend as little

Re: [Emc-users] Joint position from VCP

2012-08-19 Thread John Thornton
You could roll your own in GladeVCP... have you seen my tutorials on that? John On 8/19/2012 6:29 AM, Viesturs Lācis wrote: > 2012/8/19 andy pugh : >> On 19 August 2012 13:08, Viesturs Lācis wrote: >> >>> Is there a way to set commanded position for particular joint from VCP >>> widget? >> I am

Re: [Emc-users] Joint position from VCP

2012-08-19 Thread Viesturs Lācis
2012/8/19 andy pugh : > On 19 August 2012 13:08, Viesturs Lācis wrote: > >> Is there a way to set commanded position for particular joint from VCP >> widget? > > I am fairly sure that the answer is "No". > > The answer is probably to have the stepgen or PID driven directly by > the VCP and to not

Re: [Emc-users] Joint position from VCP

2012-08-19 Thread andy pugh
On 19 August 2012 13:08, Viesturs Lācis wrote: > Is there a way to set commanded position for particular joint from VCP widget? I am fairly sure that the answer is "No". The answer is probably to have the stepgen or PID driven directly by the VCP and to not involve MOTION at all. -- atp If yo

[Emc-users] Joint position from VCP

2012-08-19 Thread Viesturs Lācis
Hello, folks! Is there a way to set commanded position for particular joint from VCP widget? The machine I am building has 1 joint that positions one of the saw blades. I would like to be able to set its position from VCP (most probably pyvcp as it is easier for me to set up), but I have difficult