Re: [Emc-users] Home and Limit Switch Setup in Stepconf

2008-01-18 Thread Dean Hedin
Right, I said make sure you are up to 2.2.2 

- Original Message - 
From: "Jeff Epler" <[EMAIL PROTECTED]>
To: "Enhanced Machine Controller (EMC)" 
Sent: Friday, January 18, 2008 9:51 AM
Subject: Re: [Emc-users] Home and Limit Switch Setup in Stepconf


> Dean,
> If I got a report about these problems in 2.2.2, I lost it.
> Can you let me know what problems you encountered?
> 
> I do know of some homing problems in 2.2.1, but the ones I know about
> were fixed in 2.2.2.
> 
> Jeff


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Home and Limit Switch Setup in Stepconf

2008-01-18 Thread Chris Barker




Thanks for the concise answer.
I would agree that you don't want to limit the machine, as much as
possible.
None the less, I did have to compromise with the input pins. I think, I
have a workable and logical setup as it is.
Separate switches to home each axis individually and ganged max limit
switches to prevent overruns. It cost me 4 input pins.

I will start with the EMC documentation to figure out the format of the
conf file and consider editing it. Is there further documentation on
the wiki or elsewhere?
When I am done and I have a working configuration I will post the file
since my machine is fairly common.

Chris


John Kasunich wrote:

  Chris Barker wrote:

  
  
Is it possible to edit the conf file manually?

  
  
YES, very much so.

EMC has _always_ been configured by editing ini and hal files.  Stepconf 
is brand new in version 2.2, and is a "wizard" intended to make setting 
up simple stepper machines easier for beginners.  It is NOT the only way 
or the best way to do things, just one way, for one class of machines.

Editing the files requires a somewhat deeper understanding of what you 
are trying to do than using a wizard like Stepconf, but it also gives 
you MUCH more control over your configuration.

  
  
Can EMC handle sharing the home and min. limit switch on each axis  > individually?

  
  
Yes.  You can share limits and use individual homes, or vice versa.

  
  
Of course, I would like to avoid rewiring.

Thanks,
Chris

Dean Hedin wrote:


  Chris make sure you are up to version 2.2.2
There are some bugs in the wizard regarding home/limit switch setup.
  

  
  
The bugs are only in the Stepconf wizard, not in EMC itself.  (Stepconf 
is new in version 2.2)

  
  

  You may find it easier to just rewire the switches.
  

  
  
Everyone is entitles to his own opinion, but I can't imagine rewiring a 
perfectly usable machine just because it exceeds the capability of the 
"simple stepper machine" configuration wizard.  Configure the machine 
the "old fashioned" way using the ini and hal files.  That gives you 
complete control.

  
  

  The "most simple" configuration is to put all the homes on one pin and
all the limits on another pin.  Have a pull up resistor on each pin and any 
on of the switches can pull
the line to ground.
  

  
  
If you have enough physical input pins to use one for each home switch, 
why would you want to lump multiple switches on one pin?  Permanently 
handicapping your machine to avoid some temporary inconvenience during 
configuration doesn't seem like a good tradeoff to me.

In the original mail Chris Barker wrote:

 > Each axis has it's own home switch. The home switch also acts as
 > a minimum limit when home isn't being used.
 > 3 input pins are used. Active low.
 >
 > Maximum travel limits are combined on all axes in a serial conection.
 > Active low.
 > Only 1 pin is used on the par. port.

I don't know your actual pinout, but lets assume it is like this:

Parport pin 10 = X axis home (and min limit)
Parport pin 11 = Y axis home (and min limit)
Parport pin 12 = Z axis home (and min limit)
Parport pin 13 = combined X,Y,Z max limit

All inputs are active low (low when on the switch)

Then the limit section of your hal file should look something like this:

# connect pin 10 to X home and min limit
net X-home parport.0.pin-10-in-not => axis.0.home-sw-in axis.0.neg-lim-sw-in

# connect pin 11 to Y home and min limit
net Y-home parport.0.pin-11-in-not => axis.1.home-sw-in axis.1.neg-lim-sw-in

# connect pin 12 to Z home and min limit
net Z-home parport.0.pin-12-in-not => axis.2.home-sw-in axis.2.neg-lim-sw-in

# connect pin 13 to all three max limits
net XYZ-max-lim parport.0.pin-13-in-not => axis.0.pos-lim-sw-in 
axis.1.pos-lim-sw-in axis.2.pos-lim-sw-in

Notes:

