Results 1 to 10 of 10

Thread: Mach 3 - Z move controlling solenoid

  1. #1
    Join Date
    Mar 2004
    Location
    SE, Michigan
    Posts
    2,045

    Default Mach 3 - Z move controlling solenoid

    Can anyone explain to me how, in Mach 3, I can have a Z move control a solenoid.

    For example

    z-1., solenoid on
    z1., solenoid off

    My depth of cut can just as easily be controlled with a stop, using a pneumatic cylinder with flow control to control the plunge speed....and then I can use my extra stepper on another project

    would it work to just use the direction pin and put it to a 5v relay?

  2. #2
    Join Date
    May 2003
    Location
    52N 122W Western Kanuckistan
    Posts
    39,746

    Default

    You can use the direction pin but it will need a buffer to drive a relay. That can be a simple as a 2N2222 transistor and a resistor or two.

    Look here:

    http://www.dakeng.com/relay.htm
    Last edited by Evan; 06-13-2008 at 03:34 PM.
    L&S Industries sells grinding wheels Made In USA, all types and sizes. Also Superabrasive diamond and CBN wheels, no extra cost for custom wheels, Made in Canada. 10% discount for HSM members. Call Janet 250-392-3393 08:00-12:00, 13:00-15:00 M-F Pacific Paid Ad, updated Apr 01 2013
    update 2013/3/31 . Free software for calculating bolt circles and similar: Origin now settable to bottom left! All values positive. Click Here

  3. #3
    Join Date
    Mar 2004
    Location
    SE, Michigan
    Posts
    2,045

    Default

    sweet, thanks evan

  4. #4
    Join Date
    Mar 2008
    Posts
    3

    Default

    Hi Snowman,
    If you haven't done so already, look into the use of M codes, which Mach3 supports. They are specifically used for controlling external devices like solenoids, coolant, etc.
    Regards, Ian.

  5. #5
    Join Date
    Aug 2006
    Location
    Beaverton, OR
    Posts
    6,135

    Default

    I think he just wants a two position Z axis so using the direction pin would work fine. You could use a generic solid state relay. Most parallel ports will easily provide the little current needed to run a solid state.

  6. #6
    Join Date
    Apr 2007
    Location
    South Texas
    Posts
    641

    Default But -

    An Mcode and a plain digital output is just as easy and cheap and causes less problems later when he modifies the machine to have a controllable z axis.

  7. #7
    Join Date
    May 2003
    Location
    52N 122W Western Kanuckistan
    Posts
    39,746

    Default

    Using an m code requires additional programming. Using the Z direction pin does not.
    L&S Industries sells grinding wheels Made In USA, all types and sizes. Also Superabrasive diamond and CBN wheels, no extra cost for custom wheels, Made in Canada. 10% discount for HSM members. Call Janet 250-392-3393 08:00-12:00, 13:00-15:00 M-F Pacific Paid Ad, updated Apr 01 2013
    update 2013/3/31 . Free software for calculating bolt circles and similar: Origin now settable to bottom left! All values positive. Click Here

  8. #8
    Join Date
    Mar 2001
    Location
    Nottingham, England
    Posts
    14,186

    Default

    So use the M08 / M09 coolant outputs, the code for them is already in there.

    .
    .

    Sir John , Earl of Bligeport & Sudspumpwater. MBE [ Motor Bike Engineer ] Nottingham England.



  9. #9
    Join Date
    May 2003
    Location
    52N 122W Western Kanuckistan
    Posts
    39,746

    Default

    The coolant doesn't turn on and off for every Z move. It will have to be the Z dir output for simplicity.
    L&S Industries sells grinding wheels Made In USA, all types and sizes. Also Superabrasive diamond and CBN wheels, no extra cost for custom wheels, Made in Canada. 10% discount for HSM members. Call Janet 250-392-3393 08:00-12:00, 13:00-15:00 M-F Pacific Paid Ad, updated Apr 01 2013
    update 2013/3/31 . Free software for calculating bolt circles and similar: Origin now settable to bottom left! All values positive. Click Here

  10. #10
    Join Date
    Mar 2004
    Location
    SE, Michigan
    Posts
    2,045

    Default

    I knew I could set up all the other moves, but like Evan said, how do I set a cam program up to automatically output the m code instead of the z move? Too much of a pain....and I don't care to have to hand edit the code either.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •