HUST H8M CNC Controller Manual
HUST H8M CNC Controller Manual
2008/06/12
Table of Contents
1 MAIN FEATURES OF HUST H8-M CNC 1-1
i
HUST H8-M Operator’s Manual
ii
Table of Contents
iii
HUST H8-M Operator’s Manual
11 Attachment A 11-1
12 Attachment B 12-1
iv
Chapter I Main Features of Hust H8-M CNC Controller
□ Freely design a simple screen mode with the LCD screen editing
system in easy-to-learn steps. An optional editing software is also
provided for monitoring or checking of the program with your PC
monitor.The program can be transmitted and executed by your PC via
the RS232C interface (ZNDC).
□ The H8-M controller can confirm the feeding length via simultaneous
feedback of the roller and passive encoder, and cross reference.
1-1
HUST H8-M Operator’s Manual
□ The R value can be directly used to indicate radius when arc cutting.
The I and J values can be used as well.
□ MPG hand-wheel test and collision free function for cutting products at
the speed controller by MPG.(MPG Test)
The Operator’s Manual focues on the functions of the HUST H8-M CNC
controller. The mechanical specifications vary depending on various
manufacturers. Refer to the operating instructions of the machine for
information about mechanical specifications.
If there are any questions about the Manual or some problems occur when
using the product, please send your questions or problems to us by either
fax or mail. We will respond to you as soon as possible.
1-2
Chapter I Main Features of Hust H8-M CNC Controller
1-3
HUST H8-M Operator’s Manual
• The symbol # placed along with an entry indicates that the entry is
configured to initial settings.
(In the MCM parameters, G01 or G00 can be set as the initial power-on
mode.)
• * -- Modal G-codes.
1-4
Chapter II Basic Programming Concepts
IOCSA*
D1 (INPUT) OUTPUT
INPUT
Wear compensation Wear compensation Parameter
Origin Mode MCM* Screen
Length compensation Length compensation
Manual Drilling
Jog Mode Work Coordinate
2 - 1
Select
G34~G37 Variable Editing
Edit Mode G22~G25 Program Insertion
2. Operating Instructions:
PRNO DNC
EDIT TEAC
MDI JOG X1
AUTO JOG X10
MPG-TEST JOGX100
GRAPH HOME
MODE
In the Graph Mode, the following keys are available:
Function 1: Graph function (MCM parameter settings)
Input: Switches between coordinate systems in the following order: X-Y, Y-Z, Z-X, and
X-Y-Z.
Page Up & Page Down: Switches between display ratios. The indication X:500 shown
in the figure indicates the maximum width of the X axis.
Cursor Key: “*” indicates the work origin, which is movable using the Cursor key.
Dwell: Pause a running program by pressing the Dwell key while in Graph Mode. Press
the Dwell button again to continue execution of the program.
2 - 2
Chapter II Basic Programming Concepts
PRNO DNC
EDIT TEAC
MDI JOG X1
AUTO JOG X10
MPE-TEST JOGX100
GRAPH HOME
MODE 擇
When the start key is pressed while in “MPG – TEST” mode, no axis
will move until the hand-wheel is rotated. The axes will stop moving when
the hand wheel stops rotating. This function is very useful for checking the
changes of each block and ensuring program correctness at the initial stage
of program development.
2 - 3
HUST H8-M Operator’s Manual
PRNO DNC
EDIT TEAC
MDI JOG X1
AUTO JOG X10
MPG-TEST JOGX100
GRAPH HOME
MODE
You can run a part program while in Auto mode.
The following functions allow you to work more efficiently.
1. Block Execution: This function can be selected at any time no matter whether the
program is running or is stopped.
Whenever the "Start" key is pressed while this function is selected, only the next
command line will be executed instead of the entire program.
2. Program Dry Run: This function can be selected or canceled only when the
program has stopped running.
After this function is selected, the motor will not start operating and the controller
will only simulate program operation and show coordinates, when the program is
started again.
3. Optional Stop: This function can be selected at any time no matter whether the
program is running or is stopped.
When this function is selected, an M01 command in the program is interpreted as a
stop command. It doesn’t function if Optional Stop is not selected.
4. Optional Skip: This function can be selected at any time, whether the program is
running or not.
When this function is selected, any /1 command in the program will be skipped
(not executed). Such command lines will be executed if the Optional Skip function
is not selected.
2 - 4
Chapter II Basic Programming Concepts
PRNO DNC
EDIT TEAC
MDI JOG X1
AUTO JOG X10
MPG-TEST JOGX100
GRAPH HOME
MODE
PRNO DNC
EDIT TEAC
MDI JOG X1
AUTO JOG X10
MPG-TEST JOGX100
GRAPH HOME
MODE 擇
Direct input of program commands is possible in Edit Mode (refer to Chapter III
for detailed information about commands and Chapter VI for input methods).In addition,
input of drilling cycle commands is also possible with the graphical input method.
Set to Restart: Move the cursor to the line to be restarted, press the Set to Restart key,
and switch to Auto Mode to directly start from the selected line (not the first line).
2 - 5
HUST H8-M Operator’s Manual
G81 ~ G89: Provide G81 ~ G89 drawings so that users can produce a program
based on them.
G22 ~ G25: Provide G22 ~ G25 drawings so that users can produce a program
based on them.
2 - 6
Chapter II Basic Programming Concepts
G34 ~ G37: Provide G34 ~ G37 drawings so that users can produce a program
based on them.
2 - 7
HUST H8-M Operator’s Manual
PRNO DNC
EDIT TEAC
MDI JOG X1
AUTO JOG X10
MPG-TEST JOGX100
GRAPH HOME
MODE
PRNO DNC
EDIT TEAC
MDI JOG X1
AUTO JOG X10
MPG-TEST JOGX100
GRAPH HOME
MODE
While in Program Selector Mode, the cursor key can be used to select the desired
program number. Then, press the Enter or Select key to switch to the currently selected
program number.
To add comments to the program, position the cursor to the desired point, then
enter alphanumeric characters using the keyboard.
2 - 8
Chapter II Basic Programming Concepts
INPUT” appears. Then, move to the source program to be copied with the Cursor key
and press the Enter key. After doing so, the message “SELECT TARGET BY CURSOR
& INPUT” appears. At this time, select the program number to be replaced and press the
Enter key to complete the copy action.
PRNO DNC
EDIT TEAC
MDI JOG X1
AUTO JOG X10
MPG-TEST JOGX100
GRAPH HOME
MODE 擇
Jog operation is possible with the “Axis Selection” knob, and by selecting JOG+,
and JOG- while in Jog Mode. The “Axis Selection” knob and the hand wheel can also
be used for movement.
The Coolant, Lubricant, Spindle CW, and Spindle CCW functions are also
available in Jog Mode. The tool changing action has been yet to be defined due to
various mechanisms produced by each manufacturer.
Wear Compensation and Length Compensation: Only configurable in Jog Mode.
The length compensation settings can be applied or cancelled if the program contains a
G43, G44, or G49 command. The G40, G41, and G42 commands are used for radius
compensation.
Work Coordinate: The work coordinate screen can help you to enter work
coordinates quickly.
Direct enter the values or use the function keys at the bottom to enter the values.
2 - 9
HUST H8-M Operator’s Manual
X origin: Fill in the current X-axis machine coordinate in the coordinate system
corresponding to the cursor.
When the key is pressed, the current X-axis machine coordinate will be filled in the
field X of G56 (not the field Y) if the current value of the cursor belongs to the field Y
of G56.
Y origin: Fill the current Y-axis machine coordinate in the coordinate system
corresponding to the cursor.
Z origin: Fill the current Z-axis machine coordinate in the coordinate system
corresponding to the cursor.
A origin: Fill the current A-axis machine coordinate in the coordinate system
corresponding to the cursor.
X1/2: Add the current X-axis machine coordinate to the current work coordinate X
value, and divide the result by 2. The final figure obtained will be filled in the
corresponding coordinate system.
Example: Current X-axis machine coordinate = 100.000
G54 work coordinate = 0.000
After X1/2 is pressed, G54 work coordinate =
(100.000+0.000)/2=50.000
Y1/2: Add the current Y-axis machine coordinate to the current work coordinate Y
value, and divide the result by 2. The final figure obtained will be filled in the
corresponding coordinate system.
B/C/U : Switch to the B/C/U axis work coordinate setting screen.
2 - 10
Chapter II Basic Programming Concepts
Drilling Depth: The downward drilling depth for the tool. (not the coordinate)
Drilling Speed: Speed of hole drilling. (not spindle speed)
Each Feed Depth: The depth to drill, after which the tool returns to the starting
point.
Reserved Distance: After returning to the start point, the tool quickly feeds to
the last drilling depth after subtracted from the reserved distance.
Current X, Y, Z Coordinates : Change the X, Y, Z coordinates with the hand
wheel without needing to enter them.
Execute: Execute drilling according to the current settings. The spindle should
be started before execution. Press the Spindle CW key (or Spindle CCW key) on
the auxiliary panel and adjust the spindle speed with SSO% settings.
2.1.10Tutorial Mode
PRNO DNC
EDIT TEAC
MDI JOGX1
AUTO JOGX10
MPG-TEST JOGX100
GRAPH HOME
MODE
The main difference between Tutorial Mode and Edit Mode is that the system
2 - 11
HUST H8-M Operator’s Manual
will determine whether the axial position will change when you press the Enter or
Insertion keys. The changed axis coordinate will be filled in the current line if the axial
position changes.
In Tutorial Mode, axial movement is available with the Axis Selection knob and
hand wheel. To select ratios, press the function key at the bottom of the screen.
2 - 12
Chapter II Basic Programming Concepts
2 Programming Overview
2 - 13
HUST H8-M Operator’s Manual
With the above abilities, you will be able to create a numerical control
machining program more efficiently. Two programming methods are
available for the part program of the numerical control unit:
Manual Programming
Automatic Programming
Manual Programming
All processes, including the drawing of the part diagram, machining design,
numerically controlled program algorithm, programming, and the
transmission of the program to the controller, are performed manually.
Automatic Programming
All processes, from the drawing of the part diagram to the transmission of
the numerically controlled program to the controller are performed with a
PC.
2 - 14
Chapter II Basic Programming Concepts
This is called a CAD/CAM system, and is used by many units using CNC
machines to create a program especially for machining 3-D work-pieces.
A complete program contains a group of blocks, and each block has a serial
number and several commands. Each command is composed of a command
code (letter A~Z) and some numbers (+.-.0~9). An example of a complete
part program containing 10 blocks is shown in the table below. A complete
program is assigned a program number, such as O001, for identification.
A complete program:
Blocks are the basic units of a program. A block contains one or more
commands. A block has the following basic format:
N____G____X____Y____Z____F____M____
Except for the block serial number (N), the command group of a block can
be classified into four parts:
2 - 15
HUST H8-M Operator’s Manual
However, not every block contains these four commands. Some blocks
have only one command. This will be further discussed in Chapter III.
Except for the block serial number of the block, which is designated N___,
all other components of the block are commands. A command contains a
command code letter (A~Z), a +/- sign, and some numbers.
Y-10.000
Y : Command code
"-" : +/- sign (+ can be omitted)
10.000 : Tool positioning amount (or coordinates).
The command codes include the function command code, positioning (or
coordinate) command code, feed-rate command code, and auxiliary function
command code. Each command code has its own definition, and the machine
operates according to the given command code. The command codes of the
HUST H8-M Series and their definitions are described below.
2 - 16
Chapter II Basic Programming Concepts
Each block has a serial number for identification. Although the serial
number is not essential, it is recommended to use it for easy searching. The
serial number contains the letter “N” and some numbers. The numbers
should not be repeated, and it is not necessary to arrange them in order. The
program runs in order of blocks from top to bottom rather than their serial
numbers. For example:
2 - 17
HUST H8-M Operator’s Manual
The HUST H8-M Series uses the well-known 2-D Cartesian coordinate
system. The 2-D coordinate system of the HUST H8-M has an X-axis and a
Y-axis. The intersecting point of the two axes is the zero point, i.e. X=0 and
Y=0 (work origin), as shown in Figure 2-1. The X- and Y-axis will be used
as an example in this manual.
+Y
P2 (-X, +Y)
P1 (+X, +Y)
X=0,Y=0 +X
P4 (+X, -Y)
P3 (-X, -Y)
The X- and Y-axis can be used as linear or rotational axes, which will be
described in Chapter III. When the X- and Y-axis are used as a rotational
axis, the thumb of your right hand points to the positive direction of the
axis (+X, +Y) and the other four fingers point in the direction of its normal
rotation.
2 - 18
Chapter II Basic Programming Concepts
The previous coordinates of the tool are the reference point for calculating
the coordinate value of the next position. The end point of the previous
movement is the start point of the next movement. The incremental
coordinates are either positive (+) or negative (-), a negative coordinate
value means decrement. Facing toward the direction of the movement, if
the tool is heading in the positive (+) direction, U or V represents an
increment. If it is heading in the negative (-) direction, U or V represents a
decrement.
For the HUST H8-M Series, the coordinates can be set to incremental or
absolute in the following way:
2. When G90 is executed in the part program, from this line to the end of
the program, absolute coordinate positioning will be applied for X ,Y,
Z, A, B, C, U, V
3. When G91 is executed in the part program, from this line to the end of
the program, incremental coordinate positioning will be applied for
X ,Y, Z, A, B, C, U, V.
2 - 19
HUST H8-M Operator’s Manual
Note: The G90, G91 settings are only configured for the part program.
Coordinate positioning will restore to the last parameter settings
after the part program is finished.
Simultaneous use of absolute and incremental coordinate systems in a part
program is possible. When using the absolute coordinate system, the input
error of the previous position, if any, does not affect the coordinate of the
next point. When using the incremental coordinate system, however, all
subsequent positioning is affected if the previous position is incorrect.
Therefore, particular attention should be paid when using incremental
coordinates.
There aren’t any rules about when to use the incremental or absolute
coordinate system. It depends on the machining requirements. If each
machining point is positioned relative to the home position, it is
recommended to use the absolute coordinate system.
The programmer determines the position of the work origin. It can be any
point on the work area of the machine. However, it is recommended to
select an origin that makes it easier to read the work-piece coordinates.
Refer to Chapter III for information about work origin input to the
controller.
2 - 20
Chapter II Basic Programming Concepts
The work origin is also called the work zero point or program origin. In
this manual, this zero point is always referred to as the work origin.
There is a fixed point on the machine bed or bed rail. This point is used as a
reference point for calibration of the work origin and tool length
compensation. This reference point is called the machine origin.
The point will be the zero degree position if the X- or Y-axis is set as a
rotational axis.
Each axis has a machine origin. The tool will return to the machine origin
after performing the homing action. The coordinate of the machine origin is
determined by the position of the limit switch mounted by the machine
manufacturer.
The numerical control range of the HUST H8-M Series is described in the
following table (the 4/3 format is used).
The function control range of the HUST H8-M Series is described in the
following table.
2 - 21
HUST H8-M Operator’s Manual
S code 999999
F code mm/min 0 ~ 9999999
X.Y.Z, U.V.W, I.J.R, mm 0.001 ~ +/- 9999.999
G 0 4, seconds 0 ~ 9999.999
Program number 0 ~ 999
T code 0 ~ 10000
RAM memory capacity 128K
Lead screw compensation 0 ~ 255 Pulses
Max. Response Speed 500 KPPS
2 - 22
Chapter III Programming and Command Codes
3-1
HUST H8-M Operator’s Manual
The definition of the G-codes in the HUST H8-M series is similar to that of other
controllers. They are classified into two groups:
1. One-shot G-codes
A One-shot G-code (has no * mark in the table) is valid only in the defined
program block.
2. Modal G-codes
3-2
Chapter III Programming and Command Codes
The G-codes of the HUST H8-M controller are listed in Table 3-1.
3-3
HUST H8-M Operator’s Manual
1
G00 V
X 2
Y U
G00 (or G0) is used to instruct the tool to move to the defined end point of a
program block at a specific rate, which is obtained by multiplying the maximum
feed-rate [variables # 9140 ~ 9147] by G00 MFO%.
Variables # 9140 ~ 9147 means the maximum feed-rate; the factory default is
10000.
G00 MFO feed-rate percentage. The initial setting is 100% with a range from 0 to
100.
G00 can control the movement of 1~8 axes simultaneously. Any axis that is not
set by the command does not execute any movement.
Single Axis Fast Positioning:
G00 X___
Î The X-axis executes fast positioning at a specific rate, which is obtained by
multiplying [Variable # 9140] by [Register R220]%.
G00 Y___
Î The Y-axis executes fast positioning at a specific rate, which is obtained by
multiplying [Variable # 9141] by [Register R220]%.
G00 Z___
Î The Z-axis executes fast positioning at a specific rate, which is obtained by
multiplying [Variable # 9142] by [Register R220]%.
G00 A
Î The A-axis executes fast positioning at a specific rate, which is obtained by
multiplying [Variable # 9143] by [Register R220]%.
3-4
Chapter III Programming and Command Codes
3.05
5.6
A
3.00
B
2.00
X
TRX #9140 = 3000.00 mm/min, TRY #9141 = 5000.00 mm/min. Register R220 is set
to 100%.
The system program calculates the feed-rate of the other axis based on lower
settings, if #9140 (maximum feed-rate of x-axis) is used as a basis for calculation.
The feed rate of both axes is within the MCM parameter settings.
3-5
HUST H8-M Operator’s Manual
Therefore, the tool will feed at the calculated rate on both axes.
Ex. 2: The program line in Ex. 1 is modified to G0 X5.6 Y-1.00.
It is assumed that the maximum feed-rate is the same as that in Ex. 1.
Fx = 3000
Fy = 3000*(6.00/3.05)=5901.64
In this case, Fy (5901.64) > TRY (5000.00) so that the feed-rate is based
on the Y-axis settings with a limited X-axis feed-rate.
The maximum feed-rate for each axis from #9140 to #9147 is calculated based on
the following formula:
Fmax = 0.95 x Max. Axial Servo Motor RPM x Axial Pitch ÷Gear
Ratio (Value Recommended for use)
Ex.: The max. X-axis servo motor rpm is 3000 with a 5mm pitch and a
gear of ratio 5:1 (the lead screw only makes 1 turn while the servo motor
makes 5 turns)
Note: The max. slope ratio for X-, Y-, or Z-axis fast positioning is
10000:1.When the feed-rate is set to 2000 mm/min, the path error will be
less than 0.2% if the resolution is 1μm.
3-6
Chapter III Programming and Command Codes
G01 X____ Y____ Z____ A____ B____ C____ U____ V____ F____
1) The F code can be used with the G01, G02, and G03 commands.
2) The F code is a modal code, which can affect the feed-rate of the next
block when used.
3) The F-code can be used in the G00 block without affecting the fast
positioning movement. However, the feed-rate of the next block may be
affected.
G01 (or G1) is used for linear cutting work. It can control 1 ~ 8 axes simultaneously.
The cutting feed-rate is determined by the F-code. The lowest setting of the F-code is
1 mm/min. The highest setting is determined by the max. feed-rate setting (#9140
~ #9147). Actual cutting feed-rate: Ft =F x G01 MFO%.
#9140 ~ #9147 means the maximum feed-rate; the factory default is 10000.
The G00 MFO% is the feed-rate percentage for G01, G02, and G03. The initial
setting is 100% with a setting range from 0 to 150.
The coordinate for the tool’s current position serves as the start point for cutting
when a command is given. The feed-rate defined by an F-code remains valid until
it is replaced by a new feed-rate. There is no need to specify a feed-rate in each
block (the feed-rate setting of the F-code can also be set to be valid only for a
single line, C024).
3-7
HUST H8-M Operator’s Manual
Ex.: It is assumed that X, Y are absolute commands and the start point is X=4.6,
Y=1.0.
Y
2.01
B
2.0
4.60
A
1.00
X
The F-axis represents the feed-rate on a slant (composite vector of the X- and Y-
axes) during simultaneous X- and Y-axis movement. In this case, the feed-rate of
the X- and Y-axis in CNC standard mode is calculated based on the following
formula. The max. slope ratio of the X- and Y-axis feed-rates is 10,000:1. The
calculation method for the Master/Slave Mode will be introduced in the next
section.
U
X axisfeed rate, Fx u Ft
U V 2
2
X- and Y-axis feed-rate formula in CNC standard mode (U, V means incremental
value).
3-8
Chapter III Programming and Command Codes
and the remaining axes are automatically set to act as slave axes. The motor speed
of the master and all slave axes remains at the feed-rate and is not reset between
blocks. If two adjoining blocks have different feed-rates, the feed rate of the
former block will not be reset to 0, but is instead adjusted to the feed-rate of the
latter block. If the feed-rate of the master axis is zero, the controller will select the
feed-fate of the slave axes.
Between blocks, the acceleration/deceleration types include:
(1) CNC standard mode (including linear and “S” curve acceleration/deceleration)
(2) Master/slave mode (including linear and “S” curve acceleration/deceleration)
The G0, G1, G2, and G3 commands are available in CNC Standard Mode and
Master/Slave Mode.
#8336 is used to set CNC standard mode and master/slave mode.
0 = CNC standard mode
1 = master/slave mode with the X-axis as the master
2 = master/slave mode with the Y-axis as the master
3 = master/slave mode with the Z-axis as the master
4 = master/slave mode with the A-axis as the master
The parameter #8349 is used to set the type of motor acceleration/deceleration as
linear or “S” curve.
The controller can be used to set the acceleration/deceleration type of the servo
motor according to the following table.
3-9
HUST H8-M Operator’s Manual
The CNC standard mode and master/slave mode are mainly used to distinguish
between the servo motor acceleration/deceleration types. When the part program
is running, every block has a feed-rate (F), including the G0 block. When a
feeding command is given in CNC standard mode, the motor starts accelerating to
the specified feed-rate. It maintains this speed and decelerates to zero when the
tool approaches the positioning point. When a feeding command is given to the
next block, the motor repeats the acceleration and deceleration actions. Therefore,
the speed of the motor is reset to zero between blocks.
3 - 10
Chapter III Programming and Command Codes
0 0 Linear
CNC standard mode
0 1 “S” curve
In CNC standard mode, the speed of the motor decelerates to zero at the end point
of each block.
Ex. 1: Fig 3-4 shows the feed-rate (F) adjustment between blocks when the G01
command is given in CNC standard mode. Acceleration/deceleration of the
motor is executed in linear fashion. The coordinates in this example are
absolute coordinates, i.e. variables #9320~9327 =1.
3 - 11
HUST H8-M Operator’s Manual
F Value
1500 Variable #93 = 0
N10 N20 N30 N35
Feed Rate
Variable #222 = 0
1000
500
X-axis
Positioning
100 200 300 400
F Value
1000 N10 N20 N30 N35
Feed Rate
500
Y-axis (slave)
Positioning
1 2 3
Ex.2 and Ex.3 show how to calculate the X- and Y-axis feed-rate in CNC
standard mode using the formula. In these examples, it is assumed that the max.
feed-rate is:
U
X axisfeed rate, Fx u Ft
U V 2
2
If the composite vector for the X- and Y-axis = (1002 + 502)1/2 = 111.8,
X-axis feed rate, Fx =(100/111.8) × 1500= 1341
Y-axis feed rate, Fy =(50/111.8) × 1500=670.8
Both axes are within the “max. feed-rate” setting range and are thus valid
for feeding.
If the composite vector for the X- and Y-axis = (1002 +2002)1/2 = 223.6,
X-axis feed rate, Fx = (100/223.6) * 2000 = 894
Y-axis feed rate, Fy = (200/223.6) * 2000 = 1789
3 - 12
Chapter III Programming and Command Codes
Fy =(1789/1789) * 1000=1000
Master/Slave Mode: If #8336 = 1, X-axis is set as the master and the others are set as
slaves.
If #8336 = 2, Y-axis is set as the master and the others are set as
slaves.
If #8336 = 3, Z-axis is set as the master and the others are set as
slaves.
If #8336 = 4, A-axis is set as the master and the others are set as
slaves.
If #8336 = 5, B-axis is set as the master and the others are set as
slaves.
If #8336 = 6, C-axis is set as the master and the others are set as
slaves.
If #8336 = 7, U-axis is set as the master and the others are set as
slaves.
If #8336 = 8, V-axis is set as the master and the others are set as
slaves.
In master/slave mode, the speed between blocks is not reset to 0, but is instead
adjusted to the feed-rate of the next block. The specified rate of a single block (F)
is the feed-rate for the master axis. The controller adjusts the rate of the slave axes
based on the rate of the master axis and the MCM parameters. Ex. 1 and 2
demonstrate this relationship. There may be some slight errors between the start
and end points of an arc during arc cutting in Master/Slave mode.
3 - 13
HUST H8-M Operator’s Manual
F Value #8226 = 1
1500 N10 N30
#8349 = 0
N20
Feed Rate
1000
500
X-axis as the master
F Value
1000 N10 N20 N30
Feed Rate
500
All axes, except the X-axis, are slaves.
1 2 3
F Value
#8226 = 1
1500 N10 N20 N30
#8349 = 1
Feed Rate
1000
500
X-axis as the master
100 200 300 400
F Value
1000 N10 N20 N30
Feed Rate
500
All axes, except the X-axis, are slaves.
1 2 3
3 - 14
Chapter III Programming and Command Codes
Ex. 2: If #8336 = 1, the X-axis is set as the master while the Y- or Z-axis is set as
the slave. The feed-rate of the master axis (X) in each block remains the
same and the feed rate of the slave axis (Y/Z) is adjusted according to the
incremental slope ratios.
F Value #8336 = 1
1500 N10 N30
#8349 = 0
N20
Feed Rate
1000
500
X-axis as the master
100 200 300 400
1000
500
All axes, except the X-axis, are slaves.
1 2 3
3 - 15
HUST H8-M Operator’s Manual
In Ex. 2, the feed-rates of the slave axes are adjusted according to their incremental
slope ratios and will not be reset to zero. Note that there is a small interval between
blocks during acceleration/deceleration (Fig. 3-6). The tool moving distance at this
interval can be calculated using the following formula.
(F1-F2) T
Distance = 0.5 × ×
60 1000
F1, F2 = the feed-rates of the slave axis prior to and following the block
(mm/min).
T = G01 acceleration/deceleration constant
In Ex. 2, where F1 of block N20 is 500 mm/min and F2 of block N20 is 250
mm/min, if the acceleration/deceleration setting is 500ms, the moving distance at
the deceleration interval of block N20 is 1.04mm. Shortening the
acceleration/deceleration duration is one method of shortening this distance.
The example below shows how to calculate the feed-rates of the master and slave
axes. The relationship between the feed-rate and the max. feed-rate setting is
taken into consideration during the calculation. In the example, it is assumed that:
3 - 16
Chapter III Programming and Command Codes
3 - 17
HUST H8-M Operator’s Manual
The arc-cutting program contains four command groups, as showed in the list
below. The combination of these commands determines the arc path of the tool in
a single block.
Command Description
G02 Clockwise
1 Arc feed direction
G03 Counter clockwise
The end point described in the list can be defined either by absolute or
incremental coordinates. The size of the arc can be defined either by the
coordinate difference or radius. The arc cutting direction (CW or CCW) is
relative to the center of the arc (not the coordinate origin), as Fig. 3-7 shows.
Y Y
G02 G03
X X
3 - 18
Chapter III Programming and Command Codes
G02: Clockwise
G03: Counter clockwise
Y X Z
G02 G02 G02
G03 G03 G03
X Z Y
G17 G18 G19
Y X S Z
Start Point
S S
Start Point Start Point
Center J Center I Cente K
C I
X C K
Z C J
Y
An arc comprises three elements: a start point, an end point and a center. The
center (C) is defined by the I and J values, which are the increment or decrement
from the start point of the arc to the center of the circle. If the coordinates from
the start point to the center of the circle are incremental, the value is positive.
Otherwise, it is negative. I and J commands may be replaced by an R command.
(Fig. 3-8)
Start point (S) :the coordinate of the tool when the G02 and G03 commands are
executed.
End point (E) :X and Y value in the program.
Center :defined by the I and J values. The I and J values are the
coordinate differences between the arc start point and the center.
These values can be either positive or negative.
The arc feed-rate is defined by the F-value. Actual arc feed-rate: Ft =F x G01
MFO %.
E End Pint
Start Point Y
S
J
Center C X
I
Fig. 3-9
3 - 19
HUST H8-M Operator’s Manual
The arc center can be defined by the radius (R) instead of I and J.
But if the arc angle is between -1° and 1° or 179° and 181°, R cannot be used for
setting and only I and J can be used for setting.
Format (clockwise):
Y Fig. 3-10
X
E J
End Pint
S
Y Start Point
Y
X R
End Pint E
S
Y Start Point
3 - 20
Chapter III Programming and Command Codes
Ex.: The following two commands have different settings but can be used to
execute the same arc cutting work.
(It is assumed that X and Y are absolute values.)
There are two different arc types available for arc cutting (Fig. 3-12). In this case:
1. Use “+R” if arc angle < 180°.
2. Use “-R” if arc angle > 180°.
R is within the range from -9999.mm to +9999.mm.
R2
E End Pint
R=-50(negative)
R1 R = +50
S (positive)
Y
Start Point
X
Fig. 3-14
3 - 21
HUST H8-M Operator’s Manual
1. The F value (i.e. the feed-rate) of G02, G03 is the tangential cutting speed. This
speed is subject to the radius of the arc and the F value of the program because
the HUST H8-M system uses a fixed 1μm chord height error (Chord Height
Error is the maximum distance between the arc and the chord).
2. When the calculated tangential cutting speed of the arc is greater than the F
value of the program, the F-value is used as the tangential cutting speed.
Otherwise, the calculated value prevails. The maximum tangential cutting
speed is estimated with the following formula:
Fc 85 u R u 1000 mm / min
3.6. Arc (Tread) Cutting, G02, G03, G17, G18, and G19
3 - 22
Chapter III Programming and Command Codes
to the next sections). Arc cutting is then executed when the linear axis does
not move during the thread cutting.
Z
X-Z Plane
Y-Z
X Plane
X-Y Plane
Work Table Y
Y G17
G02
G03
G18
G02 (or G03) X____ Z____ Y____ I____ K____ F____
X G18
G02
G03
Z
(R can replace I, K)
3 - 23
HUST H8-M Operator’s Manual
G19
G02 (or G03) Y____ Z____ X____ J____ K____ F____
Z
G19
G02
G03
Y
(R can replace J, K)
※ The three command groups control arc cutting on the X-Y, X-Z, Y-Z plane.
The dimension is controlled by G17, G18, and G19; the arc size is determined
by I, J, K.
rd th
※ In addition to the arc plane, specify the 3 and 4 axis. Arc cutting will be
performed if the axes do not execute movement. In this case, the G02 and G03
commands can be used as described in the previous section.
rd th
※ Thread cutting will be performed if the 3 and 4 axes execute movement.
th
※ The arc cutting command is not available for the 4 axis (A-axis). Only the
linear command is available.
※ The direction of the tool movement path is determined by G02, G03 and
G17~G19.
※ X, Y, Z:
The end point coordinates of arc cutting. The start point is the coordinates of
the tool when G02 or G03 executes.
※ I, J, K and R:
I, J and K are the increment or decrement from the start point of the arc to the
center of the circle. If the coordinates from the start point to the center of the
circle are incremental, the value is positive. Otherwise, it is negative. The
definition of this increment/decrement is the same as the incremental
commands U, V, and W. All of these commands can be replaced by the R
command.
※ F: The feed-rate for arc cutting is determined by the F-value. The minimum
value is 0.2 mm/min.
3 - 24
Chapter III Programming and Command Codes
※ The G17, G18 , and G19 commands should be placed in the block prior to the
arc cutting command.
Ex.:
G17
G02 (or G03) X____ Y____ Z____ I____ J____ F____
※ Note that the tool radius compensation function is only available for the
specified cutting plane.
+Z
+Z
+Y
-X
+X
-Y
-Z
As shown in Fig 3-16, if you look down at the machine from the above (along the
Z-axis toward the negative direction), you have the X-Y arc cutting plane with the
Z-axis as the linear axis. Clockwise is G02 and counter-clockwise is G03.
Y Y
G02 G03
X X
G17
Fig. 3-17
3 - 25
HUST H8-M Operator’s Manual
N1 G17
N2 G03 X80.000 Y30.000 R30.000 Z40.000 F100
Z End
Y
Point
40
30
R = 13
X
50 Start 30
Point
Fig. 3-18
G18, X-Z Arc Cutting Plane
As shown in Fig. 3-16, if you look at the machine from the back (along the Y-axis
toward the negative direction), you have a Z-X arc cutting plane with the Y-axis
as the linear axis. Clockwise is G02 and counter-clockwise is G03.
X X
G02 G03
Z Z
G18
Fig. 3-19
As shown in Fig. 3-16, If you look at the machine from the back (along the Z-axis
toward the negative direction), you have a Y-Z arc cutting plane with the X-axis
as the linear axis. Clockwise is G02 and counter-clockwise is G03.
Z Z
G02 G03
Y Y
G19
Fig. 3-20
3 - 26
Chapter III Programming and Command Codes
G04 X_____ X: Dwell time in sec (the X here indicates time rather than
position).
or G04 P_____ P: Dwell time in ms (millisecond)
To meet machining requirements, the axial movement may need to be held during
the execution of a program block, which completes before the command for the
next block is executed. This command can be used for this purpose.
Format: G08 X__; The machine coordinate of the X-axis is cleared to zero.
Format: G08 Y__; The machine coordinate of the Y-axis is cleared to zero.
3 - 27
HUST H8-M Operator’s Manual
Format: G08 Z__; The machine coordinate of the Z-axis is cleared to zero.
Format: G08 A__; The machine coordinate of the A-axis is cleared to zero.
Fig. 3-21
Ex. 1: The first work coordinate of the X- and Y-axis: (0, 0)
Machine coordinate: MCM#1 = MCM#2 = 0.
When the program coordinate moves to (X, Y) = (02, 35), “G08”
executes
The program coordinate of this point will become (X,Y) = (0,0).
Ex. 2: The first work coordinate of the X- and Y-axis: (10, 10)
Machine coordinate #7000 = #7001 = 10.
When the program coordinate moves to (X, Y) = (15, 15), execute the
“G08” command.
The program coordinate of this point will become (X,Y) = (-10,-
10).
Machine origin Work origin
after execution after execution
Former Work of G08 of G08
Origin of the 1st
Work Coordinate
3 - 28
Chapter III Programming and Command Codes
Format:
G10 X_ Y__ Z__A__ B__ C_ U__V__; select an axis or all eight axes.
5A. If the coordinates of the tool in Step 3 are the desired position for the work
origin, do the following:
3 - 29
HUST H8-M Operator’s Manual
5B.If the coordinates of the tool in Step 3 are at some distance (say X=20, Y=100,
Z=15) away from the desired work origin, do the following:
The following precautions should be observed when using G10 to set the work
origin:
1. Do not add P__ to the G10 block; otherwise, it becomes a tool length
(movement) compensation command.
4. When G54~G59 are selected by G10, the machine position data of the origin
will be entered into variables #7000~#7047 regarding the x, y, z, a, b, c, u, v
items.
5. A PLC can also be used to set the work origin. (C_BIT 233)
Axis
Work X-axis Y-axis Z-axis A-axis B-axis C-axis U-axis V-axis
Coordinate
3 - 30
Chapter III Programming and Command Codes
3. Input in sequence
G10 INPUT
3 - 31
HUST H8-M Operator’s Manual
X0.5 INPUT
Y0.5 INPUT
P203 INPUT
Start
Erase X and Y compensation value of Division 4 cutter wear
3 - 32
Chapter III Programming and Command Codes
Format: Function
G12 P** The next command will not be executed until INPUT ** is On.
The next command will not be executed until INPUT ** is triggered
G12 P** L'''
on the rising edge.
G12 P-** The next command will not be executed until INPUT ** is OFF.
The next commands will not be executed until INPUT ** is triggered
G12 P-** L'''
on the falling edge.
3 - 33
HUST H8-M Operator’s Manual
1. G11 P** & G11 P-** & G11 P10** & G11 P-10**
** Range 00 ~ 15; P** is used to set OUTPUT ** to ON. In this case, output
will be set to OFF when the “RESET” command is executed. P-** is used to
set OUTPUT ** to OFF.
G11 P10 ** is used to set OUTPUT ** to ON. In this case, output will remain
ON if the “RESET” command is executed. P-10 ** is used to set OUTPUT **
to OFF.
O13
Fig. 3-22
3 - 34
Chapter III Programming and Command Codes
F (mm/min)
O13 (mm)
Fig. 3-24
3 - 35
HUST H8-M Operator’s Manual
** Range 00 ~ 23. The next block will not be executed until INPUT ** is ON.
If a number is specified for L''', the next block will not be executed until
INPUT ** is triggered on the rising edge.
F (mm/min)
I3
The N30 block will not be executed until I3 is ON.
Fig. 3-30
2. G12 P-** L'''
** Range 00 ~ 23. The next block will not be executed until INPUT ** is
OFF. If a number is specified for L''', the next block will not be executed
until INPUT ** is triggered on the falling edge.
3 - 36
Chapter III Programming and Command Codes
F (mm/min)
I4
Fig. 3-31
The 4-axis tool will automatically return to the reference position specified by
variables #9380 ~ 9387, if the G28 block does not contain an X, Y, Z, or A
command, or all of them.
The specified axial tool will automatically return to the reference position
specified by variables #9380 ~ 9387 if the G28 block only contains an
X/Y/Z/A/B/C/U/V command, regardless of the values placed after
X/Y/Z/A/B/C/U/V.
3 - 37
HUST H8-M Operator’s Manual
Note that prior to the G28 command, the tool length compensation command
must be canceled.
Ex.: G49
G28 X10.0 .....X-axis returns to the 1st reference point
Ex.: N1 X60. Y30. Z5. ..... Tool moves to the position X60., Y30.
N2 G28 ..... Tool returns from X60, Y30 to the 1st reference point.
⋯⋯⋯⋯
N3 G29 ..... Tool returns from the reference point to X60., Y30.
As shown in the above Ex., the N3 block may have the following combinations:
N3 G29 or N3 G29 X__ Y__ Z__ A_ B__ C__ U__ V __
The tool returns to X60.00, Y30.00 Z5 if the G29 command does not contain
X,Y⋯U,V commands or all of them, regardless of the values placed after X,Y⋯
U,V.
Execution of this command is same as G28, but the reference point is set in variable #
9400~9407.
3 - 38
Chapter III Programming and Command Codes
Roller Photo
Sensor Cutter
Material
General
Purpose Servo Motor
HUST CNC
3 - 39
HUST H8-M Operator’s Manual
Start the servo motor for feeding with the roller. The motor will operate for a
given distance once the photo sensor detects the positioning point. After the
given distance, the servo motor will stop and send signals to the cutter to cut
the materials.
Step 1: Start the servo motor for feeding with the roller until the photo sensor
detects the positioning point.
Photo Sensor Distance> Motor Deceleration Distance
Feeding
Direction
Step 2: Once the photo sensor detects the positioning point, the motor will
operate for a given distance, which must be longer than the motor
deceleration distance.
Feeding
Direction
3 - 40
Chapter III Programming and Command Codes
V × t × 1/2 = d
(3) Motor Deceleration Distance
Speed×Acceleration/Deceleration
V Time×1/2=Distance
t T
Fig. 3-41 Motor Deceleration Distance
V × t × 1/2 = d
Speed x Acceleration/Deceleration Time x 1/2 = Distance
3 - 41
HUST H8-M Operator’s Manual
Format:
G31 X__ Y__ Z__ A__ B__ C__ U__ V__ F__
When G31 is performing linear cutting, the feed-rate is the one already in effect.
If the F value is not set, the settings of variable #8330 (G01 power-on speed) will
be applied. G31 is a one-shot G-code and is only valid in the defined block. The
following is an Ex. of G31.
Y
25
Signals arrive
X
100.
In the above figure, the dashed line represents the original path without the SKIP
function and the solid line is the actual tool path after the SKIP function signal
I007 is received. The G31 function is suitable for a wide variety of applications.
Here are three examples:
1. The striker is used to detect and measure the length of the work piece. The
interrupt signal is generated and the G31 function is established when the striker
is hit.
3 - 42
Chapter III Programming and Command Codes
2. Design paper cutting: Because of paper tension, you may receive inaccurate
results when measuring design papers by length. But you can accurately
perform cutting at a pinpoint by taking advantage of the properties of a
certain pattern to send interrupt signals.
3 - 43
HUST H8-M Operator’s Manual
The machine origin is the calculation basis for all work and reference point
coordinates. Its position is normally determined by the position of the travel-
measuring rule on the machine table and the position of the over-travel limit
switches (OTLS). Before cutting, be sure to Execute HOME to determine the
position of the machine origin.
Another origin may be required for cutting convenience. This origin is slightly
shifted from the machine origin and, thus, is called HOME SHIFT. The shift
amount is configured in variables #9280 ~ 9287. When you Execute HOME, the
tool returns to the HOME position but the machine coordinate shows the shift
value of variables #9280 ~ 9287. If the shift value of variables #9280 ~ 9287 are
set to zero (0), HOME SHIFT is the HOME position.
Ex.: If the variable # 9280 setting (X-axis) = 10.000, the screen will show 10.000,
instead of 0.000 when homing completes.
3 - 44
Chapter III Programming and Command Codes
1. G10 command
2. Direct modification of MCM parameters
3. PLC.
The application of these work origins in the program is executed by the G54~G59
command codes. Depending on processing requirements and programming, the
user can select up to six sets of work origins to work with. The greatest advantage
of this work coordinate system is to simplify the coordinate operation of the part
program. See the following examples:
Fig 3-20 shows the association of the G54~G59 work coordinate system with
variables #7000 ~ 7059 X, Y, Z, A, B, C. These coordinate parameters, i.e. the
work origin, correspond to the machine coordinates when the machine origin
serves as the zero point. The work origin settings of the G54 ~ G59 work
coordinates are listed in the following table.
An XY drawing is used for illustration. Since it is difficult to illustrate the Z-axis
and other axes using the plane coordinate system, the Z-axis and other axes will
not be mentioned.
Work
Coordinate Variable Number X-axis Setting Y-axis Setting
System
G54 #7000(X), #7001(Y) -70.000 -10.000
G55 #7010(X), #7011(Y) -80.000 -30.000
G56 #7020(X), #7021(Y) -80.000 -50.000
G57 #7030(X), #7031(Y) -70.000 -50.000
G58 #7040(X), #7041(Y) -40.000 -60.000
G59 #7050(X), #7051(Y) -20.000 -40.000
3 - 45
HUST H8-M Operator’s Manual
Y
Machine Origin
-90 -80 -70 -60 -50 -40 -30 -20 -10
X
G54
-10
-20
G55
-30
G59
-40
G56 G57
-50
-60
G58
-70
Note that the program coordinates are changed when the work coordinate system
is selected. The changed coordinates are determined based on the selected work
coordinate system. When the action of cutting a circle or semi-circle is added to
the above program, the application of G54 and G55 can be illustrated as follows.
(Fig. 3-45)
Y
-90 -80 -70 -60 -50 -40 -30 -20 -10 Machine Origin
R
X
G54
-10
-20
G55
-30
G59
-40
G56 G57
-50
-60
G58
-70
3 - 46
Chapter III Programming and Command Codes
3 - 47
HUST H8-M Operator’s Manual
Ex.:
G1 X50.Y50.
G61 Enable non-stop mode
G1 X100.F1000.
Y100. Non-stop
X50. block
Y50.
G62 Disable non-stop mode
G1 X100.F1000.
G63 Y0. The non-stop mode is
G1 X50. enabled only in this block. The left is a normal path while the right is
M30 the path generated by the command G61
and G63.
3 - 48
Chapter III Programming and Command Codes
1. The G99 command must be used in G01 mode and will be invalid for G00 fast
positioning.
2. In G99 mode, the machine tool requires a rotary spindle and encoder feedback
to configure “variable #8341 => Spindle Axis, variable #8342 => Spindle
Encode Setting” in PLC ladder.
4. Select an axis for rotary spindle or passive encoder feedback in variable #8341.
Variable #8341 0 1 2 3 4 5 6 7 8
Spindle Axis None X Y Z A B C U V
5. Be sure to confirm the following relevant parameter settings when using G99.
Variable Description
#8341 Spindle Axis
#8342 Set the number of encode feedback pulses to a specific value,
which is four times the number of feedback pulses.
Ex.: To design a rotary spindle connected to the Z-axis to drive the X- and Y-axis
The pulses sent by the encoder feedback per revolution is 2000.
1. Set variable #8341 to 3 in PLC (Z-axis as the spindle)
2. Variable # 8342 = 8000 (2000 x 4)
3. Part program contents:
G99 ……………Feed-rate (F) unit: mm/rev
G01 X30.000 Y30.000 F0.2
3 - 49
HUST H8-M Operator’s Manual
(F0.2 indicates that the tool or another workpiece will move 0.2mm on the
X- and Y-axis in block G01 when the rotary spindle makes a turn(8000 pulses))
The Hust H8-M provides a number of canned cycle cutting functions for
processing. They form a command group and are executed using a specific G-
code. The H8-M series provides several canned cycle functions to simplify
program design. The cutting sequence controlled by the canned cycle command
group of the H8-M is illustrated in Fig. 3-46 below.
When applying the canned cycle function, M03 is used for normal spindle
rotation, M04 is used for reverse spindle rotation, and M05 is used for spindle
stop.
3 - 50
Chapter III Programming and Command Codes
G90 or G91
G98
(G81~G89) X____Y____Z____P____Q____R____F____K____
G80 or G00 or G01
Explanation:
During the drilling operation, parameters such as the specified drilling mode
(such as G81, G82, and so on), feeding/retraction reference point, and hole depth
or coordinate (Z) are mode codes. They will not change before other command
codes of the same group are set up. The single block command for each basic
format with respect to the canned cycle function is described in detailed below.
3 - 51
HUST H8-M Operator’s Manual
program, R and Z are coordinates relative to the zero point of the Z-axis in the
absolute coordinates system, while Z is an incremental coordinate relative to the
R-point in the incremental coordinate system. Though the R and Z coordinates
remain unchanged in the program, their displacement coordinates are different
(Fig. 3-47) when Executing different commands (G90/G91).
Z
Z Point (Hole Bottom)
G00 rate
G01 rate Z Point (Hole Bottom)
Retraction
G-code Application Drill Rate Action at Bottom
Rate
G80 Cycle canceled --- ----- ---
Drilling Canned G01 Feed
G81 --- G00 Fast
Cycle rate
Drilling Canned G01 Feed
G82 Dwell Command G00 Fast
Cycle rate
Deep Hole
G01 Feed
G83 Drilling (peck --- G00 Fast
rate
drill)
Thread Tapping G99 Feed
G84 G99 Fast
Canned rate
Boring Canned G01 Feed
G85 --- G01 Rate
Cycle rate
3 - 52
Chapter III Programming and Command Codes
All canned cycle commands are cancelled by Executing G80, G00 or G01.
Format:
G81 X____Y____Z____R____K____F____
(X,Y)
S Start Point
R Point
G00 rate
G01 rate
3 - 53
HUST H8-M Operator’s Manual
Format:
G82 X____Y____Z____P____R____K____F____
(X,Y)
S Start Point
R Point
G00 rate
G01 rate
Z Point (Hole
Bottom)
P (Dwell
at hole bottom)
The difference between G81 and G82 is that G82 has a wait time (P) before
retraction when the drill bit reaches bottom. The wait time (P) is input as an
integer in milliseconds.
S Start Point
(X,Y)
R Point
Q
d
Q
G00 rate
G01 rate
3 - 54
Chapter III Programming and Command Codes
In Fig. 3-42, Q is the depth of each drilling and d is the reservation for the change
of the feed-rate from G00 to G01 after the second feeding. This data is set in
MCM parameter #8352. (The d value can be changed in the graphical input form.)
Format:
(X,Y)
Start point
R
point
G00 rate
G01 rate
Z point
(bottom)
3 - 55
HUST H8-M Operator’s Manual
G85 X____Y____Z____R____K____F____
(X,Y)
S Start Point
R Point
G00 rate
G01 rate
Z Point (Hole
Bottom)
G86 X____Y____Z____R____K____F____
(X,Y)
S Start Point
R Point
G00 rate
G01 rate
Z Point (Hole
Bottom)
Spindle
stops.
The difference between G85 and G86 is that the G86 spindle stops before
retraction when the drill bit reaches the hole bottom.
3 - 56
Chapter III Programming and Command Codes
G89 X____Y____Z____R____P____K____F____
(X,Y)
S Start Point
R Point
G00 rate
G01 rate
Z Point (Hole
Bottom)
P (Dwell at hole
bottom)
The difference between G85 and G89 is that G89 has a wait time (P) before
retraction when the drill bit reaches bottom. The wait time (P) is input as an
integer in milliseconds.
3 - 57
HUST H8-M Operator’s Manual
G23 X___Y___Z___R___I___J____K___T___F____
Explanation:
1. G00 X(x) Y(y)
2. G00 Z(r)
3. G01 Z(z) F(f)
4. T=0; G02 U(i) V(j) R(k) F(f)
T=1; G03 U(i) V(j) R(k) F (f)
Action Diagram
5. G00 Z(r)
3 - 58
Chapter III Programming and Command Codes
G24 X___Y___Z___R___I___J____D___T___F____
Explanation:
T=0;
1. G00 X(x) Y(y)
2. G00 Z(r)
3. G01 Z(z)
4. G01 U(i)
5. G01 V(j)
6. G01-U(i)
7. G01-V(j)
8. G00 Z(r)
Cutting Diagram:
T=1;
3 - 59
HUST H8-M Operator’s Manual
As shown in the above figure, an inner square is cut in a S-shaped groove milling
manner. It is then cut again along the side to remove the part that is not cut during
the S-shaped groove milling process.
G24 X___Y___Z___R___I___J____D___T___F____
X Center coordinate
Y Center coordinate
Z Groove depth
R Height of outer part
K Radius of circle
D Tool radius
T Groove type
F Groove speed
Explanation:
T=0;
1. G00 X(x-k) Y(y)
2. G00 Z(r)
3. G01 Z(z) F(f)
4. G02 I(k) J(0) R(k) F(f)
5. G00 Z(r)
T=1;
1. G00 X(x-k) Y(y)
2. G00 Z(r)
3. G01 U(d) F(f)
4. G01 Z(z) F(f)
5. G02 I(k) J(0) R(k) F(f)
6. IF (k>d) THEN {[k=k-d]and[goto N3]}
7. G00 Z(r)
3 - 60
Chapter III Programming and Command Codes
X Center coordinate
Y Center coordinate
I Radius of circle r
J Angle of the first hole –θ
R Feeding and retreating point for drilling
Z Bottom depth for drilling n = Amount of Circular
Holes
K The amount of circular holes – n
F Drilling speed
Ex.:
G34 X100. Y100. I50. J4500 Z-30. R-10. F2000
3 - 61
HUST H8-M Operator’s Manual
Ex.:
G35 X100. Y100. I50. J4500 Z-30. R-10. F2000
Action Diagram
G36 X___ Y___ I ___ J ____ P ____ Z___ R___ K ___ F____
X Center coordinate
Y Center coordinate
I Radius of circle
J Angle of the first hole –θ
P Angle of each drilling
R Feeding and retreating point for drilling (X, Y) Center Coordinate
Z Bottom depth for drilling
n = Amount of Arc Holes
K The amount of arc holes
F Drilling speed
3 - 62
Chapter III Programming and Command Codes
Ex.:
G36 X100. Y100. I50. J1000 P3000 K4 Z-30. R-10. F2000
Center
Coordinate
4 = Amount of Arc
Holes
Ex.:
G37 X100. Y100. I10. P4 J10. K3 Z-30. R-10. F2000
G65 Format:
3 - 63
HUST H8-M Operator’s Manual
#i : Functions.
1. P#i is the location to store the result of mathematical
operations.
2. Pi is the program serial number for line feed when a function
is deemed as valid.
3 - 64
Chapter III Programming and Command Codes
Variable Explanations:
1. Variable #i
#1~#9999 : User defined variables,
These can be stored when the power is turned off.
#10000 and above : These are read-only controller system variables. No change is
allowed.
2. All variables (#i, #j, #k) can only contain integers. No decimal value should
be used. #i must be positive, while #j and #k can be positive or negative. A
negative integer indicates that the sign of the value contained in that variable
is inverted.
Ex. 1: #2 = 99
G65 L01 P#1 A-#2 ; #1 = -#2 = -99.
Ex. 2: #2 = 25, #3 = 5
G65 L04 P#1 A#2 B-#3 ; #1 = #2× -#3 = -125.
Decimal Point 1 (6/1 format) 2 (5/2 format) 3 (4/3 format) 4 (3/4 format)
Unit 100μm 10μm 1μm 0.1μm
Ex.: 250 entered 25000μm 2500μm 250μm 25μm
3 - 65
HUST H8-M Operator’s Manual
3 - 66
Chapter III Programming and Command Codes
3 - 67
HUST H8-M Operator’s Manual
1. Equal or Substitution,
2. Addition
3. Subtraction
3 - 68
Chapter III Programming and Command Codes
4. Multiplication
5. Division
3 - 69
HUST H8-M Operator’s Manual
3 - 70
Chapter III Programming and Command Codes
7. Copy Variables
3 - 71
HUST H8-M Operator’s Manual
9. Logic AND
3 - 72
Chapter III Programming and Command Codes
In a 16-bit (Bit15 to Bit0) rotation, Bit15 shifts to Bit0 when rotating to the left.
Where a calculation exceeds 16 bits, the bits after Bit15 are disregarded.
Bit 15 14 … … 2 1 0
x x x x x x x x x x x x x x x x
Bit 15 14 … … 2 1 0
1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Bit 15 14 … … 2 1 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
1
3 - 73
HUST H8-M Operator’s Manual
Bit 15 14 … … 2 1 0
0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1
Bit 15 14 … … 2 1 0
0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0
0
Bit 15 14 … … 2 1 0
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
Bit 15 14 … … 2 1 0
1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1
1
Bit 15 14 … … 2 1 0
x x x x x x x x x x x x x x x x
3 - 74
Chapter III Programming and Command Codes
Bit 15 14 … … 2 1 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1
Bit 15 14 … … 2 1 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
1
Bit 15 14 … … 2 1 0
0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0
Bit 15 14 … … 2 1 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1
0
Bit 15 14 … … 2 1 0
x x x x x x x x x x x x x x x x
Bit 15 14 … … 2 1 0
0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1
Bit 15 14 … … 2 1 0
0 0 0 0 0 0 0 0 0 0 1 1 0 1 0 0
3 - 75
HUST H8-M Operator’s Manual
Bit 15 14 … … 2 1 0
x x x x x x x x x x x x x x x x
Bit 15 14 … … 2 1 0
0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1
Bit 15 14 … … 2 1 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1
15. Subduplicate
16. Absolute
17. Complement
3 - 76
Chapter III Programming and Command Codes
Note 1: The HUST H8-M controller cannot handle multiplied values greater
than 9999.999. However, if you use G65 L26 for the operation, the
multiplied value can exceed 7 digits as long as the final result after
division is less than 7 digits.
Ex.: #1 = 10000, #2 = 30000, #3 = 1000
For (#1× #2)/#3
Command: G65 L04 P#5 A#1 B#2
G65 L05 P#6 A#5 B#3
No correct value is acquired using this command, because the
computed value of G65 04 exceeds 7 digits. However, if the command
is changed to the following:
Command :G65 L26 P#1 A#2 B#3
Result :#1 = #1× #2 / #3 = 300000
3 - 77
HUST H8-M Operator’s Manual
3 - 78
Chapter III Programming and Command Codes
2
Formula: -b+ b - 4ac
2a
22. Sin
Note 2: Since Sin(#K) ≦ 1 and the HUST H8-M system does not operate
on decimals, the numbers after the decimal point, if any, will be
automatically disregarded. Therefore, G65 L31 must by multiplied
by a number #J. For Ex.: #1 = Sin45°= 0.707. The format of 0.707
in the system is 0000707, so the operation is G65 L31 P#1 A1000
B4500.
3 - 79
HUST H8-M Operator’s Manual
23. Cos
Note 2: Since Cos(#K) ≦ 1 and the HUST H8-M system does not operate
on decimals, the numbers after the decimal point, if any, will be
automatically disregarded.
Therefore, G65 L31 must by multiplied by a number #J. For Ex.: #1 = Cos45
°= 0.707. The format of 0.707 in the system is 0000707, so the operation is
G65 L32 P#1 A1000 B4500.
24. Tan
25. Arctangent
3 - 80
Chapter III Programming and Command Codes
Functions G65 L51, G65 L52, G65 L53, G65 L54, G65 L55 are used to acquire
the PLC-IOCSA status signal. A#J in the function acquires 16 bits of data at a
time.
G65 L51 G65 L52 G65 L53 G65 L54 G65 L55
I-Bit O-Bit C-Bit S-Bit A-Bit
#j = 0 I000~I015 O000~O015 C000~C015 S000~S015 A000~A015
#j = 1 I016~I023 xxxxxx C016~C031 S016~S031 A016~A031
#j = 2 xxxxxxx xxxxxx C032~C047 S032~S047 A032~A047
#j = 3 xxxxxx xxxxxx C048~C063 S048~S063 A048~A063
#j = 4 xxxxxx xxxxxx C064~C079 S064~S079 A064~A079
#j = 5 xxxxxx xxxxxx C080~C095 S080~S095 A080~A095
#j = 6 xxxxxx xxxxxx C096~C111 S096~S111 A096~A111
#j = 7 xxxxxx xxxxxx C112~C127 S112~S127 A112~A127
#j = 8 xxxxxx xxxxxx C127~C143 S127~S143 A127~A143
#j = 9 xxxxxx xxxxxx C144~C159 S144~S159 A144~A159
#j = 10 xxxxxx xxxxxx C160~C175 S160~S175 A160~A175
#j = 11 xxxxxx xxxxxx C176~C191 S176~S191 A176~A191
#j = 12 xxxxxx xxxxxx C192~C207 S192~S207 A192~A207
#j = 13 xxxxxx xxxxxx C208~C223 S208~S223 A208~A223
#j = 14 xxxxxx xxxxxx C224~C239 S224~S239 A224~A239
3 - 81
HUST H8-M Operator’s Manual
O15 O14 O13 O12 O11 O10 O09 O08 O07 O06 O05 O04 O03 O02 O01 O00
0 0 0 0 0 0 0 0 1 1 1 0 0 1 0 1
C31 C30 C29 C28 C27 C26 C25 C24 C23 C22 C21 C20 C19 C18 C17 C16
0 0 0 0 0 0 0 0 1 1 1 0 0 1 0 1
3 - 82
Chapter III Programming and Command Codes
S31 S30 S29 S28 S27 S26 S25 S24 S23 S22 S21 S20 S19 S18 S17 S16
0 0 0 0 0 0 0 0 1 1 1 0 0 1 0 1
A31 A30 A29 A28 A27 A26 A25 A24 A23 A22 A21 A20 A19 A18 A17 A16
0 0 0 0 0 0 0 0 1 1 1 0 0 1 0 1
3 - 83
HUST H8-M Operator’s Manual
Ex. 1:
Program: N10 G65 L80 P40
N20 X100.
N30 Y200.
N40 M02
Result: When the program runs to N10, it branches to N40 and ignores
N20 & N30.
Note: The program number in the G65 block must be same as the
program number to be located. P50, P050, and P0050 represent
different program numbers.
Ex. 1:
Program: N10 G65 L01 P#1 A10
N20 G65 L81 P50 A#1 B10
N30 X100.
N40 Y100.
N50 M02
Result: N10 sets #1=10, so when the program runs to N20, it branches to
3 - 84
Chapter III Programming and Command Codes
Result: N10 sets #1=20, so when the program runs to N20 in the sequence
N10→N20→N30 because #1=10 is false.
Ex. 1:
Program: N10 G65 L01 P#1 A20
N20 G65 L82 P50 A#1 B10
N30 X100.
N40 Y100.
N50 M02
Result: N10 sets #1=20, so when the program runs to N20, it branches to
N50 and ignores N30 & N40 because #1≠10 is true.
Ex. 1:
Program: N10 G65 L01 P#1 A20
N20 G65 L83 P50 A#1 B10
N30 X100.
N40 Y100.
N50 M02
Result: N10 sets #1=20, so when the program runs to N20, it branches to
N50 and ignores N30 & N40 because #1>10 is true.
3 - 85
HUST H8-M Operator’s Manual
Ex. 1:
Program: N10 G65 L01 P#1 A20
N20 G65 L84 P50 A#1 B100
N30 X100.
N40 Y100.
N50 M02
Result: N10 sets #1=100, so when the program runs to N20, it branches to
N50 and ignores N30 & N40 because #1<100 is true.
Ex. 1:
Program: N10 G65 L01 P#1 A100
N20 G65 L85 P50 A#1 B10
N30 X100.
N40 Y100.
N50 M02
Result: N10 sets #1=100, so when the program runs to N20, it branches to
N50 and ignores N30 & N40 because #1≧10 is true.
Ex. 2:
Program: N10 G65 L01 P#1 A100
N20 G65 L85 P50 A#1 B100
N30 X100.
N40 Y100.
N50 M02
Result: N10 sets #1=100, so when the program runs to N20, it branches to
N50 and ignores N20 & N30 & N40 because #1≧100 is true.
Ex. 1:
Program: N10 G65 L01 P#1 A20
N20 G65 L86 P50 A#1 B100
N30 X100.
N40 Y100.
3 - 86
Chapter III Programming and Command Codes
N50 M02
Result: N10 sets #1=20, so when the program runs to N20, it branches to
N50 and ignores N30 & N40 because #1≦100 is true.
Ex. 2:
Program: N10 G65 L01 P#1 A20
N20 G65 L86 P50 A#1 B20
N30 X100.
N40 Y100.
N50 M02
Result: N10 sets #1=20, so when the program runs to N20, it branches to
N50 and ignores N30 & N40 because #1≦20 is true.
G65 L99 Pi
3 - 87
HUST H8-M Operator’s Manual
In this Ex., the G65 command is used for the stop action before cutting of a
sealing machine. A sensor is used to check the changing color tones or patterns of
the material. The following only introduces part of the main program, which also
forms an independent subprogram. The program is divided into two parts: sensor
(I005 signal) On and Off.
I005 On (1)
#02 #12
3 - 88
Chapter III Programming and Command Codes
Format:
Ex.:
Result: When M94, M95 take effect, X10. will Execute 5 times so that it will
stop at X.50 finally.
M code --- The M-code ranges from 00~99 and each code represents a different
action, as shown in the following:
M00 Program Stop. When the program runs to this point, all
processing actions stop.
Press the "CYCST" key to restart the program from where it stopped.
3 - 89
HUST H8-M Operator’s Manual
Except for the above M-codes that cannot be changed, customers may define
other M-codes in the PLC if required. Attention should be paid to the following:
1. For all Mxxx codes, the controller will send the M-code Strobe signal (S024)
to the PLC. (Except for the default settings, including M02, M30, M99, M100,
M01)
2. For M000 ~ M499, the controller will not Execute the next command until the
PLC sends the M-code finished signal (C032 OOFF) to the controller. For the
Mxxx code of M5000 ~ M999, it continues to Execute the next command,
even if the signal is not sent.
S code--- The auxiliary function S-code is used to control the rpm of the
spindle. The maximum setting is S999999.
3.39.3 Subprogram
If a program or command group requires repeated execution, you can store the
program or command group in memory as a subprogram. This can simplify the
design of the program and make the structure of the main program more succinct.
The subprogram can be executed during automatic operation, and a subprogram
can call another subprogram.
Subprogram Structure
The structure of the subprogram is pretty much the same as the main program
except that the subprogram ends with M99.
If the subprogram is not called by the main program but executed by directly
pressing "CYCST", it stops after Executing 8,000,000 times.
3 - 90
Chapter III Programming and Command Codes
Execution of Subprogram:
Format:
M98 P____L____
P: Subprogram code
L: Execution times of the subprogram. If not specified, the subprogram
Executes only once.
Subprogram Limits:
Stepwise Call: The main program calls the first subprogram, and the first
subprogram calls the second subprogram in turn. The H8-M Series controller
provides a maximum of 8 levels of stepwise calling, as shown in figure 3-56:
The M98 and M99 block settings shall not contain any displacement, such as X__,
Z__.
PROGRAM 1 PROGRAM 2 PROGRAM 7 PROGRAM 8
N1 … N1 … N1 … N1 …
. . . .
. . ..... . .
N5 M98P2 N5 M98P3 N5 M98P8 .
. . . .
. . . .
N31 M2 N31 M99 N31 M99 N31 M99
3 - 91
HUST H8-M Operator’s Manual
Subprogram contents:
O005
G01 X#13101 Y#13102 F#13103
G04 X4. #13103 =2500
M99 #13102 =12.000
#13101 =10.000
3 - 92
Chapter IV Tool Compensation
4 Tool Compensation
The tool compensations of HUST H8-M CNC have two types. The
compensation data are stored in #7060~#7459 and the wear data are saved
in #7460~#7859. Up to 40 sets of tool compensation data can be stored in
each item. These data can be called by G41, G42, G43, G44 commands.
Use G40, G49 to cancel the compensation if required.
The G41, G42, G43, G44, G40, and G49 tool compensation commands
involve both declaration and moving actions. Particular attention
should be paid when using CAD/CAM to convert the program.
X-W listed in the following table are length compensation and R is radius
compensation.
Tool Length Variable Address Table
Group X Y Z A B C U V W R
1 #7060 #7061 #7062 #7063 #7064 #7065 #7066 #7067 #7068 #7069
2 #7070 #7071 #7072 #7073 #7074 #7075 #7076 #7077 #7078 #7079
3 #7080 #7081 #7082 #7083 #7084 #7085 #7086 #7087 #7088 #7089
: : : : : : : : : : :
40 #7450 #7451 #7452 #7453 #7454 #7455 #7456 #7457 #7458 #7459
X-W listed in the following table are length wear compensation and R is
radius wear compensation.
Tool Wear Variable Address Table
Group X Y Z A B C U V W R
1 #7460 #7461 #7462 #7463 #7464 #7465 #7466 #7467 #7468 #7469
4-1
HUST H8-M Operator’s Manual
2 #7470 #7471 #7472 #7473 #7474 #7475 #7476 #7477 #7478 #7479
3 #7480 #7481 #7482 #7483 #7484 #7485 #7486 #7487 #7488 #7489
: : : : : : : : : : :
40 #7850 #7851 #7852 #7853 #7854 #7855 #7856 #7857 #7858 #7859
4-2
Chapter IV Tool Compensation
Format:
The tool size of a milling machine varies significantly from 1mm to 50mm,
and the tool radius compensation G41, G42 can be used to ensure that the
tool cuts along the profile of the design plan.
Whether G41 or G42 is used depends on the relative position between the
tool direction and the tool-tip. To the direction of the arrow in Fig. 4-1,
G42 is used when the central point of the tool radius is located at the right
side of the tool path (radius offset to the right). G41 is used when the
central point radius is located at the left side of the tool path (radius offset
to the left). G41 and G42 are Model G-codes and can only be cancelled
using G40.
Tool radius wear compensation is executed in the same way that the tool
radius compensation is. When the G41/G42 command is calling the tool
number for radius compensation using the D-code, the HUST controller
simultaneously selects the radius and wear compensation values for the
called toll number and compensation of the program.
4-3
HUST H8-M Operator’s Manual
B
Program path
G42
N2 N3
G41
A
B Program path
G42
N2 N3
4-4
Chapter IV Tool Compensation
G41, G42 are Modal G-code command, so when the insertion of the G41,
G42 in the tool path is complete and before they are cancelled by G40, the
tool-tip does a vector offset to the amount of the tool radius value “r” along
the program path. Calculation of the path is executed automatically for the
tool-tip path. When the direction of the program path changes, the path of
the tool-tip also changes and special attention must be paid to the corner of
the changed path. Different corners are described as follows:
P
G01 Program Path Fig. 4-5
If the angle is convex as shown in Fig 4-6, the corner cut is correct
while the correctness of cutting on the inside corner depends on the
distance from the opening C. If the distance is less than the tool
diameter, no cutting is possible. If it is greater than the tool diameter, the
tool cuts toward the inside corner, part of the work-piece cannot be cut
in the sharp inside corner.
4-5
HUST H8-M Operator’s Manual
G42 G41
A
P
C
B Program Path
Fig. 4-6
3. Compensation Direction Change
H8-M does not accept the direct change of compensation direction from
G41 to G42 or from G42 to G41. Where changing of the direction is
required, the compensation must be cancelled using G40 before the
direction can be changed.
4. Tool Radius Change
Like the direction change, H8-M does not accept the direct change from
one tool number to another for radius compensation. Where changing of
the tool number is required, the compensation must be cancelled using
G40 before the tool number can be changed.
4.1.3 Tool Radius Compensation – Cancellation
Once G41 or G42 is executed successfully, G40 command must be used to
cancel the tool radius compensation. The movement during the cancellation
of the radius compensation can only be executed in the G00 or G01 mode.
G40 is not directly available for G02, G03 blocks and the cancellation can
be executed only after the arc cutting is executed successfully. Below are
some examples of the cancellation of the tool radius compensation.
1. N20 G41(G42) D___..........
…
…
N31 G01 X_____ F______
N32 G40 X_____ Y______
G41 B
A
Program Path
G42
Fig. 4-7
4-6
Chapter IV Tool Compensation
…
…
N15 G02 X____ Y____ I____ J____ F____
N20 G01
N25 G40 X____ Y____
B
G41 A
Program Path
4-7
HUST H8-M Operator’s Manual
1. When cutting around an inside corner, the arc radius of the inside corner
must be equal to or greater than the tool radius (r). Otherwise an alarm
will generate an alarm signal. The arc cutting around an outside corner
is not subject to this regulation.
2. G41, G42 commands are not applicable to canned cycles
(G80~G89).They must be cancelled using G40 before a canned cycle
can be executed.
3. Where an arc cutting command exists during the tool radius
compensation (G41,42), the writing method of the radius value “R” is
applicable.
4. Where multiple axes are controlled simultaneously, the tool radius
compensation of the HUST H8-M is only valid on the X, Y plane not on
the Z- axis.
5. The tool radius compensation function is not available for MDI
operation.
6. When cutting a stepwise work-piece with a step value smaller than the
tool radius, over-cutting many occur as shown in Figure 4-9.
4-8
Chapter IV Tool Compensation
50
X
C D
40
B 40 N E
K L
40
J P O M 30
100
50
A H G F
I 50
30
S
30 40 80 40
4-9
HUST H8-M Operator’s Manual
N3 Block N4 Block
-20 -30
-23 -33
(Aft. Compensation) (Aft. Compensation)
Fig. 4-11
4 - 10
Chapter IV Tool Compensation
N2 Block N3 Block
-30 -40
-34 -44
(Aft. Compensation) (Aft. Compensation)
Fig. 4-12
Ex. 3: N0 G91
N1 G00 X120.000 Y80.000
N2 G43 Z-32.000 H01
N3 G01 Z-21.000 F100.
N4 G04 X2.000
N5 G00 Z21.000
N6 X30.000 Y-50.000
N7 G01 Z-41.000
N8 G00 Z41.000
N9 X50.000 Y30.000
N10 G01 Z-25.000
N11 G04 X2.000
N12 G00 Z57.000
N13 G49 X-200.000 Y-60.000
N14 M02
Y
X 20
30
Start 30
4 - 11
HUST H8-M Operator’s Manual
4 - 12
Chapter Controller Keys and Screens
X Y Z G F M
U V W 7 8 9
I J K 4 5 6
R S T 1 2 3
重置 N 0 #
刪除 清除
插入 輸入
F1 F2 F3 F4 F5 F6 F7 F8
Fig. 5-1 HUST H8-M Series Controller LCD Panel and Keys
This Chapter describes the 2nd and 3rd areas (function mode and key areas).
5-1
HUST H8-M Operator’s Manual
U A V B WC
I O
J P
KQ
RD SE TL
G F M/ NH
#
0 ~ 9 The key group is the numerical key.
F1 F2 F3 F4 F5 F6 F7 F8
Special keys.
5-2
Chapter Controller Keys and Screens
Fig. 5-2
5-3
HUST H8-M Operator’s Manual
Switch to Auto mode in “Mode Selection” and you will see a screen as
shown in the following figure. Press Execute to execute the program in
Auto Mode. The coordinate screen shows data as follows:
Fig. 5-3
Fig. 5-4
5-4
Chapter Controller Keys and Screens
Fig. 5-5
Fig. 5-6
5-5
HUST H8-M Operator’s Manual
The program selection key is used to display the current program number.
You can use Cursor↑ , Cursor↓ to display another program number. In
Program Selector mode, move the cursor to the desired part program and
press Enter . (Refer to Section 6.1 for details.)
Fig. 5-7
5-6
Chapter Controller Keys and Screens
Fig. 5-8
5-7
HUST H8-M Operator’s Manual
5-8
Chapter VI Program Editing
6 Program Editing
1. Program selection,
2. New program editing,
3. Existing program modification, and
4. Program editing in Tutorial Mode.
The HUST H8-M controller can store programs numbered O000 ~ O999.
You can select any one of the programs to edit or execute.
Fig. 6-1
You can enter the program comments in this mode with a maximum of 12
characters.
6-1
HUST H8-M Operator’s Manual
Fig. 6-2
During editing of the program, the letter N of the block serial number can
be omitted if necessary. If not necessary, do not use #8337 (the automatic
generation start number for the program block serial number), and #8338
(the increment between automatically generated serial numbers). Otherwise,
6-2
Chapter VI Program Editing
Press the Insert key to create a new block, as shown in Fig. 6-3: (N10
can be omitted if a block serial number has been generated
automatically)
N10 G0
Fig. 6-3
Then enter:
X 0 y Enter
Y O y Enter
6-3
HUST H8-M Operator’s Manual
Second block:
G 4 Insert
X 1 y Enter
Third block:
G 0 Insert
U 4 8 0 Enter
V - 4 8 0 y Enter
(Note that - the sign INPUT can be entered before the Enter key is
pressed.
Fourth block:
G 4 Insert
X 1 y Enter
You can use PAGE↑or PAGE↓ to check the block on each page
and use CURSOR← or CURSOR→ to check its contents for its correctness.
Procedure:
1. Make sure the system is in “EDIT” mode.
2. Use CURSOR↑/↓ to move the cursor to block N3.
6-4
Chapter VI Program Editing
N10 X0.Y0.Z0.
N20 G4 X1.
N30 U480.V-480.F300
N40 G4 X1.
N50 M02
Fig. 6-4
4. Change U480 by entering U360; U 3 6 0 y Enter
Delete a Command
Ex.: The third block program N30 U480. V-480. F300
Changed to N30 U480. V-480.
Procedure:
1. Make sure the system is in “EDIT” mode.
2. Use CURSOR↑/ CURSOR↓ to move the cursor to block N3.
3. Enter a command to be deleted without values, e.g.
F Enter
(No value is entered behind F). The screen is shown in Fig. 6-6:
6-5
HUST H8-M Operator’s Manual
N10 X0.Y0.Z0.
N20 G4 X1.
N30 U480.V-480.
N40 G4 X1.
N50 M02
Fig. 6-5
Insert a Block
Procedure:
N 3 1 Insert
U 2 0 y Enter
V - 2 0 y Enter
6-6
Chapter VI Program Editing
N10 X0.Y0.Z0.
N20 G4 X1.
N30 U480.V-480.F300
N31 U20.V-20.
N40 G4 X1.
N50 M02
Fig. 6-6
Delete a Block
Procedure:
N10 X0.Y0.Z0.
N20 G4 X1.
N30 U480.V-
480.F300
N40 G4 X1.
N50 M02
Fig. 6-7
6-7
HUST H8-M Operator’s Manual
Delete a Program
DELTET PROGRAM?(Y/N)
Fig. 6-8
At this time, press the Y key to delete the program O01. When you press
the N key, no action will be performed.
Note: After the procedure is complete, all program data in the memory will
be erased. Therefore, never perform this action unless required.
Although like Edit Mode, the Tutorial Mode uses different methods to enter
coordinates. A coordinate is directly entered in Edit Mode while a
coordinate is obtained through MPG in Tutorial Mode. In addition, the
functions of the keys, such as Insert , Enter , and Delete , are the same.
The reader should note that in Turtorial Mode, the work coordinate will be
entered into the program once the Enter key is pressed. To avoid errors, it
6-8
Chapter VI Program Editing
is preferable to edit the entire program in Tutorial Mode if you have started
editing in this mode.
Procedure:
2. Use the Insert and Enter keys to enter the relevant commands.
3. Use the MPG, or axis selection & JOG+(JOG-) keys to move the
workpiece or tool to the desired coordinate and press the Enter key.
4. Repeat Step 2 and 3 until the creation of the program is completed.
Ex.: G01 X100.000 (100.000 Use the MPG to enter the coordinate)
M02
The HUST H8-M Series CNC allows customers to set the decimal format
in variables according to their needs. Once the decimal format is set, the
system will operate with the settings after each power-on. The settings can
be changed in cariables #8300~#8326 if necessary. In HUST H8-M Series
CNC, there are the following decimal formats available: 34 (four decimal
places), 43 (three decimal places), 52 (two decimal places), and 61 (one
decimal place).Take 4/3 format as an example. The 4/3 format indicates the
system allows up to a 4-digit integer with up to 3 decimal places. If the
number of digits exceeds 4, the format will convert to 70 format. But 3
decimal places will be included after internal processing.
6-9
HUST H8-M Operator’s Manual
For commands that require a decimal input, the entered integer will be
changed by the control unit, though the value actually entered by the
operator is shown on the screen. The user should pay attention to this. To
avoid errors, it is recommended to enter data with a decimal point. The "0"
after the decimal point can be omitted. The integer codes, such as G, M, N,
S, are not affected.
Program 1
6 - 10
Chapter VI Program Editing
Block
1. Do not use two G-codes in the same block.
(This rule is not applied if the program codes are converted using
CAD/CAM)
6 - 11
HUST H8-M Operator’s Manual
6 - 12
Chapter VII MCM Parameter Settings
Fig. 7-1
*M9998 is disabled after emergency stop or power off.
(2) Change via Upload from RS232C:
Use the transmission software to send parameters to the PC for saving as a text file.
Change the parameters with PE2, HE, or other document processing software and
transmit them back to the CNC. Refer to Chapter IX for detailed information.
7 - 1
HUST H8-M Operator’s Manual
#9000~#9015 #9040~#9047
Ex. 1:
X-axis serves as the linear axis (#9340 = 0) and the ball screw pitch is 5.000 mm = 5000
Motor Encoder = 2500 pulses, multiplication factor = 4 (#9040 = 4)
Gear Ratio= 5:1(Servomotor rotates 5 turns = ball screw Rotates 1 turn)
5000 1
Resolution = ×
2500 × 4 5
1
=
10
7 - 2
Chapter VII MCM Parameter Settings
Tool Position
=======================================================
Linear/Rotary Axis
=0, linear axis
=1, rotary axis (0 ~ 360 degrees)
=======================================================
7 - 3
HUST H8-M Operator’s Manual
Machine Origin
Software OT limit
EM-STOP
About5~10mm
About5~10mm
7 - 4
Chapter VII MCM Parameter Settings
Motor need execute Home command:For display only. It is not configurable. Binary
is used for display. Homing depends on the parameter settings of the motor.
When BIT0 is ON, X must execute homing; otherwise an alarm message appears, which
does not affect execution.
When BIT1 is ON, Y must execute homing; otherwise an alarm message appears, which
does not affect execution.
When BIT2 is ON, Z must execute homing; otherwise an alarm message appears, which
does not affect execution.
When BIT3 is ON, A must execute homing; otherwise an alarm message appears, which
does not affect execution.
Ex.:
When it is set to 5, X and Z should execute a homing action to make the alarm message
disappear.
When it is set to 7, X, Y and Z should execute a homing action to make the alarm
message disappear.
7 - 5
HUST H8-M Operator’s Manual
7 - 6
Chapter VII MCM Parameter Settings
7 - 7
HUST H8-M Operator’s Manual
7 - 8
Chapter VII MCM Parameter Settings
7 - 9
HUST H8-M Operator’s Manual
7 - 10
Chapter VII MCM Parameter Settings
7 - 11
HUST H8-M Operator’s Manual
#9300 X-axis program coordinates clearing when encountering M02, M30, M99~
#9301 Y-axis program coordinates clearing when encountering M02, M30, M99~
#9302 Z-axis program coordinates clearing when encountering M02, M30, M99~
#9303 A-axis program coordinates clearing when encountering M02, M30, M99~
#9304 B-axis program coordinates clearing when encountering M02, M30, M99~
#9305 C-axis program coordinates clearing when encountering M02, M30, M99~
#9306 U-axis program coordinates clearing when encountering M02, M30, M99~
#9307 V-axis program coordinates clearing when encountering M02, M30, M99~
7 - 12
Chapter VII MCM Parameter Settings
7 - 13
HUST H8-M Operator’s Manual
7 - 14
Chapter VII MCM Parameter Settings
The work coordinates of MCM parameters #0~48 are set by G54~G59.That is, to set the
work origin of the work coordinates, the machine coordinates of the work origin are
relative to the machine coordinates, with the machine origin as the zero point.(Refer to
Chapter III for work origin setting)
7 - 15
HUST H8-M Operator’s Manual
7 - 16
Chapter VII MCM Parameter Settings
4.1 The compensation segment length is the total length of the ball-screw divided by
the number of segments.
Ex.: The total length of the X-axis ball screw is 1m(1000mm), which is to be
divided into 10 compensation segments.
1000 mm
100mm
The average length of each segment is 100mm and the setting of MCM #7901
X=100.000. The compensation of each segment is determined by MCM
#7902~#7999.
4.2 If the length of a compensation segment is less than 20 mm, it will be set to 20
mm.
4.3 The HUST H8-M uses an average compensation approach and sets up 8 points for
each segment length as a basis for compensation. The compensation for each
point is 1/8th of the parameters in MCM #7902~#7999. The value of the
compensation is an integer, with μm as its unit. The remainder of the 1μm will
be added into the next point for compensation.
7 - 17
HUST H8-M Operator’s Manual
Ex.: The X-axis is divided into 10 segments for compensation and the average
length of each segment is 100 mm. Compensation setting: MCM #7902 =
0.026 mm; the average compensation of each point = 0.026/8=0.00325mm.
The compensation for the eight points in the first segment is described in
the following table:
Aggregated
Compensation Tool position, Avg. comp. of Actual comp. of
compensation,
point mm each point, mm each point, mm
mm
1 12.5 0.00325 0.003 0.003
2 25 0.00325 0.003 0.006
3 37.5 0.00325 0.003 0.009
4 50 0.00325 0.004 0.013
5 62.5 0.00325 0.003 0.016
6 75 0.00325 0.003 0.019
7 87.5 0.00325 0.003 0.022
8 100 0.00325 0.004 0.026
If the thousands digit is 1, it means that either positive or negative figure can be entered.
Tens digit = number of digits (including decimals).
Unit digit = decimal places.
Ex.:
#8300=1073 Î When editing A, you can enter a positive or negative 7-digit
figure for A (4-digit integers and 3-digit decimals)
7 - 18
Chapter VII MCM Parameter Settings
#8306=20 Î When editing G, you can enter a 2-digit figure (2-digit integers
without decimals)
7 - 19
HUST H8-M Operator’s Manual
7 - 20
Chapter VII MCM Parameter Settings
For arc cutting, the ideal cutting path is an arc, but actually the motor moves along
the arc chord (a straight line). Therefore, the cutting error must be taken into
account when arc cutting is required.
The smaller the value is, the more precise the arc will be. The ideal value is 1.
However, sometimes the motor cannot operate if the value is not greater than 1,
resulting in a greater cutting error.
7 - 21
HUST H8-M Operator’s Manual
7 - 22
Chapter VII MCM Parameter Settings
69 #8455 Display the voltage limit value for the servo response.
70 #8456 Time of each segment when servo response is
displayed.
7 - 23
HUST H8-M Operator’s Manual
To increase the life of the display, the backlight function will be disabled automatically
when the unit is not operated for a specified time.
7 - 24
Chapter VII MCM Parameter Settings
#9000~#9015 #9040~#9047
Ex. 1:
X-axis serves as the linear axis (#9340 = 0) and the ball screw pitch is 5.000 mm = 5000
Motor Encoder = 2500 pulses, multiplication factor = 4 (#9040 = 4)
Gear Ratio= 5:1 (Servomotor rotates 5 turns = ball screw rotates 1 turn)
5000 1
Resolution = ×
2500 × 4 5
1
=
10
Ex. 2:
Y-axis is rotary axis (#9341=1), angle per rotation = 360.000°
Motor Encoder = 2500 pulses, multiplication factor = 4 (#9041 = 4)
Gear Ratio= 5:1(Servomotor rotates 5 turns = Y-axis Rotates 1 turn)
360000 1
Resolution = ×
2500 × 4 5
36
=
5
Y-axis resolution denominator (#9002) = 5
Y-axis resolution numerator (#9003) = 36
Note: When the resolution is below 1/100, the software OT limit must be within the
range from –999999 to 999999.
Otherwise an error message displays, which cannot be removed.
7 - 25
HUST H8-M Operator’s Manual
7 - 26
Chapter VII MCM Parameter Settings
Only one of the four values can be used for MCM # #9040~#9047.
Note:
The setting of the multiplication factor is dependent on the rigidity of the
structure. Vibration of the motor during feeding of power to the structure
suggests that the rigidity of the structure is too high. This can be corrected by
reducing the multiplication factor of the axis concerned.
Example: The servomotor encoder pulses at 2000 per rotation. When MCM
#161 is set to 2, the pulses of Y-axis are 2000 x 2 = 4000.
7 - 27
HUST H8-M Operator’s Manual
EM-STOP
Software OT limit
Machine Origin
Software OT limit
EM-STOP
7 - 28
Chapter VII MCM Parameter Settings
Fmax = 0.95 × RPM (the maximum rpm of the servomotor) x Pitch (ball
screw pitch) ÷ GR
(Value Recommended for Use)
Ex: The max. X-axis servo motor rpm is 3000 with a 5mm pitch and GR = 5:1
(Servomotor rotates 5 turns = ball screw rotates 1 turn)
Fmax = 0.95 × 3000 × 5 ÷ 5 = 2850
Recommended setting: 2850
7 - 29
HUST H8-M Operator’s Manual
When the tool returns to home, the machine moves to the limit switch at the first
velocity; the length of the limit switch must be greater than the distance
required for deceleration. Otherwise the machine will run over the limit switch
and result in a homing error.
R231 =1, X-axis homing operation, R231=2, Y-axis homing operation, R231=4 Z-
axis homing operation, R231=8, A-axis homing operation, R231=15, X, Y, Z, A
simultaneous homing operation.
(Homing will be executed if R231 is specified as a number.)
Velocity: #9180~#9187
Direction: #9160~9167 Touch the limit switch
#9126~#9267 Leave limit switch
Velocity: #9180~#9187 ×1/4
Velocity First Velocity Direction: #9200~#9207 = 1
7 - 30
Chapter VII MCM Parameter Settings
7 - 31
HUST H8-M Operator’s Manual
7 - 32
Chapter VII MCM Parameter Settings
7 - 33
HUST H8-M Operator’s Manual
7 - 34
Chapter VIII Wiring Diagram
8. Wiring Diagram
8.1. H8-M External Dimensions
8 - 1
Chapter VIII Wiring Diagram
M4
CUT OUT
CUT OUT
8 - 2
Chapter VIII Wiring Diagram
The connector types on the back of the H8-M control unit are listed below. Each
connector symbol is followed by the letter M (for male) or F (for female).
The H8-M connector designation is marked on the back of the control unit case and the
corresponding types are listed below:
Connector
Connector Name Type
Designation
Standard Output Interface OUT1 DB25LM (Male)
Standard Input Interface IN1 DB25LF (Female)
Standard Output Interface OUT2 DB25LM (Male)
Standard Input Interface IN2 DB25LF (Female)
D/A Spindle Analog Output D/A DB15LM (Male)
X-axis Servo X-axis DB9LF (Female)
Y-axis Servo Y-axis DB9LF (Female)
Z-axis Servo Z-axis DB9LF (Female)
A-axis Servo A-axis DB9LF (Female)
B-axis Servo B-axis DB9LF (Female)
C-axis Servo C-axis DB9LF (Female)
U-axis Servo U-axis DB9LF (Female)
V-axis Servo V-axis DB9LF (Female)
MPG MPG DB9LM (Male)
Expandable I/O SIO DB15LF (Female)
RS232C Interface Connector RS232 DB9LF (Female)
Operator Panel Connector KEY DB15LM (Male)
8 - 3
Chapter VIII Wiring Diagram
IN2
D/A (4)
D/A
Servo Motor (5)
X-Axis
Driver
X-AXIS
Servo Motor (5)
Y-Axis
Y-AXIS Driver
Servo Motor (5)
Z-Axis
Driver
Z-AXIS
Servo Motor (5)
A-Axis
A-AXIS Driver
Servo Motor (5)
B-Axis
B-AXIS Driver
Servo Motor (5)
C-Axis
C-AXIS Driver
Servo Motor (5)
U-Axis
U-AXIS Driver
Servo Motor (5)
V-Axis
V-AXIS Driver
MPG MPG(6)
RS232
RS232C (8)
8 - 4
Chapter VIII Wiring Diagram
1
X-AXISA
2
A-
B 3
CPU Servo
Main Board B- 4
Signal
Z 5
6
Z-
VCMD 7 Positioning Command
8 -10 ~ +10V
0V 0V
+5V 9
Case Ground
A 1
Y-AXIS
2
A-
B 3
Servo
4
B- Signal
5
Z
6
Z-
7 Positioning Command
VCMD -10 ~ +10V
8
0V 0V
+5V 9
Case Ground
1
(MPG)A
2
B MPG
Signal
3
+5V
0V
7.8
Case Ground
8 - 5
Chapter VIII Wiring Diagram
CNC Power-on
Servo Power-on Time
Time
servo on delay
To CPU Power supply R
AC220V R
AC220V S To CPU Power supply T
AC220V T
Timer Delay Contact
Servo
Driver
power-off power-on
Power-On Relay
Power-On Timer Relay
R S T
* MPG Connection
If the tool moves in the direction opposite to that indicated by the MPG, please
exchange signal lines A and B in the MPG.
CPU Main
MPG
Board 1
+5V 0V A B
2
3
4
5
6
7
0V
8
0V
8 - 6
Chapter VIII Wiring Diagram
1. The distance between the RS232 port and the PC should not be more than 15
meters.
OOOOOO
I 傳 手 編自
6 6 6 6 6 7 6
X3Y3Z1A7
3 89
8 9
U3V3W1G4
3 6
5 6
I2J2K1F1
2 23
2 3 DC DC
R3S3T2M1
3 0
1 1#
4 4 2 4 4
5 5 5 5 5 4 4 4 5 4 輸4
2 3 RXD
TXD
3 2 TXD
RXD
DB9LM DSR
4 20 DTR DB25LF
5 7
CONNECTOR SG
6
SG CONNECTOR
6
DTR DSR
7 4
CTS RTS
8 5
RTS CTS
2 2
TXD RXD
3 3
RXD TXD
DB9LM DSR
4 4
DTR DB9LF
5 5
CONNECTOR SG
6 6
SG CONNECTOR
DTR DSR
7 7
CTS RTS
8 8
RTS CTS
8 - 7
Chapter VIII Wiring Diagram
The I/O interface can be connected by one of the following two methods:
8 - 8
Chapter VIII Wiring Diagram
8 - 9
Chapter VIII Wiring Diagram
The I/O connector designation and pin assignments are shown in Table 5-1 and Fig. 8-1.
Note that there are 24 input points and 16 output points.
13 12 1 00
24VGND 25 13 14
12 11 2 01
23 24 14 15
11 10 3 02
22 23 16
10 09 4 03
21 22 17
9 08 5 04
20 21
8 07 +24V power for 18
6 05
19 20 I/O should be 19
7 06 7 06
18 19 provided 20
6 05 8 07
17 18 externally. 21
5 04 9 08
16 17 +24V 22
4 03 10 09
15 16 +24V 23
3 02 11 10
14 15 24VGND 24
2 01 12 11
13 14 24VGND 25
1 00 13 12
8.7.1. Input Signal Wiring for Direct Control of I/O Devices by the
Controller
8 - 10
Chapter VIII Wiring Diagram
24VGND
INPUT OUTPUT
+24V
I POINT
R
24VGND
5VGN
INPUT DB25LF Connector +24V power should be provided
externally for OUTPUT DB25LM
PIN1-PIN24 is I point
connector.
PIN25 is 24VGND PIN22-PIN23 is 24V
PIN24-PIN25 is 24VGND
Fig. 8-9 Input Signal Wiring Diagram (direct input to the controller)
8.7.2. Output Signal Wiring for Direct Control of I/O Devices by the
Controller
8 - 11
Chapter VIII Wiring Diagram
24V 5V 5V 24V
3.3K
24V
3.3K
Resistance R R Resistance R Diode
RELAY
24VGND
INPUT OUTPUT
+24V
R
5VGND 24VGND
Fig. 8-10 Output Signal Wiring Diagram (direct output from the controller)
8.7.3 I/O devices are controlled by the controller via input / output
boards (input board / output relay boards)
The input signal cables are connected to the HUST input board and to the
input connector on the HUST H8-M Series via the DB25LF connector of
the input board. One advantage of using the HUST input board is that
protection for the HUST H8-M Series CNC controller can be ensured. This
connection method is only suitable for the NPN-type input connector.
The output signal cables are connected to the HUST output board (output
relay board) and to the output connector on the HUST H8-M Series via the
DB25LM connector of the output board. One advantage of using the HUST
output board is that protection for the HUST H8-M Series CNC controller
can be ensured. This connection method is only suitable for the NPN-type
output connector.
8.8. Input Signal Wiring for Controlling I/O Devices via Input Boards (3
types available)
8 - 12
Chapter VIII Wiring Diagram
* Input Signal Wiring Diagram (input to the controller via input board
with conventional terminal)
INPUT
24VGN
5VGN
Fig. 8-11 Input Signal Wiring (input to controller via input board with
conventional terminal)
D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D13 D14 D15 D16 D17 D18 D19 D20 D21 D22 D23 D24
I00 I01 I02 I03 I04 I05 I06 I07 I08 I09 I10 I11 I12 I13 I14 I15 I16 I17 I18 I19 I20 I21 I22 I23 GND24V
AB05
8 - 13
Chapter VIII Wiring Diagram
D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D13 D14 D15 D16 D17 D18 D19 D20 D21 D22 D23 D24
I00 I01 I02 I03 I04 I05 I06 I07 I08 I09 I10 I11 I12 I13 I14 I15 I16 I17 I18 I19 I20 I21 I22 I23 GND24V
AB05
Fig. 8-13 Contact Number Assignment for Input Board with Conventional
Terminal
8 - 14
Chapter VIII Wiring Diagram
I-Point 3.3K
Resistance R R
24V INPUT 24VGND
+24V
24VGND
5VGND
Fig. 8-14 Input Signal Wiring (input to controller via modular input board
with conventional terminal)
24V
24V
I16 I17 I18 I19 I20 I21 I22 I23 +24V +24V +24V +24V +24V GND GND GND GND GND
LED Indicator
I00 I01 I02 I03 I04 I05 I06 I07 I08 I09 I10 I11 I12 I13 I14 I15
At I POINTON, the indicator
is on.
INPUT DB25LF Connector
I16 I17 I18 I19 I20 I21 I22 I23
+24V Power Input
I16 I17 I18 I19 I20 I21 I22 I23 +24V +24V +24V +24V +24V GND GND GND GND GND
Fig. 8-16 Contact Number Assignment for Modular Input Board with
Conventional Terminal
8 - 15
Chapter VIII Wiring Diagram
* Input Signal Wiring Diagram (input to controller via input board with
CE compliant terminal)
5VGND
I-Point
INPUT DB25LF Connector
PIN1-PIN24 is I-point.
PIN25 is 24VGND.
Fig. 8-17 Input Signal Wiring (input to controller via input board with CE
compliant terminal)
8 - 16
Chapter VIII Wiring Diagram
+24V GND
+24V +24V +24V
+24V
GND GND GND
I06 I14 I22
+24V +24V +24V
GND GND GND
I05 I13 I21
+24V +24V +24V
GND GND GND
I04 I12 I20
+24V +24V +24V
GND GND GND
I03 I11 I19
+24V +24V +24V
GND GND GND
I02 I10 I18
NPNI_21 S/N:
+24V +24V +24V
GND GND GND
I01
AB146
I09 I17
+24V +24V +24V
GND GND GND
I00 I08 I16
Fig. 8-18 Wiring Diagram for Input Board with CE Compliant Terminal
8 - 17
Chapter VIII Wiring Diagram
+24V GND
+24V +24V +24V +24V
+24V
GND GND GND Power Input
I06 I14 I22
+24V +24V +24V
GND GND GND
LED Indicator
I05 I13 I21 At I POINTON, the
+24V +24V +24V indicator is on.
GND GND GND
I04 I12 I20
+24V +24V +24V
GND GND GND
I03 I11 I19
+24V +24V +24V INPUT DB25LF Connector
GND GND GND
I02 I10 I18 NPNI_21 S/N:
+24V +24V +24V
GND GND GND
I01 I09 I17
AB146
Fig. 8-19 Contact Number Assignment for Input Board with CE Compliant
Terminal
8.9. Output Signal Wiring for Controlling I/O Devices via Output
Boards (output relay board) (4 types available)
8 - 18
Chapter VIII Wiring Diagram
Each output on the output board with the conventional terminal (output
relay board) can withstand up to AC 110V or DC 25V and 500 mA current.
All outputs are of the dry contact type.
5V 24V
3.3K
Resistance R Diode
AC110
OUTPUT
24VGND
AC110
+24V
R
5V 24V 24V
3.3K
Resistance R Diode
24VGND
OUTPUT
+24V
R
24VGND
Fig. 8-20 Output Wiring (output from controller via output board with
conventional terminal)
8 - 19
Chapter VIII Wiring Diagram
24V
AB055
24V
D25 D26 D27 D28 D29 D30 D31 D32 D33 LED Indicator
AB055
OUTPUT
DB25LM
D34 D35 D36 D37 D38 D39 D40 Connector
+24V
Power Input
Fig. 8-22 Contact Number Assignment for Output Board with Conventional
Terminal
8 - 20
Chapter VIII Wiring Diagram
Each contact on the modular output board with the conventional terminal
(output relay board) can withstand up to AC 110V and 500 mA current. All
outputs are of the open collector type.
* Output Signal Wiring Diagram (output from controller via modular
output board with conventional terminal)
Controller Circuit Output Relay Board Machine +24V Power Supply
5V 24V 24V
3.3K
Resistance R Diode
+24V
OUTPUT
24VGND
R
Fig. 8-23 Output Wiring (output from controller via modular output board
with conventional terminal)
8 - 21
Chapter VIII Wiring Diagram
O00 O01 O02 O03 O04 O05 O06 O07 O08 O09 O10 O11 O12 O13 O14 O15 +24V GND
IO\PIO\TBV02_DO S/N:AB209
24V
O00 O01 O02 O03 O04 O05 O06 O07 O08 O09 O10 O11 O12 O13 O14 O15 +24V GND
IO\PIO\TBV02_DO S/N:AB209
O00 O01 O02 O03 O04 O05 O06 O07 O08 O09 O10 O11 O12 O13 O14 O15
+24V
Power Input
LED Indicator
OUTPUT
DB25LM Connector
Fig. 8-25 Contact Number Assignment for Modular Output Board with
Conventional Terminal
8 - 22
Chapter VIII Wiring Diagram
5V 24V
3.3K
Resistance R Diode
+24V
OUTPUT
24VGND
Fig. 8-26 Output Signal Wiring Diagram (output from controller via
16-channel output board with CE compliant terminal)
8 - 23
Chapter VIII Wiring Diagram
NO04
COM4
+24V
NO05
COM5
+24V
M7N
CO
+24V
NO02
COM2
+24V
NO06
COM6
+24V
NO03
COM3
+24V
24VGND
NPNO_2 S\N:AB147
24V
+24V
GND
Surge Absorber +24V
NO12
COM12
+24V
NO13
COM13
+24V
NO15
COM15
+24V
NO10
COM10
+24V
NO14
COM14
+24V
NO11
COM11
+24V
NO09
COM9
+24V
NO08
COM8
+24V
Fig. 8-27 Contact Number Assignment for 16-channel Output Board with
CE Compliant Terminal
8 - 24
Chapter VIII Wiring Diagram
4
4NO0
COM
+24V
5
5NO0
COM
+24V
7
7NO0
COM
+24V
2
2NO0
COM
+24V
6
6NO0
COM
+24V
3
3NO0
COM
+24V
LED Indicator
NPNO_2 S\N:AB147
O08
O09
O10
O12
O13
O14
O15
O11
O00
O01
O02
O03
O04
O05
O06
O07
+24V
GND +24V
+24V Power Input
5
5NO01
COM1
+24V
0
0NO01
COM1
+24V
4
4NO01
COM1
+24V
1
1NO01
COM1
+24V
09
9NO
COM
+24V
08
8NO
COM
+24V
Connector
Fig. 8-28 Contact Number Assignment for 16-channel Output Board with
CE Compliant Terminal
8 - 25
Chapter VIII Wiring Diagram
+24V
OUTPUT
24VGND
R
Fig. 8-29 Output Signal Wiring Diagram (output from controller via
4-channel output board with CE compliant terminal)
8 - 26
Chapter VIII Wiring Diagram
+24V
NO15
NO14
+24V
+24V
+24V
+24V
COM1
GND
COM1
O08
H6A\PIOEXT\
5
4
OUT_V1
+24V Surge Absorber
O07
+24V +24V
O06 24V O15
+24V +24V
O05 O14
+24V +24V
O04 O13
+24V +24V
O03 O12
+24V +24V
O02 O11
+24V +24V
O01 O10
+24V +24V
NO13
NO12
+24V
+24V
+24V
+24V
COM1
COM1
GND
O00
3
2
O09
Fig. 8-30 Wiring for 4-channel Output Board with CE Compliant Terminal
8 - 27
Chapter VIII Wiring Diagram
OUT_V1 S/N:AB154
+24V
COM15
COM14
NO15
NO14
+24V
+24V
+24V
+24V
GND
H6A\PIOEXT\
O08 Surge Absorber
+24V
LED Indicator
O07
OUTPUT
+24V +24V DB25LM
Connector
O06 O15
+24V +24V
O05 O14
+24V +24V
O04 O13
+24V +24V
O03 O12
+24V +24V
O02 O11
+24V +24V
O01 O10
COM13
COM12
NO13
NO12
+24V
+24V
+24V
+24V
GND
+24V +24V
O00 O09
Fig. 8-31 Contact Number Assignment for 4-channel Output Board with
CE Compliant Terminal
8 - 28
Chapter VIII Wiring Diagram
8 - 29
Chapter VIII Wiring Diagram
When the CNC controller is energized, it takes 100 ms for its electrical
components to become stabilized. Never turn on the servo motor during
this unstable 100ms interval.
Fig. 8-24 shows the emergency stop circuit. The figure shows that the
controller will switch to the Emergency Stop mode, and that the Servo-on
switch will be turned on when the limit switch is attained or the E-Stop key
is pressed. For safety reasons, the E-stop key, limit switch, and E-Stop
Relay must be connected in series, and the Servo-Release Button and limit
switch (OT or Overtravel) must be connected in parallel. The
normal-closed type E-Stop and OT switch should be used.
(E-Stop)
+24VGND Emergency Stop
Limit Switch Button
INPUT Contact
Servo Release
Servo Driver
Spark Killer
Servo-On
Signal Output
In PLC
24V
External Relay A
8 - 30
Chapter VIII Wiring Diagram
Servo Driver
Servo-On
Signal
Servo
Start
Command Servo Driver
24V Servo-On
RELAY C Signal
Correct Wiring:
Servo Driver
Servo-On
Signal
24V
Servo Driver
Servo-On
Signal
RELAY C
Fig. 8-25 Correct and Incorrect Driver Wiring for Relay C
TMR T 000
50
A 0127
msec #30 O 0000
O 0000
8 - 31
Chapter VIII Wiring Diagram
8 - 32
Chapter IX PC RS232C Connection
9 PC RS232C Connection
9.1 ZNDC Operation Instructions via PC
Procedures:
Fig. 9-1
9-1
HUST H8-M Operator’s Manual
3. [DSR] and [CTS] at the top right will be highlighted if the connection
is normal after entering ZNDC. If they are not highlighted, which
means there is no connection, open [Config] to check the connection
settings. Follow the following procedures:
(1). Enable [Config] hidden options in pointer [DSR]. Right-
click to switch between [EnAble_ConfigSetUp] and
[DisAble_ConfigSetUp].
9-2
Chapter IX PC RS232C Connection
9-3
HUST H8-M Operator’s Manual
CommPort DataBits
Com1 Com2 Com3 Com4 Com5 7Bits 8Bits
BaudRate StopBits
9600 19200 38400 57600 115200 1Bits 2Bits
Link to Cnc
Fig. 9-4
Note: CommPort is a Rs232 communication port.
BaudRate should be identical to the setting of parameter #168 of
the controller.
ParityCheck For compatibility with the H8 Series, it is fixed to
☉Even.
DataBit For compatibility with the H8 Series, it is fixed to
☉7 Bits.
StopBit For compatibility with the H8 Series, it is fixed to
☉2 Bits.
9-4
Chapter IX PC RS232C Connection
Key Description:
PlcBit : Display the I / O / C / S / A signal status.
VarUser : Display variable 0 ~ 9999.
VarSys : Display variable 10000 ~ 13999.
CncInfo : Display system special variable 10900 ~ 10999.
McmData : Display the MCM parameters.
Motion : Reserved.
FileSvc : Data transmission (*Note 1).
MDIgo : Press this key to execute a block command after it is entered in
the message field.
ReSeT : Reset the controller.
9-5
HUST H8-M Operator’s Manual
Select the controller data to be read on the PC and press the RecvIn key.
The PC starts to read data and stores it memory temporarily. Press the
SaveFile key and type a filename.
After selecting the desired item, press the OpenFile key and enter the
filename to be sent. Press the SendOut key after the PC reads the file and
stores it in memory. ˇ W2Flash represents data that is automatically
burned to Flash-Rom after being sent.
9-6
Chapter IX PC RS232C Connection
2. Power is supplied via USB and wait for the connection between the
controller and USB device (yellow light appears).
3. After connection, press and hold the D2 key for 3 seconds to enter the
operating screen (as shown below).
9-7
HUST H8-M Operator’s Manual
Note: ※To download data, move the cursor to the file to be downloaded
and press the required function key.
※ To upload data, enter a filename and press the required function key.
※ Press the Main Screen, Reset, or D2 key to quit the operating
interface.
※ Reset the system after ZNDC operation.
9-8
Chapter IX PC RS232C Connection
The following figure shows how to connect the HUST H8 CNC controller
to a PC. Attention should be paid to the following during connection:
1. The cable between the RS232 port and PC should not be more than 15
meters.
OOOOOO
I 傳 手 編自
6 6 6 6 6 7 6
X3Y3Z1A778899
3
U3V3W
3 1G44 55 66 DCE DCE
I2J2K1F1122 33
2
R3S3T2M
3 1 10 1#
F F F F F
5 5 5 5 5
4
4
N
4 2 4 4
4 4 5 4 輸
4
2 3
TXD 3 2 RXD
RXD TXD
DB9LM DSR
4 20
DTR
DB25LF
5 7
CONNECTO SG 6 6 SG CONNECTO
R DTR 7 4 DSR R
CTS 8 5 RTS
RTS CTS
2 2
TXD 3 3 RXD
RXD TXD
DB9LM DSR
4 4
DTR
DB9LF
5 5
CONNECTO SG 6 6 SG CONNECTO
R DTR 7 7 DSR R
CTS 8 8 RTS
RTS CTS
9-9
HUST H8-M Operator’s Manual
9 - 10
Chapter X Error Message Explanations
Error Message
Message:
MCM parameter settings are incorrect or the memory battery has low
power.
Recommended Remedy:
1. Check that the MCM parameters are correct, or enter “MDI” mode.
Execute command “G10 P1000” to clear the incorrect parameters and
reset the program.
2. If the controller has not been switched on for more than one year, the
data in the memory will be lost. If the controller generates a (BT1) low
power message, contact the dealer.
Message:
An error occured in the servo loop system. The possible error conditions
include:
10 - 1
HUST H8-M Operator’s Manual
1. The control unit is sending commands too quickly, and the servomotor
cannot respond in time.
2. The control unit is not receiving feedback.
Recommended Remedy:
1. Verify that the F value is set appropriately.
2. Verify that the resolution is correct.
3. Make sure that the machine and motor are functioning appropriately
and the wiring is correct.
Message:
One of the M02, M30 and M99 counters exceeds the settings of MCM
#13266.
Recommended Remedy:
1. Clear the MCM #13265 counter value to 0 and press the Reset key to
remove the error.
Verify that the G70, G71, G72, and G73 formats are correct.
Recommended Remedy:
10 - 2
Chapter X Error Message Explanations
Determine whether the variables in the program are 0 and correct them if
necessary.
Message:
A block in the program contains more than 64 characters.
Recommended Remedy:
Check the program and make sure that no block contains more than 64
characters.
Message:
An error in the RS232C communication signal of the controller.
Recommended Remedy:
1. Check to make sure that the baud rate of the controller (i.e. MCM #168)
is the same as the baud rate of the computer or MMI.
2. Check the cable connection between the controller and the computer or
MMI.
Message:
An error in program memory. The battery may have no power or the data
size may exceed the memory capacity.
Recommended Remedy:
10 - 3
HUST H8-M Operator’s Manual
Message:
An incorrect G-code exists in the program data of the HUST H8-M Series
controller and cannot be accepted.
Recommended Remedy:
Check the program and make sure the G-code is correct.
Message:
The tool moves beyond the pre-set hardware over-travel limit.
Recommended Remedy:
Use the JOG (single step) function to return the axial movement from the
limit to within normal range.
Message:
Program end error (M02, M30 missing).
Recommended Remedy:
Check the end of the program and add an M02 or M30 block.
ERROR-19
10 - 4
Chapter X Error Message Explanations
Message:
An error occurs during G8x drilling canned cycle.
Recommended Remedy:
Check if the current Z-axis coordinates are between the R and Z settings.
Message:
The program runs beyond the software over-travel limit.
Recommended Remedy:
Check the program or reset the #9100~#9107 software over-travel limit (+)
and #9120~#9127 software over-travel limit (-).
Message:
The controller is now in the emergency stop state.
Recommended Remedy:
After the cause of the emergency is removed, restore the emergency stop
button and press “reset”.
Message:
Subprogram calls exceed 8 levels.
Recommended Remedy:
Modify the part program and make sure the subprogram calls do not exceed
8 levels.
Message:
The arc command or data format in the program is incorrect.
Recommended Remedy:
10 - 5
HUST H8-M Operator’s Manual
Check the part program and recalculate the intersection of the arc. Make
sure the coordinates of the intersection point are correct.
Message:
The controller battery (BT1) has failed.
Recommended Remedy:
Replace the battery (BT1).
Message:
The PLC program does not exist.
Recommended Remedy:
Check that the PLC simulation program exists in the FLASH ROM and is
properly inserted (EVN, ODD location).
Message:
10 - 6
Chapter X Error Message Explanations
Recommended Remedy:
Check the selected execution mode for correctness.
ERROR-37 NC ALARM
Message:
An error occured in the external control device.
Recommended Remedy:
Check the external control device. Fix the error and RESET the function.
ERROR-50~99
Message:
The user defined G65 error signal is incorrectly set.
Recommended Remedy:
Verify that the user defined G65 error signal is correctly set.
10 - 7
HUST H8-M Operator’s Manual
10 - 8
Chapter XI Attachment A
11 Attachment A
11.1 How to Chose a Servo Motor with Appropriate Inertia
Choosing a servo motor with appropriate inertia.
As shown in servo motor catalogues, the maximum JM setting can be 10
times greater than JL
According to an experienced rule of thumb, the JM setting is 5 times greater
than JL
JM = Motor inertia (refer to servo motor catalogues)
JL = Load inertia (refer to the formula described in the next section)
ÖActually, the motor will operate slowly when JM is 10 times greater than
JL; hence it is set to a value that is 5 times less.
(a) Gear
Servo Motor
(c) Roller
(b) Gear R
Fig. 11-1
JL Formula:
(b) Gear Inertia (c) Roller Inertia
Load Inertia J L (a) Gear Inertia
(Grar Ratio)2
Unit: kg.cm2, kg.m2×10-4
Description:
1
1. (a) Gear, (b) Gear, (c) Roller with rotary inertia : MR 2
2
2. M Mass , R Radius
(b) Number of Teeth
3. Gear Ratio
(a ) Number of Teeth
11 - 1
HUST H4 Controller
2) Table Inertia
(a) Gear
Servo Motor
R
(b) Gear
(d) Table
(c) Ball
Fig. 11-2
Screw
JL Formula:
(b) Gear Inertia (c) Ball Screw Inertia (d ) Table Inertia
Load Inertia J L (a) Gear Inertia
(Gear Ratio) 2
Unit: kg.cm2, kg.m2×10-4
Description:
1
1. (a) Gear, (b) Gear, (c) Ball Screw with rotary inertia : MR 2
2
2. M Mass , R Radius
P 2
3. (d )Table Inertia )M(
2S
4. M Mass , P Pitch , S 3.1416
(b) Number of Teeth
5. Gear Ratio
( a ) Number of Teeth
Table Inertia:
Note: Check Table 11-1 for table inertia if M and P are given.
Note: Check Table 11-2 for the ball screw inertia if the screw diameter
and weight are given.
Note: Check Table 11-3 for the ball screw inertia if the screw diameter
and length are given.
Example:
Assume 1. Gear a: 100g, 40mm
2. Gear b: 300g, 120mm
3. Ball screw: 6kg, 20mm with a pitch 5
11 - 2
Chapter XI Attachment A
4. Table: 60kg
5. Gear ratio = 5 : 1
P 2
Table Inertia: M( ) *P: unit - cm
2ʌ
2
: 60×(0.5cm÷6.2832)
: 0.380
Ball Screw Inertia: We can determine that it is 3 by checking
Table 11-2.
5.4 3 0.380
2
) + 0.2 = 0.351 + 0.2 = 0.551 kg.cm2
(5)
11 - 3
HUST H4 Controller
Ex.:
How to choose a winding machine; aluminum foil is used for the
tension motor
Known conditions:
Outer diameter of aluminum foil: 240mm
Inner circle diameter: 40mm 40 mm 240 mm
Weight: 15kg
Maximum winding speed: 20m/min
Calculation:
Rotary inertia during loading Formula: 1/2 MR2 M (mass) R(radius)
Result: 1/2 ×15 × (12)2=1080 Kg.cm2
(Rotor inertia)
[Inertia can be reduced by utilizing the gear ratio, as the rotary inertia (rotor
inertia) is too high.]
Minimum Circumference x Rotational Speed (rpm) = Distance
Minimum Radius =40 mm ÷2=20 mm
Minimum Circumference 2 ×3.1416 ×20=125.66 mm
125.66 mm ×rpm=20000 mm rpm=159.159
[It is assumed that the gear ratio is 6 : 1 (the motor rotates 6 turns while
the aluminum foil rotates 1 turn)]
1080 Kg.cm2 ÷62 (Gear Ratio)2=30 Kg.cm2 (Rotor Inertia)
Since it is not suitable for a low-inertia motor to work with inertia that is 5
times greater than the original inertia, we choose a medium-inertia motor.
A medium-inertia 1 KW motor, which rotates at 2000 rpm, has a rotor
inertia of 7.82 Kg.cm2.
7.82 Kg.cm2 ×5=39.1 Kg.cm2. 39.1 Kg.cm2>30 Kg.cm2
159.159 (rpm) ×6 (gear ratio) = 955 rpm 2000 rpm>955 rpm ×2
[The maximum rotational speed (rpm) of the tension motor (approximately
11 - 4
Chapter XI Attachment A
twice its normal speed) can be used as the following speed, as the
following feed of the motor should be taken into account.]
11 - 5
HUST H4 Controller
11 - 6
Chapter XI Attachment A
11 - 7
HUST H4 Controller
11 - 8
Chapter XI Attachment A
Example:
11 - 9
HUST H4 Controller
11 - 10
12 Attachment B
12.1 NPN-RELAY
ON DIP ON DIP
O9
GND
24V 1 2 3 4 5 6 7 8 SW3 1 2 3 4 5 6 7 8 SW1
SW4
24V
DIP
1 2 3 4 5 6 7 8
O8
24V
ON
O7
DIP
1 2 3 4 5 6 7 8
24V
O6
ON
24V
SW2
24V
O5
O10
24V
155 24V
O4
O11
24V
24V
O3
O12
24V
24V
O2
O13
24V
24V
O1
O14
24V
24V
O0
O15
24V
107
1. Turn the DIP Switches (SW1 ~ SW4) to OFF when the output board
is switched to “Dry Contact Mode”.
ON DIP ON DIP ON DIP ON DIP
Make sure the DIP Switches 1 of SW1 and SW3 are turned to “OFF”.
ON DIP ON DIP
24V O0
1 2 3 4 5 6 7 8 SW1 1 2 3 4 5 6 7 8 SW3
1. Turn the DIP Switches (SW1 ~ SW4) to ON when the output board is
switched to “Voltage Output Mode”.
ON DIP ON DIP ON DIP ON DIP
2. When the Output 7 is configured as voltage output and the rest as dry
contact output, connect Output 7 to the NO/24V terminal, and the rest
to the NO/COM terminal.
(1) When the DIP Switch 8 is turned to ON with Output 7 configured
as output, the voltage measured at the NO terminal and O7 will be
0V and 24V respectively.
(2) This output board is NPN-TYPE.
Make sure the DIP Switches 8 of SW1 and SW3 are turned to “ON”.
ON DIP ON DIP
24V O7
1 2 3 4 5 6 7 8 SW1 1 2 3 4 5 6 7 8 SW3
12-2
Supplement Voltage Output Mode:
1. SW1 ~ SW2(O0∼O15):
(1) Catch Diode.
(2) Prolong the life of a relay.
24V NO COM
2. SW3 ~ SW4(O0∼O15):
(1) When a DIP Switch is turned to ON, COM = 24V GND.
(2) During output, NO and COM = 24V GND.
12-3
12.2 I/O Connection
I-point Table
12-4
O-point Table
Note: If not all 7 axes are used, please create a short circuit for the
I-point limit signal corresponding to the axes that are not used.
Example: If only 5 axes (XYZAB) are used, please create a short
circuit for the limit signal I09-I12 for the C- and U-axis.
12-5
M CODE
M03 ÍSpindle rotation CW M10 ÍLubricant on (O5 ON)
M04 ÍSpindle rotation CCW M11 ÍLubricant off (O5 OFF)
M05 ÍSpindle stop
M8 ÍCoolant on (O2 ON) M9998 ÍUnlock the MCM
Password
M9 ÍCoolant off (O2 OFF)
M202 ÍBlock display (ON) M201 ÍBlock display (OFF)
T CODE
T7 ÍO10 ON, O11 OFF
T8 ÍO11 ON, O10 OFF
T9 ÍO10 OFF, O11 OFF
12-6
12.3 Servo spindle applicaion
Setting: 1.Enter the parameter page 2 and set “Spindle Type” to 1 (Servo).
(For details, refer to chapter VII)
2. The “Spindle Direction” option can be used to change the
spindle direction when the direction is wrong.
3. For H8CM, if the servo is used as spindle, the actual position of
the spindle will be used as the zero point during each startup.
When the spindle is receiving a stop command, it will stop at
this point. Therefore, this point can be set in “In-position angle
at the stop of the spindle” or execute G15 Rxx in MDI mode to
define the spindle position.
12-7
Description setting of H8 servo main shaft original point:
Setting procedure:
1. Enter parameter table and set related parameter setting of V axis. (Enter
parameter table, please see description on Page 7-1 of the manual.)
Parameters that must be included in the setting:
MCM#9014 V axis resolution denominator
MCM#9015 V axis resolution numerator
Find GRID point distance on MCM#9247 V axis. (If it could not be found in
setting value, DRID will show ERR26 mesasge.)
MCM#9267 V HOME LIMIT IPPUT NO (preset at 8) .
MCM#9287 V axis original point is deviated. Setting is required only when
deviation of original point is used for positioning of main axis.
Other V-axis related setting shall be revised and programmed depending on
requirements.
2. Main axis setting closed circuit control (MCM#8353=1).
3. Turn knob to original point mode.
4. F3 will show optional functions of main axis original point as shown below.
(Main axis will appear only in closed circuit.)
12-8
Description of main axis positioning method:
After main axis has completed returning to original point action, and the command to
stop M05 main axis is given, it will set the position according to the positioning angle
setting of main axis.
How to revise setting value:
1. Before main axis original point is completed, enter Page 2 of MCM parameter
setting, to revise setting of main axis positioning angle.
2. After completion of main axis original point action, use G15RXX to set
positioning angle of main axis.
Ex. In MDI mode, input G15R90 to set the positioning angle at 90 degree
position
* When methods 1 and 2 are used to set the position of main axis, the deviation
value of V-axis original point in the parameters should be zero
(MCM#9287=0).
3. In setting V-axis original point deviation, before main axis original point action,
first set the deviation value of original point on V axis, when original point on
main axis is set, the position of V-axis original point deviation is the position to
stop when main axis give M05 command, when position is made for original
point deviation, the aforementioned methods 1 and 2 are not necessary.
Ex: #91014=10000 #9015=36000 #9287=9000 (this setting represents one
circle=36mm each mm=10 degrees)
V axis returns to original point with deviation of 9mm=90 degree position,
when switch back to main axis, main axis will set the 90 degree position
and the stop position for M05 command.
* When original point deviation is used for positioning, parameter positioning
angle setting should be zero. (MCM#9299=R191=0)
※ MESSAGE 6 [main axis close message], because when main axis original point is
acting, PLC will switch between main axis and axial shaft, resulting in temporary
switching off of main axis operation, so it is a normal message, until after main
axis original point operation is completed, switch the image or use replacement to
erase it.
※ Main axis original point operation, after each switching on and completion of
transmission, it is necessary to renew operation once, so positioning point will not
be displaced, after completion of the operation, no operation is necessary.
Execution is needed again after re-starting re-transmission.
12-9
12.4 In-position application
Setting:
Master/Slave Mode: Set 265 for non-stop mode (MCM8336)
IN POSITION: unit pulses (MCM8340)
Description:
1. When machining is performed at a short section and a value is set
in IN POSITION, its speed should be set in accordance with the
line section distance between blocks. An unreasonable speed value
will result in a calculation error due to a faster speed value.
Reasonable speed equation:
F=Number of blocks processed by controller per second * Line
section distance between blocks * 60
For H8CM, when three axes operate simultaneously, 200 blocks
can be processed in one second.
Assuming that the average distance between blocks is
approximately 0.01 mm.
Place these values in the above equation: F=200*0.01*60=120 ㎜
/min
12-10
operates smoothly.
When the Master/Slave Mode (MCM8336) is set to 256,and IN
POSITION (MCM8340) is set to 100 (Fig. 2), the next block will
not be performed until the given setting value is reached. At this
time, speed adjustment will be performed and the operation will be
slightly affected with better precision.
Ex.:
G00 X0. Y0.
8336=0 Y
G01 X10.Y10.F200.
8340=0
X20.Y0.
X30.Y10. 8336=265
X40.Y0. 8340=0
X50.Y10. 8336=265
X60.Y0. X
8340=100
M30
X-Y Path
F
Y
S
8336=0
8340=0
Oscillogram 1
F F
IN POSITION
X X
S
Y Y S
8336=256 8336=256
8340=0 8340=100
Oscillogram 2 Oscillogram 3
12-11
12-12