Re: [Emc-users] Connect Interface MINI with step motor

2010-05-04 Thread Kirk Wallace
On Tue, 2010-05-04 at 11:21 +0700, Binh Hoang wrote:
 Hi! My name is Binh. I have a problem for connect interface MINI with step
 motor. With interface AXIS, when i start emc, i donnt need to connect that
 interface axis still connect with step motor. But with interface MINI is
 imposible. Can you help me?

Theoretically, the user interface, AXIS or MINI should have no effect on
the function of EMC2. On the other hand, I believe MINI is very old
software and compatibility may have not been maintained.

Also make sure you have entered the the display information in your .ini
file correctly. For AXIS:

[DISPLAY]

# DISPLAY = tkemc
DISPLAY = axis
# DISPLAY = mini
# DISPLAY = keystick

or just:

[DISPLAY]

DISPLAY = axis

For MINI:

[DISPLAY]

# DISPLAY = tkemc
# DISPLAY = axis
DISPLAY = mini
# DISPLAY = keystick

or just:

[DISPLAY]

DISPLAY = mini

I think missing or bad characters can cause the program to crash or
freeze.
-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/index.html
California, USA


--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Connect Interface MINI with step motor

2010-05-04 Thread chrisinnanaimo
Please give more detail of problem / error message. One possibility I think is 
mini doesn't use an Estop circuit but axis does. Emc may be waiting for a 
signal to come out of Estop and never get it from mini . 

Chris M 

Sent from my BlackBerry device on the Rogers Wireless Network

-Original Message-
From: Binh Hoang binhc...@gmail.com
Date: Tue, 4 May 2010 11:21:24 
To: Emc-users@lists.sourceforge.net
Subject: [Emc-users] Connect Interface MINI with step motor

Hi! My name is Binh. I have a problem for connect interface MINI with step
motor. With interface AXIS, when i start emc, i donnt need to connect that
interface axis still connect with step motor. But with interface MINI is
imposible. Can you help me?


Name: Hoang Van Binh

Mobile: 01656110660
Michatronics_ Hà Nội university of technology
*
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Axis program redrawing

2010-05-04 Thread vh5...@libero.it
Hi,
I put in my pyVCP panel a scale object that is read in my pyvcp.hal as a 
motion.analog-in-00
In my g-code this analog value is read by a M66 E0 L0 Q1 instruction ad it is 
used to modify a position value.
It works great except then in the visualization of the program in Axis. I 
would like to see the program changing when I move the scale (reloading the 
program as well) instead I can see changing only the path. Even if I reload the 
program [Control-R] I cannot see any difference,
Is there the possibility to modify Axis in some parts just to see the program 
changing with the related analog value as above?

Thanks
Luigi 

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Axis program redrawing

2010-05-04 Thread Jeff Epler
No.

The AXIS preview can't know what analog value will be present at the
time the M66 instruction is actually executed, so anything it does will
be wrong.

The current version of AXIS seems to use the prior value of parameter
#5399 as the input's value; as #5399 is not typically a saved parameter,
this usually means that the inputs will always be treated as 0.0 or
false. (looking at pre2.4; 2.3 may be different)

I'm not totally against doing something more sophisticated than this,
but I don't know what that thing would be.

Jeff

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Need help configuring Home

2010-05-04 Thread Neil Baylis
I'm trying to understand how to setup my homing config. I've been reading
everything I can find in the docs, but still can't get this to work.

I have a single axis, X

There's a limit switch at each end. I want these switches to stop the
machine if it ever hits them.

I want to use the negative limit switch as the home switch.

When I press the home button in the GUI (TkEMC), I want the machine to find
that switch and then move away from it by maybe 1/2 inch. I want it to call
that position home, and to set the current position to zero.


Here's the Homing section of my .ini file:

HOME_SEARCH_VEL =   -1.0
HOME_LATCH_VEL =   0.1
HOME_USE_INDEX =  NO
HOME_IGNORE_LIMITS =  NO
HOME_IS_SHARED =   NO
HOME_OFFSET = 0.0
HOME = 0.0

Here's the section of the .hal file where the signals are defined:

newsig Xminlim bit
linksp Xminlim = ppmc.0.din.02.in-not
linksp Xminlim = axis.0.neg-lim-sw-in
linksp Xminlim = axis.0.home-sw-in

newsig Xmaxlim bit
linksp Xmaxlim = ppmc.0.din.03.in-not
linksp Xmaxlim = axis.0.pos-lim-sw-in


Here's what happens:

If I set HOME_IGNORE_LIMITS to YES, then the machine drives right past the
limit switch into the hard stop, and eventually hits the FE limit.

If I set HOME_IGNORE_LIMITS to NO, then the machine stops at the limit
switch and complains that it encountered a limit in homing state 5.

I think it's acting as though it doesn't see  axis.0.home-sw-in, although it
does see axis.0.neg-lim-sw-in

On the GUI, the X position goes red if I activate either of the limit
switches, so I think the limit switch plumbing is correct.

Neil
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Axis program redrawing

2010-05-04 Thread Andy Pugh
On 4 May 2010 17:01, Jeff Epler jep...@unpythonic.net wrote:

 The current version of AXIS seems to use the prior value of parameter
 #5399 as the input's value; as #5399 is not typically a saved parameter,
 this usually means that the inputs will always be treated as 0.0

I seem to recall hearing that anything you add to the parameters file
will be saved, though. Is this true, and would it help?

-- 
atp

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] emc debian rules.

2010-05-04 Thread Jan de Kruyf
Hallo,
not to worry, I was sidetracked as well. I am busy working on a more general
patch for debian,
 that hopefully will not break ubuntu or any other.
I will be back shortly.

Regards

Jan de Kruyf.




On Mon, May 3, 2010 at 3:57 AM, Jeff Epler jep...@unpythonic.net wrote:

 I'm sorry I haven't had the time to reply before now.

 I see two choices for you.  First, enhance debian/configure and the
 associated .in files so that they can work for both the Ubuntu platforms
 we wish to build on, and the Debian platforms you are interested in.

 Second, carry these changes for yourself.  git is much better at this
 than cvs was, and debian/rules doesn't change all that often.

 As long as they don't damage building on Ubuntu 8.04 or 10.04 I'd be
 pleased to consider patches of the first type for inclusion on master.

 Based on your description, maybe a patch like the following can be
 adapted to fit your needs and ours both:

 From: Jeff Epler jep...@unpythonic.net
 Date: Sun, 2 May 2010 20:52:17 -0500
 Subject: [PATCH] WIP: make debian/configure more flexible

 this is a sketch of how to make debian/configure supply extra configure
 arguments and also look for realtime configuration scripts in the right
 location.  It's untested, but may be helpful to you.
 ---
  debian/configure |   15 +++
  1 files changed, 15 insertions(+), 0 deletions(-)

 diff --git a/debian/configure b/debian/configure
 index ded813e..ad36da2 100755
 --- a/debian/configure
 +++ b/debian/configure
 @@ -62,10 +62,18 @@ MODULE_EXT=.ko
  KERNEL_DEPENDS=linux-image-$1,rtai-modules-$1
  KERNEL_HEADERS=linux-headers-$1
  EXTRA_FILES=usr/bin/emc_module_helper usr/bin/bfload
 +EXTRA_CONFIGURE=
  KERNEL_VERSION=$1
  DRIVERS=drivers.files.in
  PYTHON_VERSION=$(python -c 'import sys; print sys.version[:3]')
  PYTHON_VERSION_NEXT=$(python -c 'import sys; print sys.version[:2] +
 str(1+int(sys.version[2]))')
 +if [ -x /usr/realtime-$KERNEL_VERSION/bin/rtai-config ]; then
 +REALTIME_CONFIGURE=--with-realtime=/usr/realtime-$KERNEL_VERSION
 +elif [ -x /usr/realtime/bin/rtai-config ]; then
 +REALTIME_CONFIGURE=--with-realtime=/usr/realtime
 +else
 +REALTIME_CONFIGURE=--with-realtime=/usr
 +fi

  # hope this works on other systems too
  DISTRIB_NAME=
 @@ -89,6 +97,10 @@ Ubuntu-8.04)

  
 EXTRA_BUILD=lyx,texlive-extra-utils,texlive-latex-recommended,texlive-fonts-recommended,ghostscript,imagemagick,texlive-lang-french
TCLTK_VERSION=8.4
;;
 +Debian-)
 +
 EXTRA_BUILD=lyx,texlive-extra-utils,texlive-latex-recommended,texlive-fonts-recommended,ghostscript,imagemagick,texlive-lang-french
 +   TCLTK_VERSION=8.4
 +   EXTRA_CONFIGURE=--with-tclConfig=/usr/lib/tcl8.4/tclConfig.sh
 --with-tkconfig=/usr/lib/tk8.4/tkConfig.sh
  *)
