Re: [Emc-users] MAXNC Open Loop Mill

2009-10-07 Thread Sven Wesley
2009/10/7 Kirk Wallace kwall...@wallacecompany.com


 I use EMC2 quadrature output on my Shizuoka mill:
 http://www.wallacecompany.com/machine_shop/Shizuoka/

 which is used to drive the steppers in half-step mode. Basically, there
 is just an amplifier between EMC2 and the stepper.


If you ever find an odd function in EMC2, you can be sure Kirk uses it. :)
Kirk, what are the optointerrupters for?

--S
--
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] MAXNC Open Loop Mill

2009-10-07 Thread Andy Pugh
2009/10/7 Kirk Wallace kwall...@wallacecompany.com:

 I use EMC2 quadrature output on my Shizuoka mill:
 http://www.wallacecompany.com/machine_shop/Shizuoka/

 which is used to drive the steppers in half-step mode.

I assume this is what they are doing in the MAXNC mills, they have
probably offloaded the step generation to the PC software.
On the hardware side is it as simple as running phase A positive
polarity when the A channel is high and negative polarity when low,
and the same for B? (Not that that matters for Wayne's purposes, of
course.)

-- 
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


[Emc-users] Does EMC save coordinations on program shutdown?

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

I have question about coordination.

When I start EMC it always has HOME coordinations, does not matter if I 
finished at home or at another place.

Does exists any way to save coordinations and start emc with saved 
coordinations?

Best Regards
Evgney

--
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] MAXNC Open Loop Mill

2009-10-07 Thread Kirk Wallace
On Wed, 2009-10-07 at 09:43 +0200, Sven Wesley wrote:
 2009/10/7 Kirk Wallace kwall...@wallacecompany.com
  I use EMC2 quadrature output on my Shizuoka mill:
  http://www.wallacecompany.com/machine_shop/Shizuoka/
 
  which is used to drive the steppers in half-step mode. Basically, there
  is just an amplifier between EMC2 and the stepper.
 
 
 If you ever find an odd function in EMC2, you can be sure Kirk uses it. :)
 Kirk, what are the optointerrupters for?
 
 --S

If you mean here:
http://www.wallacecompany.com/machine_shop/Shizuoka/Shizuoka_Step_Drv-1a.png 
(Short URL) http://preview.alturl.com/fmdb 

these are on the original stepper drivers. On the PC side, I have a
74ls244:
http://focus.ti.com/lit/ds/symlink/sn74ls241.pdf 

that provides enough power to drive the LED in the opto-interrupter
(/coupler). 

I like to have an opto-coupler somewhere in the connection between the
PC and the outside world to help prevent damaging the PC. Early on, I
blew out a motherboard parallel port, which bothers me to no end. Now, I
try to use cheap PCI parallel port cards and opto-couplers, so I don't
make the same mistake again. Plus, the couplers come in handy for
voltage conversion. My guess is, one volt of noise on a 12 volt signal
is less of a problem than on a three or five volt signal, the coupler
makes it easy to convert the machine signal voltage to what the parallel
port needs.
-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/index.html
California, USA


--
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] MAXNC Open Loop Mill

2009-10-07 Thread Sven Wesley
2009/10/7 Kirk Wallace kwall...@wallacecompany.com

 On Wed, 2009-10-07 at 09:43 +0200, Sven Wesley wrote:
  2009/10/7 Kirk Wallace kwall...@wallacecompany.com

  If you ever find an odd function in EMC2, you can be sure Kirk uses it.
 :)
  Kirk, what are the optointerrupters for?
 
  --S

 If you mean here:

 http://www.wallacecompany.com/machine_shop/Shizuoka/Shizuoka_Step_Drv-1a.png
 (Short URL) http://preview.alturl.com/fmdb

 these are on the original stepper drivers. On the PC side, I have a
 74ls244:
 http://focus.ti.com/lit/ds/symlink/sn74ls241.pdf

 that provides enough power to drive the LED in the opto-interrupter
 (/coupler).


