[Emc-users] pyVCP Actual position variable

2009-10-09 Thread Евгений Александрович
Hello guys,

I try to create pyVCP panel, which show X,Y and Z positions
So I created xml file with lines

number
halpinXdisplay/halpin
format+004.4f/format
/number


create hal file, add PYVCP and POSTGUI_HALFILE in ini file
start Emc with Axis ... I can see my panel with 0.000
So I have to write in hal file something like

net Xpos pyvcp.Xdisplay = ???

What is variable to get machine and relative position value?

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] pyVCP Actual position variable

2009-10-09 Thread Michał Geszkiewicz
Евгений Александрович pisze:
 Hello guys,

 I try to create pyVCP panel, which show X,Y and Z positions
 So I created xml file with lines

 number
 halpinXdisplay/halpin
 format+004.4f/format
 /number
 

 create hal file, add PYVCP and POSTGUI_HALFILE in ini file
 start Emc with Axis ... I can see my panel with 0.000
 So I have to write in hal file something like

 net Xpos pyvcp.Xdisplay = ???

 What is variable to get machine and relative position value?
   
Read this
http://www.linuxcnc.org/docview/html//config_emc2hal.html

and this
http://www.linuxcnc.org/docview/html//gui_halui.html#sec:Halui-pin-reference

regards,

Michael

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] pyVCP Actual position variable

2009-10-09 Thread Евгений Александрович

-Original Message-
From: Micha? Geszkiewicz mic...@wp.pl
To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
Date: Fri, 09 Oct 2009 10:14:17 +0200
Subject: Re: [Emc-users] pyVCP Actual position variable

 Евгений Александрович pisze:
  Hello guys,
 
  I try to create pyVCP panel, which show X,Y and Z positions
  So I created xml file with lines
 
  number
  halpinXdisplay/halpin
  format+004.4f/format
  /number
  
 
  create hal file, add PYVCP and POSTGUI_HALFILE in ini file
  start Emc with Axis ... I can see my panel with 0.000
  So I have to write in hal file something like
 
  net Xpos pyvcp.Xdisplay = ???
 
  What is variable to get machine and relative position value?

 Read this
 http://www.linuxcnc.org/docview/html//config_emc2hal.html
 
 and this
 http://www.linuxcnc.org/docview/html//gui_halui.html#sec:Halui-pin-reference
 
 regards,
 
 Michael

Thank You Michael!
I did not check HALUI variables before.
I have to use halui.axis.n.pos-commanded  and  halui.axis.n.pos-relative 

So I have another question.
All variables work only in OUT mode.
Does exists to change value of axis position in machine coordinates?

Best regards
Evgeny

P.S. I know about G92, but it is for relative, not machine position.














--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] pyVCP Actual position variable

2009-10-09 Thread Andy Pugh
2009/10/9 Евгений Александрович evgeni_a...@mail.ru:

 I did not check HALUI variables before.
 I have to use halui.axis.n.pos-commanded  and  halui.axis.n.pos-relative

Note that you need
HALUI = halui
in the .ini file or you can't see those pins.

If I can hijack the thread slightly, is it possible to write to #5nnn
parameters with halcmd?
I am contemplating a user-defined G-code that calls a halcmd script to
read back the current relative position into parameters for the G-Code
to use. (I think that writing to the parameter file wouldn't work?)

-- 
atp

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] pyVCP Actual position variable

