Professional Documents
Culture Documents
CONNECTING MANUAL
(Suitable for the controller: H6CH6CLH9CH9CL)
Feb , 2011
Contents
TABLE OF CONTENTS
1
INTRODUCTION
1-1
2-1
2.1
2.2
2.3
2.4
2.4.1
2.4.2
2.4.3
2.4.4
2.4.5
Environmental Requirements
Cabinet Considerations
Thermal Design for the Cabinet
External Dimensions And Diagrams
HUST H9C Controller and accessories
H9C Controller by All Series
H9C Accessories
HUST H9C/H6C Controller Dimensions (8 LCD)
H9C Series
H6C Series
HUST H9CL/H6CL Controller Dimensions (10.4 LCD)
H9CL Series
H6CL Series
HUST H9C Single board
H9C Accessories
Single Board
H9C/H6C Auxiliary Panel
H9CL/H6CL Auxiliary Panel
CONNECTING DIAGRAMS
3.1
3.2
3.3
3-1
Connector Type
Connector Designation
Connector Pin Definition
DA/AD Pin Assignment
DA/AD Control Signals
G31 INPUT Control Signals
Axial Control, pin assignment and wiring
2-1
2-1
2-2
2-3
2-3
2-3
2-3
2-4
2-4
2-6
2-8
2-8
2-10
2-12
2-13
2-13
2-15
2-15
3-1
3-1
3-2
3-2
3-3
3-3
3-4
3-5
3-6
3-7
3-8
3-8
3-9
3-10
3-11
3-12
3-13
4-1
4.1
4.2
4.3
5.2
4-1
4-2
4-6
4-6
4-7
4-7
4-8
4-8
4-9
4-16
5-1
Contents
5.2.1
C-bit explanation
5-14
Machine Lock/Feed-Hold (C000)
5-14
Effect of Feed-Hold on output control command G11
5-14
RESET (C001)
5-15
Emergency Stop Signal (C002)
5-15
Cycle Start (C004)
5-15
Program No. Selection By Enter Key (C005)
5-15
Single Block (C006)
5-16
NC Alarm and Stop key (C007)
5-16
Background edit (C008)
5-16
Program NO. Selection by external I/O (C009)
5-16
Testing the second software limit (C010)
5-16
Program Restart-1 (C011)
5-17
Program Restart-2 (C012~C013)
5-18
Program Restart-3 (C014)
5-18
Dry Run (C015)
5-19
When the program restarts, it will directly execute the contents
below the restart single block,(C017)
5-19
Cursor Up and Down Key (C020~C021)
5-20
Page Up and Down Key (C022~C023)
5-20
Bit searching function in Edit mode (C024)
5-20
The program reading function is established with use of V10932
and V13449 (C025)
5-21
Option Stop (C026)
5-21
Option Skip (C027)
5-22
Speed Deceleration Selection For G31 Skip Function (C028)
5-22
G31 velocity changes from MFO (C029)
5-22
Counter Status (C030)
5-22
PLC ladder Simulation (C031)
5-23
M-, T-, S-code Command Finish Signal (C032~C034)
5-23
Round Corner Non-stop Operation (C036)
5-23
LCD Delayed Display (C037)
5-23
The Auto-Teach mode is established (C040)
5-23
The function of dynamic software limit is established (C041)
5-24
When the fill grid restarts the program in AUTO mode, it will
hold the display of the program (C049)
5-24
When the fill grid is in the automatic state, the cursor will indicat
the program number being executed (C050)
5-24
Simulating the input signal of the spindle Encoder (C052)
5-24
MPG Hand-wheel Test Mode (C056)
5-24
Return to The Last Program Block (C057)
5-25
Program Edit And MCM Edit Function Disabled (C058~C059) 5-25
Setting a relative coordinate (C060)
5-25
Copy function (C061)
5-25
HOME Execution Command (C063)
HOME Limit Switch Signals for X/Y/Z/A/B/C-axis (C064~C072)5-25
Making Copy of A Program File (C079)
5-26
Use the Current Program Position as Working Coordinate
(C080~C088)
5-27
iii
Contents
5.3
5.3.1
Contents
5.4
5.5
LADDER DIAGRAM
6.1
6.1.1
6.1.2
5-75
5-76
5-77
5-77
5-77
5-78
5-78
5-79
5-80
5-80
5-81
5-82
5-83
6-1
vii
6-1
6-1
6-1
viii
1 Introuction
INTRODUCTION
This manual explains the HUST H9C controllers electrical as well as structural design
necessary for connecting the CNC to the machine tool. It also describes the HUST H9C
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 H9C controller, please refer to HUST
H9C Operation manual. This manual is intended for users with some basic electrical and
electronic knowledges.
HUST H9C SERIES of generally external accessories:
(1) Communication interface:
(a) RS232Connection with PC, transfer data by software
(b) USB Connection with PC, or directly transfer data
(2)
(3)
(4)
1-1
Communication Interface
(a)H6CH9C (8 screen)
USB Interface
RS232 Interface
PC
Fig1-1 H9C 8 screen Communication interface
(b)H6CLH9CL( 10.4 screen)
PC
USB Interface
RS232 Interface
Fig1-2 H9CL 10.4 Communication interface
USB Interface
RS232 Interface
PC
1-2
1 Introuction
AC Servo
AC Servo
AC Servo
AC Servo
Optional: Use in
combination as
required
MPG1
W
AC
V
AC
U
AC
C
AC
B
AC
MPG2
24in/16out
#1SIO Module
(48IN/32OUT)
Relay Board
24in/16out
AC Power Board
DC Power Board
Fig 1-4
1-3
HUST H6C of
MPG1
AC Servo
AC Servo
AC Servo
AC Servo
AC Servo
AC Servo
MPG2
24in/16out
#1SIO Module
(48IN/32OUT)
Relay Board
AC Power Board
Optional: Use in
combination as
required
24in/16out
DC Power Board
Fig 1-5
1-4
2.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: 0o C to 45o C.
When storing or transporting the system: -20o C to 55o C.
Temperature Variation
Maximum: 1.1o C/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 sec pulse width every 10 m sec.
Contact us when installing the system in an environment with high degree of dust,
coolant, or organic solution.
2.2
Cabinet Considerations
Pay attention to the following items when designing a cabinet for HUST H6C controller.
The cabinet must be constructed to house the CNC unit, MDI panel and is always a
completely enclosed box.
The max temperature rise within the cabinet during operation should NOT exceed
10o C higher than the ambient temperature.
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 500 mm.
When mounting the servo amplifier, please refer to the Servo Motor Manual.
2 - 1
2.3
The cabinet for the control unit must be a closed structure, and the temperature rise
within the cabinet must be 10o C 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. The heat source is from the CNC unit itself, users cannot
do anything to reduce it. 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.
2.
With a cooling fan, the allowable temperature rise is 1o C/6 W/1 m2.
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 m2 and a cooling fan will have an
internal temperature rise of 1o C 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 m2 radiation area with a temperature rise of 10o C. 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 m2 radiation area with a temperature rise of 10o C. 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.
2 - 2
2.4
2.4.1
Screen
8
10
Single Board
Controller series
H6C
H9C
H6CL
H9CL
H9C SB
Dimensions
identical
identical
Standard
2 - 3
Options
2.4.2
*
2 - 4
2 System Installation
2 - 5
2 - 6
2 System Installation
2 - 7
2.4.3
2 - 8
2 System Installation
2 - 9
2 - 10
2 System Installation
2 - 11
2.4.4
*
2 - 12
2 System Installation
2.4.5
2 - 13
2 - 14
2 System Installation
2 - 15
2 - 16
3 Connection Diagrams
CONNECTION DIAGRAMS
3.1
Connector Type
The types of connectors provided on the HUST H9C controller box are summarized
below. Each connector symbol is followed by a letter of either M (for male) or F (for
female).
DBxx
DB9L
DB9LF
DB15LM
3.2
Connector Designation
The connector designation on HUST H9C controller is printed on the back of the
controller and their corresponding types are listed below.
Table 3-1 Connector Designation and Type
The back of the Controller
H6C/H6CL
H9C/H9CL
Connector
Designation
Type
Analog Input/Output
AD/DA
DB15LM (M)
X-axis Servo
X-AXIS
DB15LF (F)
Y-axis Servo
Y-AXIS
DB15LF (F)
Z-axis Servo
Z-AXIS
DB15LF (F)
A-axis Servo
A-AXIS
DB15LF (F)
B-axis Servo
B-AXIS
DB15LF (F)
C-axis Servo
C-AXIS
DB15LF (F)
U-axis Servo
U-AXIS
DB15LF (F)
V-axis Servo
V-AXIS
DB15LF (F)
W-axis Servo
W-AXIS
DB15LF (F)
Connector Name
MPG Handwheel
MPG
DB9LM (M)
I/O
SIO
DB15LF (F)
Front Controller
Connector Name
Communication Interface
H6C/H6CL
H9C/H9CL
Connector
Designation
Type
RS232
DB9LF (F)
USB
USB (F)
3 - 1
3.3
HUST H9C
AD/DA
DB15LM
Definitoin
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
*
DAC0
DAC1
D+
DG31 IN
ADC-0
ADC-1
5V
+12V
-12V
GND
AXIS
DB15LM
Definitoin
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
MPG
DB9LF (F)
Definitoin
1
2
3
4
5
6
7
8
9
CW+
CWCCW+
CCWVCC
GRD-(Z-)
TOG
VCOM
SVO+
SVOAA+
B+
BGND
A
B
5V
A
B
0V
0V
CPU
Board
DAC-0
DAC-1
D+
DG31 IN
ADC-0
ADC-1
GNDX
VCC
+12V
-12V
GND-CN
2 set DAC 0
10V output
3
4
5
6
7
11
12
2 set ADC IN 0
10V input
G31 Hardware
stop signal
13
14
15
0V
3 - 2
3 Connection Diagrams
Function Register
Description
R146
R147
DAC
Usage
1. PLC directly sets R146=5000
2. Actual output voltage=5V
ADC
R142
R143
Note:
VR
Value read from #1 ADC IN will be
shown in R142
z
Pin 13 +12V
Pin 06 ADC IN
Pin 15 GND
Parameter
530
R250
AXIS
CPU
Main
Board
CW+
CWCCW+
CCWVCC-CN
GRD-(Z-)
TOG
VCOM
SVO+
SVOAA+
B+
BGND-CN
1
2
3
4
5
6
7
8
9
10
11
+10V
Servo
signal
12
13
14
15
Cabin GND
3 - 4
3 Connection Diagrams
SERVO ON wiring - 1
Bit1
0
1
0
0
0
0
0
0
0
1
Bit2
0
0
1
0
0
0
0
0
0
1
Bit3
0
0
0
1
0
0
0
0
0
1
Bit4
0
0
0
0
1
0
0
0
0
1
Bit5
0
0
0
0
0
1
0
0
0
1
Bit6
0
0
0
0
0
0
1
0
0
1
Bit7
0
0
0
0
0
0
0
1
0
1
Bit8 Axis
0
X
0
Y
0
Z
0
A
0
B
0
C
0
U
0
V
1
W
1
ALL
SVO+
SVOX
SVO-X
SVO+
SVO-
10
SON
ServoServo-On
driver
Singnal
SG
Servo on command
(Control by inside)
X
Fig.3-4
3 - 5
AXIS
SERVO ON wiring - 2
GND
24V
Servo driver
Servo-On
/SON
Singnal
+24V
X
Axis
Fig 3-5
3 - 6
3 Connection Diagrams
A
B
+5V
A
MPG1
+5V 0V A B
2
3
4
6
0V
0V
7
8P7
Fig 3-6
3 - 7
MPG2
+5V 0V A B
Spindle
VCOM
GND-CN
5V
AA+
B+
BZ-
8
15
5
11
12
13
14
Servo
Driver
Case GND
Spindle
VCOM
GND-CN
5V
AA+
B+
BZ-
8
15
Inverter
5
11
12
13
14
Encoder
Extemal
Encoder
Case GND
Fig 3-8 Spindle Voltage Command Control- Open circuit wiring (Inverter)
3 - 8
3 Connection Diagrams
CW+
CWCCW+
CCWAA+
B+
BZGND-CN
1
2
3
4
Servo
driver
11
12
13
14
6
15
Case GND
Fig 3-9 Spindle pulse command control- closed circuit wiring (servo)
Spindle
CW+
CWCCW+
CCWAA+
B+
BZ5V
GND-CN
1
2
Inverter
3
4
Encoder
11
12
13
Extemal
Encoder
14
6
5
15
Case GND
Fig 3-10 Spindle pulse command control- closed circuit wiring (Inverter)
3 - 9
Servo Power-on
Time
servo on delay
To CPU Power supply R
AC220V R
AC220V S
AC220V T
Ti
D l
C
Servo
Driver
power-off power-on
Power-On Relay
Power-On Timer Relay
Fan
AC 220V R T0 Servo AMP Power TB P
AC 220V S T0 Servo AMP Power TB N
3 - 10
3 Connection Diagrams
Limit Switch
Servo Release
I24/O16 Board
Servo Driver
Servo-On
Singnal
X Axis
8 OUT RELAYBoard
Servo Driver
Servo-On
Singnal
Z Axis
Fig 3-12
3 - 11
Limit Switch
Servo Release
I24/O16 Board
Servo Driver
X-AXIS
SVO+
SVO-
9
10
Z-AXIS
SVO+
SVO-
9
10
Servo-On
Singnal
X Axis
Servo Driver
Servo-On
Singnal
Z Axis
3 - 12
3 Connection Diagrams
DCE
DCE
DB9LM
CONNECTO
PC COM
TXD 2
3 RXD
RXD 3
2 TXD
SG 5
7 SG
CTS 7
4 RTS
RTS 8
5 CTS
DB9LM
CONNECTO
DB25LF
CONNECTO
PC COM
TXD 2
2 RXD
RXD 3
3 TXD
SG 5
5 SG
CTS 7
7 RTS
RTS 8
8 CTS
DB9LF
CONNECTO
3 - 13
3 - 14
The +24V power supply for the I/O interface operation has to come separately
from the external source.
4.1
Input signal is a signal that is received by the CNC controller and it is generated from an
external devices, such as keyboard button, sensor, limit switch, proximity switch, etc.
Output signal is a signal that is being sent from the CNC controller to the external
devices. that can be used to drive a relay or LED, etc.
H9C controller accessories
Total of seven standard accessories
Table 4-1 H9C standard accessories
H9C standard accessories
NO.
Project
Input
Output
Note(Material NO.)
48
32
H6C\SIO\I48O32\V2_4
24
16
H6C\SIO\CONNECT\V1_1
H6C\SIO\RLY8\V0
H6C\SIO\SSR8\V0
H6C\SIO\DC8\V0
Auxiliary panel
4-1
Fig 4-1
1. 48 IN/32 OUT control.
(a) Maximum in series6 modules.maximum control 256 IN/256 OUT.
(b) Auxiliary panel can be in series (2nd panel)
2. Each SIO MODULE BOARD can connect with
(a) I/O connect board (24 Input/16 Output)
(b) NPN Relay Board8 out
(c) DC power module board8 out
(d) AC power output module board8 out
(e) Axes control module boardcontrol other step motor or servo motor.
3. When use axes control module board, last 64 I/O address Occupancy.
th
4-2
LED
LED
LED
LED
FROM-CNC
TO-NEXT
24V GND
1
3
DC24V INPUT
Fig 4-2
1. LED-LAMP
INPUT - LED (Green) nEach Left and Right have 3 groups, every group have 8
signal. The total signal is 48.
OUTPUT - LEDRedoEach Left and Right have 2 groups, every group have
8 signal. The total signal is 32.
2. JUMP (NPN OR PNP)p
Each Left and Right have 1 groups.
Leftcontrol 1th CONNECT I/O BOARD.
Rightcontrol 2th CONNECT I/O BOARD.
The explanation is below
4-3
Fig5-2-Lp
Fig5-2-Rp
Short
Fig5-2-Lp
Short
Fig5-2-Lp
Short
Short
Fig5-2-Rp
Short
Short
Fig5-2-Rp
Fig5-2-Lp
Fig5-2-Rp
Short
Short
Explanation1
All input are NPN type of CONNECT I/O BOARD
Explanation2
CONNECT I/O BOARD signal
(1) I00~I23 NPN type.
(2) I24~I39 NPN type, I40~I47 PNP type.
Explanation3
CONNECT I/O BOARD signal
(1) I00~I15 NPN type, I16~I23 PNP type.
(2) I24~I47 NPN type.
Explanation4
CONNECT I/O BOARD signal
(1) I00~I15NPN type, I16~I23 PNP type.
(2) I24~I39NPN type, I40~I47 PNP type.
DIP
ON
SW
Each SIO MODULE BOARD can control 48in/32out and string of 6 pieces.
Table 4-2 Switch table explanation
MODULE Switch 1 Switch 2 Switch 3 Switch 4
IN range
st
0
0
0
0
I000
I047
1
nd
1
1
0
0
I048
I095
2
rd
0
1
1
0
I096
I143
3
th
1
0
0
1
I144
I191
4
th
I192
I239
5
0
0
1
1
th
I240
I255
6
1
1
1
1
The 6th SIO MODULE BOARD can control 16in/16out only.
4-4
OUT range
O000
O031
O048
O079
O096
O127
O144
O175
O192
O223
O240
O255
When use Axes control module board and Auxiliary panelIO range
Board
1st
2nd
3rd
4th
5th
6th
When use axes control module board, last 64 I/O address Occupancy.
4-5
Output Range
O000 ~ O031
O048 ~ O079
O096 ~ O127
O144 ~ O175
O192 ~ O223
O224 ~ O255
Fig 4-3
* NPN output relay Board (PC Board No.H6C\SIO\RLY8\V0)
1.
2.
3.
4.
Fig 4-4
4-6
5.
Fig 4-5
DC power module board (PC Board No.H6C\SIO\DC8\V0)
1.
2.
3.
4.
Fig 4-6
4-7
Fig 4-7
1.
2.
3.
4.
5.
6.
7.
Servo Motor
HUST Pin
Servo Pin
1
/B
2
B
3
A
4
/A
5
G
Servo Motor connection (5PIN)
Step Pin
A
/A
B
/B
1 2 3 4 5
A /A B /B
/B B A /A G
4 - 8
4.2
FROM-CNC
TO-NEXT
TO-NEXT
Auxiliary panel
Fig 4-8
4 - 9
LED
LED
24V
GND
Relay board
AC power supply
Fig 4-9
4 - 10
DC power supply
ConnectionModel 1
24V
External Relay 2
External Relay 1
Spark Killer
Spark Killer
24V
O00
Output 0V
24V
Fig 4-10
4 - 11
24V
O15
Output
0V
AC 220V
Transformer
COM
00
COM
01
COM
02
COM
03
COM
04
COM
05
COM
06
COM
07
H9C\SIO\RLY8\
V0:AB585
4 - 12
JP6
10 PIN Row cable
DC24V
Input
AC110 220V
Input
4 - 13
JP6
10 PIN Row cable
DC24V
Output
Fig 4-13
4 - 14
I00 0V
Input
SENSOR
Fig 4-14
ConnectionModel 6PNP 3-wire SENSOR
DC24V POWER SUPPLY
I00 24V
Input
SENSOR
Fig 4-15
4 - 15
4.3
Emergency-Stop Circuit
The electronic circuit in the controller requires about 100 milli-seconds to reach stable
state when power is turned on. During this unstable period, the servo motor should not
be turned on. To accomplish this purpose, HUST internal PLC has a "Servo-on Timer"
with 1.5 seconds. When the timer is up, the controller sends an O-bit high (1) to turn on
the servo driver.
Fig 4-16 is an emergency stop circuit. When the hardware OT limit switch is touched or
the E-stop button pushed, the controller will be in a state of emergency stop and the
servo-on switch on the servo motor will trip off. For safety reason, the E-stop button, the
hardware OT limit switch, and the E-stop relay should be connected in-series and the
servo-release button in-parallel with the hardware OT limit switch. Please note that the
E-stop button and the hardware OT limit switch are of normal-closed type.
During normal operating condition, the servo-release button is at OFF position. After
emergency stop has occurred and all power to servo motor has been cut off, servorelease button can be pushed in to supply power to servo motor to bring the machine
tool to normal operating range.
+24V GND
Limit Switch
(E-Stop)
INPUT
Servo Release
Servo Driver
Spark Killer
Servo-On
Signal
PLC Output
24V
External Relay A
Spark Killer
Spark Killer
PLC Output
24V
SERVO ON Relay C
24V
External Relay B
4 - 16
Notes:
1. Relays A and B are protection circuit during power-on. The purpose is to prevent the
tool from being damaged in case of power-on failure that results in a total output.
2. Relay C is a servo-on relay.
3. Relay A and B are outputs in PLC.
4. Generally, Relay C has multiple connecting points for multiple servo. Each servo
motor requires independent connecting point. Do NOT connect servo motors in
parallel because some servo motors cannot be connected in parallel. See Fig 4-17.
5. The arrangement of servo-on in PLC. See Fig 4-17.
Incorrect Connection
Servo Driver
Servo-On
Singnal
PLC
Output
Servo Driver
24V
RELAY C
Correct Connection
Servo Driver
Servo-On
Singnal
PLC Output
24V
Servo Driver
Servo-On
Singnal
RELAY C
Fig 4-17 Incorrect / Correct Connection
4 - 17
Emergency-Stop Line-1
It is recommended to connect as Fig. 4-18. In doing so, the software and
hardware is controlled in series and the user can press the emergency button to
turn off the servo even if an abnormality is found in the software.
24V GND (0V)
E-Stop
Limit Switch
I24/O16 Board
Server Driver
ServoOn
Singnal
X Axis
NPN RELAY Board
Server Driver
Servo-On
Singnal
Z Axis
External SERVO ON RELAY
Fig 4-18
4 - 18
Emergency-Stop Line-2
Fig.4-19 is a simplified connection diagram.
24V GND (0V)
E-Stop
Limit Switch
I24/O16 Board
Server Driver
Servo-On
Singnal
X Axis
Server Driver
Servo-On
Singnal
Z Axis
Fig 4-19
4 - 19
4 - 20
PLC bits used in HUST H9C controller with PLC (Programmable Logic Controller) are
described below. Their meanings and applications will be discussed in this chapter. This
chapter is intended for those who are familiar with HUST PLC program editing.
S-bit :
C-bit :
I-bit :
O-bit :
A-bit :
Register:
1. R000~R099 are for users application in the PLC program.
2. R100~R255 are reserved for HUST H9C system data, NOT for customers use.
The data in R000~R099 can be saved with power off if MCM #521=256, and the
data will NOT be saved if MCM #521=0.
HUST
CONTROL
UNIT
5.1
C-BITS
S-BITS
REGISTE
R
HUST
PLC
A-BITS
TIMER
COUNTE
R
I-BITS
O-BITS
EXTERNAL
I/O
DEVICES
OR
MACHINE
TOOLS
S-bit is the internal status signal from HUST CNC system unit to PLC unit for
sequential control of the machine tool. The meaning of each S-bit signal is shown in
Table 6-1. Note that S000~S031 are one-shot bits and are effective for one cycle only.
For example, when RESET key is pressed, S001=1 for one cycle.
5-1
S-Bit
Number
S112 ~ S119
S120
S121 ~ S122
S123
S124
S125
S126
S127
S128 ~ S159
S160
S161
S162
S163
S164
S165
S166
S167
S168
S169 ~ S207
S208
S209
S210
S211
S212
S213
S214
S215
S216
5-3
5.1.1
Fig 5-1 shows the time chart between the HUST H9C controller and the PLC unit. Note
Bit S017 synchronizes with Bits S000~S023. S000~S031 are all single-pulse signals.
One Shot S-Bit
S000 S031
1
PLC Cycle
Continuous
S032~S096
Key Strobe S017
Square Wave Signal with 0.75 sec ON, 0.25 sec OFF (S000)
0.75 sec
Descriptions of S-bits
0.25 sec
5 - 4
ON-TIME
OFF-TIME
Key Strobe for Key Being Pressed Twice in 0.5 sec (S018)
When a key on the keyboard is being pressed twice within 0.5 seconds, the controller
send S018 = 1 one-pulse to PLC.
The controller sets Bit S020 one-pulse high (1) strobe to inform PLC unit when
CURSOR Up key is pressed. Bit S021 will be one-pulse high (1) when CURSOR Down
key is pressed.
The controller sets Bit S022 one-pulse high (1) strobe to inform PLC unit when PAGE Up
key is pressed. Bit S023 will be one-pulse high (1) when PAGE Down key is pressed.
When a S-code is being executed in a part program, the controller will send S026 = 1
signal to PLC.
Note that the CNC system defined M-codes, such as M00, M01, M02, M30, M98 and
M99 will NOT send S024 = 1 to PLC.
5 - 6
Key Strobe for Key Being Pressed Down and Hold Down (S126)
When a key is pressed down and hold down, the controller will send S126 = 1 to PLC.
When key is released, S126 = 0.
5 - 8
5.2
A C-bit is a command signal from the PLC to the HUST controller for CNC functional
control. The C-bits for HUST H9C ontroller are shown in Table 5-3 and their meanings
and applications are discussed in the following sections.
Table 5-3 HUST H9C Series Command C-Bits
C-Bit
Number
C000
C001
C002
C003
C004
C005
C006
C007
C008
C009
C010
C011
C012~C013
C014
C015
C016
C017
C018~C019
C020~C021
C022~C023
C024
C025
C026
C027
C028
C029
C030
C031
C032
C033
C034
C035
C036
C037
C-Bit Description
Machine Lock/Feed Hold
Reset
Emergency Stop
Reserved
Cycle Start
Program No. Selection by INPUT key
Single Block
NC Alarm & Stop NC Command
Background edit
Program NO. Selection by external I/O
Testing the second software limit
Program Restart 1
Program restart 2. After jumping to other program, restart from where
the program execution was interrupted
Program block restart command 3
Program Dry Run
Reserved
When the program restarts, it directly executes the contents below the
single block of restart.
Reserved
Cursor up / Cursor down command
Page up / Page down command
Bit search function in Edit mode (the first bit in the single block only)
The program reading function is established with use of V10932 and
V13449.
Option stop
Option skip
Speed deceleration selection for G31 Skip function
G31 velocity changes from MFO
Counter status (On/Off) command
Ladder simulation
M-code finish signal from PLC to CNC
T-code finish signal from PLC to CNC
S-code finish signal from PLC to CNC
Reserved
Round corner non-stop operation
LCD delayed display in accordance with the value in R128
5-9
C-Bit
Number
C038~C039
C040
C041
C042~C048
C-Bit Description
Reserved
The Auto Teach mode is established
The dynamic software limit function is established
Reserved
When the fill grid excutes a restart in Auto mode, the program will hold
C049
the display.
When the fill grid is in Auto mode, the cursor will indicate the current
C050
program line number being executed.
C051
Reserved
C052
Simulating the input signal of the spindle ENCODER (for testing)
C053~C055 Reserved
C056
MPG hand-wheel test mode
C057
Return to the last program block where execution was interrupted
C058
Program EDIT mode disabled
C059
MCM EDIT mode disabled
C060
Setting a relative coordinate
Copy function
C061
C062
Reserved
C063
Machine Origin (HOME) execution command
C064
X-axis HOME limit switch signal
C065
Y-axis HOME limit switch signal
C066
Z-axis HOME limit switch signal
C067
A-axis HOME limit switch signal
C068
B-axis HOME limit switch signal
C069
C-axis HOME limit switch signal
C070
U-axis HOME limit switch signal
C071
V-axis HOME limit switch signal
C0723
W-axis HOME limit switch signal
C070~C078 Reserved
C079
Making copy of a program file
C080
Set the current program position as work coordinate ORIGIN for X-axis
C081
Set the current program position as work coordinate ORIGIN for Y-axis
C082
Set the current program position as work coordinate ORIGIN for Z-axis
C083
Set the current program position as work coordinate ORIGIN for A-axis
C084
Set the current program position as work coordinate ORIGIN for B-axis
C085
Set the current program position as work coordinate ORIGIN for C-axis
C086
Set the current program position as work coordinate ORIGIN for U-axis
C087
Set the current program position as work coordinate ORIGIN for V-axis
C088
Set the current program position as work coordinate ORIGIN for W-axis
C089~C095 Reserved
C096
Clear current program&machine coordinate on X-axis to zero (0)
C097
Clear current program&machine coordinate on Y-axis to zero (0)
C098
Clear current program&machine coordinate on Z-axis to zero (0)
C099
Clear current program&machine coordinate on A-axis to zero (0)
C100
Clear current program&machine coordinate on B-axis to zero (0)
5 - 10
C-Bit
Number
C101
C102
C103
C104
C105~C110
C111
C-Bit Description
C-Bit
Number
C162
C163
C164
C165
C166
C167
C168
C169
C170
C171
C172
C173
C174
C175
C176
C177
C178~C191
C192
C193
C194
C195
C196
C197
C198
C199
C200
C201~C207
C208
C209
C210
C211
C212
C213
C214
C215
C216
C217~C219
C220
C221
C-Bit Description
C-Bit
Number
C228
C229
C230
C-Bit Description
5 - 13
5.2.1
C-Bit explanation
If bit C000 is set high (1), control unit will stop all CNC operations. It will remain
stopped until C000 becomes low again. The relationship between C000 and the machine
motion is shown as below.
C000 = 1
C000 = 0
Machine on
Machine Lock On
Motion Stopped
C000 = 0
Motion Resumed
5 - 14
C000=1
C000=1
Output OFF
Output
FEED-HOLD
C000=0
Output On
C000=1
C000=0
RESET (C001)
C001 = 1 (high),
C001 = 0 (low),
Fig 6-3
Bit C002 informs the control unit to execute emergency stop. When bit C002 is set high
(1), the control unit is reset and emergency stop is applied to the machine. Emergency
stop signal turns off the servo ready signal. Refer to Section 5.4 for suggested circuit
connection. When the problem that activated an emergency stop has been resolved,
please reset the control unit and execute HOME process before normal operation.
Bit C004 informs the control unit to start program execution. However, Cycle-Start
signal (C004) is ignored when:
1.
2.
3.
4.
When C006 = 1, the current execution is in SINGLE block mode. Press CYCST key to
execute. If AUTO and SINGLE modes are selected at the same time, the SINGLE mode
has higher priority than the AUTO mode. Operation can be changed to MDI or JOG by
the mode selection signal under single block state. Fig 6-4 is a time chart for SINGLE
block execution.
on
Auto Mode off
on
Single Mode
C006
C006 off
on
Cycle
Start
off
on
off
BLK1
BLK2
Single Mode
off
Continue
Auto Mode
NC alarm is ON.
NC alarm is OFF.
Bit C007=1 to inform the CNC unit a machine problem has been detected. When the
external device encounters any trouble, such as spindle servo alarm, these alarm signals
can be used, through input points, to inform the control unit to stop execution by setting
C007 high (1). LCD screen displays ERROR 37 NC ALARM. When the problem is
resolved, RESET the machine before restart the program.
5 - 16
When C010 = 1, the testing of the second software limit function is established.
When the first sets of X/Y/Z/A/B/C/U/V/W softwares are positive limits,
parameters are Item Nos 581~589.
When the first sets of X/Y/Z/A/B/C/U/V/W softwares are negative limits,
parameters are Item Nos 601~609.
When the second sets of X/Y/Z/A/B/C/U/V/W softwares are positive limits,
parameters are Item Nos 621~629.
When the second sets of X/Y/Z/A/B/C/U/V/W softwares are negative limits,
parameters are Item Nos 641~649.
machine
machine
machine
machine
Press RESET. Use MPG to move tool away. If the interruption was caused by Emstop or servo alarm (Error 2), execute HOME, then RESET.
Press user installed [Restart] key to set C011 = 1 in PLC as follow.
(
I023
3.
C011
In AUTO mode, press CYCST key to restart. At the end of M02 or M30, the restart
function will be automatically cleared.
5 - 17
Note that the M, T, S-code in the previously executed program blocks prior to program
interruption will be re-executed during restart operation.
Example:
(See Fig 6-5)
Assuming that the program was interrupted at block N40. When restart function is
activated, the controller will calculate the coordinate change from N10 to N30, then
move the tool to the end of N30 and continue the program execution from there.
N10 S200
N20 G0 X50. Y100.
N30 G1 V-20. F200.
N40 X60. V-20.
N50 V-20.000
N60 X80. V-20.
N70 G0 X250. Y150.
N80 M2
Y
Restart
Interrupted
N30
N40
N50
N60
X
Fig 5-5 Program restart
When RE-START key is pressed (See Fig 6-5}, then [AUTO] and [CYCST], the CNC
controller will calculate the executed distance from N10 to N30 and the cutting tool will
then move to that point, from where the program execution will be continued.
1. In EDIT mode, move cursor to the desired restart block. Use PLC to activate
C014=1.
2. Return to [AUTO] mode, program restart signal ON, C011=1.
3. Press CYCST.
Dry-run (C015)
C015 = 1 (high),
When C015=1, the control unit will execute dry run function. The dry run mode can be
set at any time during program execution. When dry run is set, the feed-rate will change
to fast speed at the beginning of next block. When dry run mode is turned OFF
(C015=0), the feed-rate will return to normal cutting speed at the beginning of next
block. Fig 5-6 shows the relationship between dry run mode and normal execution mode.
Auto Mode
Off
Off
On
Off
Off
On
Off
On
Feed Rate
Cutting
Block Execution
Dryrun speed
3
Cutting
6
Fig 5-6 Time-relationship between dry run and normal execution mode
When the program restarts, it will directly execute the contents below the restart
single block, C017
When C0171 (high) and the program restarts, it will not execute the single blocks
before the restart sigle block and the function of direct execution of the contents below
the restart single block is established.
If the program is interrupted in execution due to whatever reasons, and when C017 = 1,
the program will restart (with process of Co11 Bit) and execute from the place where it
is interrupted.
Program example:
N10 S200
N20 G0 X50. Y100.
5 - 19
.....
N30
N40
N50
N60
X
Fig5-7 Program restart
As shown in the above figure, start the RE-START function, and then execute
AUTO, CYCST, the program will proceed from the original single block
position.
EX
O000
G1 X50.
X50.Y50.
N1 X70.Y60.
Y100.
M30
When you key in X in the input area and C024=1, the cursor will point to the second
block X50.Y50.
When you key in M in the input area and C024=1, the cursor will jump and point to the
fifth single block M30.
The program reading function is established with use of V10932 and V13449 (C025)
V13449: Designates the program number for this function.
V10932: Designates the program single block number for this function (the minimum
single block number is 1).
Before C025 is triggered ON with PLC, the values of V13449 and V10932 shall first be
designated. When the function C025 is successfully executed, the relevant program
contents that are read will be stored in the following variables:
#13400
#13401#13426
#13448
----The system sends the message whether the letters A~Z in the
single block are used.
BIT1 A 0= not use 1= use
BIT26 Z
----The system sends the contents of the letters A~Z.
----The system sends the message whether the letters A~Z in the
single block use #.
BIT1 A 0= not use 1= use
BIT26 Z
C026 = 0 (low),
If C026 is set low (0), M01 block will be ignored during program execution. If C026 is
set high (1), M01 block will stop program execution until CYCST is pressed again.
If C027 is set to 1, the block labeled with "/1" will be skipped during program execution.
If C027 = 0, the block labeled with "/1" will be executed.
servo motor ignores the value in R190 and decelerates linearly to zero.
& R190 = 0, servo motor speed jumps to zero.
& R190 0, servo motor will stop in a distance = value in R190.
Feed-rate
T
C0281
R1900
Feed-rate
Motor starts
C0281
R1900
Motor starts
Feed-rate
Motor starts
5 - 22
When C031 = 1, a RAM memory in HUST H6C controller will become available for
user to test his ladder program that was edited in the personal computer. Note that the
user's ladder program should have a line of C031=1 for the simulation to be effective.
Please refer to Chapter 9 of HUST H6C Operation Manual for ladder simulation
procedures.
When you use an M-code to do work on an external device, it normally takes some
times for the external device to finish the work. When the work is finished, let C032=1
in your PLC. The H6C controller must receive this finish code for it to continue
executing the next block. T-code and S-code work the same way. The M-code finish
signals are effective for the range of M003~M499.
When the tool motion changes from one direction (block) to another, it will produce a
sharp corner and the motors will decelerate and accelerate at the intersection. This
condition will produce an undesirable effect for some industrial machinery such as glue
machine, flame or laser cutting machine. To overcome this problem, set C036=1 to
produce a round corner and the motors will also run continuously when cornering with a
cutting speed specified by the programmed federate (F).
Note: C036 in NOT fot G00.
When the slope of angle between the current teach route and the old route is greater than
the setting of Parameter Item No. 535, the system will automatically store and increase
the single block at the current coordiate point.
When the fill grid restarts the program in AUTO mode, it will hold the display of
the program (C049)
When C049=1 and executing restart in AUTO mode, the fill grid will hold the display of
the program.
When the fill grid is in the automatic state, the cursor will indicate the program
number being execute (C050)
When C050=1 and in auto execution, when the fill grid displays the program, the cursor
will automatically move to the single block number being executed.
The advantage of MPG test is that the user can test the program by doing actual cutting
using a MPG hand-wheel speed. Any errors in the program can be detected and the
product inspected before making mass production.
5 - 24
When MPG Hand-wheel Test Mode is on, the feed-rate is controlled by the speed of
hand-wheel and the MFO% knob setting. As such, the potential machine collision under
normal cutting speed can be avoided. Refer to Sec. 8.9 of Operation Manual for MPG
hand-wheel test.
Note: If the handwheel operates in the reversed direction, the program execution will
NOT follow in a reversed order.
Return to The Last Program Block Where Execution Was Interrupted (C057)
C057 = 1 (high),
C057 = 0 (low),
When this function is turned on in EDIT mode, the cutting tool will return to the last
program block where the program was interrupted. This function is also effective in
TEACH mode.
C063 = 1 (high),
C064 = 1 (high),
C065 = 1 (high),
C066 = 1 (high),
C067 = 1 (high),
C068 = 1 (high),
C069 = 1 (high),
C070 = 1 (high),
C071 = 1 (high),
C072 = 1 (high),
If C063 is set high (1), the CNC controller will execute HOME cycle according to the
axis selected by R232 and the direction by MCM #281~289. Then, the controller will
move the tool to find the HOME position according to the following steps -- Use X-axis
(R232-1) for explanation. Also refer to H6C Operation Manual Chap 7.
Step 1- The tool will go toward HOME position until the limit switch is touched
(C064 = 1), the machine then stops. During this process the feed-rate is
controlled by MCM #301 and the direction by MCM #281.
Step 2- The tool will go backward at a feed-rate equal to 1/4 of the speed in Step 1
until C064 = 0 (low). The servo motor will decelerate to a stop.
Step 3- The tool will continue going backward at the HOME GRID speed as set by
MCM #321 to look for the encoder index. Once the encoder index is detected,
the motor stops and the HOME cycle is completed.
To find HOME position for Y/Z/A-axis, the same procedures described above apply.
Fig 5-9 is a typical HOME execution cycle.
Tool
Speed
Step3
Step2
Tool
C080 C0831 0
Clear X/Y/Z/A-axis to 0
work
work
work
work
work
work
work
work
work
work
When C123 = 1~0 (falling edge) in PLC, it triggers the controller to use the coordinate
group number as stored in R228 with the corresponding data in MCM #1~#36 for work
coordinate system. As shown in Table 5-4, HUST H9C series has 6 work coordinate
systems and the cooresponding work origins are stored in the respective MCM
parameters 1 ~ 109.
5 - 27
Fig 5-10
Example: Use the current position on X-axis X=10.000 as origin, assuming the currnet
work coordinate is G57 and the MCM #61 = 20.000.
Step 1- Let C080 = 1 0 (falling edge).
Step 2- The controller will use the current program position for X-axis as origin, ie X
= 0.000 and the MCM #61 = 10.000.
5 - 28
C104 = 1,
Clear the current program and machine coordinate at current tool position
on W-axis to zero.
C096~C104 are used to clear both program and machine coordinates when the program
is NOT in execution mode. They are not effective when program execution is in process.
Fig 5-11
2. To Rotate Spindle Motor Continuously Under Manual Mode
Setp 1 - Set R238 for desired axis for spindle and C117=1.
Step 2 - Set spindle rotation direction C118=0/1 (normal/reverse) and R132 for
spindle speed under manual mode
Step 3 - Set C121 = 0 (OFF). Use R224 to adjust spindle speed in %.
Set C121 = 1 (ON). Use R225 to adjust spindle speed in %.
(When C121 = 1, fill R224 with 100 or the spindle speed may be affected.)
R225=0
Spindle stops
Fig 5-12
3. Spindle Control Under AUTO Mode and SINGLE Mode
Note: C119 = 1, Angular HOME position function ON
C119 = 0, Control spindle rotation only
5 - 30
Case 4:
5 - 31
Spindle stops
at 180.000 deg
angle
Fig 6-13
Notes: In PLC, the number that can be input into register is in the range of
+32767~-32767. If the number is outside this range, multiple input commahs
must be used in order to avoid overflow.
Example: Input 180000 into R134. First write 180 into R134, then multiply by 1000.
C120 = 1,
Program selection from external I/O device function ON
C120 = 0,
Program selection from external I/O device function OFF
R226 is the register to store the program number from external device while R255 stores
the current program number. When C120 = 1, the number in R255 will be replaced by
the number in R226.
C121 = 1,
C121 = 0,
When C123 = 10 (Falling edge) and R228 = 0, select G54 as work coordinate.
When C123 = 10 (Falling edge) and R228 = 1, select G55 as work coordinate.
When C123 = 10 (Falling edge) and R228 = 2, select G56 as work coordinate.
5 - 32
When C123 = 10 (Falling edge) and R228 = 3, select G57 as work coordinate.
When C123 = 10 (Falling edge) and R228 = 4, select G58 as work coordinate.
When C123 = 10 (Falling edge) and R228 = 5, select G59 as work coordinate.
Checking that the IO does not show the KEY CODE (C124)
When C124=1 and in I/O mode, it does not show the key value.
When C125 =1, all M-code, S-code and T-code will be executed simultaneously.
For example: G01 X100. S2000 M18
When C125 =0, the controller will execute S2000 and M18 first prior to motor rotation.
When C125 =1, the execution of S2000, M18 and motor rotation will all begin at the
same time. (in synchronization)
C1921
C1931
C1941
C1951
C1961
C1971
C1981
C1991
C2001
(
(
(
(
(
(
(
(
(
#3000
R180
MOV
#1000
R160
I010
(
)
C223
I010
(
)
C208
(
)
C223
5 - 35
Fig 5-14
In Edit or Teach mode, Insert and Input functions are not used Completely
(C220)
In addition to the normal application in the part program, G28, G29 and G30 functions
can also be executed through C224~C225 (1 pulse signal) in PLC as follows:
G28
G29
G30
C225
0
1
1
C224
1
0
1
When executing C224 & C225 through PLC, the desired axis must be specified.by R232.
Example: R232 = 7 (Bit-0~2 ON), C224 is on (1 pulse signal), X, Y, Z-axis will all
execute G28. (or return to the first reference point)
I005
MOV
#-V
A001
#15000
V11001
(
)
C226
A001
Fig 5-15
When using PLC to make MCM parameter adjustment, a rising-edge signal for C226
will be produced in the same sweeping cycle if the PLC programming is done correctly.
5 - 36
Otherwise, an ERROR 01 message will be produced from the controller. In this case,
please check the PLC program. If the ERROR 01 persists, please try to make adjustment
for any MCM parameter, then press RESET key.
C227=1, variable value cannot be entered nor output. (Input /Output blocked)
When C228 =1 and R2330 (or R2340) in JOG mode, the designated axis will move
immediately.
When C228=1 and R233=1, tool on X-axis will move in the positive direction.
When C228=1 and R233=2, tool on Y-axis will move in the positive direction.
When C228=1 and R233=4, tool on Z-axis will move in the positive direction.
When C228=1 and R233=8, tool on A-axis will move in the positive direction.
When C228=1 and R233=16, tool on B-axis will move in the positive direction.
When C228=1 and R233=32, tool on C-axis will move in the positive direction.
When C228=1 and R233=64, tool on U-axis will move in the positive direction.
When C228=1 and R233=128, tool on V-axis will move in the positive direction.
When C228=1 and R233=256, tool on W-axis will move in the positive direction.
When C228=1 and R233=511, tool on X/Y/Z/A/B/CU/V/W-axis will the move in
positive direction.
When C228=1 and R234=1, tool on X-axis will move in the negative direction.
When C228=1 and R234=2, tool on Y-axis will move in the negative direction.
When C228=1 and R234=4, tool on Z-axis will move in the negative direction.
When C228=1 and R234=8, tool on A-axis will move in the negative direction.
When C228=1 and R234=16, tool on B-axis will move in the negative direction.
When C228=1 and R234=32, tool on C-axis will move in the negative direction.
When C228=1 and R234=64, tool on U-axis will move in the negative direction.
When C228=1 and R234=128, tool on V-axis will move in the negative direction.
When C228=1 and R234=259, tool on W-axis will move in the negative direction.
When C228=1 and R234=511, tool on X/Y/Z/A/B/CU/V/W-axis will the move in
negative direction.
233 Bit-0
Axis
Bit-1
Bit-2
Z
Bit-3
A
Bit-4
B
Bit-5
C
Bit-6
U
Bit-7
V
Bit-8
W
234 Bit-0
Axis
Bit-1
Bit-2
Z
Bit-3
A
Bit-4
B
Bit-5
C
Bit-6
U
Bit-7
V
Bit-8
W
C233 = 1 0 (falling edge), clear G54 work coordinates that are stored in MCM #1~#6
(X, Y, Z, A, B, C-axis G54 coordinate) to zero (0). This can be done by using an
external input as follow. Note that C233 is an one-shot signal
.
( )
C233
I010
Fig 5-16
C235 = 1, program simulation using MPG handwheel mode is ON. There will be no
voltage command and encoder feedback during simulation
1. Allow PLC in MPG TEST mode by setting C056 = 1.
2. Using keyboard or an input point to set C235 = 1 as shown in the example below.
| |
I000
C0235
Fig 5-17
5 - 38
RESET
AUTO
MDI
HOME
JOG
EDIT
TEAC
TAPE
PRNO
PMI
MCM
CYCST
#9936
#9937
#9938
#9913
#9907
#9908
#9909
#9933
#9934
#9935
#9919
#9904
#9905
#9906
#9921
#9922
#9923
#9918
#9901
#9902
#9903
#9930
#9931
#9932
#9925
#9912
#9910
#9911
#9947
#9926
#9944
#9945
CURSOR
#9946
#9949
#9948
#9950
#9942
5 - 39
#9943
PAGE
#9941
#9941
Table 5-5
Key
Board
1
2
3
4
5
6
7
8
9
0
.
1
2
3
4
5
6
7
8
9
0
10
11
12
defined
Position
#9901
#9902
#9903
#9904
#9905
#9906
#9907
#9908
#9909
#9910
#9911
#9912
#9913
13
#9914
C
D
E
F
G
H
I
J
K
L
M
N
O
P
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#9915
#9916
#9917
#9918
#9919
#9920
#9921
#9922
#9923
#9924
#9925
#9926
#9927
#9928
Value
Key
Board
Q
R
S
T
U
V
W
X
Y
Z
/
#
Input
New
Line
Clear
Del.
PAGE
PAGE
CURSOR
CURSOR
CURSOR
CURSOR
Function-Key1
Function-Key2
Function-Key3
Function-Key4
Function-Key5
EX.:
1. #9928 = 27
2. Press this key.
3. The letter of Pwill be displayed.
5 - 40
28
29
30
31
32
33
34
35
36
37
38
39
64
defined
Position
#9929
#9930
#9931
#9932
#9933
#9934
#9935
#9936
#9937
#9938
#9939
#9940
#9941
65
#9942
72
68
73
74
75
76
79
80
#9943
#9944
#9945
#9946
#9947
#9948
#9949
#9950
#9951
#9952
#9953
#9954
#9955
#9956
Value
52
53
54
55
56
When the program restarts, M, T, S and G04 commands are skipped (C240)
When C240=1, the program that restarts will not excute M, T, S and G04.
To set the rotational axis, each rotational axis is not cleared to zero (C241)
1.
2.
3.
4.
C244 = 0, controller will send out ERROR 02 when the following-count > 4096.
C244 = 1, controller will NOT send out ERROR 02 when the following-count > 4096.
C244 function is to be used for testing condition. Do not use this function in real case.
5 - 41
Type 2 The definition of keys must judged by conditions repeatly after restarting
the controller
C245 ON & C255 ON (C255 there is a pulse signal on each key)
User can redefine the keys on HUST H9C keyboard by following the steps below. This
is done through PLC process. Please see R241 and R242 in next section for more
information.
Key code
Function ON
C245=1
S017 = 0 1
(Rising edge signal)
R241
Redefined
key code
C255=0 1
Redefined key
R242
Fig 5-19
Let C245 = 1 to enable redefining function and disable all the key functions (key codes
still retained). If only redefining keys 52~56 (soft-key) , its NOT necessary to set C245
=1.
AttentionIt must be noticed that all keys have to be defined or they will lose their
function.
EX.
The default number of keys is 47. Once user has defined 20 keys. It means that 27 keys
will lose their function.
1.
2.
3.
4.
5.
6.
5 - 42
PLC edit(step 5)
|
A0127
|
A0201
A0202
|
C0001
A0202
C0006
C0006
| |
CMP
46
S0017
R241
CMP
44
MOV
25
R241
R242
CMP
45
MOV
24
R241
R242
S0017
A0201
C0255
C247 = 0,
C247 = 1,
C0006
A0201
C0245
When the fill grid displays, the cursor jumps out of the fill grid (C250)
When the current screen displays the fill grid and the editable variables exist at the same
time, C250=01 (positive-edge status), the cursor can be switched to the fill grid and
the variable positions.
5 - 43
Program number
Editing area
of fill grids
Editing area
of variables
Program notes
01
02
14.000
75.250
35.120
10.000
30000
12500
C 568.000
D 645.321
E 55.145
J 786.212
K 568.398
L 758.362
0.000
0.000
0.000
Edit-Stop
Fig 5-20
When cutting the shape with a ladder contour and C251=1 (high), the tool
compensation is corrected linearly with explanation below:
When C251= 1, the tool compensation
route is a line.
Fig 5-21
When C251= 0, the tool compensation
route is a round arc.
Fig 5-22
C252 = 1,
C254 = 1,
5 - 44
C255 =0,
User defined keyboard output function OFF
C255 =01 (Risng edge), User defined keyboard output function ON (See C245)
5 - 45
5.3
Register
R100
R101
R102
R103
R104
R105
Variable No.
10100
10101
10102
10103
10104
10105
R106
10106
R107
R108
10107
10108
R109
10109
R110
10110
* R111
10111
R112
10112
R113
10113
R114
R115
10114
10115
R118
10118
R119
R121
10119
10121
R122
10222
R123
R124
10123
10124
R125
10125
R126
10126
R127
10127
R128
10128
R129
R130
R131
10129
10130
10131
Application / Definition
Execution mode selection
Displaying codes
Store the desired program numbers to be copied from
Store the desired program numbers to be copied into
Display the letter of input position. (X-Coordinate)
Display the letter of input position. (Y-Coordinate)
Show the current single block of the program being
executed. (Y)
Storing a pre-program number.
Storing an ending-program number
showing the column number of the cursor location.
(Function Table)
showing the row number of the cursor location.
(Function Table)
Program Number the Cursor Aiming At (Prog Number
Selection Mode)
The single block line number currently being edited by
the system
Selection of the program number. Setting the maximum
program number displayed by the program
Storing the max program number
Adjusting the LCD display width
#101180, Display of self-defined MACRO program
when in execution mode. (conjunction with R154)
Displaying the R232 execution mode
Axial ON/OFF
Reading the status signal sent by the PC or the Manmachine interface
S104~S111
Setting the F speed format
Displaying axial operation
After the program starts, the system does not excute the
program until it pre-catches a few single blocks. (Only
once)
Composite functions
Number Of Program Blocks Pre-Fetched To The
System When Starting Program Execution.
No LCD Display When Number of Program Blocks
pre-fetch Smaller Than R128 Setting Value.
(conjunction with C037)
Set the LCD reflash rate
Spidle Moror Speed at 10V
Home Shift Value (number of pulses) of Spindle Motor
5 - 46
Register
R132
R133
R134
R135
R138
R139
R140
R142
R143
R144~R145
R146
R147
R148~R149
R150
Variable No.
10132
10133
10134
10135
10138
10139
10140
10142
10143
10144~10145
10146
10147
10148~10149
10150
R151
10151
R152~R153
R154
R155
R156
R157
R158~R159
R160~R168
R180~R188
R190~R198
R200
R201
R202
R203
10152~10153
10154
10155
10156
10157
10158~10159
10160~10168
10180~10188
10190~10198
10200
10201
10202
10203
R204
10204
R205
10205
R206
R207~R210
R211
R220
R221
R222
R223
10206
10207~10210
10211
10220
10221
10222
10223
R224
10224
R225
10225
R226
10226
* R227
10227
R228
10228
Application / Definition
Spindle RPM in Manual Mode
Spidle RPM When Searching for GRID
Angular Set Position For Spindle Motor
Number of Rotation for Spindle
Spindle home shift
Spindle type
Spindle control mode
AD1
AD2
Reserved
DA1
DA2
Reserved
Setting of G31 inspection failure
Setting of the number of G31 inspection failure,
exceeding the alarm number.
Reserved
User-defined Command Code
Reserved
The offset distance after the G31 inspection fails.
Setting selection of an axial relative coordinate
Reserved V
Feed-rate setting for X, Y, Z, A, B, C, U, V, W
Absolute Coordinate setting for X, Y, Z, A, B, C, U, V, W
Motor deceleration selection for G31 skip function
Page number for Liquid LCD Screen display
Reserved
Special Display mode
Page number for TableFunction Table
X-coordinate for the Top-left Corner of the Table
Screen. Function Table
Y-coordinate for the Top-left Corner of the Table
Screen. Function Table
Read the cell value in the Table. Function Table
Reserved
Setting USB/SDC operation
Feed-rate percentage (%) for G00 (G00 MFO %)
Feed-rate percentage (%) for G01, G02, G03
Multiplication factor for MPG pulse (MPG MFO %)
Spindle Gear ratio
When C121=0, spindle speed percentage (%) = value in
R224
When C121=1, spindle speed percentage (%) = value in
R225
Selecting program number from external I/O device
The selected variable number when editing the variable
data
Selecting work coordinate system
5 - 47
Register
R229
R230
R231
R232
Variable No.
10229
10230
10231
10232
R233
10233
R234
10234
* R235
10235
* R236
10236
* R237
10237
R238
R239
* R240
* R241
R242
R243
R244
R245
R246
10238
10239
10240
10241
10242
10243
10244
10245
10246
* R247
10247
* R248
R249
R250
* R251
* R252
* R253
* R254
* R255
10248
10249
10250
10251
10252
10253
10254
10255
Application / Definition
Setting the number of decimals for display after power on
Page number for Easyview display
Setting tool compensation groups
For selecting the axis in JOG and HOME mode
For selecting the axis in JOG and MPG mode, (+)
direction
For selecting the axis in JOG and MPG mode, (-)
direction
For displaying the axis that is drivable (enabled)
For displaying the axis that is on HOME location
(machine zero)
For displaying the axis of which the HOME operation
has been executed
For selecting the axis to be the spindle axis
# 10239 = 6 is DNC Mode
Display the keyboard value of FUNCTION KEY.
Storing the keyboard key code as read by the controller
Storing the desired output key code
Axial selection of the second handwheel
Reserved
The second handwheel rate
Reserved
Display the value (bit) of ERR 1420 (+) direction
and ERR 02
Display the value (bit) of ERR 1420 (-) direction
Setting the axial SERVO to ON
Input signal type for G31
For storing the ERROR code
For storing current M-code
For storing current T-code
For storing current S-code
For storing the current program number
5 - 48
5.3.1
1. R000~R099 - the user can freely plan definitions in the ladder diagram.
2. R100R255, system data
Among R000~R099, their signal data can be stored when the power is turned off.
When the machine parameter MCM Item No 5210, it will not be stored when the
power is turned off.
When the machine parameter MCM Item No 521256, it will be stored when the
power is turned off.
R100 Value
0
1
2
3
4
5
6
7
Table 5-7
Execution
NONE
AUTO
HOME
EDIT
JOG
TAPE
TEACH
MDI
Table 5-8
Displaying
I/O status
NONE
Machine coordinate position
Program coordinate position
Edit mode
NONE
Program number
Machine parameter
R101
9
10
11
12
13
14
15
16
Displaying
RS232 mode
Program execution mode
NONE
NONE
NONE
NONE
Initialization mode
Variable mode
R104 = 8
R105 = 205
Fig 5-23
5 - 50
Fig 5-24
Pre-Set Program and End program (Range: 001 ~ 998) (R107 & R108)
5 - 51
Cursor Position
R109=3
R110=2
Fig 5-25
Program Number the Cursor Aiming At (Prog Number Selection Mode), (R111)
The single block line number being edited by the system, (R112)
If it is not set in the PLC, the initial value at booting =1000 meaning that the master
table in the machining program displays O000~O999.
If the setting value=500, meaning that the master table in the machining program only
displays O000~O499.
If it does not specify in PLC, the initial value when power-on = 1000 meaning that
there are O000~O999 programs. If the setting value = 500 meaning there are
O000~O499 programs.
Setting the LCD display program, parameter, single block width and unit: Primitive
Example: The system displays the contents of the program when it is set up at 800.
If the single block is too long, it will take up the whole screen. If it is changed to 400,
this single block will only display half of the program contents.
5 - 52
If R118 is not equal to zero, the program contents displayed during the program
execution will jump to the self-defined MACRO program with use of R154.
R119
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Table 5-9
Execution mode
NONE
PC CNC ONE PROG
CNC PC ONE PROG
PC CNC MCM
CNC PC MCM
PC CNC PLC
DNC
PC CNC VAR
CNC PC VAR
CNC PC ALL PROG
CNC PC SYS
CNC PC CRT
RESERVE
CNC PC KEY
CNC PC PTN
In AUTO and MDI modes, cancellation of axial function will be set by R121.
Set the selection of a corresponding axis with Bit.
When R1211, cancel the X-axis.
When R1212, cancel the Y-axis.
When R1214, cancel the Z-axis.
When R1218, cancel the A-axis.
When R12116, cancel the B-axis.
When R12132, cancel the C-axis.
When R12164, cancel the U-axis.
When R121128, cancel the V-axis.
When R121256, cancel the W-axis.
When R121511, i.e. Bit0, Bit1, Bit2, Bit3, Bit4, Bit5, Bit6, Bit7, Bit81, cancel the
X/Y/Z/A/B/C/U/V/W-axes at the same time.
Reading the status signal sent from the PC or the man-machine interface,
S104~S111 (R122)
The control signals planned by the personal computer (PC) or the man-machine
5 - 53
interface will be sent to the controller through RS232C. The controller will send
S104~S111 high signals to the PLC and display them at R122 by means of Bit.
When R1221, meaning that S104 is ON.
When R1222, meaning that S105 is ON.
When R1224, meaning that S106 is ON.
When R1228, meaning that S107 is ON.
When R12216, meaning that S108 is ON.
When R12232, meaning that S109 is ON.
When R12264, meaning that S110 is ON.
When R122128, meaning that S111 is ON.
In AUTO and MDI modes, the axial operational direction will be display by R124.
Display the direction of a corresponding axiswith Bit.
When R124 =0, it rotates forward.
When R1241, the X-axis rotates reversely.
When R1242, the Y-axis rotates reversely.
When R1244, the Z-axis rotates reversely.
When R1248, the A-axis rotates reversely.
When R12416, the B-axis rotates reversely.
When R12432, the C-axis rotates reversely.
When R12464, the U-axis rotates reversely.
When R124128, the V-axis rotates reversely.
When R124256, the W-axis rotates reversely.
When the program initiates the signal, the system will pre-catch the designated
single block number (R125)
When C127=1, it sends the program start-up signal, the system will first pre-catch the
single block number set by R125 and then start execution of the program. In the process
of program execution, it is not required to pre-catch the single block number designated
by R125, which is defferent from R127.
5 - 54
Table 5-10
Function
Bit
S-code is not equal to C34
14
Special restart mode
15
Displaying the program contents in
16
Auto mode.
GOO moves simulatenously but
17
does not reach at the same time.
07
R242=61 is valid
10
11
12
13
27
31
Function
Spindle C H command A-axis
RESET and clear #10940
Start the second limit XZ (Note 2)
Start the second limit XA (Note 3)
When C025=1, and when the
designated single block number is
wrong, the wrong message will not
appear.
When G83 is a single block, tool
return will stop.
The Y-axis is the diameter value.
When G00 is in the master-slave
mode, it will not stop.
R126 remarks
Note1
Bit10
Note2
Note3
Bit16
Bit17
1. When starting a program, there is a moment of tool stoppage (hesitation). The larger
the setting value for R127, the longer the stoppage (hesitation).
2. The purpose of program pre-fetch is to provide smooth & continuous operation
when the tool movement between program blocks involves all small distances.
3. At high moving aped, this function may not be effective.
The spindle motor speed (rpm) at 10V will be transferred from MCM #225 and stored in
R130. In PLC, the value in R130 can be adjusted to modify the spindle speed. The Scode command in the program will be compared to the value in R130 so that a correct
output voltage can be determined.
1. When perform homing process with 117 = 1 and C119 = 1, the shifting value
(number of pulses) from home position is determined by the setting in R131.
2. The setting value is by number of pulses, either positive or negative.
1. When power-on, the system will transfer the MCM#510 value into R132.
2. The S-code in PLC will also be transfere to R132 as a last command for spindle
RPM under manual mode.
1. C117=1, Spindle in closed-loop contril. When C116=1, Spindle starts searching for
GRID on motor.
2. C118 for spindle motor rotational direction control.
3. R133, spidle RPM when searching for GRID.
AD1 (R142)
AD2 (R143)
5 - 56
Pin 13 +12V
Pin 06 ADC IN
Pin 15 GND
In current H6C connecting manual, there is a special addition mode beside G Standard
and M CODE. The introduction is as follows:
1. When there is a bit on from R154, it will be switched to this special addition mode.
It will follow the Table 6-8 to run the sub-program. (If there is no commands for
running the program, it will be automatically switched to the standard one)
2. If there is more than one R154 bit on simultaneously, each row can only execute
once at a time. The lower bit will be chosen to execute the program first.
Example 1 : Program G01X100. Y100.Z100.F1000
R154=0:
The axes normally move to X100. Y100. Z100.
(It is the same either R154 bit1 or Bit2 as there is no further commands)
R154 bit 0 is on:
When the system runs at this row, it will execute the sub-program 901. Those programs
of code GXY and Z will be indicated in fig 6-10, the axes will not move to the
position of X100. Y100. Z100.
R154 bit 23 is on:
When the system runs at this row, it will execute the sub-program 791. Those programs
of code GXY and Z will be indicated in Table 6-9, the axes will not move to the
position of X100. Y100. Z100.
5 - 57
5 - 58
4. Program 783 will NOT be executed when the command X400D4T4 is given.
Because of the absent of the N code, the execution goes back to the position
X400.
5. M02
R154
Bit-0
Bit-1
Bit-2
Bit-3
Bit-4
Bit-5
Bit-6
Bit-7
Bit-8
Bit-9
Bit-10
Bit-11
Bit-12
Bit-13
CODE
G
M
T
S
A
B
C
D
E
F
H
I
J
K
Table 5-12
Program
R154
O900~O999 Bit-14
O800~O899 Bit-15
O770
Bit-16
O771
Bit-17
O772
Bit-18
O773
Bit-19
O774
Bit-20
O775
Bit-21
O776
Bit-22
O777
Bit-23
O778
Bit-24
O779
Bit-25
O780
O781
CODE
L
N
Program
O782
O783
P
Q
R
U
V
W
X
Y
Z
O785
O786
O787
O788
O789
O790
O791
O792
O793
Table 5-13
CODE
A
B
C
D
E
F
G
H
I
J
K
L
M
N
Variable
No.
#13101
#13102
#13103
#13104
#13105
#13106
#13107
#13108
#13109
#13110
#13111
#13112
#13113
#13114
#13100
CODE
BIT01
BIT02
BIT03
BIT04
BIT05
BIT06
BIT07
BIT08
BIT09
BIT10
BIT11
BIT12
BIT13
BIT14
O
P
Q
R
S
T
U
V
W
X
Y
Z
Variable
No.
#13100
#13116
#13117
#13118
#13119
#13120
#13121
#13122
#13123
#13124
#13125
#13126
BIT16
BIT17
BIT18
BIT19
BIT20
BIT21
BIT22
BIT23
BIT24
BIT25
BIT26
5 - 60
When C213= 01, C-axis moves to the position of R185 x10 with a speed of R165.
(Use PLC to control axial movement on C-axis)
When C214= 01, U-axis moves to the position of R186 x10 with a speed of R166.
(Use PLC to control axial movement on A-axis)
When C215 = 01, V-axis moves to the position of R187 x10 with a speed of R167.
(Use PLC to control axial movement on B-axis)
When C216= 01, W-axis moves to the position of R188 x10 with a speed of R168.
(Use PLC to control axial movement on C-axis)
Note: When C223 = 0 position of absolute coordinateC223 =1 position of Incremental
coordinate.
Ex:
Type of motor deceleration for G31 skip function is determined by the C028 signal and
the value in R190. (Refer to Sec 3.15 in Operation Manual)
C028 = 0 (low), servomotor ignores the value in R190 and decelerates linearly to zero.
C028 = 1 (high), & R190 = 0, servo motor speed jumps to zero.
C028 = 1 (high), & R190 0, servomotor will stop in a distance = value in R190
R202 = 1,
= 2,
= 3,
= 4,
= 5,
= 7,
= 9,
= 12,
= 13,
R202 = 9
#16161 =
0, X/Y plane
1, Y/Z plane
2, Z/X plane
3, X/Y/Z plane
#16162 =
#16163 =
51,
#16164 =
32,
#16165 =
90,
#16166=
45,
#16167 =
4,
#16168 =
796,
#16169 =
48,
#16170 =
472
(#16167, #16169)
(#16168, #16170)
Fig 5-26
Method of Application:
1. R202 = 9
2. Choose the plane of path (#16161)
3. Arrange LCD Screen
4. Set values for #16162#16170
5. Do the following steps
Press key [Graph/ I/O] to get into the grapg screen as below:
Fig 5-27
5 - 62
1. in the screen represents the origin of the coordinate. Use cursor to drag to new
location if desired.
1 The number 256 on the top-left corner is the current ploting ratio for the
horizontal axis. Use Page Up/Down key to change the ratio.
X- & Y-coordinate for the Top-left Corner of the Table Screen (R204 & R205)
R204 = 4
R205 = 20
Fig 5-28
5 - 63
R206 = 78
#11980
#11981
#11982
#11983
#11984
#11985
#11986
N
1
2
3
4
5
6
7
Table 5-14
R206 = 88 X
#11980
15.000
#11981
75.250
#11982
100.000
#11983
125.250
#11984
150.000
#11985
175.000
#11986
200.000
R206 = 90
#11980
#11981
#11982
#11983
#11984
#11985
#11986
Y
13.120
10.000
With R211 value, you can plan the USB/SDC function by yourself (see Table 5-10).
R211
50
51
52
53
54
55
56
80
81
82
83
84
Definition
PAGE DOWN
PAGE UP
MOVE DOWN
MOVE UP
Start the folder
Return to the last
directory
Refresh the directory
Delete a document
Rename
Create a foler
Reproduce
Copy
Table 5-15
R211
101
102
103
104
105
106
131
132
133
134
135
136
137
138
139
140
141
142
Definition
CNC USB/SDC CNC
CNC USB/SDC ALL CNC
CNC USB/SDC MCM
CNC USB/SDC VAR
CNC USB/SDC CYF
CNC USB/SDC 999
USB/SDC CNC CNC
USB/SDC CNC MCM
USB/SDC CNC PLC
USB/SDC CNC CRT
USB/SDC CNC SYS
USB/SDC CNC KEY
USB/SDC CNC MOT
USB/SDC CNC PTN
USB/SDC CNC VAR
USB/SDC CNC CYF
USB/SDC CNC 999
USB/SDC CNC DNC
5 - 64
Set the G0x feed-rate percent (G0x MFO %). G0x includes G01, G02 and G03.
Initial value100
Setting range: 0~150
Example: Set G01 feed-rate 2000, R221120
Output G01 feed-rate 2400. mm/min2000120 %2400
Setting the Selected Variable Number When Editing the Variable Data (R227)
Setting the selected variable number when editing the variable data
When in variable data editing mode, the number in R227 is equal to the variable number.
You cannot edit variable data in the following modes
1. R202 0
2. Program-edit, and
3. Teach mode
When C12310 (Falling Edge) & R2280, Select G54 as work coordinate system.
When C12310 (Falling Edge) & R2281, Select G55 as work coordinate system.
When C12310 (Falling Edge) & R2282, Select G56 as work coordinate system.
When C12310 (Falling Edge) & R2283, Select G57 as work coordinate system.
When C12310 (Falling Edge) & R2284, Select G58 as work coordinate system.
When C12310 (Falling Edge) & R2285, Select G59 as work coordinate system.
R228
0
1
2
3
4
5
Table 5-16
Work Coordinate System
G54
G55
G56
G57
G58
G59
R229
01
02
03
04
Table 5-17
Format
Number of Decimals
61
1
52
2
43
3
34
4
5 - 66
INPUT
3/4 Format
4/3 Format
5/2 Format
6/1 Format
X2
Y250
Z2500
U2500
V25.
W25.
F300
X0.0002 mm
Y0.0250 mm
Z0.2500 mm
U0.2500 mm
V25.0000 mm
W25.0000 mm
F300 mm/min
X0.002 mm
Y0.250 mm
Z2.500 mm
U2.500 mm
V25.000 mm
W25.000 mm
F300 mm/min
X0.02 mm
Y2.50 mm
Z25.00 mm
U25.00 mm
V25.00 mm
W25.00 mm
F300 mm/min
X0.2 mm
Y25.0 mm
Z250.0 mm
U250.0 mm
V25.0 mm
W25.0 mm
F300 mm/min
In JOG & HOME modes, set the axial selection with R232.
Set the selection of a corresponding axis with Bit.
When R2321, i.e. BIT01, set the X-axis to be drivable.
When R2322, i.e. BIT11, set the Y-axis to be drivable.
When R2324, i.e. BIT21, set the Z-axis to be drivable.
When R2328, i.e. BIT31, set the A-axis to be drivable.
When R23216, i.e. BIT41, set the B-axis to be drivable.
When R23232, i.e. BIT51, set the C-axis to be drivable.
When R23264, i.e. BIT61, set the U-axis to be drivable.
When R232128, i.e. BIT71, set the V-axis to be drivable.
When R232256, i.e. BIT81, set the W-axis to be drivable.
When R232 63, i.e. Bit0, Bit1, Bit2, Bit3, Bit4, Bit5, Bit6, Bit7, Bit8 1, set
X/Y/Z/A/B/C/U/V/W- axes to be drivable.
In HOME mode, set the drivable axial direction (X/Y/Z/A- axes)
Example: In Home mode,
R23215
(Bit0, BIT1, BIT2, BIT3 On)
Set X/Y/Z/A-axes to be drivable.
5 - 67
5 - 70
5 - 71
User can define key function using R242 as shown in Table 6-13 below. If user wish to
redefine HUST H6C keyboard keys, he must let C245 = 1. When C255 = 01 (rising
edge), the self-defined key function will be output from R242.
Table5-19 R242 Codes with Corresponding Functions
R242 Output
R242 Output
R242
Output
0
0
30
S
60
1
1
31
T
61
2
2
32
U
62
3
3
33
V
63
4
4
34
W
64 Enter
5
5
35
X
65 Insert
6
6
36
Y
66 Auto Sequence Realignment
Find last N (program block before
7
7
37
Z
67
interrupt)
8
8
38
68 Delete
9
9
39
#
69 Delete the current program
10
40
70 Delete all programs (5)
Download MCM parameters from
11
41
71
Flashrom (6)
12
A
42
72 Clear the input value from Register
13
B
43
73 PAGE UP
14
C
44
74 PAGE DOWN
15
D
45
75 CURSOR UP
16
E
46
76 CURSOR DOWN
17
F
47
77 Clear Variables #1~#99990 (7)
Read the Variables #9000 ~ #9999 from
18
G
48
1
78
Flashrom (8)
19
H
49
2
79 CURSOR LEFT
20
I
50
3
80 CURSOR RIGHT
21
J
51
4
81 Upload program to Flashrom (9)
Upload MCM parameters to Flashrom
22
K
52
82
(10)
23
L
53
83 Upload LADDER to Flashrom (11)
24
M
54
84
25
N
55
85 Upload System data to Flashrom (12)
Upload variables #9000~#9999 to
26
O
56
86
Flashrom ( 13)
27
P
57
87
28
Q
58
88
29
R
59
89
Table 5-20
5 - 72
R242 Notes ()
R24248
1
R24249
2
R24250
3
R24251
4
R24270
5
R24271
6
R24277
7
R24278
8
R24281
9
R24282
10
R24283
11
R24285
12
R24286
13
5 - 73
Sensor signal ON
rising edge
falling edge
The skip function of G31 (waiting input signal) will not be set up if the input signal dose
not enter the controller.
EXR250 = 3
Input signal type is normally closed (1)
Program Description
c Input 5 Start the controller to do the position control.
d Input 0 Photo Sensor
e Output 13 The tool executes the cutting or not.
f 1 Exceed the distance from lamp sensor to controllers starting point .
g 2 F value = Motor feed rate.
h 3 Feed Hold setting
i 4 Equal to the value of R190. The setting value muse exceeds the distance
of motor deceleration.
5 - 74
G12 P5
G31 X1 F2 P00
G11 P13
G04 X3
G11 P-13
M99
Waiting M-code. The controller will not execute the next program
block unless the M-code is finished (C032 = 1).
Non-waiting M-code. The controller will not wait for the M-code to
finish. It will execute the next block immediately.
The current (being executed) main program number is stored in R255. R255 is for read
only.
When C120 = 1, the program number from the external I/O device will be placed in
R226. When you start execution, this number in R226 will be placed in R255.
5 - 76
5.4
Special Variables
Set the cursor size, #10781
Program editing, table of I-O file and MCM status are shown on the top left of display.
#10782=32
#10783=24
#10782=32
#10783=24
5 - 77
Fig 5-29
#10784=80
#10785=160
DELETE O004 (y/n)?
Fig 5-30
#10786=8
#10787=205
Fig 5-31
5 - 78
Fig 5-32
5 - 79
5.5
Variables (VM)
All data in HUST H6C system is stored in the variables. If you like to check a problem
during execution, you can check the variable.
Table 5-21
Variable Number
Definition
00001
10000
11001
12001
...
...
...
...
09999
11000
12000
13500
Variable Number
Table 5-22
Variable Data
Data Range
10000 ~ 10255
10256 ~ 10511
10512 ~ 10767
10781
10800 ~ 10807
10808 ~ 10815
10816 ~ 10823
10824 ~ 10831
10832 ~ 10863
Register
Counter
Timer
cursor size
I Bit Data
O Bit Data
C Bit Data
S Bit Data
A Bit Data
R000 ~ R255
Cn000 ~ Cn255
Tm000 ~ Tm255
-1 ~ 2
I0000 ~ I0255
O0000 ~ O0255
C0000 ~ C0255
S0000 ~ S0255
A0000 ~ A1023
5 - 80
Variable
Number
10104
10105
10106
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
*10900
*10902
*10903
*10904
*10905
*10906
*10921
*10922
*10923
*10924
*10925
*10931
*10932
*10933
*10934
*10936
#10951
Variable Data
Appendix
Variable
Number
~
#10970
*10995
*10996
*10997
*10998
11800
16161
16162
16163
16164
16165
16166
16169
16170
16167
16168
Variable Data
Appendix
* Read only
ErrorList description
The first variable storing error code and time information: ERCD, HHMH
ERCD=ERROR CODE NUM
HH = Hour ( by 24 hours)
MH = Minute
The second variable storing date information: YYYY, MMDD
Gr.
No.
1
2
3
4
5
Table 5-24
Error Code, Time Date
Gr.
Infomation
information
No.
#10951
#10952
6
#10953
#10954
7
#10955
#10959
8
#10957
#10958
9
#10959
#10960
10
5 - 82
Variable Data
RANGE
Machine Coordinate
X, Y, Z, A, B, C
Program Coordinate
X, Y, Z, A, B, C
Residual value of program single block X, Y, Z, A, B, C
Relative coordinate
X, Y, Z, A, B, C
Following Error
X, Y, Z, A, B, C
Return to HOME, locate the GRID point
X, Y, Z, A, B, C
distance
5 - 83
5 - 84
6 Ladder Diagram
LADDER DIAGRAM
This chapter briefly explains the PLC ladder programs that come as a standard
equipment. Users who desire to change the sequential control of the HUST standard
PLC Ladder must fully understand the specific meanings of all S-bits and C-bits that are
described in Chap 6 before attempting to make any change. Prior to making any change,
lay out and design all the I/O points that are required for the work purposes. Note that
the S-bits, C-bits, and some I-bits are already defined in HUST H6C controller. Their
applications should not be altered or redefined. Otherwise, significant error may occur.
6.1
A ladder diagram is a sequential control chart for the CNC controller, which in turn
issues a voltage command to do some mechanical actions. To edit or revise a PLC
program, an optional software called HUST PLC Editor can be used.
Before writing a PLC program, a chart depicting the mechanical actions should be laid
out with the inputs and the outputs. With the chart, you start writing your PLC program.
When the PLC program is completed, you can burn the program into a FLASHROM.
During the burning process the ladder program will be translated into 68000 machine
codes which are executable by the H6C PLC logic controller. The command signals will
then be issued to the H6C CNC controller to do the appropriate work. Following
sections are brief discussions of the ladder diagrams for HUST H6C standard PLC. For
PLC Editor, please refer to HUST PLC Operation Manual.
6.1.1
S-bit
: CNC status signals to PLC for sequential control.
C-bit : Command signals from PLC to CNC for motion control.
I-bit
: Input signals to the PLC from external I/O devices.
O-bit : Output signals from PLC to external I/O devices.
A-bit : Internal signals used by PLC itself for auxiliary purpose.
R000~R099 data will be saved when it is power-off and MCM #215 is set to 0/1.
6.1.2
I-bit
6 - 1
6 - 2