HDBB2 Manual
HDBB2 Manual
HDBB2 Manual
user's manual
Contents
1 Features
2 Connectors
2.1 Screw terminals
2.2 Centronics port
2.3 IDC port
2.4 RJ45 axis connectors
2.5 12V DC input terminals
2.6 12Vout terminals
3 LPT port to I/O assignment
4 LED indicators
5 Functions
5.1 Opto isolated inputs
5.2 Open-drain outputs
5.3 Analog output
5.4 Charge pump safety circuit
5.5 Optional error and reset signals
6 Jumpers
7 Example connections
7.1 Connecting external relays
7.1.1 Connecting a mechanical relay
with 12Volts rated coil
7.1.2 Connecting a mechanical relay
with other rated coil Voltage
7.1.3 Connecting a solid state relay
(SSR)
7.1.4 Connecting a relay to the safety
charge pump circuit
7.2 Connecting switches and sensors
7.2.1 Connecting NPN switches
7.2.2 Connecting PNP switches
7.2.3 Connecting mechanical switches
1/14
1. Features
The HDBB2 is a signal breakout board making the wiring and connections to
the LPT port or motion controller easy.
There are 4 pieces of axis connectors to connect to our servo drives directly
with straight wired „patch cables”.
All inputs connected via onboard optical isolator.
4 outputs have open-drain high power transistor outputs for driving external
relay coils, solenoids, etc. directly upto 50Volts.
All in and outputs have LED indicators which makes the installation and
connections debugging easy.
The board integrates a safety chargepump circuit which can be
disabled/enabled with jumper.
One analog 0-5V output is also onboard for software handled spindle speed
control.
2/14
2. Pinouts
2.1. Screw terminals
Screw terminals have standard RM5.0 pitch and connections of external devices
can be made through these connectors.
The pinout of the screw terminals are as follows:
01.) PGND 02.) Input 5.- 03.) Input 5.+ 04.) 12Vout
05.) PGND 06.) Input 4.- 07.) Input 4.+ 08.) 12Vout
09.) PGND 10.) Input 3.- 11.) Input 3.+ 12.) 12Vout
13.) PGND 14.) Input 2.- 15.) Input 2.+ 16.) 12Vout
17.) PGND 18.) Input 1.- 19.) Input 1.+ 20.) 12Vout
21.) Error I/O 22.) PGND 23.) Reset input 24.) PGND
25.) 12Vout 26.) Output 1. 27.) 12Vout 28.) Output 2.
29.) 12Vout 30.) Output 3. 31.) PGND 32.) Analog output
33.) Output 4. 34.) 12Vout 35.) 12V DC input 36.) PGND
37.) PGND 38.) 12Vout
* PGND means the external 12VDC powersupply's negative (GND) terminal.
3/14
2.2 Centronics port
The centronix port is for the LPT port connection to the control PC. Use a
standard DSUB-25 to Centronix-36 standard printer cable to connect this port
to the computer's LPT (printer) port.
The IDC port is a 26 pin ribbon connector and is useful for connection to
external motion controller like the Smoothstepper etc.
Connectors marked with ’X’, ’Y’, ’Z’ and ’A’ has identical pinout except the
step and direction pins.
4/14
3. LPT port to I/O assignment
The blow diagram show the pin mapping of the signals. Both the LPT and the
Centronix port pinouts are listed.
Function on board LPT port pin number Centronix port pin number
X-axis step signal 2 2
X-axis direction signal 3 3
Y-axis step signal 4 4
Y-axis direction signal 5 5
Z-axis step signal 6 6
Y-axis direction signal 7 7
A-axis step signal 8 8
A-axis direction signal 9 9
Input#1 [common error line] 15 32
Input#2 10 10
Input#3 11 11
Input#4 12 12
Input#5 13 13
Output#1 17 36
Output#2 1 1
Output#3 [charge pump] 14 14
Output#4 [analog output] 16 31
Signal ground 18-25 19-30
Shield Cover 17
5/14
4. LED indicators
On the HDBB2 every board functions have visual feedback with LEDs. (light
emmiting diodes).
In point 2.1 drawing each LED is marked with „Lx” signs, where 'x' is a number.
The LED meanings are summarised in the below table:
5. Functions
There are 5 pieces of inputs onboard and all inputs are isolated from the
parallel port and the signals fed through optical isolators.
All inputs are marked with – and + terminals. The + terminal is connected to
an 1kOhm resistor and this resistor is connected to the anode of the
optoisolator's LED.
The – terminal is connected directly to the cathode of the optoisolator's LED.
In parallel with the optoisolator LED a 1kOhm in series with a green LED is
connected, these LEDs are marked with 'Lx' in point 2.1. of this datasheet and
this LED gives visual feedback of the input state. When the input is triggered
the onboard LED connected to the input lights up.
6/14
The equivalent circuit of the onboard inputs is shown below:
7/14
5.3 Analog output
There is one 0..5 Volts analog output onboard, this output is shares the LPT
port pin with Output#4. The digital 0-5Volts TTL signal from the LPT port
is optically isolated and smoothed with an onboard RC filter to analog 0 to
5Volts Voltage. The analog Voltage level is proportional with the LPT port
digital signal's duty cycle. A PWM can be applied to the LPT port pin (from
software) and with variing the duty cycle of this signal the analog output
Voltage value can be changed. A 0% on duty cycle output on the LPT port
pin gives a 0Volts analog output Voltage and a 100% on duty cycle output
on the LPT port pin gives an 5Volts analog output Voltage. The output is
scaled linear, so an 50% duty cycle signal gives a 2.5Volts analog output
Voltage.
The charge pump is a safety circuit which reading the signal on an LPT port
pin and if it receiving a pulse train with approximately 12.5kHz frequency
then it's output goes active (high) after around 100mseconds. If there is no
pulse train on the charge pump's input circuit for more than around
50mseconds then the output goes inactive (low).
The onboard chargepump circuit shares an LPT port pin and mapped to the
same LPT port pin as Output#3 and an external relay can be driven as
charge pump safety relay.
The chargepump function can be selected with putting J1 jumper to 2-3
position and in this case the Open-drain output#3 is driven by the charge
pump circuit instead of direcly with the LPT port output pin. The charge
pump circuit can be disabled with placing J1 jumper to 1-2 state and in this
case the charge pump circuit goes inactive and Open-drain output#3 can be
driven directly with the LPT port output pin.
8/14
6. Jumpers
There are 2 pieces of onboard jumpers, on the picture in point 2.1 of this manual these
jumpers are marked with J1 and J2.
The jumpers have different functions as follows:
- J1 jumper is for the „charge pump safety circuit / standard digital output” selection. For
more information please read section 5.4 in this manual.
- J2 jumper is for the „common error line / standard digital input” selection.
If this jumper is in the 1-2 state then input#1 works as standard digital input as described in
point 5.1 in this manual.
If this jumper is in the 2-3 state then input#1 gets disabled and the common error line of the
drives gets connected to the LPT port input pin of input#1.
The common error line is the drives's error lines conencted together and also
wired to the error signal terminal onboard. If the ecommon error line goes low
because of any drive's internal fault or because the user triggers the error input
terminal then this signal is feed back to the LPT port pin of input#1.
This signal can be used forexample to trigger an E-stop in the CNC control
software.
7. Example connections
9/14
7.1.1 Connecting a mechanical relay with 12Volts rated coil
Because the HDBB using 12Volts input Voltage it is the easiest to connect
relays with 12Volts Voltage because in this case there is no need for any
more external power supply.
An example external 12Volts relay coil connected to a HDBB2output is
shown below:
If other Voltage then 12Volts rated relay coil is used the only solution is
using an external power supply with an output Voltage equal the coil's
rated Voltage.
This way any relay Voltage can be used upto 50Volts.
An example external 24Volts relay coil connected to a HDBB2 output is
shown below:
10/14
7.1.3 Connecting a solid state relay (SSR)
Solid state relays (SSR) are non-mechanical type relays where the
switching circuit inside the relay is an electric circuit mostly with a
Mosfet or Triak.
These kind of relays having an optocoupler with LED on their inputs and
they can be driven similar way as a standard LED. A series resistor have
to be connected in series with the LED anode of the SSR. This series
resistor is used to limit the LED current to a value adviced in the SSR's
datasheet. For value on the series resistor please see the used SSR's
product manual.
The shematics of the SSR connection to the HDBB2 board is shown
below:
11/14
7.2 Connecting switches and sensors
In the HDBB2 all inputs have optical isolators which isolates the inputs
from the external switch or sensor's Voltage.
All inputs have a 12Volts output, Ground and Input – and Input + screw
terminals next to eachother. Because both the positive and negative
12V bus rails and optocoupler anode and cathode is accessible the
connections to any type of external switches is possible.
The following sub-section of this datasheet showing how to connect
different type of sensors.
12/14
7.2.3. Connecting mechanical switches to inputs
13/14
Datasheet Rev. Date Notes
1.0 31.03.2012 Premilary release for review and internal use only.
1.1 07.04.2012 Drawing in 7.1.3. was revised and corrected.
1.2 24.07.2012 Points 7.2 and it's sub-points was finalised and content was added.
Picture in point 2.1 was extended with lables.
1.3 28.12.2012 Visual appearence of document upgraded.
http://www.CNCdrive.com
14/14