HUST CNC H2N Quick start guide

HUST H2N CNC
CONNECTING MANUAL
Feb , 2006
HUST Automation Inc.
No. 80 Industry Rd., Toufen, Miaoli, Taiwan, R.O.C.
Tel: 886 37 623242 Fax: 886 37 623241


Contents
i
CONTENTS
1 INTRODUCTION 1-1
2 CONFIGURATION 2-1
2.1 System Configuration 2-1
3 INSTALLATION AND DIMENSION 3-1
3.1 Environmental Requirements 3-1
3.2 Cabinet Considerations 3-1
3.3 Thermal Design In A Cabinet 3-2
3.4 External Dimensions And Diagrams 3-3
4 CONNECTING DIAGRAMS 4-1
4.1 Connector Type 4-1
4.2 Connector Designation 4-1
4.3 System Connecting Block Diagram 4-2
5 I/O INTERFACE CONNECTIONS 5-1
5.1 I/O Connector Pin Assignment 5-1
5.2 I/O Relay Board 5-2
5.3 Input Signals 5-3
5.4 Output Signals 5-4
5.4 Examples For I/O Connections 5-5
6 INTERFACE BETWEEN CNC CONTROLLER AND PLC 6-1
6.1 HUST H2N Series Status Signal S-Bits 6-1
6.1.1 S-Bit Signal And PLC Cycle Time Chart 6-3
6.1.2 Descriptions Of S-Bits 6-3
Square Wave Signal with 0.75sec ON,0.25sec OFF (S000) 6-3
Reset Key Strobe (S001) 6-3
Cycle Start Key Strobe (S002) 6-3
Square Wave Signal with Wave Period (S008~S011) 6-3
CNC Control Unit Alarm Signal (S016) 6-4
Key Strobe (S017) 6-4
Key Strobe for Key Being Pressed Twice in 0.5sec (S018) 6-4
Cursor Up Key Strobe (S020)
Cursor Down Key Strobe (S021) 6-4
Page Up Key Strobe (S022)
Page Down Key Strobe (S023) 6-4
M-, T-, S-Code Strobe (S024~S026) 6-4
Servo Motor Status (S064,S065,S088) 6-4
In Process Status Bit (S080) 6-4
Spindle Status Bit (S085) 6-5

HUST H2N Connecting Manual
ii
Servo Motor Status (S088) 6-5
Key Signals from PC or MMI (S104~S111) 6-5
Battery (BT1,BT2) Down Signal (S120~S121) 6-5
Key Strobe for Key Being Pressed Down and Kept Down 6-5
Ladder Simulation Mode (S127) 6-5
X and Y-axis Home Signal at Machine Coordinate=0 (S160~S161) 6-5
In-position Signal for X and Y-axis (S176~S177) 6-5
Direction of Motor Rotation (+/-) for X and Y-axis (S192~S193) 6-6
Positioning Execution in PLC (S208~S209) 6-6
6.2 PLC Command Signal C-bits 6-9
Machine Lock/Feed-Hold (C000) 6-9
RESET (C001) 6-10
Emergency Stop Signal (C002) 6-10
Cycle Start (C004) 6-10
Program No. Selection By Enter Key (C005) 6-10
Single Block (C006) 6-10
NC Alarm (C007) 6-11
Program Restart-1 (C011) 6-11
Program Restart-2 (C012~C013) 6-12
Dryrun (C015) 6-13
Cursor Up and Cursor Down (C020~C021) 6-13
Page Up and Page Down Key (C022~C023) 6-13
Option Stop (C026) 6-14
Option Skip (C027) 6-14
Speed Deceleration Selection For G31 Skip Function (C028) 6-14
Counter Status (C030) 6-15
PLC ladder Simulation (C031) 6-15
M-, T-, S-code Command Finish Signal (C032~C034) 6-15
Round Corner Non-stop Operation (C036) 6-15
MPG Hand-wheel Test Mode (C056) 6-16
Return to The Last Program Block (C057) 6-16
Program Edit And MCM Edit Function Disabled (C058~C059) 6-16
HOME Execution Command (C063)
HOME Limit Switch Signals (C064~C065) 6-16
Specify Work Coordinate Group as Working Coordinate (C123)
Set the Current Pergram Position as Working Coordinate (C080~C081) 6-17
Clear the Current Axial Work and Machine Coordinate to Zero
(C067~C097) 6-18
Spindle Control (C117) 6-18
Command Code for Program Selection from External Device (C120) 6-19
Command for Spindle Speed Control (in%)
from External I/O Device (C121) 6-19
Set Working Coordinate (C123) 6-19
Simultaneous Exceution for M-,S-,T-code (C125) 6-19
Axial Data Input Disabled in TEACH Mode (C128~C129) 6-19
DRO Mode Enabled (C144~C145) 6-19
Signal for Over~travel (OT) Limit Switch (C160~C163) 6-20
Clear Error-count (C192~C193) 6-20
Positioning Execution in PLC Program (C208~C213) 6-20