2009-10-09 Thread Michał Geszkiewicz
Евгений Александрович pisze:
 -Original Message-
 From: Micha? Geszkiewicz mic...@wp.pl
 To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
 Date: Fri, 09 Oct 2009 10:14:17 +0200
 Subject: Re: [Emc-users] pyVCP Actual position variable

   
 Евгений Александрович pisze:
 
 Hello guys,

 I try to create pyVCP panel, which show X,Y and Z positions
 So I created xml file with lines

 number
 halpinXdisplay/halpin
 format+004.4f/format
 /number
 

 create hal file, add PYVCP and POSTGUI_HALFILE in ini file
 start Emc with Axis ... I can see my panel with 0.000
 So I have to write in hal file something like

 net Xpos pyvcp.Xdisplay = ???

 What is variable to get machine and relative position value?
   
   
 Read this
 http://www.linuxcnc.org/docview/html//config_emc2hal.html

 and this
 http://www.linuxcnc.org/docview/html//gui_halui.html#sec:Halui-pin-reference

 regards,

 Michael
 

 Thank You Michael!
 I did not check HALUI variables before.
 I have to use halui.axis.n.pos-commanded  and  halui.axis.n.pos-relative 

 So I have another question.
 All variables work only in OUT mode.
 Does exists to change value of axis position in machine coordinates?
   
You can only change machine coordinates by machine moves.
There is no offsets and such for machine coords.
If you can describe what you're trying to do, we could find some 
solution for this.

regards,
Michael

 Best regards
 Evgeny

 P.S. I know about G92, but it is for relative, not machine position.














 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay 
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users
   


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] pyVCP Actual position variable

2009-10-09 Thread Alex Joni
 If I can hijack the thread slightly, is it possible to write to #5nnn
 parameters with halcmd?
 I am contemplating a user-defined G-code that calls a halcmd script to
 read back the current relative position into parameters for the G-Code
 to use. (I think that writing to the parameter file wouldn't work?)

You can use M66 for that

Regards,
Alex

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] pyVCP Actual position variable

2009-10-09 Thread Andy Pugh
2009/10/9 Alex Joni alex.j...@robcon.ro:

 You can use M66 for that

Ooh! So I can!
I hadn't put the various bits together to realise that I could net the
analog inputs to something other than an actual, physical, analog
input
(I would still like the current relative and absolute coordinates
directly readable in G-code though :-)

-- 
atp

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] pyVCP Actual position variable

2009-10-09 Thread Евгений Александрович
Sorry guys,
what does mean M66 ?
Thire is no information at http://linuxcnc.org/docs/html/gcode.html

  You can use M66 for that
 
 Ooh! So I can!
 I hadn't put the various bits together to realise that I could net the
 analog inputs to something other than an actual, physical, analog
 input
 (I would still like the current relative and absolute coordinates
 directly readable in G-code though :-)


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] pyVCP Actual position variable

2009-10-09 Thread Dave Caroline
see here http://linuxcnc.org/docs/html/gcode_main.html#sec:M66:
Dave Caroline

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] pyVCP Actual position variable

2009-10-09 Thread Евгений Александрович
 You can only change machine coordinates by machine moves.
 There is no offsets and such for machine coords.
 If you can describe what you're trying to do, we could find some 
 solution for this.
 
 regards,
 Michael

Basically it is possible to use g92 and work with EMC without problems.
Only one problem with it, I have to reload file after G92 command to get right 
image in Axis UI.

Really the problem is that many CNC users (include me) used MachX software.
In Mach user can change coords at any moment and most of people work in machine 
coords.
I want to migrate to EMC and migrate another people with me.
It would be much easy to do it if I do not need to change methodology.
Provide linux like windows
Provide emc like mach ...




--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] pyVCP Actual position variable

2009-10-09 Thread Евгений Александрович
 
  Do you mean you can change value of machine coords by M66.
 
 No, sorry. I am guilty of stealing your subject line with a different
 but related question.
 I was looking for a way to transfer the current relative coordinates
 into a G-code program.
 In EMC the machine coordinates are fixed. I don't think that changing
 the machine coordinates is sensible, but if you could, would you move
 the limit switch positions with the coordinates, or re-calculate their
 positions? How about home?
 When you have the choice of 6 relative coordinate systems all with
 persistent origins, and G92, why would you need to also shift the
 machine absolute coordinates?

Really I can set any machine coords, but need to restart Emc 
1. Stop emc
2. Open POSITON_FILE, set values
3. Start EMC ...

Home is good idea, but it is possible to use on machine without home switchs 
and I am able to set only Zero coords.

As I described, the reason does not use G92, but use machine coords only habit.
But habit is a power!


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users