Encoder Board MACH3
Encoder Board MACH3
Encoder Board MACH3
Encoder Interface
4-axis parallel port encoder interface
For Mach2/3 CNC control software
Closed loop operation for Servo and Stepper systems
General Users Guide
Sound Logic
James Cullins
3454 Sprindletree Dr.
Grapevine, Tx. 76051
james_cullins@sbcglobal.net
IMPORTANT INFORMATION
Copyright and Trademarks
Copyright 2005 by Sound Logic
Disclaimers of liability
Sound Logic or James T. Cullins assumes no responsibility or liability for
any damage done to persons, PC, Geckodrives, encoders, or any other electronic
component used in conjunction with this Sound Logic Encoder Interface including
material in process. Also, loss of time or loss of work incurred. Use at your own risk.
Features:
!
!
!
!
!
!
!
!
PCB
Fr4 Material
Solder mask on both sides
Silkscreen legend on topside
Plated through holes
Isolated 5 volts and grounds for the encoder interface parallel port IO
All outputs are buffered
Operational when Mach is in reset to provide the user encoder DRO position
for manual machining operations.
!
4 onboard relays rated 125 volts AC at 15 amps
to control spindle, coolant, vacuum pump etc. via M-codes in Mach software. Coupled
with Sound Logic PC to route Breakout board relay control jumpers will equal 8
controllable outputs in total.
Connectors:
J1 (X axis)
+5v Encoder +5v
XA
Encoder A
XB
Encoder B
GND Encoder Gnd
J2 (X Gecko encoder inputs)
Gnd Gecko Gnd
XA
Gecko encoder A input
XB
Gecko encoder B input
J1 (Y axis)
+5v Encoder +5v
YA
Encoder A
YB
Encoder B
GND Encoder Gnd
J1 (Z axis)
+5v Encoder +5v
ZA
Encoder A
ZB
Encoder B
GND Encoder Gnd
Connectors:
J11 Connected to second parallel port
Pin 1
Pin 2
Pin 3
Pin 4
Pin 5
Pin 6
Pin 7
Pin 8
Pin 9
Pin 10
Pin 11
Pin 12
Pin 13
Pin 14
Pin 15
Pin 16
Pin 17
Pin 18-28
J9 (mode)
CP uses charge pump
NCP no charge pump
A special cable can be connected (see note 2) from the MODE jumper on the encoder
interface to the MODE jumper on the Sound Logic breakout board and use the charge
pump from the breakout board for both boards.
This provides one more relay out (K4) for other uses.
J10
115 vac / 220 vac
For 115vac JP1 and JP2 are installed, use as is
For 220vac A jumper from JP1-1 to JP2-1 must be installed and the two existing
jumpers for 115 vac operation must be removed.
Note 2:
J9-1
J9-2 Red jumper between J9-1 and J9-2 is for charge pump on output 4.
J9-3 Red jumper between J9-2 and J9-3 is for no charge pump and output 4 may be
used in the same manner as output 1,2 and 3.
Typical wiring for use with a Gecko servo-drive, To use with other types
of drives such as stepper-type that require no feedback, connection to the
encoder is all that is required. And is the same basic configuration for any
type of 5VDC input device i.e. MPGs, OEM triggers, Probes etc.
Motor Outputs:
The following screen is a configuration for use with the Sound Logic Breakout Board. If
another breakout/distribution device is used your configuration may differ. Note that
active low may be opposite also depending your particular configuration. All axiss
used must be enabled.
Input Signals:
Below are two depictions of the same tab and screen. The upper screen depicts the
port and pin selection for limits and may also be used as general purpose inputs. And
pertains to the Sound Logic Breakout Board. Note that port two is entered in the lower
screenshot. This pertains to the Encoder interface. Port 1 deals with the Breakout board
and Port 2 is associated with the Encoder interface.
Output Signals:
Output signals are depicted below. Note which are enabled and which pins are selected
and their respective ports. These will control auxiliary devices such as spindle, coolant,
pumps, etc. The encoder interface has 4 relays on board rated at 125 vac and 15 amps.
The Sound Logic Breakout board requires a solid state relay to be used with each of its
outputs. Note on Charge pump J-9 mode, See page 5 to free up one of the outputs for
other uses.
Encoder MPGs:
In the screen below, Port 2, proper pin number and steps per unit must be entered. The
steps per unit will be the same as in motor tuning menu. Or simply the CPR in
quadrature of the encoder device times the pitch lead of the ballscrew. Again,
depending on your particular configuration. If the DRO reads in opposite, simply swap
encoder A&B pins. If encoder data is displayed on an incorrect DRO simply swap with
the correct encoder entry. Example: If Encoder 3 is displayed on Encoder 2, and 2 on 3,
swap with one another.
Spindle Setup:
Below is the spindle setup menu. Note that the Disable spindle relays and Disable
flood/Mist relays are unchecked and the proper output numbers are selected. And are
the only entries relevant to the encoder interface on this menu.