Welcome To the Hoffman Amplifiers Forum

September 08, 2025, 05:18:45 am
guest image
Welcome, Guest. Please login or register.
-User Name
-Password



Hoffman Amps Forum image Author Topic: CNC probe mixer question....  (Read 6822 times)

0 Members and 1 Guest are viewing this topic.

Offline G._Hoffman

  • Level 3
  • ***
  • Posts: 1417
  • I love tube amps
Hoffman Amps Forum image
CNC probe mixer question....
« on: January 13, 2015, 04:12:40 am »
OK, so I've got two probes for my CNC machine (one for setting Z axis depth zero, and one for probing objects).  Annoyingly, they operate at opposite logic states!!!  Rather than having to reset the input every time I change probes, I want to make some kind of mixer for the two probes.  I was thinking I could just do it with a 4049 hex inverter, which would be great since I have all the parts here and wouldn't have to buy any parts, but I pretty quickly realized you can't just mix logic signals like you do analog signals.  So now I'm thinking I want to use a quad AND gate.  I'm thinking I can use one gate for each input as a buffer, and by switching the second input between logic states I'll also get the ability to switch polarity.  The third gate will be just an AND gate, and the fourth gate will be another buffer for the output (also switchable polarity).  Makes sense, or no?


Gabriel

Offline G._Hoffman

  • Level 3
  • ***
  • Posts: 1417
  • I love tube amps
Hoffman Amps Forum image
Re: CNC probe mixer question....
« Reply #1 on: January 13, 2015, 04:37:06 am »
Like so....

Offline EL34

  • Administrator
  • Level 5
  • **********
  • Posts: 10407
  • wooot!
    • Hoffman Amplifiers
Hoffman Amps Forum image
Re: CNC probe mixer question....
« Reply #2 on: January 13, 2015, 06:51:15 am »
I can't help with the mixer

Not sure what machine controller you use
I use Mach3 and it lets me set the input ports high or low
But that may not help unless you set up two ports, one for each probe

The thing I do with touch probes is set dead centers and Z height
Mach 3 lets me create buttons on the screen and the execute VB script code that you can write yourself

It would be real easy to set up a button on the screen for each probe and just alter the code

Offline G._Hoffman

  • Level 3
  • ***
  • Posts: 1417
  • I love tube amps
Hoffman Amps Forum image
Re: CNC probe mixer question....
« Reply #3 on: January 13, 2015, 04:37:30 pm »
I can't help with the mixer

Not sure what machine controller you use
I use Mach3 and it lets me set the input ports high or low
But that may not help unless you set up two ports, one for each probe

The thing I do with touch probes is set dead centers and Z height
Mach 3 lets me create buttons on the screen and the execute VB script code that you can write yourself

It would be real easy to set up a button on the screen for each probe and just alter the code

Yup, that's what I'm using it for too - though I would like to be able to digitize necks and the like at some point.  I've got everything set up - I've been probing for Z height for quite a while, and have used a similar setup for edge finding, but now that I've got the new probe for digitizing the mixed logic states are frustrating, and of course create an opportunity for operator error every time I change between the two.  I had to switch 3-4 times last night, and I only for got to switch once, but it caused a crash that could have been quite bad (it wasn't - I whacked the e-stop soon enough, but still...)


Gabriel

Offline EL34

  • Administrator
  • Level 5
  • **********
  • Posts: 10407
  • wooot!
    • Hoffman Amplifiers
Hoffman Amps Forum image
Re: CNC probe mixer question....
« Reply #4 on: January 13, 2015, 04:51:07 pm »
So, do you have any unused ports?


If not, I added a second Parallel printer port card to my machine and got some more ports that way.

Offline G._Hoffman

  • Level 3
  • ***
  • Posts: 1417
  • I love tube amps
Hoffman Amps Forum image
Re: CNC probe mixer question....
« Reply #5 on: January 13, 2015, 05:03:49 pm »
So, do you have any unused ports?


If not, I added a second Parallel printer port card to my machine and got some more ports that way.

I don't, but Mach3 only has one input that is dedicated to a probe (yes, I know, I could use another port, but then I'd have to figure out the programing, which is not my forte!)  One chip, some resistors, and a cap would take me a LOT less time!  (Programing computers makes me feel like a moron, I'm so bad at it.  The amount of time I spend just getting a "hello world" program to work is embarrassing!)

I do have a second break out board, but I haven't got a second parallel port yet, and have other plans for those inputs at the moment.


Gabriel

 


Choose a link from the
Hoffman Amplifiers parts catalog
Mobile Device
Catalog Link
Yard Sale
Discontinued
Misc. Hardware
What's New Board Building
 Parts
Amp trim
Handles
Lamps
Diodes
Hoffman Turret
 Boards
Channel
Switching
Resistors Fender Eyelet
 Boards
Screws/Nuts
Washers
Jacks/Plugs
Connectors
Misc Eyelet
Boards
Tools
Capacitors Custom Boards
Tubes
Valves
Pots
Knobs
Fuses/Cords Chassis
Tube
Sockets
Switches Wire
Cable


Handy Links
Tube Amp Library
Tube Amp
Schematics library
Design a custom Eyelet or
Turret Board
DIY Layout Creator
File analyzer program
DIY Layout Creator
File library
Transformer Wiring
Diagrams
Hoffmanamps
Facebook page
Hoffman Amplifiers
Discount Program