Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: harshjaiswal on December 14, 2009, 12:07:46 PM
-
I am a new user. I am trying to install Mach 3 on Vertical Milling Machine which had a Heidenhain control. It was an old control(yr.1989) and so I am installing all new control and I have thought of trying out the Mach 3.
I want to use 3 phase hybrid stepper motors and drives with the Mach 3, but I am confused about the wiring. I was wondering if someone could help me with how to connect the parallel port output to the drive. The following is the wiring example given in the driver manual:-
Pulse Signal +
Pulse Signal -
Direction Signal +
Direction Signal -
Subdivision choosing Signal +
Subdivision choosing Signal -
Motor Free Signal +
Motor Free Signal -
Origin Output Signal +
Origin Output Signal -
Ready Signal +
Ready Signal -
BK+ preformed signal +
BK- preformed signal -
Dead end
I am attaching the manual. I would really appreciate someones help with this.
Also, do I really need a breakout board? The drives are insulated so I am not sure if it is really a requirement.
PLEASE HELP
-
I wouldn't do any thing just yet.
I think you may need to redo a lot of wiring or even completely rewire to make the machine compatible.
I am sure its not as simple as plugging in a PC with Mach3 loaded. ;D
A guy called Hood will be along later.
Phil
-
I havent done any wiring yet. I am not able to figure out how to do the wiring. I was wondering if this driver can be wired to work with Mach 3 or not?
I would really appreciate someones help on this.
Thank you
Harsh
-
Hi Harsh,
It is always a wise move to use an active breakout board which opto isolates your input and output signals from the PC parallel port, just in case anything goes wrong - It can save the life of your PC.
I took a look at the manual but on one page it says DP4 should be ON for step and direction pulse input and on another page it says it should be OFF for step and direction pulse input. The whole document is quite confusing so I understand your problem.
However, I think this controller will work OK with Mach and as soon as I get time I will draw a connection diagram of how I would connect this up.
Tweakie.
-
Thanks for the reply. I would really appreciate some help with the connections.
Also, I have looked into alot of breakout boards but I am not able to decide which one to buy. Is there any breakout board which will qualify as the best for running 3 drives and 1 VFD?
Thank you
Harsh.
-
You could do a forum search to find out what others are using for their BOB’s - the C10 seems to be popular and this can be found here http://www.cnc4pc.com/Store/osc/index.php?cPath=33&osCsid=2d1fd3d8ffdeb2cc6078c4da7037fc55
This is the basics of what I would do ( I don’t offer any warranty on this !!).
Q3HB220M Driver:- Pin 6 switches alternate steps per revolution which is not required. Pin 10 is an index output which is not required at this stage. Pin 12 is a driver ready output which is not required. (This assumes that you will not be using encoders with the motors).
Set the steps per (SK1) to a realistic setting, perhaps position 9 (2000). Set motor run current (runIM) and motor hold current (stopIM) to match your motors.
LPT output pins / BOB pins and Mach setup:-
PIN DESIGNATION MACH ports & pins
Input / Output signals.
1 C0/output
2 D0/output x step step low active
3 D1/output x dir active high / low will determine motor direction.
4 D2/output y step step low active
5 D3/output y dir active high / low will determine motor direction.
6 D4/output z step step low active
7 D5/output z dir active high / low will determine motor direction.
8 D6/output a step
9 D7/output a dir
10 S6/input e-stop
11 S7/input x home/limit
12 S5/input y home/limit
13 S4/input z home/limit
14 C1/output
15 S3/input
16 C2/output
17 C3/output
18 gnd )
19 gnd )
20 gnd )
21 gnd ) GND
22 gnd )
23 gnd )
24 gnd )
25 gnd )
Under motor tuning set the steps per to 2000, acceleration and velocity low (to start with) and the step and direction pulse widths to 2 uS.
Initial test:- Connect up one drive first (X axis) as diagram. At switch on the motor should lock – If the motor rotates, switch off and change DP4 to ON. Switch on again – if the motor does not lock, switch off and connect pin 8 (motor free signal) to GND and pin7 to +5V and try again.
Always switch off before changing any settings or connecting / disconnecting wires. Observe caution and safety when dealing with the 220 Vac and motor connections.
Tweakie.