Lines beginning with # are comments, you can put whatever you want 
there.  Write something that will make sense to you when you are 
troubleshooting five years from now.

Lines beginning with "net" create a HAL signal that connects things 
together.  In this case, it connects a parport pin to EMC.  Everything 
after "net" is on one line (my mail client is wrapping the long lines, 
and yours might too).  "X-home", "Y-home", "Z-home", and "XYZ-max-lim" 
are signal names, and can be whatever makes sense to you.  The remaining 
names on each line are the pins that the signal connects, and must be 
names that already exist in the system.  The "=>" arrows are optional, 
and are used to show a human reading the file which way the signal is 
flowing.

Regards,

John Kasunich






-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.source

Re: [Emc-users] Home and Limit Switch Setup in Stepconf

2008-01-18 Thread John Kasunich
Chris Barker wrote:

> Is it possible to edit the conf file manually?

YES, very much so.

EMC has _always_ been configured by editing ini and hal files.  Stepconf 
is brand new in version 2.2, and is a "wizard" intended to make setting 
up simple stepper machines easier for beginners.  It is NOT the only way 
or the best way to do things, just one way, for one class of machines.

Editing the files requires a somewhat deeper understanding of what you 
are trying to do than using a wizard like Stepconf, but it also gives 
you MUCH more control over your configuration.

> Can EMC handle sharing the home and min. limit switch on each axis  > 
> individually?

Yes.  You can share limits and use individual homes, or vice versa.

> Of course, I would like to avoid rewiring.
> 
> Thanks,
> Chris
> 
> Dean Hedin wrote:
>> Chris make sure you are up to version 2.2.2
>> There are some bugs in the wizard regarding home/limit switch setup.

The bugs are only in the Stepconf wizard, not in EMC itself.  (Stepconf 
is new in version 2.2)

>> You may find it easier to just rewire the switches.

Everyone is entitles to his own opinion, but I can't imagine rewiring a 
perfectly usable machine just because it exceeds the capability of the 
"simple stepper machine" configuration wizard.  Configure the machine 
the "old fashioned" way using the ini and hal files.  That gives you 
complete control.

>> The "most simple" configuration is to put all the homes on one pin and
>> all the limits on another pin.  Have a pull up resistor on each pin and any 
>> on of the switches can pull
>> the line to ground.

If you have enough physical input pins to use one for each home switch, 
why would you want to lump multiple switches on one pin?  Permanently 
handicapping your machine to avoid some temporary inconvenience during 
configuration doesn't seem like a good tradeoff to me.

In the original mail Chris Barker wrote:

 > Each axis has it's own home switch. The home switch also acts as
 > a minimum limit when home isn't being used.
 > 3 input pins are used. Active low.
 >
 > Maximum travel limits are combined on all axes in a serial conection.
 > Active low.
 > Only 1 pin is used on the par. port.

I don't know your actual pinout, but lets assume it is like this:

Parport pin 10 = X axis home (and min limit)
Parport pin 11 = Y axis home (and min limit)
Parport pin 12 = Z axis home (and min limit)
Parport pin 13 = combined X,Y,Z max limit

All inputs are active low (low when on the switch)

Then the limit section of your hal file should look something like this:

# connect pin 10 to X home and min limit
net X-home parport.0.pin-10-in-not => axis.0.home-sw-in axis.0.neg-lim-sw-in

# connect pin 11 to Y home and min limit
net Y-home parport.0.pin-11-in-not => axis.1.home-sw-in axis.1.neg-lim-sw-in

# connect pin 12 to Z home and min limit
net Z-home parport.0.pin-12-in-not => axis.2.home-sw-in axis.2.neg-lim-sw-in

# connect pin 13 to all three max limits
net XYZ-max-lim parport.0.pin-13-in-not => axis.0.pos-lim-sw-in 
axis.1.pos-lim-sw-in axis.2.pos-lim-sw-in

Notes:

Lines beginning with # are comments, you can put whatever you want 
there.  Write something that will make sense to you when you are 
troubleshooting five years from now.

Lines beginning with "net" create a HAL signal that connects things 
together.  In this case, it connects a parport pin to EMC.  Everything 
after "net" is on one line (my mail client is wrapping the long lines, 
and yours might too).  "X-home", "Y-home", "Z-home", and "XYZ-max-lim" 
are signal names, and can be whatever makes sense to you.  The remaining 
names on each line are the pins that the signal connects, and must be 
names that already exist in the system.  The "=>" arrows are optional, 
and are used to show a human reading the file which way the signal is 
flowing.