EXTRA_BUILD=lyx-qt
TCLTK_VERSION=8.4
 @@ -100,6 +112,7 @@ EMC2_PACKAGE_NAME=emc2
  EXTRA_RECOMMENDS=hostmot2-firmware
  case $TARGET in
 sim)
 +   REALTIME_CONFIGURE=--enable-simulator
 MODULE_PATH=usr/lib/emc2/modules
MODULE_EXT=.so
KERNEL_DEPENDS=
 @@ -134,6 +147,8 @@ sed -e s|@MODULE_PATH@|$MODULE_PATH|g \
 -e s|@KERNEL_HEADERS@|$KERNEL_HEADERS|g \
 -e s|@EXTRA_BUILD@|$EXTRA_BUILD|g \
 -e s|@EXTRA_RECOMMENDS@|$EXTRA_RECOMMENDS|g \
 +-e s|@EXTRA_CONFIGURE@|$EXTRA_CONFIGURE|g \
 +-e s|@REALTIME_CONFIGURE@|$REALTIME_CONFIGURE|g \
 -e s|@EMC2_PACKAGE_NAME@|$EMC2_PACKAGE_NAME|g \
 -e s|@EXTRAS@|$EXTRAS|g \
 -e s|@EXTRA_FILES@|$EXTRA_FILES|g \
 --
 1.7.0.4


 --
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Need help configuring Home

2010-05-04 Thread Andy Pugh
On 4 May 2010 17:31, Neil Baylis neil.bay...@gmail.com wrote:

 There's a limit switch at each end. I want these switches to stop the
 machine if it ever hits them.
 I want to use the negative limit switch as the home switch.
 When I press the home button in the GUI (TkEMC), I want the machine to find
 that switch and then move away from it by maybe 1/2 inch. I want it to call
 that position home, and to set the current position to zero.

All perfectly standard, I think.

This is mine:
HOME = 5.0
MIN_LIMIT = 0.0
MAX_LIMIT = 700.0
HOME_OFFSET = 0.00
HOME_SEARCH_VEL = -25.00
HOME_LATCH_VEL = 1.562500
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 1

 Here's the Homing section of my .ini file:

 HOME_SEARCH_VEL =       -1.0
 HOME_LATCH_VEL =           0.1
 HOME_USE_INDEX =          NO
 HOME_IGNORE_LIMITS =  NO
 HOME_IS_SHARED =           NO
 HOME_OFFSET =                 0.0
 HOME =                                 0.0

So I think you need:
 HOME_SEARCH_VEL =   -1.0
 HOME_LATCH_VEL =   0.1
 HOME_USE_INDEX =  NO
 HOME_IGNORE_LIMITS =  YES
 HOME_IS_SHARED =   NO
 HOME_OFFSET = -0.5
 HOME = 0.0

 newsig Xminlim bit
 linksp Xminlim = ppmc.0.din.02.in-not
 linksp Xminlim = axis.0.neg-lim-sw-in
 linksp Xminlim = axis.0.home-sw-in

 newsig Xmaxlim bit
 linksp Xmaxlim = ppmc.0.din.03.in-not
 linksp Xmaxlim = axis.0.pos-lim-sw-in

And again, my HAL section: (I have a debounce on my limit switches for
noise immunity and also have positive and negative limits on the same
IO pin)

net xlimunfilt debounce.0.0.in = hm2_7i43.0.gpio.017.in_not
net both-home-x = debounce.0.0.out
net both-home-x = axis.0.home-sw-in
net both-home-x = axis.0.neg-lim-sw-in
net both-home-x = axis.0.pos-lim-sw-in

-- 
atp

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Need help configuring Home

2010-05-04 Thread Neil Baylis
On Tue, May 4, 2010 at 11:16 AM, Andy Pugh a...@andypugh.fsnet.co.uk wrote:
 On 4 May 2010 17:31, Neil Baylis neil.bay...@gmail.com wrote:

 There's a limit switch at each end. I want these switches to stop the
 machine if it ever hits them.
 I want to use the negative limit switch as the home switch.
 When I press the home button in the GUI (TkEMC), I want the machine to find
 that switch and then move away from it by maybe 1/2 inch. I want it to call
 that position home, and to set the current position to zero.

 All perfectly standard, I think.