Contents
iii
Special C-bit for G28,G29 and G30 (C224~C225) 6-20
Axial Motion Command in JOG Mode (C228) 6-20
G01 Feed-rate Adjustment by MPG Hand-wheel (C229,C230) 6-21
Load File from EPROM/FLASH-Rom (C231) 6-21
Clear G54 Work Coordinates (C232) 6-21
Program Simulation Without V-command and Encoder Feedback (C235) 6-21
MPG Hand-wheel Feed Interrupt Mode (C242) 6-21
MMI (Man Machine Interface) or LCD Screen In Sleep Mode (C243) 6-22
Suppressing Alarm ERROR-2 When Following Count>4096 (C244) 6-22
Re-defined Key board Key (C245) 6-22
LCD Display Function Disabled (C247) 6-23
User Defined Keyboard Function Output (C255) 6-23
6.3 Description of PLC Register 6-23
6.4 Variables 6-33
6.5 Input and Output Signal (I-Bits & O-Bit) 6-36
7 LADDER DIAGRAM 7-1
7.1 Introduction To Ladder Diagram 7-1
7.1.1 Interface Signal Definitions For PLC Ladder Diagram 7-1
7.1.2 Maximum Input/Output Point For PLC And PLC Editor 7-1
7.1.3 PLC And PLC Editor Graphical Symbols 7-2
7.2 Composition And Modification Of A Ladder Diagram 7-2
8 LADDER EPROM INSTALLATION 8-1
8.1 EPROM Writer 8-1
8.2 Writing Ladder Program into EPROM and Flash-Rom 8-1
8.3 EPROM Installation 8-2

HUST H2N Connecting Manual
iv

1 Introduction
1 - 1
1 INTRODUCTION
This manual explains the HUST H2N controller's electrical as well as structural
design necessary for connecting the CNC to the machine tool. It also describes the
HUST H2N connection signals including input, output, internal signals, such as S-
bits and C-bits. This manual also describes the functions and the ladder diagram
with corresponding signals. For the functional information of HUST H2N controller,
please refer to the HUST H2N Operation Manual. This manual is intended for users
with some basic electrical and electronic knowledge.
Chapters 1~5 are for those who are interested in electrical connection and Chapters
6~8 are for those who are familiar with HUST PLC Editor. Fig 1-1 is a typical
system application of HUST H2N controller to the external devices. The main
features (also see Chap 1 of Operation Manual) of the system are described below.
1. The system can be remotely controlled by PC, HUST CRT screen and PC touch
screen through RS232 interface.
2. The system can handle thumb switch signals through PLC ladder program.
3. The system can control both AC servo and stepping motor.
4. The system provides DI/DO=24/16 points. Also included are connections for
MPG, spindle and Skip sensor.
Fig 1-1 Applications of HUST H2N Controller
PC
Thumb Switch Spindle Encoder
Skip
1
Driver
AC Servo 1
Driver
AC Servo
Driver
Stepping Motor MPG
DI/DO
Board
RS232C
HUST H2N
2 Axis CNC
Internal PLC
(ROM/RAM)

HUST H2N Connecting Manual
1 - 2

2 Configuration
2 - 1
2 CONFIGURATION
2.1 System Configuration
The HUST H2N system generally has the following configuration as shown in Fig. 2-1.
The main components of this configuration are listed below.
1. CPU Main Board
2. Keyboard Unit
3. MPG Hand-wheel
4. RS232 Communication Interface
5. Servo Driver and Motor
6. Power Supply
7. I/O Relay Board
8. Analog Output for Spindle Drive (0~10V)
Fig 2-1 System Configuration
Keyboard (2)
Servo Motor (5)
Driver
MPG(3)
RS232C (4)
Servo Motor (5)
Driver
X-Axis
Y-Axis
CPU
Main
Board
(1)
OUTPUT Standard O (7)
INPUT Standard I (7)
R
T
Power Supply (6)
(AC 220V)
JP2
JP1
P1
P2
P7
P4
P5
P3
P6
D/A (8)

HUST H2N Connecting Manual
2 - 2