It's an odd combination of this image:
http://www.wallacecompany.com/machine_shop/Shizuoka/mpg_proto-1a.jpg
http://www.wallacecompany.com/machine_shop/Shizuoka/mpg_proto-1a.jpgand
the text The PDF for the opto-interupters is here
(H22L)http://www.fairchildsemi.com/ds/H2/H22LOB.pdf.,
and I didn't really understand the combination. But opto couplers are nice,
absolutely.
If I understood your setup, You only have the EMC2 output signal,  opto
couplers, amplifiers and then the motors? Sounds like a really clean setup
to me. How fast can you go?

Regards,
Sven
--
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] Does EMC save coordinations on program shutdown?

2009-10-07 Thread Jon Elson
??? ? wrote:
 Hello Guys,

 I have question about coordination.

 When I start EMC it always has HOME coordinations, does not matter if I 
 finished at home or at another place.

 Does exists any way to save coordinations and start emc with saved 
 coordinations?
   
EMC saves the OFFSET between home and the various work coordinates you 
have set. So, if your machine
is able to home to a repeatable position, then all work coordinate 
systems (G54, G55, etc.) will be relative
to the same position on the machine. So, a fixture that is bolted to the 
table, the corner of the fixed vise
jaw or whatever can be brought back. Without a repeatable home position, 
this is not of any value.

Jon

--
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] MAXNC Open Loop Mill

2009-10-07 Thread Kirk Wallace
On Wed, 2009-10-07 at 18:52 +0200, Sven Wesley wrote:
... snip
 It's an odd combination of this image:
 http://www.wallacecompany.com/machine_shop/Shizuoka/mpg_proto-1a.jpg
 http://www.wallacecompany.com/machine_shop/Shizuoka/mpg_proto-1a.jpgand
 the text The PDF for the opto-interupters is here
 (H22L)http://www.fairchildsemi.com/ds/H2/H22LOB.pdf.,
 and I didn't really understand the combination. But opto couplers are nice,
 absolutely.
 If I understood your setup, You only have the EMC2 output signal,  opto
 couplers, amplifiers and then the motors? Sounds like a really clean setup
 to me. How fast can you go?
 
 Regards,
 Sven

This picture:
http://www.wallacecompany.com/machine_shop/Shizuoka/mpg_proto-1a.jpg 

shows my experiment at making a cheap jog wheel (or MPG). I failed to
notice that you mentioned opto-interrupters as opposed to opto-couplers,
which until now, I tended to use the terms to mean the same thing.
Sometimes it takes a 2x4 to the head to make me realize the obvious.

I can rapid up to 70 inches per minute, so... 

70/min. 5 rev./1 200 steps/rev. 1 min/60 sec. = 1166 steps/sec.

I got this maximum speed by running the axis until I started losing
steps, then backed off a bit. The parallel port signals should be able
to go much faster.

The signals between the original Bandit controller and the stepper
driver boards were quadrature, so I just copied what the Bandit was
doing, except the Bandit had a clever means to phase in single stepping
at higher step rates (50 ipm). This gave a maximum axis travel rate of
100 per minute. I want to go to servos and 70 per minute is fine for
now, so I haven't tried to figure out how to get EMC2 to to phase in
single stepping. So basically, there is just a driver chip and some CAT5
between EMC2 and the original driver board and stepper motor.

-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/index.html
California, USA


--
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] UK EMC Users Meetup

2009-10-07 Thread robert
Hi all

any body interested in the UK meet up
a number of us will be attending on Friday 16th for all thoes interested

a meet place  time is yet to be agreed

robert

--
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] UK EMC Users Meetup

2009-10-07 Thread Steve Blackmore
On Wed, 07 Oct 2009 19:32:21 +0100, you wrote:

any body interested in the UK meet up
a number of us will be attending on Friday 16th for all thoes interested

Saturday maybe but certainly not on Friday, I've work to do and a 250
mile round trip on the M6 in Friday traffic is not high on my list of
enjoyable days out  -  took 2 hours to do 5 miles yesterday, road works
AGAIN