Yeah, that's what I thought.


 This is mine:
 HOME = 5.0
 MIN_LIMIT = 0.0
 MAX_LIMIT = 700.0
 HOME_OFFSET = 0.00
 HOME_SEARCH_VEL = -25.00
 HOME_LATCH_VEL = 1.562500
 HOME_IGNORE_LIMITS = YES
 HOME_SEQUENCE = 1

When I set HOME_IGNORE_LIMITS = YES then the machine moves past the limit switch
(Which is supposed to also be the home switch) and hits the hard stop.
It does not seem to recognize the switch as a home switch.

Neil

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] unsubscribe

2010-05-04 Thread Andreas Scherer
 
 
--
Andreas Scherer
andreas.sche...@lingua.at
 
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Need help configuring Home

2010-05-04 Thread Stephen Wille Padnos
Neil Baylis wrote:
 [snip]
 Here's the Homing section of my .ini file:

 HOME_SEARCH_VEL =   -1.0
 HOME_LATCH_VEL =   0.1
 HOME_USE_INDEX =  NO
 HOME_IGNORE_LIMITS =  NO
 HOME_IS_SHARED =   NO
 HOME_OFFSET = 0.0
 HOME = 0.0

I think you need HOME_IS_SHARED = 1

That says that home is shared with a limit.

- Steve


--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Need help configuring Home

2010-05-04 Thread Neil Baylis
Oh, I thought HOME_IS_SHARED meant the home was shared with another axis.

I'll give that a try.

Neil

On Tue, May 4, 2010 at 12:03 PM, Stephen Wille Padnos spad...@sover.net wrote:
 Neil Baylis wrote:
 [snip]
 Here's the Homing section of my .ini file:

 HOME_SEARCH_VEL =       -1.0
 HOME_LATCH_VEL =           0.1
 HOME_USE_INDEX =          NO
 HOME_IGNORE_LIMITS =  NO
 HOME_IS_SHARED =           NO
 HOME_OFFSET =                 0.0
 HOME =                                 0.0

 I think you need HOME_IS_SHARED = 1

 That says that home is shared with a limit.

 - Steve


 --
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users




-- 
http://www.pixpopuli.com

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Need help configuring Home

2010-05-04 Thread Stephen Wille Padnos
Neil Baylis wrote:
 Oh, I thought HOME_IS_SHARED meant the home was shared with another axis.

Well, you could be right :)

Always listen to the manual, or the actual behavior, better than you 
listen to me.

- Steve

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Need help configuring Home

2010-05-04 Thread Stuart Stevenson
Is it possible the state of the home switch is tripped and the machine is
backing off the switch from the start?



 --
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users




-- 
dos centavos
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Need help configuring Home

2010-05-04 Thread Neil Baylis
No, same problem.

With HOME_IGNORE_LIMITS = YES, it sails right past the home/limit
switch and hits the hard stop.

With HOME_IGNORE_LIMITS = NO, it stops at the limit, complaining that
it hit a limit in homing state 5.

HOME_IS_SHARED seems to have no effect on this.


Note: I tried monitoring the axis.0.home-sw-in with Halmeter, but it
never changes. Also, when I use Halmeter to monitor the limit switch,
that never changes either, even though it is changing on TkEMC.
Something I don't understand about using Halmeter, I guess.

Neil

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Need help configuring Home

2010-05-04 Thread Neil Baylis
No,I manually move it away from the switch before I start.

Neil

On Tue, May 4, 2010 at 12:27 PM, Stuart Stevenson stus...@gmail.com wrote:
 Is it possible the state of the home switch is tripped and the machine is
 backing off the switch from the start?



 --
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users




 --
 dos centavos
 --
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users




-- 
http://www.pixpopuli.com

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] R: Re: Axis program redrawing

2010-05-04 Thread vh5...@libero.it
Hi Jeff,
I'm currently using EMC 2.2.8.
As you said I'm using the parameter #5399 just to read the analog value. This 
value sets the dimension of my workpiece. The tool path changes following the 
new set value but the program keeps on displaying the same workpiece.
Is there any solution?

Since my workpiece is very easy (a parallelepiped) I tried also to insert in 
Axis a cube but I need to retreive the right dimensions first. For this purpose 
I tried to use python commands as you mentioned in the mail archivie:

import commands

float(commands.getoutput(halcmd getp motion.analog-in-00 ))

It doesn't work, but probably I don't use this code in the right point... Can 
you suggest me where to create an object to be displayed?

Regards
Luigi
 