3 Installation and Dimension
3 - 1
3 INSTALLATION AND DIMENSION
3.1 Environmental Requirements
The design of the cabinet to house the CNC unit, the keyboard panel and the LCD
display is the responsibility of the machine tool builder. The cabinet must be
constructed and the unit installed in an environment satisfying the following
conditions.
•Ambient Temperature
When operating: 0oC to 45oC.
When storing or transporting the system: -20oC to 55oC.
•Temperature Variation
Maximum: 1.1oC/minute.
•Humidity
Normally: 80% RH or less (Relative Humidity).
For short period: maximum 95% RH.
•Vibration
When operating: <= 0.075 mm with frequency 5 HZ.
•Noise
When operating: withstand 2000V/100 nsec pulse width every 10 msec.
•Consult us when installing the system in an environment with high degree of
dust, coolant, or organic solution.
3.2 Cabinet Considerations
Pay attention to the following items when designing a cabinet.
•The cabinet must be constructed to house the CNC unit, MDI panel and is
always a completely enclosed box.
•Temperature rise within the cabinet should be 10oC or less than the ambient
temperature.
•Sealing of the cable inlet/outlet or doors must be done thoroughly.
•To avoid the noise interference, various units, the connecting cable and the AC
power source must be mounted at least 100 mm apart. In a magnetic field
environment, this distance should be increased to at least 300 mm.
•When mounting the servo amplifier, please refer to the Servo Motor Manual.

HUST H2N Connecting Manual
3 - 2
3.3 Thermal Design in the Cabinet
The cabinet for the control unit must be a closed structure, and the temperature rise
within the cabinet must be 10oC or less than the ambient temperature. When
designing a metal cabinet for a CNC unit, two factors must be considered, which are
the heat source and the radiation area. For a CNC unit, the user cannot do too much
to change the heat source. Therefore, the one thing that the user can do in controlling
the temperature rise is the radiation area. The allowable temperature rise inside a
metal cabinet can be estimated as follows:
1. With a cooling fan, the allowable temperature rise is 1o C/6 W/1 m2.
2. Without a cooling fan, the allowable temperature rise is 1o C/4 W/1 m2.
This means that a cabinet with a radiation area of 1 m2and a cooling fan will have an
internal temperature rise of 1oC when a heating unit of 6 W (4W without a cooling)
is inside the cabinet. The radiation area of a cabinet is the entire surface area of the
cabinet minus the area contacting the floor.
Example 1 (with a cooling fan):
A cabinet has a 2 m2radiation area with a temperature rise of 10oC. The maximum
allowable heat value inside the cabinet is 6 W x 2 x 10 = 120 W. Therefore, the heat
generated inside the cabinet must be kept less than 120 W. If the heat generated is
120 W or more in the cabinet, some other cooling devices, such as cooling fins, must
be incorporated in the unit.
Example 2 (without a cooling fan):
A cabinet has a 2 m2radiation area with a temperature rise of 10oC. The maximum
allowable heat value inside the cabinet is 4 W x 2 x 10 = 80 W. Therefore, the heat
generated inside the cabinet must be kept less than 80 W. If the heat generated is 80
W or more in the cabinet, some other cooling devices, such as fan, or cooling fins,
must be incorporated in the unit.

3 Installation and Dimension
3 - 3
3.4 External Dimensions and Diagrams
•HUST H2N Keyboard Panel and LCD Screen
Fig 3-1 HUST H2N Keyboard Panel and LCD Screen
INPUT NEW
LINE
DEL.
RESET
SHIFT
7
1
4
HOME
8
0
2
5
9
6
3
HUS
T
H2N
CYCST
AUTO

HUST H2N Connecting Manual
3 - 4
•CPU Main Board Connectors (Rearview)
Fig 3-2 Main Board Connectors
•Dimension for H2N Controller Box (Rearview)
Fig 3-3 Dimension for HUST H2N Controller Box (Rearview)
INPUT OUTPUT
DA
X
Y
Z
MP
RS232
LCD-
RT
ODD
-
EVN
300 mm
268 mm
280 mm
180
160
INPUT OUTPUT
DA
X
Y
Z
MP
RS232
LCD-
RT
ODD
-
EVN

3 Installation and Dimension
3 - 5
•Dimension for H2N Controller Box (Top View)
Fig 3-3 Dimension for HUST H2N Controller Box (Top View)
•Cutout Dimension for H2N Controller Installation
Fig 3-5 Cutout for H2N controller Installation
300 mm
280 mm
70
78
173 mm
285 mm
163 中間切除部份 (Cutout)
268 m
m