Steve Blackmore
--

--
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] UK EMC Users Meetup

2009-10-07 Thread aaron moore
 I would really like to come but its just too far and on the wrong
day.. but I would like to know what happens.
Aaron in Cornwall

  - Original Message -
  From: Steve Blackmore
  To: Enhanced Machine Controller \(EMC\)
  Subject: Re: [Emc-users] UK EMC Users Meetup
  Date: Wed, 07 Oct 2009 20:37:53 +0100


  On Wed, 07 Oct 2009 19:32:21 +0100, you wrote:

   any body interested in the UK meet up
   a number of us will be attending on Friday 16th for all thoes
  interested

  Saturday maybe but certainly not on Friday, I've work to do and a 250
  mile round trip on the M6 in Friday traffic is not high on my list
  of
  enjoyable days out - took 2 hours to do 5 miles yesterday, road works
  AGAIN

  Steve Blackmore
  --

  --
  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

-- 
An Excellent Credit Score is 750 
See Yours in Just 2 Easy Steps!

--
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


[Emc-users] Amp Enable Wiring logic.

2009-10-07 Thread Andy Pugh
Seeing as how we have at least a few people here who really understand
pull-ups etc (and I am not one of them)

I did have everything working fine, but then I blew some drivers
meddling with things, and when I replaced them I took the opportunity
to get a bigger driver  for the X/Z axis (what it calls itself depends on
whether it is a lathe or mill config file loaded.)

Previously I had the amp-enable lines all connected to the same
parallel port pin and it worked fine, logic positive. Pin goes high,
amp turns o. This was when all the drivers were
this type.
http://www.motioncontrolproducts.co.uk/pdf/MSD325_stepper_drive_datasheetV2.0.pdf

Now I have added one of these drives, but I can't get it to work the same way
(I daisychained all the +5 lines together externally)
http://www.motioncontrolproducts.co.uk/pdf/MSD542-V2.0_stepper_drive_datasheet.pdf

Ideally I would like the amps disabled if the PC is off, and only
actually enabled if EMC is running and active.

As far as I can see it all should be logic-negative as I had it wired,
but it would seem odd to require a current through the opto-isolators
to turn the drives off. That does seem to be what the 325 datasheet
says, though (The 525 datasheet seems to be complete gibberish)

It is no trouble to change parallel port pins if a particular one has
useful boot-up behaviour, nor am I at all concerned about having to
use negative logic. (I just didn't know enough about source/sink
capacity of parallel ports when I built the system in the first place.

I currently have +5V from a PSU connected to the three OPTO
terminals. I think I have the p-port ground pins connected to the 0V
of the same CPU, but on reflection I am not totally sure... I think I
might have a half-witted arrangement where p-port ground is not
connected to 5V ground, but the 0V lines of all the PSUs (Independent
5V, 12V and 30V ones)  are common. What I possibly should have is the
5V ground connected to the P-Port ground (it only actually drives
opto-isolators and reflective opto limit switches and could almost
certainly float independently) and the other PSU grounds connected to
chassis ground.

Currently I can't turn off the MSD542 and one of the MSD325 drivers
keeps randomly dis-enabling, so I need to do something slightly
cleverer. I would have liked to have linked the enable optos in series
to reduce the p-port load, but I don't think that is possible with the
internal resistors and the internally-commoned +V on the 325 optos.

--
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] Amp Enable Wiring logic.

2009-10-07 Thread Kirk Wallace
On Thu, 2009-10-08 at 00:27 +0100, Andy Pugh wrote:
 Seeing as how we have at least a few people here who really understand
 pull-ups etc (and I am not one of them)
 
 I did have everything working fine, but then I blew some drivers
 meddling with things, and when I replaced them I took the opportunity
 to get a bigger driver  for the X/Z axis (what it calls itself depends on
 whether it is a lathe or mill config file loaded.)
 
 Previously I had the amp-enable lines all connected to the same
 parallel port pin and it worked fine, logic positive. Pin goes high,
 amp turns o. This was when all the drivers were
 this type.
 http://www.motioncontrolproducts.co.uk/pdf/MSD325_stepper_drive_datasheetV2.0.pdf

