Hello Guest it is April 19, 2024, 04:03:17 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - supahonkey

Pages: 1
1
General Mach Discussion / Mach3 and a tube bender
« on: February 08, 2009, 05:02:48 PM »
Hey yall!  I am currently in the process of using Mach3 to control a tube bender I made last year.  Details of my build can be found here:

http://cnczone.com/forums/showthread.php?t=68163

I am using a 360 PPR rotary encoder to track die position.  I am aware that Mach3 isn't well equipped to interface encoders.  My bender never moves past 100 degrees and takes 15+ seconds to go from 0 to 100 degrees. 

I finally have my rotary encoder hooked up to a breakout board from CNC4PC.  I have configured the pins in Mach3.  How can I display readings from the encoder?  I have hooked up the encoder, but I don't know how to verify if it is working through Mach. 

I am using a Vickers valve to extend or retract a hydraulic cylinder.   Mach3 will energize and de-energize pins 2 or 3.  Pins 2 and 3 then go to a relay board from CNC4PC.  These relays energize either coil A or B on the valve.  I have assigned spindle CW and CCW to control the relay board. 

My ultimate goal is to enter a value between 1 and 100 degrees.  I would like Mach to energize Pin 2, compare the user input value with the rotary encoder reading, the de-energize Pin 2 when the user input value and the rotary value are equal.

The first step is to interface the encoder with Mach3.  Can I set up a DRO to read degrees from a rotary encoder?

More info about my rotary encoder can be found on page 8 of my thread at cnczone.com

http://cnczone.com/forums/showthread.php?t=68163&page=8


Pages: 1