HUST H2N Connecting Manual
3 - 6
•Input Board – NPN Type
Fig 3-6 is a standard NPN type input board. This board provides 24 input points
with LED indicators. When the input signal is correctly received, the
corresponding LED will be ON. Otherwise, check your program or connections.
Fig 3-6 HUST Input Board – NPN Type
LED
+24V
GND
I07
I06
I05
I04
I03
I02
I01
I00
I15
I14
I13
I12
I11
I10
I09
I08
I23
I22
I21
I20
I19
I18
I17
I16
72
64
155
147
DB25LF
Connecto
r
24V Power Input
GND
24V

3 Installation and Dimension
3 - 7
•Output Relay Board – NPN Type
Fig 3-7 is a NPN type output relay board and it has 16 outputs with LED indicators.
When the output signal is properly received, the corresponding LED will be ON.
Normally, all DIP switches are at "OFF" position. In this case, all connections on
COM and NO will be done in normal manner. If the DIP switch is at “ON” position,
COM becomes the ground (GND) of 24V. If you have an external device, such as
relay valve or DC motor, that is driven by 24V ground, just push the corresponding
DIP switch to “ON” and no 24V grounding connected to COM is necessary.
NO = Normal Open, COM = Common
Fig 3-7 Output Relay Board
LED
Indicator
RELAY
NPNO_2S\N:
O07
O06
O05
O04
O03
O02
O01
O00
DIP Switch
+24V
GND
+24V
DB25LM
Connector
155 mm
107 mm
+24V
COM7
NO07
+24V
COM6
NO06
+24V
COM5
NO05
+24V
COM4
NO04
+24V
COM3
NO03
+24V
COM2
NO02
+24V
COM1
NO01
+24V
COM1
NO01
24V Power
RELAY +24V
COM15
NO015
+24V
COM14
NO014
+24V
COM13
NO013
+24V
COM12
NO012
+24V
COM11
NO011
+24V
COM10
NO010
+24V
COM09
NO009
+24V
COM09
NO009
O15
O14
O13
O12
O11
O10
O09
O08

HUST H2N Connecting Manual
3 - 8

4 Connecting Diagrams
4 - 1
4 CONNECTING DIAGRAMS
4.1 Connector Type
The types of connectors provided on the HUST H2N controller box are summarized
below. Each connector symbol is followed by a letter of either M (for male) or F (for
female).
DB9LF (or M) : D sub type connector 9 pins female (or male).
DB25LF (or M) : D sub type connector 25 pins female (or male).
TBxx : Terminal block with pin number indicated by “xx”
4.2 Connector Designation
The connector designation on HUST H2N controller in printed on the back of the
controller and their corresponding types are listed below.
Connector Name Connector Designation Type
Output Interface P1 DB25LM (Male)
Input Interface P2 DB25LF
(Female)
MPG Handwheel P3 DB9LM (M)
X-axis Servo P4 DB9LF (F)
Y/Z-axis Servo P5 DB9LF (F)
D/A Output for Spindle P6 DB9LM (M)
RS232C Interface P7 DB9LF (F)
Main Board DC Power JP1 TB10
Keyboard Connector JP2 TB20
LCD Connector JP3 TB20
220V AC Power R和T TB3
Table 4-1 Connector Designation and Type

HUST H2N Connecting Manual
4 - 2
4.3 System Connecting Block Diagram (Fig 4-1)
The RS232 communication cable should not exceed the 15m maximum length. This
is to avoid the potential electrical noise due to the electro-magnetic interference.
Fig 4-1 System Connecting Diagram
Keyboard (2)
Servo Motor (5)
Driver
MPG (3)
RS232C (4)
Servo Motor (5)
Driver
X-Axis
Y-Axis
CPU
Main
Board
(
1
)
OUTPUT Standard O (7)
INPUT Standard I (7)
R
T
Power Supply (6)
(AC 220V)
JP2
JP1
P1
P2
P7
P4
P5
P3
P6
D/A (8)
Table of contents
Other HUST CNC Controllers manuals
Popular Controllers manuals by other brands

NAVITAS
NAVITAS TAC 2 Error Code and Troubleshooting Guide

elsner elektronik
elsner elektronik Nunio KNX M-T Installation and adjustment

Edwards
Edwards AIGX-S-NW25 instruction manual

Aimco
Aimco AcraDyne Gen IV Operation manual

Gemini
Gemini MDJ-600 user manual

Telemark
Telemark DIGITAL SWEEP instruction manual