That seems risky to me because generally the LED in the opto-coupler
needs 10 to 20 milliamps to turn on well enough to switch the coupler's
output. You have three LED's to sink current for, which is 30 to 60 mA.
Generally, a parallel port pin is designed to sink or source about 3mA
(some can do much more, but which ones?). I would prefer to see the
parallel port pin connected to three inputs of a driver chip like a
74LS244. Each of the three outputs of the 74LS244 could be connected to
an opto-coupler input. You can also put a regular LED in series with
each opto-coupler input, to get a visual indication of the input's
state. If the LED doesn't light up or is dim, you most likely have a
problem.

 Now I have added one of these drives, but I can't get it to work the same way
 (I daisychained all the +5 lines together externally)
 http://www.motioncontrolproducts.co.uk/pdf/MSD542-V2.0_stepper_drive_datasheet.pdf
 
 Ideally I would like the amps disabled if the PC is off, and only
 actually enabled if EMC is running and active.

If you don't mind modifying your stepper drivers, you could cut the 5
Volt OPTO traces going to each opto-coupler and have the 74LS244 source
the LED instead of sink. Also you could use a twisted pair (CAT5) with
one wire from the 74LS244 output to the LED + side, then the other wire
go from the - side back to the 74LS244 ground.

 As far as I can see it all should be logic-negative as I had it wired,
 but it would seem odd to require a current through the opto-isolators
 to turn the drives off. That does seem to be what the 325 datasheet
 says, though (The 525 datasheet seems to be complete gibberish)

That's because of the sink arrangement. When the EMC2 output is High,
both sides of the opto-coupler LED are high, so there no current will go
through the LED. Generally you need around .6 Volts across the LED and
between 10 to 20 milliamps for normal operation. When the EMC output is
Low, the minus side of the LED is zero volts (sinking to ground), the
LED + side is around .6 Volts and the + side of the 270 Ohm current
limit resistor is 5 Volts.

 It is no trouble to change parallel port pins if a particular one has
 useful boot-up behaviour, nor am I at all concerned about having to
 use negative logic. (I just didn't know enough about source/sink
 capacity of parallel ports when I built the system in the first place.
 
 I currently have +5V from a PSU connected to the three OPTO
 terminals. I think I have the p-port ground pins connected to the 0V
 of the same CPU, but on reflection I am not totally sure... I think I
 might have a half-witted arrangement where p-port ground is not
 connected to 5V ground, but the 0V lines of all the PSUs (Independent
 5V, 12V and 30V ones)  are common. What I possibly should have is the
 5V ground connected to the P-Port ground (it only actually drives
 opto-isolators and reflective opto limit switches and could almost
 certainly float independently) and the other PSU grounds connected to
 chassis ground.

The circuit has to be closed for the opto-couplers to work. The 5 Volt
OPTO supply will put 5 Volts on the opto input, the parallel port will
try to sink this to the PC's ground, which will need to sink it to the 5
Volt OPTO supply's ground.

 Currently I can't turn off the MSD542 and one of the MSD325 drivers
 keeps randomly dis-enabling, so I need to do something slightly
 cleverer.

If you go over more than 3 mA on the parallel port, 50 mA on a driver
chip, or 30 mA on a opto-coupler input, you may blow the device out. A
parallel port is really hard to fix, a driver chip or opto-coupler is
cheep to replace.

 I would have liked to have linked the enable optos in series
 to reduce the p-port load, but I don't think that is possible with the
 internal resistors and the internally-commoned +V on the 325 optos.
 
 --
 atp

You can get more of what you want if you can modify the stepper driver
inputs. Maybe they provided jumpers to allow you to do this. You will
need to understand how LED's, driver chips, current limit resistors and
grounds work together, but it's not rocket science if you take your
time, draw out the circuits and ask questions.

-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/