Messaggio originale
Da: jep...@unpythonic.net
Data: 04/05/2010 18.01
A: vh5...@libero.itvh5...@libero.it, Enhanced Machine Controller (EMC)
emc-users@lists.sourceforge.net
Ogg: Re: [Emc-users] Axis quot;program redrawingquot;

No.

The AXIS preview can't know what analog value will be present at the
time the M66 instruction is actually executed, so anything it does will
be wrong.

The current version of AXIS seems to use the prior value of parameter
#5399 as the input's value; as #5399 is not typically a saved parameter,
this usually means that the inputs will always be treated as 0.0 or
false. (looking at pre2.4; 2.3 may be different)

I'm not totally against doing something more sophisticated than this,
but I don't know what that thing would be.

Jeff




--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Need help configuring Home

2010-05-04 Thread Stephen Wille Padnos
Neil Baylis wrote:
 No, same problem.

 With HOME_IGNORE_LIMITS = YES, it sails right past the home/limit
 switch and hits the hard stop.

 With HOME_IGNORE_LIMITS = NO, it stops at the limit, complaining that
 it hit a limit in homing state 5.

 HOME_IS_SHARED seems to have no effect on this.

Ok, I looked at the code, and you're right - this tells EMC2 that the 
same input is used for multiple home switches, and isn't useful in this 
case.

You have some problem with the home switch being detected.  Home state 5 
means the joint is moving, and the homing code is waiting for the switch 
to close.
 Note: I tried monitoring the axis.0.home-sw-in with Halmeter, but it
 never changes. Also, when I use Halmeter to monitor the limit switch,
 that never changes either, even though it is changing on TkEMC.
 Something I don't understand about using Halmeter, I guess.

You should try looking at all three things that have to do with the home 
switch:  the pin ppmc.0.din.02.in-not, the signal Xminlim, and the pin 
axis.0.home-sw-in.

If they are ever different, you have a problem (since the two pins are 
supposed to be connected together, they should always have the same value).

You should be able to hit the switch and see all three halmeters switch 
between true and false.

- Steve


--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Need help configuring Home

2010-05-04 Thread Neil Baylis
Thanks Steve.

I made 3 halmeters as you suggested. They all register FALSE, even
when the GUI is
showing the position in red when I hit the limit.

Just to make sure halmeter is working, I added another halmeter on
axis.0.motor-pos-fb and it showed the same position as the GUI does,
updating correctly as I move the machine by hand. So halmeter is
working, but doesn't show the digital ins for some reason.

Neil

 You should try looking at all three things that have to do with the home
 switch:  the pin ppmc.0.din.02.in-not, the signal Xminlim, and the pin
 axis.0.home-sw-in.

 If they are ever different, you have a problem (since the two pins are
 supposed to be connected together, they should always have the same value).

 You should be able to hit the switch and see all three halmeters switch
 between true and false.


--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Need help configuring Home

2010-05-04 Thread Stephen Wille Padnos
Neil Baylis wrote:
 Thanks Steve.

 I made 3 halmeters as you suggested. They all register FALSE, even
 when the GUI is
 showing the position in red when I hit the limit.

That's mighty odd, and more or less impossible if the HAL setup is as we 
think it is.  Can you add another halmeter on axis.0.neg-lim-sw-in?  If 
axis.0.neg-lim-sw-in is ever different from axis.0.home-sw-in, then 
something later in the HAL files is disconnecting the home input from 
the Xminlim signal, or some equivalent.
 Just to make sure halmeter is working, I added another halmeter on
 axis.0.motor-pos-fb and it showed the same position as the GUI does,
 updating correctly as I move the machine by hand. So halmeter is
 working, but doesn't show the digital ins for some reason.

This counts as strange then.  I don't think there's a bug in halmeter 
that prevents it from displaying bit values.

Can you post your ini and hal files?  Maybe put them on 
http://pastebin.ca and give us the links.

Thanks
- Steve


--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Need help configuring Home

2010-05-04 Thread Stuart Stevenson
is your debounce connected to a thread?

On Tue, May 4, 2010 at 3:03 PM, Neil Baylis neil.bay...@gmail.com wrote:

 Thanks Steve.

 I made 3 halmeters as you suggested. They all register FALSE, even
 when the GUI is
 showing the position in red when I hit the limit.

 Just to make sure halmeter is working, I added another halmeter on
 axis.0.motor-pos-fb and it showed the same position as the GUI does,
 updating correctly as I move the machine by hand. So halmeter is
 working, but doesn't show the digital ins for some reason.

 Neil

  You should try looking at all three things that have to do with the home
  switch:  the pin ppmc.0.din.02.in-not, the signal Xminlim, and the pin
  axis.0.home-sw-in.
 
  If they are ever different, you have a problem (since the two pins are
  supposed to be connected together, they should always have the same
 value).
 
  You should be able to hit the switch and see all three halmeters switch
  between true and false.
 


 --
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users