Regards,

John Kasunich






-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Home and Limit Switch Setup in Stepconf

2008-01-18 Thread Jeff Epler
Dean,
If I got a report about these problems in 2.2.2, I lost it.
Can you let me know what problems you encountered?

I do know of some homing problems in 2.2.1, but the ones I know about
were fixed in 2.2.2.

Jeff

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Home and Limit Switch Setup in Stepconf

2008-01-18 Thread Chris Barker




I am using 2.2.2
What kind of bugs? Is it possible to edit the conf file manually?
Can EMC handle sharing the home and min. limit switch on each axis
individually?
Of course, I would like to avoid rewiring.

Thanks,
Chris

Dean Hedin wrote:

  Chris make sure you are up to version 2.2.2
There are some bugs in the wizard regarding home/limit switch setup.

You may find it easier to just rewire the switches.

The "most simple" configuration is to put all the homes on one pin and
all the limits on another pin.  Have a pull up resistor on each pin and any 
on of the switches can pull
the line to ground.



- Original Message - 
From: "Chris Barker" <[EMAIL PROTECTED]>

  
  
Good Evening,

I am working through the setup of my router table using the Stepconf 
Wizard.
I have a question about how to configure my home and limit switches in
the wizard.
My machine is already setup and running using Turbocnc.
The way I already have my limits setup is:

Each axis has it's own home switch. The home switch also acts as a
minimum limit when home isn't being used.
3 input pins are used. Active low.

Maximum travel limits are combined on all axes in a serial conection.
Active low.
Only 1 pin is used on the par. port.

  
  

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


  





-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Home and Limit Switch Setup in Stepconf

2008-01-17 Thread Dean Hedin
Chris make sure you are up to version 2.2.2
There are some bugs in the wizard regarding home/limit switch setup.

You may find it easier to just rewire the switches.

The "most simple" configuration is to put all the homes on one pin and
all the limits on another pin.  Have a pull up resistor on each pin and any 
on of the switches can pull
the line to ground.



- Original Message - 
From: "Chris Barker" <[EMAIL PROTECTED]>

> Good Evening,
>
> I am working through the setup of my router table using the Stepconf 
> Wizard.
> I have a question about how to configure my home and limit switches in
> the wizard.
> My machine is already setup and running using Turbocnc.
> The way I already have my limits setup is:
>
> Each axis has it's own home switch. The home switch also acts as a
> minimum limit when home isn't being used.
> 3 input pins are used. Active low.
>
> Maximum travel limits are combined on all axes in a serial conection.
> Active low.
> Only 1 pin is used on the par. port.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Home and Limit Switch Setup in Stepconf

2008-01-17 Thread Chris Barker
I was just thinking that one possibility is I could not use the switches 
as 'home' switches. Just call them limits and manually home each axis.

Chris

Jeff Epler wrote:
> stepconf only gives a tiny, tiny subset of all the configurations that
> can be created through emc2's HAL.  It sounds like your home switch
> configuration may be one that is not possible.  You may be able to use
> custom.hal and/or inifile tweaks after stepconf has run to get the
> configuration you want, or you may be better off starting with a
> traditional stepper_inch/stepper_mm configuration and editing it to
> suit.
>
> Jeff
>
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
>
>   


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Home and Limit Switch Setup in Stepconf

2008-01-17 Thread Jeff Epler
stepconf only gives a tiny, tiny subset of all the configurations that
can be created through emc2's HAL.  It sounds like your home switch
configuration may be one that is not possible.  You may be able to use
custom.hal and/or inifile tweaks after stepconf has run to get the
configuration you want, or you may be better off starting with a
traditional stepper_inch/stepper_mm configuration and editing it to
suit.

Jeff

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Home and Limit Switch Setup in Stepconf

2008-01-17 Thread Chris Barker
Good Evening,

I am working through the setup of my router table using the Stepconf Wizard.
I have a question about how to configure my home and limit switches in 
the wizard.
My machine is already setup and running using Turbocnc.
The way I already have my limits setup is:

Each axis has it's own home switch. The home switch also acts as a 
minimum limit when home isn't being used.
3 input pins are used. Active low.

Maximum travel limits are combined on all axes in a serial conection. 
Active low.
Only 1 pin is used on the par. port.

Stepconf doesn't seem to give me these options.
Is there another way I can set it up in the software?

Thanks,
Chris Barker


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users