-- 
dos centavos
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Need help configuring Home

2010-05-04 Thread John Kasunich


On Tue, 04 May 2010 16:13 -0400, Stephen Wille Padnos
spad...@sover.net wrote:
 Neil Baylis wrote:
  Thanks Steve.
 
  I made 3 halmeters as you suggested. They all register FALSE, even
  when the GUI is
  showing the position in red when I hit the limit.
 
 That's mighty odd, and more or less impossible if the HAL setup is as we 
 think it is.  Can you add another halmeter on axis.0.neg-lim-sw-in?  If 
 axis.0.neg-lim-sw-in is ever different from axis.0.home-sw-in, then 
 something later in the HAL files is disconnecting the home input from 
 the Xminlim signal, or some equivalent.
  Just to make sure halmeter is working, I added another halmeter on
  axis.0.motor-pos-fb and it showed the same position as the GUI does,
  updating correctly as I move the machine by hand. So halmeter is
  working, but doesn't show the digital ins for some reason.
 
 This counts as strange then.  I don't think there's a bug in halmeter 
 that prevents it from displaying bit values.
 
 Can you post your ini and hal files?  Maybe put them on 
 http://pastebin.ca and give us the links.
 

Better yet - in addition to posting your files, post the result
of running halcmd show in another shell while EMC2 is running.
Your hal and ini files describe what you are trying to get.
Halcmd show describes what you actually have.

Regards,

John Kasunich

-- 
  John Kasunich
  jmkasun...@fastmail.fm


--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] jog and max speeds

2010-05-04 Thread Chris Reynolds
Where in the ini file do I specify what jog and max speeds I want to 
automatically be set in Axis when I open it? 

 Chris 


http://www.blowyourbrassoff.com
http://www.builderofstuff.com
http://www.myspace.com/builderofstuff
http://www.myspace.com/builderofbluesharps


Just a man, his shop, and a long list of unfinished projects...
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Need help configuring Home

2010-05-04 Thread Neil Baylis
OK, I've posted what I think is relevant. If there's a file missing, let me
know.

I posted the output of halcmd show twice, once with the machine off the
limit switch, and again with it on the limit switch.

I omitted the .tbl and .var files.

These files are edited versions of originals from the pico systems website.
I must have deleted something important.

The files are at:

http://pastebin.com/AkEw8975

Each section begins with *** and a description of what follows, so just
search for the *** to get to the individual pieces.

Thanks,

Neil
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Need help configuring Home

2010-05-04 Thread Stephen Wille Padnos
Neil Baylis wrote:
 OK, I've posted what I think is relevant. If there's a file missing, let me
 know.

 I posted the output of halcmd show twice, once with the machine off the
 limit switch, and again with it on the limit switch.

 I omitted the .tbl and .var files.

 These files are edited versions of originals from the pico systems website.
 I must have deleted something important.

 The files are at:

 http://pastebin.com/AkEw8975

 Each section begins with *** and a description of what follows, so just
 search for the *** to get to the individual pieces.

I think you might have the min and max limits swapped.  Input 3 changed 
from false to true when you hit the switch, not input 2.  That would 
cause the numbers to turn red in tkEMC, since one of the limits was 
activated.

- Steve


--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Need help configuring Home

2010-05-04 Thread Andy Pugh
On 4 May 2010 21:03, Neil Baylis neil.bay...@gmail.com wrote:

 I made 3 halmeters as you suggested.

Halscope might show if there is a wierd transient effect.

 They all register FALSE, even
 when the GUI is
 showing the position in red when I hit the limit.

Are you sure that you have the limits the right way round?
Is it possible that the switch you think is the negative limit is the
positive limit. That would produce the behavour you are describing.

-- 
atp

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Need help configuring Home

2010-05-04 Thread Neil Baylis
Indeed, that was the problem.

Now, the halmeters show the limit switch as expected, as well as the home
signal.

The homing sequence works correctly.

(I changed HOME_IGNORE_LIMITS to YES, and it does the expected thing).

Thanks everyone for your help and suggestions.

Neil
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users