Академический Документы
Профессиональный Документы
Культура Документы
User Manual
(Volume I: Specifications and Programming)
Foreword
Dear user,
We are really grateful for your patronage and purchase of GSK983M milling CNC
system made by GSK CNC Equipment Co., Ltd.
All specifications and designs herein are subject to change without further
notice.
We are full of heartfelt gratitude to you for supporting us in the use of GSKs
products.
CONTENTS
1. GENERAL .................................................................................................................................... 1
1.1 Overview............................................................................................................................................ 1
1.2 Introduction to the Manual ............................................................................................................. 1
2. SPECIFICATIONS ........................................................................................................................ 2
3. PROGRAMMING........................................................................................................................ 13
3.1 What Is Programming? ................................................................................................................. 13
3.2 Program Make-up .......................................................................................................................... 13
3.2.1 Block ........................................................................................................................................................14
3.2.2 Program word ........................................................................................................................................14
3.2.3 Input format ............................................................................................................................................16
3.2.4 Decimal programming .........................................................................................................................18
3.2.5 Maximum instruction value .................................................................................................................19
3.2.6 Program number ...................................................................................................................................20
3.2.7 Sequence number ................................................................................................................................21
3.2.8 To skip over an optional block............................................................................................................21
3.3 Dimension Word ............................................................................................................................ 23
3.3.1 Controllable axis ...................................................................................................................................23
3.3.2 Set unit ....................................................................................................................................................25
3.3.2.1 Minimum set unit and minimum travel unit..............................................................................25
3.3.2.2 Input unit10 ..................................................................................................................................26
3.3.3 Maximum travel .....................................................................................................................................26
3.3.4 Program origin and coordinate system ............................................................................................26
3.3.5 Coordinate system and origin of processing ..................................................................................27
3.3.6 Workpiece coordinate system............................................................................................................27
3.3.7 Reference (position) point ..................................................................................................................28
3.3.8 Absolute value instruction and incremental value instruction .....................................................29
3.4 Feed Function (F function) .......................................................................................................... 30
3.4.1 Rapid traverse (positioning) function ...............................................................................................30
3.4.2 Cutting feedrate ....................................................................................................................................30
3.4.3 To reduce feedrate to 1/10..................................................................................................................31
3.4.4 Synchronous feed (feed per rotation) ..............................................................................................31
3.4.5 F1 digit feed ...........................................................................................................................................32
3.4.6 Automatic acceleration and deceleration ........................................................................................33
3.4.7 Automatic angle adjustment ...............................................................................................................34
3.4.7.1 Automatic adjustment of inner angle ........................................................................................34
3.4.7.2 Switch of inner arc cutting feedrate ..........................................................................................37
3.5 Preparation Function (G function) .............................................................................................. 38
3.5.1 Selection of planes (G17, G18, G19) ...............................................................................................40
3.5.2 Positioning (G00) ..................................................................................................................................41
3
1. GENERAL
1.1 Overview
As a high-accuracy and high-performance closed-loop CNC system with firmware, GSK983M
milling CNC system (hereinafter called System) was newly developed and launched by GSK
CNC Equipment Co., Ltd. to satisfy the demands of NC market and intended for CNC milling
machine and processing center. By employing a high-speed microprocessor, a general large scale
integrated circuit (LSI), a semiconductor memory and up-to-date storage elements, the reliability
as well as performance-to-price ratio of its control circuit are greatly improved, thereby facilitating
the reliability, functions/ performance to price ratio to a large extent.
With a widely applicable advanced servo, GSK983M milling CNC system uses a high-duty pulse
encoder as its detecting element, thereby composing a closed-loop CNC system.
This operating manual describes all available functions of the system. However, a real unit may not
necessarily be provided with all the optional functions. Should the specifications of the control panel
and operating mode of the machine change, the instruction manual supplied with the machine by the
manufacturer shall be referred to.
2. SPECIFICATIONS
Serial
No.
Designation
Descriptions
Controllable axes
Number of concurrently
controllable axes
Incremental system
0.001mm
0.0001 inch
0.001
0.001mm
0.0001 inch
0.001
Pulse encoder
99999.999 mm
9999.9999 inch
99999.999
Input format
Decimal point
programming
Rapid traverse
Miscellaneous function
(Bit M2)
Changeable
employed.
block,
character
and
address
formats
are
Automatic
acceleration/deceleration
11
Absolute/incremental
value instruction
12
Coordinate system
setting (G92)
13
Positioning (G00)
14
Linear interpolation
(G01)
Buffer register
When executing a block, the unit reads the next one in buffer
register in advance. In this way the intermittence of the NC
instruction operation caused by the time required for reading
may be avoided. While inputting data in buffer register, BUF will
appear on the lower right of LCD screen.
16
Dwell (G04)
17
18
19
Miscellaneous function
(Bit M2)
Dry run
10
15
20
21
Interlock
22
Single block
23
External mirroring
25
26
27
28
29
To feedrate feed
The function is used to temporarily stop the feed of all axes that
can be restarted by pressing Cycle Start button. Before the
restart of feed, it is possible to insert manual operation in
manual mode.
30
To cancel override
Emergent stop
24
31
32
Overtravel
NC Ready signal
35
36
NC warning signal
33
34
37
Distribution Completed
signal
NC outputs the signal when the motion order ends up. If the
functions of M, S, T or B and motion instruction are active in a
block, the signal is given after the completion of the execution of
traveling instruction and the functions of M, S, T or B can be
executed.
38
39
40
(1) JOG feed: For JOG feedrate, the rotary switch may be used
for 24-step switching. The ratio of 24-step is geometric
progression.
(2) Manual rapid traverse: Rapid traverse may also be achieved
by manual means. Rapid traverse override may be used for
the rapid traverse speed set by parameters. Rapid traverse
override is an optional function.
Manual continuous feed is available for 2 axes at one time.
42
Incremental feed
43
Sequence number
searching
44
Program number
searching
41
45
46
47
48
49
Clearance compensation
Environmental
conditions
Self-diagnostics
S function/T function
(BCD2 bit)
51
52
Thread cutting
/synchronous feeding
Position coder
54
55
Code standards
50
53
56
57
58
59
60
61
63
64
The selection of a
workpiece coordinate
system
62
65
Automatic setting of a
coordinate system
Tool radius
compensation B, C
(G40G42)
Tool length
measurement
70
Divide the tools in the cutting tool room into several groups and
specify service life for each group of cutting tools. Accumulate
the tool processing time or processing number that serves as
the evaluation standard for tool life whenever a tool in the
groups is used. The next cutting tool in the predetermined
sequence is automatically selected in the same group when the
tool reaches its service life.
71
72
73
66
67
68
69
74
75
76
77
78
79
Using G02 (or G03) may achieve any arc interpolation within
0360 with the feedrate of F code instruction.
G02: Clockwise (CW)
G03: Counterclockwise (CCW)
80
Sine-curve interpolation
When an axis in the arc plane does not move (the axis is
considered as an imaginary axis) in the spiral-curve
interpolation instruction, the other 2 axes may be used for
sine-curve interpolation.
81
82
External deceleration
83
External workpiece
number search A
84
85
Automatic acceleration/
deceleration of cutting
feed
10
87
88
Program restart
89
Unidirectional positioning
90
91
Zoom
92
Insertion of a manual
tray
93
Automatic angle
adjustment
95
Sequence number
comparison stop
Once the block with the same sequence number as the preset
one appears in the execution of a program, a single block will be
in stop status when the execution of the program ends. The
function is used to check a program.
96
Menu switch
86
94
97
11
User macros
A and B
99
Graphic display
100
101
PLC
PLC MODEL-A
PLC MODEL-B
Quantity of input
points
192 points
192 points
Quantity of output
points
128 points
128 points
Program step
Up to 2,000
steps
Up to 5,000 steps
12
3. PROGRAMMING
3.1 What Is Programming?
NC processing machine operates by developed programs. To process a part on the NC machine,
the route and other processing conditions of cutting feed shall be included in the program. The
program is called part program.
The following diagram indicates the processes from preparation of detail drawing to NCs
execution of the processing program.
Detail drawing
(1)
(2)
(3)
(4)
(5)
Processing plan
Part programming
Part program is an NC instruction for controlling feed route and the auxiliary movement of a
machine written according to the rules for NC. The instructions are usually written in a program list.
This chapter will describe how to develop a part program.
13
Main program
Subprogram
Instruction 1
Instruction 1
Instruction 2
Instruction 2
Instruction n
Instruction n+1
Note: The number of programs that can be stored will be increased to 191 if the function
Addition of the number of storable programs (Optional) is selected.
Refer to Chapter 4: Operations for the storage method of program.
3.2.1 Block
A program is composed of a number of instructions. Each instruction unit in a program is called a
block. Blocks are distinguished from each other by end code. As described below, end-of-block
code is indicated with a ;.
For example:
XXXX;
XXXX;
XXXX;
Note 1: The maximum number of characters a block is not limited in.
Note 2: End-of-block code: CR for EIA codes and LF for ISO codes.
function in a program.
Name
Address
Program No.
: (ISO) /O (EIA)
Sequence No.
Sequence number
Preparatory
function
Coordinate word
Meaning
Program number
X, Y, Z
A, B, C, U, V, W
Arc radius
I, J, K
Feed function
Designation of feedrate
Spindle function
Tool function
Auxiliary
function
Offset No.
H, D
Dwell
P, X
Designation of
program No.
Designation of
sequence No.
Number of
repetition
Parameter
P, Q, R
For example, these program words may compose the following block.
Y
Coordinate No.
Preparatory function
Sequenc No.
Miscellaneous
Tool function
Spindle function
Feed function
15
In the following program list, a line indicates a block and a case in the block indicates a program word.
Name
S57.10.10
Page/
A/B/ C/V/
C
W
R/I
J K F
B H/
D
N20 G92 X
Y
Z
100.0 200.0 300
.0
L P Q
N21 G00 X
Y
Z
196.0 315.0 500
.0
S40
0
N22 G01
T1
5
M03
F10.
0
(Note ) CR(EIA)LF(ISO)
NO4G02XL+053YL053ZL+053
RD053
L+053L+053
ID053JD053KD+053
S02
T02
B03M02;
S04
T04
D02
F050
H02
B03M02
16
D02
F032
H02
T04
X50
123
The three digits behind decimal point
The five digits before decimal point: 00050
The leading zero and T are omitted.
G00 must not be omitted even the leading zero may be
omitted. (G00 specifies rapid traverse (positioning)).
Note 3: When an address word in a block is instructed twice or more times, the last instruction will be
valid and not give any alarm in principle.
For example: G01 M03 S200 M08;
Now M08 is valid and M03 invalid. For G codes, the lastly specified one in each group of G
codes in a block is valid. However, G90/G91 is only valid at the specified location in a block
(see Section 3.3.8.).
Example G90
Absolute
X10.0
G91
Y20.0
Incremental
ID052JD052KD052
( and are A, B, C, U, V and W) (Input in metric system) Refer to Section 3.3.2.2 To multiply
an input unit by 10.
Note 8: Refer to Section 3.3.2.2 To multiply an input unit by 10.
F10.0
G041
B90.0
B90deg
The addresses that can be entered with decimal point are as follows:
X, Y, Z, A, B, C, I, J, K, R, Q and F.
Note 1: During the dwell of an instruction, X can be input with the decimal point but P cannot (because
P is also specified with a sequence number).
Note 2: When G codes are used to change the location of the decimal point, it is necessary to
predetermine G codes even in a block. G20; (specify in Inch system ) X1.0G04X1.0 is
considered as a travel distance (in inch) because it does not indicate time. The result is held
for 10 seconds in relation to X10000G04.
When G04 is entered, its indication changes from 1.0 to 10.0.
G04X1.0 is treated as G04X1000 and the result is held for 1 second.
Note 3: Take note that the condition with or without a decimal point is quite different. Its programming
mode differs from an electronic computer.
G21; (specified in metric system)
X1X1 mm
X1X0.001 mm
G20; (specified in Inch system )
X1X1 inch
18
X1X0.0001 inch
Note 4: The numerical values with/without a decimal point can be mixed.
X1000
Y23.7
X10
Y22359
Note 5: If a specified value is less than the minimum setting, the value will be rounded down. The
instruction of X1.23456 is considered as X1.234 when it is entered in metric system and
1.2345 in Inch system . It has cumulative error for an incremental value instruction and has no
cumulative error but rounding error for an absolute value instruction. The instructed digits must
not exceed the allowable maximum digit.
X1.23456789There is an error because it has more than 8 digits.
X1.2345678 There is no error when it is up to 8 digits inclusive.
Note 6: When a figure with a decimal point is entered, the figure will be converted into the integer of the
minimum input increment.
(Example)X12.34
In addition, it is necessary to perform digit number verification for the converted integer.
(Example)X1234567.8
Name
Program No.
Sequence No.
Address
Input in mm
Output in mm
Input in inch
Output in mm
Input in mm
Output in inch
Input in inch
Output in
inch
: (ISO)
O (EIA)
19999
19999
19
099
Coordinate word
X, Y, Z, I,
J, K, Q, R,
A, B, C,
U, V, W
99999.999mm
99999.999
3937.0078inch
99999.999
99999.999mm
99999.999
937.0078inch
9999.999
115000
mm/min
0.01600.00
inch/min
115000
mm/min
0.01600.00
inch/min
0.115000.0
mm/min
0.115000.0
mm/min
Spindle function
030000
Tool function
09999
Miscellaneous
function
099
X, P
0s99999.99s
19999
19999
S, H
0200
0999
Dwell
Sequence
setting
No.
Repeated times
Offset No.
2nd
auxiliary
function
02222M30
#1111 program
#2222 program
M02 and M30 indicate the end of a main program. M99 indicates the end of a subprogram.
20
05555M99
#5555 subprogram
Note 1: For ISO codes, replace O with a :.
Note 2: The block with an optional block skip code such as /M02, /M30 and /M99 shall not be deemed
as the end of a program.
Note 3: When a program is not provided with a preceding program number, the first sequence number
(N) other than NO of the program may be used to replace the program number.
Note 4: If a program is not provided with a preceding program number or sequence number, MDI/LCD
panel shall be used to specify a program number when storing the program into the memory.
Note 5: For several programs, the second program and the succeeding ones are not necessarily
provided with an EOB code skipped wit a mark. However, an EOB code shall be used before
the program when the foregoing program ends by ER (EIA) or %(ISO).
Note 6: It is possible to operate without a program number. Subprogram shall be provided with a
program number.
Note 7: In some cases, the program number from 9000 9899 can only used by machine
manufacturer rather than user.
Note 8: When it has a robot option, program numbers 99009999 are used as robot data.
Note 9: When there is no M02, M30 or M99 but ER (EIA)%(ISO) at the end of the program, or the next
program number is 0, the end of the program shall be set by parameter No.306 BIT3 (NEOP).
OPTIONAL BLOCK SKTP switch n is enabled on the operation panel , the block with a /n
corresponding to switch number n will be ignored.
When the OPTIONAL BLOCK SKTP switch n is disabled, the block with a /n is valid, namely
operator may choose to skip over the block with a /n. The 1 in /1 can be ignored. However, the
1 in /1 must not be ignored when two or more OPTIONAL BLOCK SKTP switches are used.
When an OPTIONAL BLOCK SKTP switch is enabled, the ignored area is as follows:
/2N123G01X4N7856
Ignored area
Example:
N100X100
N101/2z100
N102/2/3X200
N103/3z200
In the above example, blocks N101 and N102 will be skipped over when No. 2 switch is
enabled and N102 and N103 skipped over when No. 3 switch enabled.
Note 1:Slash (/) shall be specified at the beginning of a block. If it is specified at other places of a block,
the information from the slash (/) to EOB code will be ignored but the information before the
slash (/) will remain valid.
Note 2: When the OPTIONAL BLOCK SKTP switch is enabled, TH and TV checkouts shall be
performed for the skipped part as the switch is disabled.
Note 3: The block to be skipped over is identified when the memory sends information to the buffer
register. When the block preceded by a slash is written in the buffer register, it will not be
ignored even if the OPTIONAL BLOCK SKTP switch is enabled.
Note 4: The function remains available during sequence number searching.
Note 5: The function is invalid when saving a program in the memory. That is, the block preceded by a
slash (/) will be written in the memory regardless the state of OPTIONIAL BLOCK SKIP.
Note 6: The programs may be completely output from the memory regardless the state of OPTIONIAL
BLOCK SKIP.
Note 7: Some OPTIONIAL BLOCK SKIP switches are likely to be unavailable for some machines.
Therefore, it is necessary to consult the machine manufacturer for the number of usable
switches.
Note 8: For the system with additional function to skip over an optional block, the 1 in /1 must not be
omitted if there are two or more marks for skipping over an optional block in one block.
/1 shall be specified as per the above requirements.
Example: Incorrect:
22
Meaning
X, Y, Z
Additional axes
A, B, C, U, V, W
Arc
interpolation
parameters
Basic axes
I, J, K
Number of
standard
axes
Selection of
concurrently
controllable
additional axes
Concurrent
selection
of 3 axes
3
23
Concurrent
selection of 3 axes
+ Concurrent
control selection of
additional axes
Concurrent
selection of
4 axes
X, Y, Z
3
(Including
additional axes)
Note 1: The system gives #17 alarm if additional axes (A, B, C, U, V, W) are specified without
additional control function.
Note 2: The number of link axes is always 2 in manual operation.
Note 3: When the system has the 5th axis, the following function control shall be exerted.
Thread cutting and synchronous feed cannot be performed.
The capacity of part program is reduced to 75%.
Additional S4 digit analog output function is not available.
Additional constant surface speed control function is not available.
Coordinate axes and movement symbols
If the machine coordinate axes specified by the machine are not identical with the tool
movement symbols, programming is subject to serious disorder. The concerned basic
concepts are provided in EIA RS-267-A or ISO841.
However, the following points shall be observed during programming.
a) Program shall be developed on the basis of a standard coordinate system (right-manual
rectangular coordinate system).
b) When programming, assume that workpiece does not move and a cutting tool moves around
it.
24
Linear axis
0.001mm
0.001mm
0.0001inch
0.001mm
0.001mm
0.0001inch
0.0001inch
0.0001inch
0.001
0.001
Axis of rotation
Note: The set unit of an axis of rotation cannot be converted between Inch and metric systems.
Whether the minimum travel unit is 0.001 mm or 0.0001inch shall be determined by the
machine and selected by presetting parameter No.006 BIT0 (SCW).
Whether the minimum travel unit is 0.001 mm or 0.0001inch shall be selected by G codes or by
setting parameter through MDI/LCD panel.
G20The minimum set unit of a linear axis is 0.0001inch.
G21The minimum set unit of a linear axis is 0.001mm.
The state of G20 and G21 remains unchanged when the system is powered on/off.
25
Address
Input in mm
Input in inch
Dimension word
X, Y, Z, Q, R, I, J, K, U, V, W
0.01mm
0.0001inch
Revolution axis
A, B, C
0.01
0.01
0.01s
0.001s
0.01s
0.001s
Dwell time
Others
Note 1: In the following descriptions herein, input unit is either 0.0001inch or 0.001mm.
Note 2: Display unit may become 0.01mm or 0.01 degree by parameter No.006 BIT2 (MDL)
setting.
and
99999.999mm
99999.999
Input in mm and
output in inch
3937.0078inch
99999.999
99999.999mm
99999.999
9999.9999inch
99999.999
Note: The travels listed in the above table change depending on different machines.
26
27
It is not necessary to establish a coordinate system with G92 instruction when the
above-mentioned workpiece coordinate system is used. Concurrent use of G54G59 and
G92 may substitute the coordinate system established by G54G59. Therefore, usually G92
shall not be used in conjunction with G54G59.
Note: When using the workpiece coordinate system established by G54G59, make sure to
return to the first reference point after switching on so that G54 will automatically generate a
workpiece system. Hence it is not necessary to set an automatic coordinate system.
28
Note: G92 instruction is not necessary when the workpiece coordinate systems established
with G54G59 are used.
In the above diagram, the program will give the following position when an incremental
instruction is employed:
G91 X-60.0 Y40.0
In the above diagram, the program will give the following position when an absolute instruction
is employed:
G90
X40.0
Y70.0
29
The instruction mode of G90/G91 must not be changed for all addresses in a block so that the
program can be compatible with other NC.
X200.0 Y200.0
The times for axes X and Y of the machine to run from the starting point to the end point are
24s and 15s respectively.
The locus of the cutting tool in the above example is as indicated in the figure below:
The control over the override of the rapid traverse speed can be achieved with the switch on
the operation panel of the machine. (FO, 25%, 50%, 100%) FO shall be determined by
setting parameter No.113 (SPDFL) and its unit shall not be indicated in percentage (%) but
mm/min or inch/min.
F032
When inputting in metric and Inch system s, decimal point may be used for inputting
and it is located in the position of degree/min.
To input in metric system F12
To input in Inch system
F12
0.12 degree/min
0.12 degree/min
F12.0
12 degree/min
12 degree/min
Note 1: Except the acceleration and deceleration processes in the row of NC, NCs calculus error
regarding instructed feedrate is kept within 2%. Moreover, the error is determined by
measuring a travel distance over 500mm when NC is in stable running state.
Note 2: The number of the digits of F codes is up to 7. Should the input feedrate is above the upper
limit, the feedrate is restrained to the upper limit.
Range
0.1mm/min
Synchronous feed
Meaning
Address
G code
G94
G95
Input in
mm
1mm/min15000mm/min
(F1F15000)
0.01mm/r500.00mm/r
(F1F50000)
Input in
inch
0.01inch/min600.0inch/min
(F1F60000)
0.0001inch/r50.0000inch/r
Range
Restraining
value
Both the feed per minute and synchronous feed at specific feedrate are
restrained. The restraining value is set by manufacturer (only the feedrate with
override is restrained).
Override
The override from 0 to 200% (10% each step) is effective for both feed per
minute or synchronous feed.
Fma 1
/Manual pulse generator per case
100 X
Where: Fma1 is used as the upper limit of feedrates of F1F4 (set with a parameter).
32
Fma2: is used as the upper limit of feedrates of F5F9 (set with a parameter).
X: Any figure between 1 and 127 (set with a parameter).
Set or modified feedrate can be saved even in case of power failure. The current feedrate is
displayed on the LCD.
Once the dwell instruction is inserted, the actual tool path tallies with the programmed path.
The rapider feedrate is, the greater time constant of acceleration and deceleration and angle
error will be.
Note 1: The changes of feedrate between the blocks that have specified different moving modes are
as listed in the table below.
Foregoing blocks
New blocks
Positioning
Cutting feed
Not to move
Positioning
Cutting feed
Not to move
: The next block will be executed when the instruction speed is reduced to zero.
: Continue to execute the next block so that the feedrate will not change excessively.
Note 2: Acceleration/deceleration is independently performed on both axes (axes X and Z) and their
feedrates changes between blocks, resulting in the discrepancy between the actual path of the
tool and programmed path. For example, if the tool only moves along axis X in a block and
along axis Z in the next block, the movement in the direction of axis X starts to decelerate near
the angle. Meanwhile, it starts accelerated movement in the direction of axis Z. The actual path
33
In arc interpolation, the actual arc radius is less than the programmed on (see the Appendix).
The deviation may be increased by minimizing the time constant of acceleration and
deceleration.
Working conditions
Feedrate can be automatically regulated provided that both the two blocks in succession
passing the angle satisfy the following requirements.
a. The G codes of Group 01 are G01, G02 or G03.
b. The offset is not 0 in offset mode.
c. Offsetting shall be performed inside the angle to be processed.
d. The axis moves along the offset surface.
e. Instructions G41 and G42 do not exit in the succeeding block.
f.
Instructions G41 and G42 do not exist in the preceding block or the block is not started
though it has the two instructions.
34
Straight line
(III) Arc
(IV) Arc
Arc
Straight line
Arc
The angle may be considered as an inner angle when P. The value of P shall be set by
parameter (NO335) (1P179). It is subject to error in judgment less than 0.001 provided
that is nearly equal to P.
Operation range
When an angle is determined as an inner angle, feedrate is regulated from the range specified
by the L in the block on one side of the intersection point of the angle to the range specified
by the Ls in the block one the other side of the intersection point. Ls and L are the straight
distances from one point on the path of the tool center to the intersection point. Land Ls are
35
For the program for an arc, feedrate is regulated from point a to point b and from point c to
point d.
Amount of adjustment
36
G61
Valid
Invalid
G62
Invalid
Valid
G64
Invalid
Invalid
However, if RC is much less than RP, i.e. RC/RP=0, the tool will stop. Therefore, when
RC/RPMDR after the minimum reduction ratio (MDR) is set, the actual feedrate will be FX
(MDR).
37
MDR is set by N0333 parameter. When 1MDR (1% each step)100, it is applicable for F1
digit and commissioning. The reduction ratio of automatic inner angle adjustment is not under
the influence of MDR.
Note: If inner arc cutting is overlapped on automatic inner angle adjustment, now the actual
feedrate will be F
Rc
(angle adjustment) (feedrate override).
Rp
Meaning
Modal G codes
G00
Group
G00
G01
G02
Function
Positioning (rapid traverse)
01
G03
G04
Hold
G07
G09
00
G10
G17
To select XY plane
G18
02
G19
G20
G21
G22
To select ZX plane
To select YZ plane
06
04
Input in inch
Input in mm
Storage travel limit ON
38
G23
G27
G28
G29
00
G30
G31
G33
01
G40
G41
Thread cutting
To cancel tool compensation
07
G42
G43
G44
08
G49
G45
G46
G47
00
G48
G50
G51
G54
11
14
Zooming OFF
Zooming ON
To select workpiece coordinate system 1
G55
G56
G57
14
G58
G59
G60
00
G61
G62
G64
G65
G66
G67
unidirectional positioning
To enable automatic angle adjustment
Cutting mode
00
12
G73
G74
Reverse-tapping cycle
G76
Finish boring
G80
G81
G82
G83
09
G84
Tapping cycle
G85
Boring cycle
G86
Boring cycle
G87
G88
Boring cycle
G89
Boring cycle
39
03
G92
G94
G95
G98
G99
G96
G97
05
10
(Note 1) The G codes marked with ^ are the initial G codes of all groups. That is, these G codes are
established when the system parameters specifying initial G codes are validated by
powering on or pressing the RESET key. For G22 and G23, G22 is selected when power is
switched on and G22 or G23 (one of them is valid before reset) is established after reset.
The selection of the state of the initial G codes such as G00, G01, G43, G44, G49, G90, G91
or G94 and G95 shall be set by parameters ((G00, G43, G44, G90 and G95).
For G20 or G21, the valid one is selected before powering off or pressing the RESET key.
(Note 2) The G codes in group 00 are modal and are only valid in the blocks they belong to.
(Note 3) When a G code not listed in the above table is specified or an optional G code not defined by
control unit is specified, (N0.0/0) will give an alarm. (N0.0/0) But G38 and G39 are ignored.
(Note 4) Some G codes may be specified in the same block even they do not belong to the same
group. When 2 or more G codes than belong to the same group are specified in a block, the
lastly specified G code will be valid.
(Note 5) If any G code in group 01 in fixed cycle mode, the fixed cycle will be automatically disabled
and the system will be in G80 state. However, the G codes in group 01 are not subject to the
influence of the G codes of fixed cycle.
(Note 6) G70 and G71 replaces G20 and G21 (special G codes) by parameter No.008 BIT5 (GSP)
setting.
(Note 7) The G codes of all groups are displayed.
Note 1: The rapid traverse (positioning) rate in G00 instruction is set for all axes respectively by
manufacturer. Therefore rapid traverse (positioning) rate can not be specified through
program.
In the positioning mode of G00, the tool start speeding up until it reaches the predetermined
speed. Then it rapidly travels and finally slows down to the end point. When it comes to the
proper position, the next block is executed in sequence (Note 2).
Note 2: The so-called proper position means motor feed is within the specified range (The range is
determined by manufacturer). The travel instruction in the following format may be specified
provided that the system selects three-axis link function.
G00 XYZ:
In this example, axes X, Y and Z move the tool to designated position in specified rapid
traverse.
When the system selects the linked control function with additional axes, not only addresses X,
Y and Z, but also the addresses of additional axes may be instructed. If they are instructed in
this way, 3 or 4 axes can move at the same time.
Example: X500.0
Y300.0
Z25.0
B20.0:
41
42
X200.0
Y100.0
F200.0
End point
0 Origin
200.0
The feedrate instructed by F codes is the traveling speed of the tool. If F codes are not
specified, the feedrate is considered as 0.
The travel instruction (linear interpolation) with 3-axis gang control function is as follows:
G01
XYZF:
It is possible for the instruction to perform linear interpolation for 3 axes at one time.
When additional gang control function is selected, the addresses (A, B or C) of the fourth axis
may be used to replace X, Y or Z. In this way the 3-axis gang control involving the 4th axis can
be exerted.
Example: G01
X500.0 Y300.0
B20.0
F10.0:
When the system is provided with optional 4-axis gang control functio0n, the use of the
following instruction is allowed.
G01F:
Where , , , = X, Y, Z, A, B, C, U, V or W.
Note 1: Axial feedrates are as follows:
G01 F f:
The feedrate in the direction of axis : F=
The feedrate in the direction of axis : F=
+
L=
2
f
f
Note 2: The feedrate of an axis of rotation shall be instructed in degree/min (input in metric system:
F050; input in inch system: F032).
Example: G91 G01 B90.0 F300:
43
Note 3: In the linear interpolation involving the 4th axis (axis of rotation A, B or C), the unit of cutting
feed is changed from degree to inch (or mm) and the cutting feedrate in rectangular
coordinate system is controlled so that it keeps identical with the speed specified by F codes.
The feedrate of an axis of rotation is determined with the formulas in Note 1 and its unit is
changed into degree/min.
E: G91 G01 X20.0 B40.0 F300.0:
When the unit (degree) of B-axis movement instruction is changed into mm or inch, machining
time shall be determined as follows:
2
20
+ 402
300
=0.014907 (min)
40
=268.3 /min
0.14907
Note 4: For 3- or 4-axis link, the method for calculating the feedrate in rectangular coordinate system is
the same as 2-axis control.
Note 5: For inputting in Inch system and inputting in metric system, the upper limit of the feedrate of an
axis of rotation is approximately 6000/min. The speed is fixed at the upper limit even the
feedrate of an instruction exceeds the upper limit.
R
XY
G03
F;
IJ
44
R
XZ
G03
F:
IK
R
XZ
G03
F:
JK
Item
Instruction
Plane selection
Rotating direction
The position
of end point
Meaning
G17
G18
G19
G02
Clockwise (CW)
G03
Counterclockwise (CCW)
G90 mode
2 of axes X, Y and Z
G91 mode
2 of axes X, Y and Z
2 of axes I, J and K
Arc radius
Once the unit is switched on, G17 is enabled as the initial code for plane selection.
Whether it is in clockwise or counterclockwise direction depends on the left-manual or
right-manual coordinate system.
The end point of the arc is determined by address X, Y or Z and its indication in absolute or
incremental value by G90 or G91. In incremental indication, the coordinate of the end point is
specified from the origin of the arc.
45
The center of the arc is determined by the addresses I, J and K corresponding to axes X, Y and Z.
The digit following I, J or K is a coordinate component from the origin to the center of the arc and
they are always specified as an incremental value. The provision has no bearing upon G90 and
G91.
46
a)
Absolute programming
(1) G92
200.0
Y40.0
Z0;
b)
G03
X-60.0
Y60.0
F300.0;
F300;
I-60.0 F300;
Alarm
Addresses I, J and K may also be used to specify the center of the arc. This is similar to the arc
interpolation without any additional axis. The addresses I, J and K are used for the axes
parallel to axes X, Y and Z.
The arc interpolation specified with R is also valid.
G071:
2
)Z( l : the travel distance along axis Z in a single period)
l
48
Range
Input in mm
0.01mm
Input in inch
0.0001inch
N20
G90
N21
N22
G00
X100.0
S45 M03;
Z200.0
G33
Z120.0
;
F5.0
50
N23
N24
M19;
G00
X105.0
N25
M03;
Z200.0
N26
M00;
X100.0
N27
G04
N28
G33
M03;
X2.0
;
Z120.0
F5.0
Notes:
N20, N21: To locate the tool at the center of the hole and to clockwise (CW) rotate the spindle.
N22: To perform thread cutting for the first time with screw pitch specified by address F.
N23: M19 orders the spindle to stop in a fixed position on the circumference (M19: Spindle
stops in a fixed position).
N24: To withdraw the cutting tool in the direction of axis X.
N25: To move the cutting tool above the hole: M00 orders the program to stop and allows
operator to adjust the tool for the thread cutting for the second time.
N26: To align the cutting tool with the center of the hole and to start forward rotation of the
spindle.
N27: When the travel instruction in the N26 block is relatively short, it is necessary to add
another dwell instruction so that the spindle has adequate time to reach the rated
rotational speed.
N28: To perform thread cutting for the second time.
After returning to the reference point, the next block will be executed if M00 or M01 does not
exist in M00 or M01. If the return to the reference point is not required in all cycles, optional
51
52
(The addresses , and r shall be selected from X, Y, Z and additional axes A, B, C, U, V and
W.) The following instruction is allowed for 4-axis link function.
G28 r :
Where , , r, = X, Y, Z, A, B, C, U, V or W
Generally the G28 instruction is used for automatic tool change (ATC). In principle, tool radius
compensation, tool offset compensation and tool length compensation shall be cancelled
before executing the instruction.
Note 1: Not only the coordinates of move instruction, but also the coordinates of intermediate point is
saved to memory in the blocks of G28. This is, for the axes without instruction in the blocks of
G28, the foregoing coordinates in G28 serves as the coordinates of the intermediate point of
the axis.
Example: N1 G90 X100.0 Y200.0 Z300.0:
N2 G28 X400.0 Y500.0:
N3 G28 Z600.0:
Remarks:
N2: Intermediate point - 400.0, 500.0
N3: Intermediate point - 400.0, 500.0, 600.0
Note 2: After the system is switched on without manual return to the reference point, it moves from the
intermediate point when G28 is specified. This is similar to the manual return to the reference
point. Now the moving direction from the intermediate point has become the direction of return
to the reference point set by parameter.
Note 3: If G28 is instructed for an axis of rotation, the moving direction from the intermediate point to
the reference point has become the direction of return to the reference point. Furthermore, the
travel is within 360.
The procedures for positioning at the intermediate point and then the specified point are similar
to the positioning with G00.
Example of G28 and G29 application:
For G91:
G28
X1000.0
M06:
G29 X500.0
Y200.0: (From A to B)
Y-400.0: (From B to C)
The example shows that programmer needs not to calculate the actual travel distance from the
intermediate point to the reference point. The G29 instruction for a system with 3-axis
concurrent control function is as follows:
G29 r :
(The addresses , and r shall be selected from X, Y, Z and additional axes A, B, C, U, V and
W. However, additional axes can not be interlocked with one the three basic axes if additional
axis concurrent control function is not selected.)
The following instruction is allowed for the system with 4-axis link function:
G29 r :
Where , , r, = X, Y, Z, A, B, C, U, V and W
Note: After the tool passes through the intermediate point and reaches the reference point
under the instruction of G29/30, the intermediate point shall move to a new coordinate system
in case of change in the position of workpiece coordinate system. Thereafter the tool shall pass
through the intermediate point that has moved to the new coordinate system and reach the
specified point when G29 is instructed.
54
G30
P2
P3
P4
X2.5 or G04
P2500:
Note 2: Dwell and time delay are applicable for the two conditions below and are enabled by
parameter setting.
1. After the speed of the foregoing block drops to 0
2. After the tool reaches the instruction value (after the inspection of locating point)
3.5.11 Accurate stop detecting mode (G61) and cutting mode (G64)
(1)
(2)
56
G92
X25.0
Z23.0:
As shown in the above program, G92 is used at the beginning of the block to ensure the nose
of the tool coincides with the origin of the program.
G00
X100.0
Z20.0:
X15.5
Z25.5:
In the above example, it is positioned in the workpiece coordinate system 2 (X =100.0, Z =20.0)
and (X =15.5, Z =25.5).
Workpiece coordinate systems 1 to 6 are established after switching on and returning from the
reference point. G54 coordinate system is enabled upon switching on.
Note 1: When the range of the workpiece zero point offset of all axes compensated by external data
inputting (optional) is 00.7999mm or 00.7999mm, check the machine instruction
manual for the function.
Note 2:When G54G59 are used, the coordinate system is not set with G92 but established with G92.
G54G59 are used to move the coordinate system. G54G59 must not be incorporated with
G92 except the special situation that G54G59 are used to move the coordinate system.
58
When the tool is positioned at (200, 160) in G54 mode, G92 X10 Y100; The specified
workpiece coordinate system 1 (X, Y) is moved by vector A. However, all other workpiece
coordinate systems shall concurrently offset vector A.
Note 3: When automatic coordinate system setting is not selected, proper parameter values shall be
set (309 APXAP4).
System of units
G codes
G20
0.0001inch
mm (metric system)
G21
0.001mm
Both the G codes must be instructed with a single block before the start of the program and
setting of the workpiece coordinate system.
N10
G20:
N20
G92
XY:
XI, YJ, ZK
XI2000 (Minimum instruction increment)
YJ2000 (Minimum instruction increment)
ZK2000 (Minimum instruction increment)
The points A and B in the figure below shall be involved during parameter setting.
Since it is necessary to detect which part of the tool nose or clamp has entered the exclusion
area, the computing methods for X, Y, Z, I, J and K are different.
If point A is detected to enter into the exclusion area, a shall be set. If point B is detected to
enter into the exclusion area, b shall be set.
When point A is used to detect the nose of the tool, it is safe without changing the settings of
the tool each time if the tool of varied lengths are set to the required length.
Overlapped setting is possible for the area.
Note 1: All limits will become effective after power on and manual return from the reference point or
G28 completes automatic return from the reference point.
Note 2: If the reference point is within the exclusion area of all limits, the system immediately gives an
alarm when the storage travel limits are valid after power on and manual return from the
reference point. (For storage limit 2, only G22 mode is applicable.)
When G23 is changed to G22 and the tool is in the exclusion area, the system will give an
alarm in the next block.
Note 3: Pressing the emergent stop switch to cancel the restrictions and move the tool out of the
exclusion area in G23 mode when the tool remains still in the exclusion area under the
conditions of Note 2. The settings shall be changed if they are set incorrectly. Then the tool
returns from the reference point.
Note 4: Since the axis without the function of returning from the reference point, the axis does not give
an alarm in the exclusion area.
Note 5: For the setting of the exclusion area, the area is described as follows:
When the exclusion area is beyond the specified area, all the areas are movable.
62
When the exclusion area is within the specified area, all the areas are restricted for movement
(in G22 mode).
Note 6: The settings beyond the travel of the machine are not necessary.
Note 7: The tool may reversely move provided that the tool is in the exclusion are and an alarm is
given.
Note 8: Even the sequence of the coordinates of the two points In the set area are set incorrectly, the
rectangle with the two points as its acmes can also be created into a limit area.
Note 9: G22 and G23 shall be instructed in single blocks.
Note 10: Storage travel limit 2 cannot be used for additional axes.
G91
X100.0:
Y50.0:
G90
X200.0:
Y100.0:
63
2)
G90
X200.0:
X300.0
Y100.0:
The feedrate of a block is specified G31with No. 306 (SKPF) parameter in the following two
ways:
a) Feedrate is specified with F codes (may be specified in the foregoing blocks or G31 block)
b) No. 342 parameter is set by No. 342 parameter.
The coordinates when skip signal is switched on are stored in the system variables #5061 to
#5065 of the user macro. Therefore they may be used in macros.
#5061X coordinates
#5062Y coordinates
#5063Z coordinates
#5064The 4th coordinates
#5065The 5th coordinates
The skip function may be used to the situation with unknown travel. Therefore, it is applicable
in the following conditions.
a)
b)
Note 1: Once G31 instruction is performed in the active state of tool compensation C, No. 035 alarm
64
will be given. Tool compensation shall be canceled with G40 before G31 instruction.
Note 2: If the feedrate instructed by G31 is related to the speed set by parameter, it will have a bearing
upon parameter setting in no-load operation.
Note 3: If the feedrate instructed by G31 is related to the speed set by parameter, the automatic
acceleration/deceleration will be invalid. In this way the accuracy of automatic measurement in
skip function applications is improved.
3.6 Compensation
3.6.1 Tool length compensation (G43, G44, G49)
Using G43
ZH; or
G44
G43
H;
G44
The end position of the axis Z move instruction is moved forward or reversely by setting the
offset set in the offset storage. Using this function may set the difference between the tool
length estimated in programming and the actual one in service into the offset storage to
achieve compensation without changing the program. H instructs the offset set into the offset
storage by instructing the offsetting direction with G43 and G44.
Offsetting direction
G43
Offset in + direction
G44
Offset in - direction
Whether in the situation of absolute or incremental instruction, the offset specified by H codes
and saved in the offset storage is added to the coordinates of the end point of the spindle move
instruction for G43 and detracted from it for G44. The calculated coordinates become the end
point of the coordinates. It may be illustrated in the same way when axis Z move instruction is
ignored as follows:
G43
G91
ZOH;
G44
The offset is positive for G43 and negative for G44.
G43 and G44 are modal G codes and, when instructed, are always valid if no G codes in the
same group are coded. G 43 or G44 code is valid upon power on depends on parameter setting.
Offset specification
65
Offset number is specified with H codes. The offset set in the offset storage of the number is
added to or detracted from the programming value of axis Z. Offset number may be specified
with H00 or H200. The number of the D codes using tool radius compensation hits 32 (It is also
possible to choose 64, 99 or 200).
Offset corresponds to offset number and may be preset in the offset storage through MDI/LCD
or communicating operations. The setting range of the offset is as follows:
Offset
Input in mm
Input in inch
0mm999.999mm
0 inch999.999inch
The offset of the corresponding offset No.00, i.e. H00 is generally 0. The offset corresponding
to H00 shall not be set.
Cancellation of tool length compensation
To cancel tool length compensation, G49 or H00 shall be instructed. Once H00 or G49 is
instructed, canceling operation will be performed.
(1)
G91 G00
X120.0
Y80.0
N2
G43
Z-32.0
H01
N3
G01
Z-21.0
F1000
N4
G04
P2000
N5
G00
Z21.0
;
66
X30.0
N7
G01
Z-41.0
N8
G00
Z41.0
Y30.0
N9
X50.0
N10
G01
N11
G04
N12
G00
N13
Z-25.0
Z57.0
X-200.0
;
P2000
H00
Y-60.0
Note 1: When offset is changed due to the change of the offset number, the new offset will not be
added to the original offset.
H01Offset 20.0
H02Offset 30.0
G90
G43
Z100.0
G90
G43
Z100.0
Note 2: D codes cannot be used for tool length compensation. Other axes except axis Z may employ
tool length compensation.
Which axis will be added with tool length compensation is instructed with axis address in the
same block with G43 and G44
G43
H:
(: any axis)
G44
Tool length compensation can only be added to an axis at one time. Therefore the system
gives an alarm in the following instructions. To switch an axis for tool length compensation, it is
necessary to cancel the one-off tool length compensation.
G43 ZH:
G43 XH: (Alarm)
67
G codes
Function
G45
To zoom in an offset
G46
G47
G48
Range of offset
Input in metric system
Offset value
0mm999.999mm
099.9999
Offset value
00999.9990
00999.9990
The offset function is valid for an additional axis (the 4th axis).
When the offset number is 00 (H00 or D00), the offset will also be 0.
Zooming is made in the moving direction of the tool of the axis. When the absolute value
instructs, the tool starts to move to the position instructed by the instructions in the blocks of
G45G48 and makes zooming compensation.
1)
Actual travel
a) Move instruction +12.34 offset +5.67
2)
b)
d)
3)
4)
d)
If the sign of the offset is reversed in G47 instruction, it will be identical with G48.
a) Move instruction+12.34 offset +1.23(b)(d) (omitted)
When offset is moved in the mode of incremental instruction (G91), the instruction for travel will
be 0. No movement will be performed if the travel instructed in the mode of absolute instruction
(G90).
Offset +12.34 (offset No. 01)
NC instruction G91 G45 X0 D01: G91 G46 X0 D01: G91 G45 X-0 D01 G91 G46 X-0 D01:
Equivalent
instructions
X12.34
X-12.34
X-12.34
X12.34:
Note 1: If one of G45G48 is specified for 2-axis gang control, the tool offset is valid for both axes.
For G45
Move instruction X1000.0
Offset +200.0
Y5000.0
Offset No. 02
G01
X1000.0
Y500.0
D02:
70
G01 X
G47 X
Y
F
Y
G01 G45 X
X Y
G45 Y
F D
Note 3: When the offset is higher than the move instruction value, the actual moving direction of the
tool will be contrary to the programmed direction.
Equivalent to X-1.20:
Note 4: For arc interpolation (G02, G03), only the tool offset under the conditions of 1/4 and 3/4 circles
may be resulted by G45 to G48 instructions. That is, tool compensation is only available for 1/4
and 3/4 arc instructions.
Example 6.21: Offset +20.0, Offset No. 01
71
Example of programming:
(G91)
G45
G03
X-70.0
Y70.0
I-70.0 D01:
G46 G00
XYD;
N2
G45 G01
YF;
N3
G45 G03
XYI;
N4
G01
X;
72
1. G91
G46
G00
X80.0
2. G47
G01
X50.0
F120;
Y30.0
Y50.0 D01;
3. Y40.0;
4. G48
X40.0;
5. Y-40.0;
6. G45
X30.0;
7. G45
G03
X30.0
8. G45
G01
Y20.0;
9. G46
X0;
10. G46
G02
X-30.0
11. G45
G01
12. G47
X-12.0;
13. G47
Y-80.0;
14. G46
G00
X-80.0
J30.0;
Y-50.0;
Note 5: Only axis Z moves an offset if H codes are used in G43 or G44 mode. Therefore, it is
recommended not to use H codes but D codes in the offsets of G45G48 as much as
possible.
Note 6: G45G48 modes are ignored in fixed cycles. Hence G45G48 shall be programmed before
instructing fixed cycles and they must always be cancelled after fixed cycles.
73
Note 7: Tool offset modes (G45 G48) are not allowed in the modes of G41 or G42 (tool
compensation); otherwise P/S alarm will be given (alarm no. 36).
Two types of tool compensation (B and C) are available. This section only describes type C.
The difference between B and C is as follows:
In the mode of type B tool compensation, inward offsetting cannot be performed for angles
equal to or less than 90. In this condition, make sure to program it into a proper inward arc.
Offset
Input in mm
Input in inch
0mm ~ 999.999mm
0inch ~ 99.9999inch
74
Offset plane
G17
XY plane
G18
ZX plane
G19
YZ plane
To set an offset plane with an additional axis, it is necessary to preset which one in axes X, Y
and Z that the additional axis parallels with by parameter. When none axis it parallels with, the
offset plane cannot be defined.
While setting the offset plane with an additional axis, the additional axis shall be instructed at
the same time with the G codes, i.e. G17, G18 and G19.
a) G17 X_Y_; XY plane
b) G17 U_Y_; UY plane (U parallels with axis X)
c) G17 Y_; XY plane
d) G17; XY plane
e) G17 X_Y_U_; Alarm
f)
compensation vector. To determine the direction of an offset vector and the moving direction of
the tool, G40, G41 and G42 may be instructed concurrently with G00, G01, G02 or G03.
G codes
Function
G40
G41
G42
G41 or G42 instruction allows the system to enter into offset mode.
G40 instruction allows the system to enter into cancellation mode.
An example of offsetting course will be illustrated in the following figure.
Start-up block : Offset cancellation mode becomes offset mode (G41) in this block. The tool
center is offset at the end point (P1) of the block by the radius perpendicular to the lower
section of program path (from P1~P2). The tool compensating value is specified by D07, i.e.
offset No.7. G41 means that the tool offsets to the left.
After workpiece shape P1P2P8P9P1 programming and starting, the system
automatically performs tool compensation.
In block , the tool returns to the point of origin (offset cancellation) through G40. The tool
center moves (from P9P1) normal to the programmed path at the end point of the 10th block.
G 40 instruction (program cancellation) shall be instructed at the end point of the program.
Example of program for tool compensation C:
76
G92 X0 Y0 Z0
N1 G90 G17 G00 G41 D07 X250.0 Y550.0:
77
Cancellation mode
The system will be in offset cancellation mode after power on, reset or completion of the
program by executing M02 and M03.
In cancellation mode, the vector is always 0 and the tool center path coincides with the
programmed path. It shall be ended up by means of cancellation at the end of the program.
When the program ends in offset mode, positioning the tool at the end point of the program
cannot be performed and the position of the tool will offset from the end position by a vector.
(2)
Start-up
When a block satisfying all the following requirements is executed in cancellation mode, the
system will be in offset mode. This block is called start-up block.
a) G41or G42 has been instructed and the system is in the state of G41 or G42.
b) Tool compensation number is not D00.
c) Axes (other than axes I, J and K) (even one axis is acceptable) in the offset plane is
allowable and their travel is not 0.
In a start-up block, arc instructions (G02, G03) shall not be used; otherwise the NC will gives
No. 34 alarm and stops operation. The NC reads in two blocks. The next block enters into the
tool compensation buffer register (the contents of the register cannot be displayed) once the
first block is read in and executed.
In addition, two blocks in succession are read in when the system is in single block mode. The
block is firstly read in stops after execution. As a rule, two blocks are normally read in after that.
Hence there are three blocks in the NC, namely the executing block and the next two blocks.
Note: The meaning of the so-called interior angle and other terms are as indicated in the
following figure. The intersection angle of the move instructions of two blocks is called interior
angle when its angular degree on the workpiece side is above 180 and exterior angle when
it falls within 0180.
Where:
S indicates the dwell point of single block.
L indicates line motion.
C indicates arc motion.
Straight line Arc
(ii) When the tool machines one side of an obtuse angle, the start-up and cancellation of a
(90180) tool path have the noses A and B and they are selected by parameter No.011
BIT1 (SUPM).
Type A: (Straight line Straight line)
79
Intersection point is a point at which the offset paths determined by two blocks in
succession intersect.
(Straight line Arc)
The intersection point in the above diagram is a point where the offset paths of the r length
of two blocks.
(iii) To machine an acute angle (90exterior)
Type A (Straight line Straight line)
80
Note: For Type B, compensation shall be performed as follows when the tool moves on one
side of a sharp angle less than 10.
(3)
Offset mode
In offset mode, arc interpolation may offset even linear interpolation is instructed.
In offset mode, the blocks without move instruction but miscellaneous function, hold, etc
cannot be instructed in two blocks in succession; otherwise it is subject to undercutting or
overcutting.
81
Offset plane cannot be changed in offset mode; otherwise the system will stop after No. 37
alarm.
Arc Arc
82
For the condition of straight line to straight line, a narrow and closed angle less than 1 is
machined. Now its offset vector becomes extremely big.
User may follow the above procedures for the conditions of arc to straight line, straight line
to arc and arc to arc.
(ii) To machine an obtuse angle along the exterior side (90180)
Straight line Straight line
83
Arc Arc
84
Arc Arc
85
If there is a lead on the arc as shown in the diagram, use the arc center connecting to the
end point of the arc as the center of a circle to make a imaginary arc. Make a vector for
compensation by using the imaginary arc as the arc of tool compensation. Its result varies
from the tool center path that uses the arc lead a lead for tool compensation.
Follow the same procedures for the situation of arc arc.
The situation without an internal intersection point
As shown in the diagram below, arc intersection point exists on compensation path when
the offset is small. Increase in the offset eliminates the intersection point. Now the system
gives No. 33 alarm and stops at the end point of the previous block.
As shown in the diagram below, arc intersection point P exists on compensation paths of arc A
and arc B when the offset is small. Increase in the offset eliminates the intersection point. For
that center coincides with the origin or end point, the system gives No. 38 alarm and stops
program execution at the end point of the previous block.
G41 mode
N5 G01 X1000;
N6 G02 X1000 I0 J0;
N7 G03 Y-1000 J-1000;
(4)
Offset cancellation
When executing a block satisfying one of the following requirements in offset mode, the
system enters into tool cancellation mode. The function of the block is called offset
cancellation.
(a) G40 is instructed
(G02) and (G03) cannot be instructed when offset cancellation is performed. If they are
instructed, No. 34 alarm will be sent out and NC will stop.
When a block is read in offset cancellation mode, two blocks including that stored in the buffer
(not display) for tool compensation will be executed. In single block mode, a block is read in
86
and executed before stop. The next block is read in and executed by pressing the START
button.
After the control system enters into cancellation mode, the next executed block will be normally
saved in the buffer register rather than typed in the tool compensation buffer register.
(a) To machine an interior angle (180)
Straight line Straight line
87
(ii) Type B
Straight line Straight line
88
(ii) Type B
Straight line Straight line
Note: For the situation of type B, compensation is performed as follows when the tool machine
an acute angle below 10 by means of straight line to straight line from the exterior side:
89
(5)
G codes
90
G41
G42
In special cases, offsetting direction can be changed by switching between G41 and G42 in
offset mode. However, it cannot be changed for the start-up block and the block that follows. In
the situation of changing offsetting direction, the concepts of interior side and exterior side are
canceled to adapt to all conditions. The amounts of offset are assumed to be positive in all the
following examples.
(Straight line Straight line)
91
(Arc Arc)
92
c) Arc Arc
The situation in which the length of the tool center path caused by tool compensation:
Generally the above condition will not arise. It is only possible when G41and G42 is switched
or G 40 is instructed with address I, J and K.
93
In the above situation, the tool center path does not go around the circle for one turn but only
makes arc motion along P1P2. Its cause will be described in the alarm caused by
interference verification. If you want the tool to make movement along the full circumference,
make sure to instruct the circumference by sections.
(6)
The cancellation of temporary offset and execution of the following instructions in offset mode,
cancellation of temporary offset will be triggered. Then the system will be automatically
restored to offset mode.
Refer to Section 6.3.6 (4) Offset cancellation and Section 6.3.6 (2) Start-up for the details of
the above operations.
(a) G28 Automatic return to reference point
If G28 is instructed in offset mode, offset will be cancelled at the intermediate point. When
the reference point is reached, the offset mode will be automatically restored.
If offset vector is maintained at the intermediate point, the NC will zero the vector of all
axes returned to reference point.
94
The situations rather than that G29 is directly instructed after G28:
(7)
(G41 mode)
N5
G01
N6
X3000
Y7000:
X3000
Y6000:
N7
G92
X1000
Y2000:
N8
G01
X4000
Y8000:
Note: SS indicates the points at which tool stops twice in single block mode.
(8)
95
.S code input
G04
X1000;
G22
G10
.Dwell time
Not move
X0; Offset is 0
G91
N6
N7
N8
N9
X1000.0
Y1000.0;
G41 X0;
Y1000.0;
X1000.0
Y1000.0;
When the travel is 0, however, the tool movement of the block is identical with when more
than a block without tool movement is instructed. It is specifically described as follows:
96
More than 2 blocks without tool movement cannot be specified in succession; otherwise a
vector which has a length equal to the offset and direction perpendicular to the moving
direction of the tool in the previous block will be generated, thereby causing overcutting.
Note 4: SSS means that the tool operated by a single block stops here for three times.
c) When the block is instructed along with offset cancellation
When a block without tool movement and offset cancellation are specified at one time, its
vector whose length is equal to the offset is generated in the direction normal to the tool
movement of the previous block. The vector will be cancelled in the next move instruction.
N6
N7
N8
(9)
G91 X100.0
G40:
X100.0 Y0:
Y100.0:
When G40 and the one among I, J and K that is in the offset plane are instructed and the
previous block mode is G41 or G2.
When the above instruction is performed in the offset mode, it will become the following
condition with G17 plane as an example. Analogies may be drawn for the situations of other
planes.
Now the direction of the vectors (I, J) that start from the end point of the previous block are
determined by the above instructions. Its offsetting direction is the same as the previous block.
97
(G42
G40
mode)
X X Y Y I J --:
Note 5: Take note that in this situation the NC gets a intersection point of tool path independent
of the specified machined inner wall or outer wall.
Note 6: When it is impossible to get an intersection point, the tool reaches the position normal
to the previous block path at the end of the previous block.
Note 7: When the length of the tool center path is bigger than the circumference:
98
(G41)
N5 G01 G91 X10000:
N6 G02 J6000:
N7 G40 G01 X5000:
Y5000 I100 J100:
In the above situation, the tool center does not go around the circumference but the section of
arc between P1 and P2.
The alarm caused by interference verification is related to the following conditions. (If you want
the tool to go around the circumference, you need to instruct a circumference by sections.)
(10)
Corner movement
When 2 or more vectors are generated at the end point of a block, the tool makes line motion
from one vector to the other.
If these vectors almost coincide, corner movement will not be performed and the following
vectors will be ignored.
If UVx<UV limits or UVy<UV limits, the vectors that follow will be ignored. UV limit shall be
preset by parameter No.069(CRCDL).
If these vectors do not coincide, movement around the angle will be caused. The movement is
included in the blocks that follow.
99
Note 8: If the path of the next block is an arc over a semicircle, however, the above-mentioned
function cannot be achieved.
The cause is as follows:
b) To change offset
In general, if offset is changed during tool change in offset cancellation mode, the vector of
the end point of the block is fit for the new offset.
alarm below.
102
(iv) The startup associated with tool compensation C and the movement in the direction of axis
Z
At the beginning of cutting, tool compensation (generally XY plane) shall be preset at a
distance from the workpiece and then the tool feed by means of movement along axis Z.
Now take note of the following issues if the rapid traverse (positioning) of axis Z shall not
be independent of the cutting feed.
Refer to the following program
N1 G91 G00 G41 X50000 Y50000 D1;
N3 G01 Z-30000 F1;
N6 Y100000 F2;
In the above example, N3 and N6 will also be read in buffer register during execution of
block N1 and the relationship between them will be properly compensated as shown in the
right figure.
N6 Y100000 F2;
Since both the move blocks N3 and N5 do not include the XY plane, block N6 cannot enter
into the buffer register when N1 starts execution. As a result, the tool center path is
calculated by the information N1 in the right figure. In this situation, tool vector will not be
generated during start-up, thereby resulting in the overcutting as shown in the right figure.
In this situation, overcutting may be prevented by specifying an instruction of the same
moving direction in the blocks before and after axis Z feed instruction using the above
rules.
N1 G91 G00 G41 X50000 Y40000 D1;
N2 Y10000;
N3 Z-25000;
N5 G01 Z-5000 F1;
N6 Y100000 F2;
(The moving directions of N2 and N6 are identical)
Blocks N2 and N3 are read in the buffer register and correctly compensated according to
the relationship between N1 and N2 during the execution of block N1.
Note 9: Interference verification
Example of state b:
(G41)
N5 G01 G91 X8000 Y2000 D01:
N6 G02 X3200 Y-1600 I-2000 J-8000 D02:
N7 G01 X2000 Y-5000:
(Corresponding offset of D01: r1 =2000)
(Corresponding offset of D02: r2 =6000)
In the above example, the arc in block N6 is within a quadrant. However, the arc extends to
105
106
(b) The tool will stop due to alarm if interference arises after correction (a).
If interference arises at the last vector during correction (a) or there is a pair of vectors at
the beginning of verification and interference arises, the system will give No. 41 alarm and
stop after the completion of the previous block.
Though vectors V2 and V5 are neglected due to interference, interference will arise
between V1 and V6. Now the system gives an alarm and stop.
107
3) Verification is performed even actually no interference arises. See the following examples:
Though actually no interference occurs, the tool stops due to No. 41 alarm because the
direction of tool path after tool compensation differs from that of programmed path.
(b) Groove depth less than tool compensation
It is similar to (a) and the direction of tool path differs from that of programmed path.
(12)
108
When points PA, PB and PC are specified in an absolute instruction, the tool is stopped at the
end point of the blocks PA to PB by the single block function. Now the means for translation are
operated by MDI. Vectors V B1 and V B 2 are translated to V B1 and V B 2 . The VC1 and
(14)
The compensation specified by H00 and D00 are always 0. H00 and D00 are made certain
after power on.
The standard number of tool compensation is 32 (0132). When options A, B and C are
selected for the number of tool compensation, they correspond to 64 (0164), 99(0199) and
200 (01200) respectively.
Note 1: Tool compensation in G40, G41 and G42 modes always use D codes. Tool length
compensation (G43, G44, G49) always use H codes. Whether tool offset (G45, G46, G47, and
G48) uses D codes or H codes are specified by parameter No.010 BIT3 (OFSD).
Note 2: When an additional tool offset number B is used, make sure to select a part program to
save/edit B (40m)F (1280m).
Note 3: When an additional tool offset number C is used, make sure to select a part program to
save/edit C (40m)F (1280m).
PpRr
p: Offset number
r: Offset
Whether the offset is absolute or incremental depends on G90 or G91 mode.
P :
Note 1: In a single block, G51 shall be specified in G40 mode. G50 may also be specified in offset
mode. G51 must always be cancelled by G50.
Note 2: A position is indicated at coordinates after zooming.
Note 3: If a setting is used as a zooming ratio that does not specify P, the setting will be the zooming
111
ratio specified by G51 and it is invalid for any other instruction to specify the setting.
Note 4: Whether the zooming function of all axes is valid may be set by parameter. For G51 mode, the
function is always valid for the arc radius instructed by R and is dependent of parameter
setting.
Zooming function is always invalid for additional axes.
Note 5: Zooming function is invalid for manual operations, but valid for DNC, automatic operations and
MDI operations.
Note 6: Zooming is not applicable for the following movement in the event that axis Z moves in a fixed
cycle.
* The cutting depth Q and backing of peck drilling cycle (G83, G73).
* The travel of X and Y in finish boring (G76) and reverse boring (G87) cycles
Note 7: G27, G28, G29, G30 and G92 are specified in G50 mode.
Note 8: Rounding of the zooming result may zero the travel. Now the block is considered as an
unmovable block. Therefore, it may affect the tool movement caused by tool compensation
(see Section 6.3.6 (8)).
Note 9: Reset
(a) Reset in G51 mode changes the original programming coordinate to the current
coordinates or zoomed coordinate. Hence the travel after reset differs depending on
whether the instruction is incremental or absolute.
If it is reset at Point B, Point A in the program shall be regarded as the current B. While
executing the move instruction of Point D, the generation of the following movements
depends on whether they are incremental or absolute.
* Incremental
If the travel from Point A to Point D is incremental, D will become the point of destination
on the programmed path and Point D is converted to Point E. The tool moves to Point EY
because it is only a move instruction for axis Y.
112
AD-AD
* Absolute
If Point D is absolute, the tool moves to Point E, which is converted from Point D.
(b) When clearance is made by reset by parameter No.007 BIT3 CLER setting.
After switching from G51 to G50, the tool moves to point D if the move instruction is
incremental (see Fig. A) and to Point D if it is absolute (see Fig. B).
Operations in
Backing operations
(-Z direction)
hole bottom
(Z direction)
G73
Intermittent feed
G74
Cutting feed
G codes
G76
Cutting feed
Spindle forward
rotation
Applications
Rapid traverse
High-speed peck
(positioning)
drilling
Cutting feed
Reverse tapping
Finished boring cycle
Oriented
Rapid traverse
spindle stop
(positioning)
Cancellation
Rapid traverse
Drilling cycle
(positioning)
(fixed-point cycle)
Rapid traverse
Drilling cycle
(positioning)
(counterboring)
G80
G81
Cutting feed
G82
Cutting feed
Hold
G83
Intermittent feed
G84
Cutting feed
G85
Cutting feed
G86
Rapid traverse
(positioning)
Spindle reverse
Peck drilling
Cutting feed
Tapping
Cutting feed
Boring cycle
Cutting feed
Spindle stop
Rapid traverse
Boring cycle
G87
Cutting feed
Spindle stop
G88
Cutting feed
G89
Cutting feed
rotation
Manual operation of
rapid running
Hold, spindle
Manual operation of
stop
rapid running
Hold
Cutting feed
Boring cycle
Boring cycle
Note 1: Whether the signal [(SRV, SSP) fixed cycle I] output by NC or M codes (fixed cycle II) is used
114
to control the reverse rotation and stop of spindle is determined by parameter No.009 BIT7
(FIX2).
Note 2: In G87 mode, different operations are performed for fixed cycle I and II.
A fixed cycle normally consists of the following six operations.
1. Positioning of axes X and Y
2. Rapidly moving to Point R
Operations
3.
Drilling
Positioning is performed on XY plane and drilling is conducted in the direction of axis Z. Drilling
in other planes or axial directions is not allowed. This is independent of plane selection G
instruction.
These fixed cycles are specified in three modes with each specified by a special modal G
code.
G90 Absolute!
Data type
G91 Incremental
G98
Initial-point plane
G99
Point-A plane
115
G73
G74
G76
G80
G81
G89
Note:
Initial-point plane refers to the position of the absolute value in Z direction when fixed cycle
cancellation mode changes to fixed cycle mode.
G91
G99
116
XYZRQPFL:
Hole position data
Cycle times
Once hoe machining data is specified, they remain constant until the data is changed or fixed
cycle is disabled. Hence you only need to specify all necessary hole machining holes at the
beginning of fixed cycles and change hole coordinate data in fixed cycles.
When necessary, the number of repetitions L shall be specified. The data of L is valid in the
specified blocks. The cutting speed specified by F is maintained even fixed cycles are
cancelled. Hole machining mode and data remain unchanged, but hole position data and
repetitions are cancelled when the control unit is reset during fixed cycles. When the
parameter (CLER) for specifying G80 mode for reset is set, however, hole machining data is
also cleared.
The example of maintaining and canceling the above data is as follows:
G00
XM30:
XYM05:
Now touring operation will not be performed and all touring data except F codes will be
cleared.
G85 XZRP: Since addresses Z and R are cancelled in block , they shall be
specified once again. Now F codes are identical with block and may be omitted.
Address P is not needed in this block, but it is still saved.
XZ: Hole position has only moved X and now drilling data is used as follows:
ZSpecified in block
RSpecified in block
FSpecified in block
G89 XY: After the positioning movement specified by addresses X and Y, drilling is
performed in G89 mode. Now the drilling data is applied as follows:
ZSpecified in block
RSpecified in block
FSpecified in block
G01
XY:
Now all hole machining modes and hole machining data (except F) are cancelled.
118
The instruction specifies that the spindle forward rotate at hole bottom and then perform a
left-hand tapping cycle.
Note: If feedrate override is neglected or feed hold occurs during tapping with G74, machining
will not stop until the fixed cycle is completed.
119
(3)
Hold
OSS
d is set by parameter.
Note 1: G76 can be used only when the output M codes set by parameter No.009 BIT7 (FIX2)
120
are used as the output signals for spindle reverse rotation, spindle forward rotation and spindle
accurate stop.
It is possible to accurately and efficiently perform hole machining and not to damage workpiece
surface by stopping the spindle in oriented position at hole bottom and then removing the tool
bit after it offsets for departing machining. Offset is specified by the address Q (always
positive). The minus sign will be neglected if a negative number is used. An offset direction
shall be preset between (X, Y) and (X,Y) by parameter No.022 BIT4,5 (PMXY1, 2).
Note that Q value is modal in a fixed cycle mode and indicates the cutting depth in G73 and
G83.
Even at the hole bottom, address I and J may specify offset for the tool. Axes X and Y moves
using linear interpolation according to parameter No.022 BIT6 (SIJ) setting and replace Q with
the incremental value specified by I and J. Hence they may offset upward in any direction.
Feedrate is identical with the speed specified by F codes. I and J are modal in mode of fixed
cycles. Hole machining can not be performed only by specifying I and J. The instructions are
only used to specify I and J again.
(4)
(5)
121
(6)
Except that it holds at hole bottom and then retracts, the instruction is similar to G81 (The dwell time is
specified by address P). The accuracy of hole depth is improved because it holds at hole bottom.
(7)
G83 (Peck drilling cycle)
G83 (with G98)
XYZQRF;
Q indicates the cutting depth of each time and always specifies it in incremental value. Rapid
traverse (positioning) is changed into cutting feed at a distance of a millimeter or inch from the
machined position. Q value is specified in positive number. Minus sign is neglected if it is
122
Cutting feed
The instruction requires the spindle to counterclockwise rotate at hole bottom and perform a
tapping cycle.
Note: Feed override is neglected and it shall not stop until the end of the cycle during the
tapping instructed by G84. It will not be affected even Feedrate occurs at this time.
(9)
The instruction is similar to G84 except that spindle does not rotate reversely at hole bottom.
123
(10)
The instruction is equivalent to G81 except stop at hole bottom and return by rapid traverse.
(11)
Fixed
cycle I
124
Fixed
cycle II
Rapid traverse
Cutting feed
Manual feed
Tool offset
Spindle accurate stop
Fixed cycle (boring cycle)
The control system enters into Feedrate mode when the tool reaches the hole bottom and the
spindle stops. In this condition, the tool may travel by manual means. Any manual operation
may be performed. For the purpose of safety, however, the tool shall be withdrawn from the
hole.
To restart machining, it is necessary to switch to DNC or automatic mode and press the
CYCLE START key. The spindle rotates forward after the tool returns to the position of origin or
Point R through G98 and G99. Then the instruction of the next block is executed.
Fixed cycle II (reverse boring cycle)
Once axes X and Y are positioned, the spindle stops and the tool offset in the direction
contrary to the tool nose and is rapidly positioned at the hole bottom (Point R). Here the tool
returns in the original amount of offset. The spindle starts clockwise and performs machining in
the direction of axis Z until Point Z. It does not suspend even under P instruction. After the
spindle stops here again, the tool backs out from the original offset and moves upward. Then
the tool returns to the origin and backs out in the original offset. The spindle rotates forward
and the next block starts. The offsets and directions of axes X and Y are identical with G76
(Refer to G76 and G87 for the setting of direction.)
Note: Fixed cycle I is set by parameter No.009 BIT7(FIX2) and signals SRV and SSP are used
as the output signals for spindle reverse rotation and spindle stop.
Fixed cycle II is set by parameter No.009 BIT7 (FIX2) and M codes are used as the output
125
signals for spindle reverse rotation, spindle stop and spindle oriented stop.
(12)
Except that the spindle stops rotation after pausing at hole bottom, the instruction is similar to
G87 (fixed cycle I).
(13)
block.
G81
XYZRL 5 F;
XY specifies the first machining position in an incremental value (in G91 mode). If the
instruction specifies it in an absolute value (in G90 mode), drilling will be repeatedly performed
at the same point.
In a fixed cycle, the time constant of automatic acceleration/deceleration can be automatically
switched. It is switched to the time constant of rapid traverse (positioning) or cutting feed
depends on all feed motions. After deceleration is completed at the end of the motion, the
system switches to the next operation.
In G98 instruction, however, it returns to Point R from hole bottom at rapid traverse
(positioning)rate and then to the origin without deceleration.
Notes regarding fixed cycles:
Note 1: Spindle rotation function shall be specified with M codes before specifying a fixed
cycle.
ER:
M03:
Correct
M05:
Spindle stop
Note 2: In the mode of fixed cycle, touring operation may be performed provided that the
position data corresponding to axes X, Y and Z and the 4th axis are specified in the block.
127
Touring cannot be performed if the position data is not specified. It will not be performed even
the dwell instruction (G04 P ; ) is incorporated. If address X is used to specify the dwell time
(G04 X ; ), touring operation will not be performed.
G00
X :
G81
XYZRFPL :
(Not to drill)
F ;
M ;
G04
P ; (Not to drill; the P data for drilling will not be modified by the instruction)
Note 3: For the fixed cycles G74, G84 and G86 for controlling spindle rotation, the spindle fails
to reach the normal rotational speed before drilling because drilling is continuously performed
when the spacing between holes and the distance from the origin to Point R are relatively short.
In this case, a G04 (HOLD) shall be instructed to insert between all drilling motions. Therefore,
the program below does not specify the number of repetitions with through L.
G00
M;
G86
XYZRF;
G04
G04
XY;
P; (Not to drill but to feedrate)
Whether it is necessary to perform the operation or not depends on the performance of the
machine. Refer to the manual supplied by the manufacturer of the machine.
Note 4: The above-mentioned fixed cycles may be deleted with G00, G01, G02 or G03. When
G00G03 is instructed in a fixed cycle, the following motions will be carried out.
# indicates 0, 1, 2 or 3.
G0# indicates G00, G01, G02 or G03.
128
XYZRPF;
G74 (with G98)
XYZRPF;
G84 (with G98)
130
Example 7.2.2: Programming using tool length compensation and fixed cycle.
Example of program
N001 G92 X0 Y0 Z0; Set the coordinate system at the reference point
N002
G90
G00
N003
G42
Z0
N004
S30
N005
G99
G81
R97.0
Z250.0
X400.0
Y350.0
Z153.0
N006
N007
G98
N008
G99
N009
N010
G98
N011
G00
N012
G49
Z250.0
N013
G43
Z0
N014
S20
N015
G99
G82
R97.0
T15
X550.0
P300
Y450.0
Z130.0
N016
G98
N017
G99
N018
G98
Y450.0; Drill 10# hole after positioning and return to the origin
N019
G00
N020
G49
Z250.0
N021
G43
Z0
N022
S10
N023
G85
G99
T31
X800.0
Y350.0
Z153.0
R47.0 F50;
G91
Y200.0 L2; Drill 12# and 13# holes after positioning and return to Point R
N025
G00
G90
X0 Y0
N026
G49
G91
the origin.
G98
G99
G01
G91
X50.0 Y50.0
133
Which method shall be selected depends on manufacturers setting. In general, both the two
methods are available for a numerically controlled machine. Refer to the manual supplied by
the manufacture of the machine.
3.8.1.2 S 4 digits
Spindle speed (r/min) is directly specified by the 5 digits following address S. The unit of
spindle speed (up to 30000r/min) is set by the manufacturer of the machine.
M (Metric system)
m/min
Inch/min
134
Meaning
Unit
G96
m/min or inch/min
G97
r/min
G96P
S:
135
During constant surface speed control, the system will automatically restrain the rotational
speed of spindle to the maximum value if the speed is higher than the programmed value.
G97
S1000:
(1000r/min)
G96
X3000:
(50m/min or 50inch/min)
Note 7: When tool length compensation (G43 or G44) was made earlier, programming coordinates
shall be used to calculate the constant surface speed. When tool position offset (G45G48)
was made, the existing value shall be used to calculate the constant surface speed.
Note 8: When the machine is locked, calculation about constant surface speed shall be made
depending on the change in the coordinates of the axis with constant speed control.
Note 9: Constant surface speed control is also available during thread machining. Therefore, it is
recommended to use G97 instruction to disable constant surface speed control before face
thread and taper thread chasing because servo system does not respond during the change of
spindle rotational speed.
Note 10: Constant surface speed (feed per minute) control mode (G96) is also allowable in G94
mode.
Note 11: When switching from G96 mode to G97 mode, the final spindle rotational speed, in G96
mode, is used as the S codes in G97 mode if S codes (r/min) is predetermined in G97 block.
136
G97
S800:
800r/min
G96
S100:
100m/min
N222
N333 G97:
X r/min
X the spindle rotational speed X rpm in the blocks before N333, alternatively the spindle speed
remains unchanged when the mode has been changed from G96 to G97. ,
The S value newly specified in G96 mode will be enabled when switching from G97 to G96
mode.
If S is not specified, S=0m/min (inch/min).
(i)
This indicates the end of the main program and is necessary for recording NC
instructions in storage in communication mode.
(ii) Automatic operation stop and reset of NC unit (It is different depending on
manufacturers).
(iii)
It will return to the starting point of program after the end of the program for M30, and
return to the starting point for M02.
(2)
(3)
pressed.
(4)
(5)
Note 1: The block following M00, M01, M02 or M30 cannot be read in the buffer register.
Similarly, the next block may set the M codes not to make intermediate conversion through 2
parameters. Refer to the section regarding M codes in the manual supplied by the
manufacturer of the machine.
Note 2: Code signal or strobe signal will not be sent out during the execution of M98 or M99.
Note 3: The M codes other than M98 and M99 will be processed by the machine side instead
of the NC unit. Refer to the instruction manual supplied by the manufacturer of the machine.
3.9 Subprogram
When some areas in fixed sequences or those repeatedly appear are included in a program,
these sequences or areas may be saved in storage as subprograms so simplify programming.
A subprogram can be called in automatic mode of operation. A subprogram can also call
another subprogram.
That a main program calls a subprogram is called primary call. Secondary call of subprogram
is performed as follows.
A call instruction can be used to repeatedly call a subprogram. A call instruction may repeat
calling for 9999 times.
138
;
M99;
Specify a subprogram number after O (EIA) or : (ISO) at its beginning. M99 is not
necessarily set in a single block at the end of a subprogram.
Example:
X
M99;
L :
Number of repeated subprogram calls
Subprogram number
P1002
L5:
The No.1002 subprogram will be called repeatedly for five times when the instruction is
executed.
The called subprogram instruction (M98 PL) and move instruction may be set in the same
block.
Example:
X1000
M98
P1200;
In the above example, No.1200 subprogram is called after the travel in the direction of axis X.
139
Example:
The executing sequence for a main program to call a subprogram is as follows:
The executive process for a subprogram to call another subprogram is similar to the above
example.
Note 1: M98 and M99 signals are not sent to the machine.
Note 2: If the subprogram number specified by P is not found, No.78 alarm will be given.
Note 3: The M98 P: instruction input through MDI cannot call a subprogram. In this case,
the following program shall be developed in the editing mode and executed with storage.
O
M98 P:
M02:
Note 4: The blocks or single block containing M98 P; M99; are invalid. When the blocks of
M98 and M99 contain the addresses other than O, N, L and P, however, the stop of a single
block will be valid.
3.9.3.1 When a sequence number is specified in address P in the last block of a subprogram, control
cannot return to the next block of the called subprogram in a main program, but to the block
specified by the sequence number set by address P. Yet the main program is only valid in the
storage operation mode.
The time required to return to the main program by this means is longer than that in normal
conditions.
140
3.9.3.2
If M99 is executed in a main program, the control will return to its beginning.
If a /M99; block is inserted in the proper position in the main program, execution of M99 at this
time will enable the control to return to the beginning of the main program and it will be executed
again.
/M99; will be neglected and the control will go to the next block provided that SKIP
OPTIONAL BLOCKS function is enabled.
If /M99 Pn; is inserted, the control cannot return to the head of the program but to the blocks
of sequence number n. The time required for switching to the blocks of sequence number n is
longer than that for returning to the starting point of the program.
3.9.3.3
It may be executed in automatic mode as a main program from the beginning of MDI Search
subprogram.
In this case, it will return to the beginning of the subprogram if a block containing M99
instruction is executed. When M99 Pn; is executed, it will switch to the block of the sequence
number n and repeatedly execute it.
To stop execution in the above process, it is possible to insert /M02; or /30; in a proper
position if you need to stop the execution. The execution of the above instruction may stop it
and disconnect the switch when the SKIP OPTIONAL BLOCKS switch is set to ON.
141
3.9.3.4 M99 L
Number L of repeated recalls of a subprogram is changed to in midway when the above
instruction is executed.
If the SKIP OPTIONAL BLOCKS switch is set to OFF in the process, the number of repetitions
will be changed to zero and the execution of the main program will go on when END OF
SUBPROGRAM instruction (M99) is executed.
142
The above shows that annularly distributed screw holes are easy to machine.
Once a macro body for annular holes is programmed and recorded, NC may start machining in
it has annular hole machining function.
Programmer may call the annular hole machining function through the following instruction.
G65
PpRrAaBbKk:
r: Radius
a: Starting angle of holes
b: Angle between holes
k: Number of holes
In this way user may improve the performance of NC himself. Macro bodies may be supplied
by the manufacturer of machine or developed by user.
3.10.2 Variables
In macros, variables are used to replace data of figures. User may define any of their values (in
allowable range). The application of macros enables them to more general and flexible.
When using some variables, they are identified by signs.
When #1=0
G90
X100 Y#1
G90 X100
G90
X100
Y#1
G90 X100
When #1=<Empty>
When #1=0
#2=#1
#2=<Empty>
#2=#1
#2=0
#2=#1*5
#2=0
#2=#1*5
#2=0
#2=#1+#1
#2=0
#2=#1+#1
#2=0
When #1=0
#1EQ#0
Definite
#1EQ#0
Indefinite
#1 NEO
Definite
#1 NEO
Indefinite
#1GE#0
Definite
#1GE#0
Definite
#1GT0
Indefinite
#1GT0
Indefinite (unestablished)
146
147
System variables
#1000
#1001
#1002
#1003
#1004
#1005
#1006
#1007
#1008
#1009
#1010
#1011
#1012
#1013
#1014
#1015
UI0
UI1
UI2
UI3
UI4
UI5
UI6
UI7
UI8
UI9
UI10
UI11
UI12
UI13
UI14
UI15
Variable value
Input signal
Contact ON
Contact OFF
Since the reading of variable value 1.0 or 0.0, it is not necessary to take its unit into account.
However, unit shall be considered in the development of a macro.
All input signals are read in by reading variable system #1032.
15
#1032=
#[1000 + i] * 2
i =0
In operational instructions, system variables #1000 to #1032 shall not be used as the item on
the left side [output signal]
Interface output signals may be given by assigning a value to #1100 to1132 system
variables.
System variables
148
#1100
20
UO0
#1101
21
UO1
#1102
22
UO2
#1103
23
UO3
#1104
24
UO4
#1105
25
UO5
#1106
UO6
UO7
#1108
UO8
#1109
29
UO9
#1110
210
UO10
#1111
211
UO11
#1112
212
UO12
#1113
213
UO13
#1114
14
UO14
15
UO15
#1107
#1115
Variable value
Output signal
Contact ON
Contact OFF
All output signals can be output at a time by assigning a value to system variable #1132.
15
#1132=
#[1100 + i] * 2
i =0
For #1100 to #1132 system variables, the given final numerical values are stored as 1.0 or
0.0.
Note: When the values of different 1.0 or 0.0 are assigned to #1100 to 1115, <Empty> is
deemed as 0 and all conditions other than <Empty> and 0 are regarded as 1. But the
numerical values less than 0.00000001 are undefined.
Note 1: The figure below indicates the connection for input signals of user macros.
149
Note 2: The figure below indicates the connection for output signals of user macros.
Example 10.3.1
The 3-digit BCD data with symbol is read to #100 by changing address.
Composition of DI:
215
214
213
Other applications
212
Symbol
211
210
29
28
102
27
26
101
150
25
24
23
22
21
100
20
Composition of D0:
28
27
26
25
24
23
22
21
20
Unused
Other applications
Addresses
AND496
G65
T60:
P9101
OR #7:
: With symbol
#100= - #100:
N9100
M99:
Eight types of 6-digit BCD data (3 digits on the left side of decimal point + 3 digits on the
right of decimal point) with symbol are read to #101 through address change.
When D02=0, 3 digits on the right of decimal point
=1, 3 digits on the left side of decimal point
When D02321=000, No.1 data
=001, No.2 data
P9102
D (data number):
P9100D [#7*2];
#101=#101+#100/1000;
M99;
(2)
The offsets are established by reading these variables and changed by assigning values to
the system variable #1.
Tool offset No.
Tool offset
#2001
#2002
#2003
199
#2199
200
#2200
Workpiece offsets
G59
#2500
#2501
#2506
G59
#2600
#2601
#2606
G59
#2700
#2701
#2706
The fourth
G59
#2800
#2801
#2806
The fifth
G59
#2900
#2901
#2906
Example 10, 3, 2
#30=#2005
Substitute the tool offset of the offset number for variable #30.
When the offset is 1.500mm (0.500inch), the value of #30 will change into 1.5 (0.15).
152
#2210=#8
Alter the offset of Offset number 10 so that it is equal to the value of variable #8.
(3)
Alarm #3000
When error is found in a macro, an alarm will be given. If the alarm number is specified in
system variable #3000, the warning lamp will be lit and NC unit will be in warning state.
#3000=n (ALARM
MESSAGE):
Select the alarm number not used in standard specifications and set it in the macro. (n
200= A warning less than 26 characters may be specified between the note start code and
note end code.
(4)
Type
System variable
Unit of time
Power on
Counting
condition
Clock 1
#3001
1ms
Reset to 0
Any time
Clock 2
#3002
1hr
When there is an
STL signal
The accuracies of all clocks fall within 16ms. The accuracy beyond the range of Clock 1 will
be reset to 0 at 6536ms. Clock 2 will continue to increase provided that it is not
predetermined.
Time cannot be correctly determined in the event that it goes beyond the maximum value
9544hr.
Example 10.3.3: Timing
Macro call instruction
G65 P9101T (wait time)ms;
The macro may be set as follows:
09101;
#3001=0;
: Initial setting
END1;
M99;
(5)
Disable SINGLE BLOCK STOP and wait for end signal of miscellaneous functions
When the following numerical value is assigned to the system variable #3003, SINGLE
BLOCK STOP function will be disabled and the next block will be executed in advance
153
without waiting for the end signal (FIN) of miscellaneous functions (M, S, T and B).
Distribution end signal (DEN) will not be sent without waiting for end signal. Note that a
miscellaneous function
without waiting for end signal will be set after that.
#3003
Not disable
Wait
Disable
Wait
Not disable
Not wait
Disable
Not wait
G00 Z#18;
G01 Z#26;
G00Z-[ROUND (#18)+ROUND (#26)];
#3003=0;
M99;
Single block will not stop. #18 corresponds to R and #26 to Z.
(6)
Set FEEDRATE, FEEDRATE OVERRIDE and ACCURATE STOP CHECK INVALID in #3004
If the following numerical values are assigned to system variable #3004, the FEEDRATE and
FEEDRATE OVERRIDE of the blocks that follow will become invalid and accurate stop
check will not be performed any more. Press the FEEDRATE key during the execution of
FEEDRATE INVALID block.
Pressing down and hold the key: FEEDRATE will be executed at the beginning of the
first block of FEEDRATE VALID.
Pressing and releasing the key: Now the FEEDRATE lamp illuminates. However,
Feedrate is not performed as above, but started at the end point of the first block of
154
FEEDRATE VALID.
#3004
Feedrate
Feedrate override
Accurate stop
check
: Valid
: Invalid
G00Z#18;
#3004=7;
G01Z#26;
M05;
M04;
Z-#26;
#3004=0;
M05;
M03;
G00Z-#18;
#3003=0;
M99;
Note: M05 may be omitted for some machines.
155
Y MIRROR
A MIRROR
Modal messages
#4001
#40021
#4102
#4107
#4109
#4111
#4113
#4114
#4115
#4119
#4120
156
Example 10.3.6: Boring cycle (equivalent to G86) during incremental value/absolute value
mixed programming
Macro call instruction
G65
#3003=1;
Z#26;
M05;
G00 Z-[#18+#26];
M03;
#3003=0;
G#1 M99;
System variables #4001 to #4120 cannot be used for the left item on the left side of the
operational instruction.
(9)
Position messages
Reading in during
travel
#5001
#5002
#5003
#5004
#5005
Applicable
#5021
#5022
#5023
#5024
#5025
Not applicable
#5041
#5042
#5043
Not applicable
157
#5044
#5045
#5061
#5062
#5063
#5064
#5065
Applicable
#5083
Not applicable
#5101
#5102
#5103
#5104
#5105
Not applicable
Abbreviation
ABSIO
Meaning
The end
position of
the previous
block
Coordinate
system
Tool position
Tool length
ABSMT
ABSOT
Workpiece
Workpiece coordinate Workpiece coordinate
coordinate
system
system
system
N/A
ABSKP
Applicable
Tool
Tool position Tool calibrating spot
compensation
Workpiece
coordinate
system
Applicable
Applicable
Tool calibrating
spot
Note: The tool length offset is not valid just between the blocks to be executed, but in the
executing blocks. If SKIP signal is not switched on in G31 block, its position is at the end
point of the block.
Example 10.3.7:
The tool moves to a fixed point (The distances from XP, YP and ZP to the reference point)
and returns to the original position after treatment by programming an intermediate point.
Macro call instruction
G65
G00 Z#26;
X#24 Y#25;
G04; Stop travel because of reading #5021#5023.
G91 X[XP-#5021]Y[yp-#5022]Z[ZP-#5023]:
(Treatment)
X#24 Y#25 Z#26;
X#1 Y#2;
Z#3;
M99;
(10)
VAL
06
NAME
ABCDEFGH
COUNTER
POINTER
1st
2nd
01234
N3456
DATA
-12345678
00020000
-00004025
-00004500
12400000]
START
TOOL-PT
00004500
LSK
159
Summation
#i=#j-#k
Subtraction
Arithmetic product
#i=#j/#k
Quotient
#i=COS[#j]
#i=TAN[#j]
#i=ATAN[#j]/ [#k]
#i=SQRT[#j]
#i=ABS[#j]
Absolute value
#i=BIN[#j]
#i=BCD[#j]
#i=ROUND[#j]
Rounding
160
#i=FIX[#j]
#i=FUR[#j]
(2)
When the function ROUND is used in an address instruction, it shall be rounded off in its
minimum setting unit.
Example: G01 X[ROUND (#1)];
If #1 is 1.4567 and the minimum input increment of X is 0.001, the block will change to G01
X1.457;
This instruction is equivalent to G01 X#1: in the instruction.
The function ROUND in an address instruction mainly applies to the following conditions.
Example: [It is only moved by #1 and #2 in increment and then return to the initial point.]
N1 #1=1.2345;
N2 #2=2.3456;
N3 G01 X#1 F100;
: X moves by 1.235
N4 X#2;
: X moves by 2.346
N5 X-[#1+#2];
Since 1.235+2.346=3.581, the program cannot return to the starting point through N5.
With N5X-[ROUND[#1]+ROUND[#2] ];
This is equivalent to N5x-1.235+2.346] and the program may return to the starting point.
#i #j+#K*SIN [# l ]
Operational order
161
]. [
Example 10.4.2:
#i=SIN [ [ [ #j+#K ] *# l +#m ] *n ] (triple nesting)
3.10.4.7 Accuracy
To arrange an order with macro order, make sure it has an adequate accuracy.
(1)
Data format
The floating point format of the data processed by macro is as follows:
M*2E
Where: M: 1 sign bit +31 binary numbers
E: 1 sign bit +7 binary numbers
(2)
Operational precision
Executing an operation once generates the following error. These errors are totalized in
repeated operations.
Operational format
a=b*c
a=b/c
Average error
Maximum error
-10
-10
1.5510
4.6610
-10
Relative error
-9
4.6610
1.8610
-9
-9
a= b
1.2410
3.7310
a=b+c
a=b-c
2.3310-10
5.3210-10
a=SiNb
a=comb
5.010-9
1.010-9
a=ATANb/c
1.810-6
3.610-6
Error type
Add-subtract operation
162
min (
b c
Absolute error
degree
Note that when absolute values operate subtraction in addition or subtraction, the relative
error will not be maintained below 10-8. For example, assuming the actual values of #1and
#2 are as follows:
#1=9876543210123.456
#2=9876543277777.777
Execute the operation of #2-#1:
#2-#1=67654.321
The above numerical value cannot be achieved. Since a macro has only a decimal 8-bit
precision, the precision of #1and #2 numerical values is degraded and approximates:
#1=9876543200000.000
#2=9876543300000.000
Strictly speaking, the above value differs from internal value because they are binary.
#2-#1=100000.000
Causing a bigger error.
(2)
Logic operation
EQ, NE, GT, LT, GE and LE are basically equivalent to add-subtract operation. Hence note
the error and make sure that the #1 and #2 are equal in the above example. For instance,
IF[#IEQ#2] always fails to make correct judgment.
If IF[ABS[#1-#2]LT50000] is used to make error judgment, #1and #2 are considered equal
when the difference between #1and #2 falls within its error range.
(3)
Trigonometric function
Absolute may be well guaranteed in trigonometric functions. Since they are not below 10-8,
note the conditions of multiplication and division after an operation of trigonometric function.
In the above figure, the executing time increases in the order of . The GOTOn that
has been executed for more times only keeps a short distance from Nn block. When the
contents of a variable are used for measurement as well as warning, it is recommended not
to use the warning program to approach GOTOn statement. The warning program departs
from GOTOn.
Example 10.5.1: When #110, No.150 alarm will be given.
IF [#1GE10]GOTO150;
The conditions in which no alarm will be given:
M99;
N150 #3000=150;
M99;
(If NEOP (NO.306) is set by parameter, the program will be saved in storage and M99 will
not be used as the end of program.)
Note3: During the execution of GOTO, alarm may be given in the following events:
164
#2=10/#1;
END 1;
Operation instruction does not give an alarm even GOTO is executed.
165
#120=#120+1;
N4
END1;
Note 1: REPEAT (pay attention to the following points during REPEAT programming)
DOm shall always be set before ENDm.
END1;
(N/A)
DO1;
DO1;
DO1; (N/A)
END1;
DO1;
END1 (N/A)
END1;
DO1;
END1;
(Applicable)
DO1;
166
END1;
DO1;
DO2;
DO3;
END3;
END2;
END1;
DO1;
DO2;
END1;
END2;
DO1;
GOTO 9000;
167
(Applicable)
END1;
N9000.;
Transferring from the outside to the inside of the DO area is not allowed.
GOTO 9000;
DO1;
(N/A)
N9000..;
END1;
DO1;
N9000..;
(N/A)
END1;
GOTO 9000;
It is possible to call a macro and subprograms from the inside of the DO area. DO statement
may be nested for three times in a macro body or a subprogram.
DO1;
G65..; (Applicable)
G66..; (Applicable)
G67
; (Applicable)
END 1;
168
;
DO1 ;
M98.. ; (Applicable)
END1;
Note 2: As a rule, the time required for TRANSFER is shorter than that for REPEAT.
Example 10.5.3: Wait for the cyclic program whose signal (#10000) is 1
N 10 I F[#1000 EQ 0]GOTO
10;
If
WHILE [#1000 EQ 0] DO 1
END1
Is used for programming, the executing time will be shorter.
(Program number ):
Instruction
M99;
Program number is prescribed as follows:
(1)
O 1 O 7999
The numbers are applicable for the programs that can be freely saved, cleared and edited.
(2)
O 8000 O
8999
The numbers cannot be used for the programs for saving and clearing way edition without
the setting of relevant devices.
169
O 9000 O
9019
O 9020 O
9899
The numbers cannot be used for the programs for saving and clearing way edition without the setting
of the parameters.
(5)
O 9900 O 9999
The numbers are applicable for robot operational programs.
Fictitious variable (the variable that macro calls in instruction to receive data) are fixed,
namely the addresses of the specified parameters correspond to macro body number
through macro call instruction.
Example 10.6.1:
O 9081;
G 00 X#24;
Z#18;
G 01 Z#26;
G00 Z-[ROUND[#18]ROUND[#26]];
M99;
Z
#24
#18
#26
X
If a macro statement are provided after a block without buffer (the M codes without buffer
and the blocks of G31), the statement will be executed after the block.
Example 3.1:
N1 X1000 M00;
Executing block
N2 #1100=1;
Macro statement
Execution of
Macro statement
N2
N1
Execution of NC statement
(b)
Time
When a block with buffer is followed by macro statements,
(i) When tool radius compensation C is not used,
The current block will be executed, and at the same time, the next macro statement will be
executed until the next NC statement.
Example 3.2
N 1 G01 X1000; Executing block
N2 #11001; Executed macro statement
N3 #1=10; Executed macro statement
N4 X2000; Next NC statement
Execution of
Macro statement
N2 N3
N1
Execution of NC statement
171
N4
Execution of
Macro statement
Execution of NC statement
N4
N5
N1
(212) The 2nd NC statement after the executing block is a block without travel.
The statements after the 2nd NC statement (i.e. block without travel) following the executing
block are executed.
Example 3.4
N1 X 1000; Executing block
N2 #10100; Executed macro statement
N3 Y 1000; The 1st NC statement
N4 #11001; Executed macro statement
N5 #110; Executed macro statement
N6 Z 1000; The 2nd NC statement
N7 #11011; Executed macro statement
N8 #220; Executed macro statement
N9 X1000: The 3rd NC statement
Execution of
Macro statement
Execution of NC statement
N4 N5
N1
172
N7 N8
(22) The first NC statement following the currently executing block is a block without travel.
The macro statement cannot be executed.
Example 3.5
N1 Y1000; Executing block
N2 11001; Executed macro statement
N3 #110; Executed macro statement
N4 # Z 1000; The 1st NC statement (the block without travel)
N5 #11011; Executed macro statement
N6 #220; Executed macro statement
N7 X1000; The 2nd NC statement
Execution of NC statement
N1
True
False
The coincidence relation between the addresses assigned to variable assignment I and the
variable number in macro body is as follows:
(2)
A
B
C
D
E
F
H
I
J
K
M
Q
R
S
T
U
V
W
X
Y
Z
#1
#2
#3
#7
#8
#9
#11
#4
#5
#6
#13
#17
#18
#19
#20
#21
#22
#23
#24
#25
#26
I J
J K
Variables in macro
#1
#2
#3
I1
#4
J1
#5
K1
#6
I2
#7
J2
#8
K2
#9
I3
#10
J3
#11
K3
#12
I4
#13
J4
#14
K4
#15
I5
#16
J5
#17
K5
#18
I6
#19
J6
#20
K6
#21
I7
#22
J7
#23
K7
#24
I8
#25
J8
#26
K8
#27
I9
#28
J9
#29
K9
#30
I10
#31
J10
#32
K10
#33
If Type I and II independent variables correspond to the same variable, the latterly specified
independent variable will be valid.
G 65
A1.0
<Variable>
#1: 1.0
#2: 2.0
#3:
#4: 3.0
#5:
#6:
#7
B2.0
I3.0
I4.0
D5.0
P1000:
5.0
In the example, the D5.0 that follows is valid though independent variables I 4.0 and D5.0
are set to variable #7.
Example 10.7.1: Reference point setting
Before instructing hole-group machining, the reference point of the hole group shall be set.
X 0 The X coordinate of hole-group reference point
Y 0 The Y coordinate of hole-group reference point
Macro call instruction:
G 65
P9200
Xx
Yy;
Bolt-hole ring
The reference point set with the reference-point setting macro is used as the center of the
circular ring. The h holes to be machined distribute on the circular ring at equal spacing. The
176
st
1 hole is located on the straight line of a angle (see the figure below).
P9207
Rr Aa Hh;
hole counting
#101
#102
#18
radius r
#1
starting angle a
#11
number of holes h
#30
#31
#32
#33
#31=#102;
#32=1;
WHILE[#32LEABS[#11]]DO1;
#33=#1+360*[#32-1]/#11;
#101=#30+#18*COS [#33];
: Hole position
#102=#31+#18*SIN [#33];
X#101
Y#102;
#100=#100+1;
#32=#32+1;
END1;
#101=#30;
#102=#31;
M99;
Example 10.7.3: Unequally spaced oblique line
The point established by the reference point setting macro is used as the reference point.
The holes to be machined are arranged by different spacing (1, 12) in the direction
forming an a angle with axis X
Coordinates of X0, Y0
A
Angle
Number of holes set by equal spacing (to be assigned with decimal point)
P9203
: hole counter
#101
#102
#1
: angle a
#4
: No.1 spacing 11
#6
#7
: No. 2 spacing 12
#9
#2
#3
#5
#8
#2=#102;
#5=4;
#8=0;
WHILE[#5 LE 31]D01;
IF[#[#5]EQ#0]GOTO 9001;
D02;
#8=#8+#[#5];
#101=#2+#8*COS [#1];
: Hole position
#102=#3+#8*SIN [#1];
X#101
Y#102;
#100=#100+1;
#[#5+2]=#[#5+2]-1;
179
IF[#[#5+2]LEO]GOTO 9002;
END2;
N9002 #5=#5+3;
END1;
N9001 #101=#2;
#102=#3;
M99;
Drilling cycle
G66
P9082
G67 ;
The macro is as follows (for incremental programming)
180
G9082;
G00 Z#18;
G01 Z#26;
G04 X#24;
G00 Z-[ROUND[#18]+ROUND[#26]];
M99;
Example 10.7.5
For a drilling process with the bolt-hole ring as described in 10.7.2 and a unequally spaced
hole group on an oblique line as described in the above example 10.7.3, it is necessary to
perform it with macro and fixed cycle. The program is as follows:
G81;
G65 P9200 X (coordinate of reference point) Y (coordinate of reference point);
G66 P9207 R (radius) A (starting angle) K (number of holes);
G65 P9203 A (angle) I (spacing) K (number) I (spacing);
G67;
Example 10.7.6
G66 P9100;
Z10000; (1-1)
G66 P9200;
Z15000; (1-2)
G67;
: P9200 Cancelled
G67;
: P9100 Cancelled
Z-25000;
(1-3)
09100;
X5000;
(2-1)
M99;
09200;
Z6000;
(3-1)
Z7000;
(3-2)
M99;
Executing order (the blocks without instruction are omitted)
(1-1)
(1-2)
(2-1)
(1-3)
(3-1)
(3-2)
(2-1)
(2-1)
(Note): Since (1-3) is not followed by macro calling mode, modal macro is not called.
The correspondence between calling macro with G code xx and calling the program number
may be set by parameter.
182
The program number for calling G code xx and calling macro is set in parameters.
Except G00, up to 10 of G01 to G255 can be selected to call macro. These G codes cannot
be specified through MDI panel like G65 instruction. The G codes cannot be set in the macro
calling instructions for G codes and used in the subprogram calling instructions with M
codes.
Set the following parameters:
0323
0324
0332
G X
Y M:
183
G X
For M98, a subprogram is indicated on COMND page, but MF and M codes are not sent.
The correspondence between calling macro with M code xx and calling the program number
may be set by parameter.
Except the No. 35 and 36 M30 parameters MBUF1 and MBUF2, at most 3 of M03 to M97 can
be used for macro calling.
Instruction may be specified through MDI keypad. In the macros called by the means that a G
code calls a macro or in the subprogram called by the means that a T code calls a subprogram,
the subprograms of the specified M codes cannot be called like common M codes.
Set the following parameters:
0320
The M code for calling macro: 9001
0321
0322
G91
G28
Y0;
Z0
M20;
M21;
G00
Z10000;
M22;
G28
Z0;
M23;
G#1
G#3
M99;
Except a part of specified M codes, up to 10 of M06 to M255 can call macro. However, this
type of M code cannot be input through MDI like G65 or used in the subprograms called with
G code, M code and T code.
Set the parameters as follows:
043
052
G X
Tt;
Operation is performed when using the following two instructions of the program instead.
#149 = t;
N
G X Y M98
P90000;
The t in T codes is saved as the independent variable in variable #149. T codes are
displayed on COMND page, but TF and T codes are not sent. They may be specified through
MDI but cannot be instructed in the blocks with the M codes for calling a subprogram.
In the macro called by the means for G codes to call a macro as well as in the subprogram
called by the means for M or T codes to call a subprogram, these T codes does not call a
subprogram but are treated like common T codes when instructed.
Set the following parameter:
0306
TMCR
Input in mm
Input in inch
A, C
3 (2)
3 (2)
B (B 3-digit is selected)
D, H
0 (1)
2 (3)
I, J, K
3 (2)
3 (2)
M, S, T
Q, R
185
U, V, W
3 (2)
X, Y, Z
3 (2)
The positions of the decimal point are calculated from the least significant bit for the
numerical values listed in the above table.
The numerical values in () indicate the number of the digits on the right side of the decimal
point. For addresses E and F, parameter FMIC=1.For other addresses, MIC=1.
3.10.7.10 The difference between M98 (calling a subprogram) and G65 (calling a macro
body)
(1) G65 may contain an independent variable, but M98 not.
(2) After executing an instruction other than M, P or L in M98 block, the use of M98 goes to a
subprogram but G65 only transfers.
(3) When M98 block contains an address other than O, N, P and L, a single block stops
execution, but G65 block not.
(4) G65 may change the level of a local variable, but M98 cannot. That is to say, the #1
specified before G65 is different from the #1 in a macro. The #1 specified before M98 is
identical to the #1 in a calling subprogram.
(5) It is possible to call a nesting for 4 times when G65 is combined with G66. M98 can also
call for 4 times (when Macro A or B is selected).
(6) During automatic operation, M98 can achieve 4 calls at most in TAPE mode or MEMORY
mode when an operation is inserted through MDI. One or two codes may achieve 4 calls in
MDI mode. G65 can achieve up to 4 calls in all modes.
Local variables
186
Note that local variables (Level 0) #1 to #33 are provided in a main program.
When a macro (Level 1) is called by G65, the local variable (Level 0) of the main
program is saved, the local variables #1#33 (Level 1) of the new macro (Level 1) are
prepared and the substitution of the independent variables are possible (the same for
).
Each group of local variables (Levels 1, 2 and 3) are saved ant new local variables
(Levels 2, 3 and 4) are prepared whenever a macro (Levels 2, 3 and 4) is called.
When using M99 to return from each macro, the local variables (Levels 0, 1, 2 and 3)
saved in and are restored as they are saved.
MDI operation
Macro call instruction, operation instruction and control instruction cannot be specified with
MDI.
During the execution of a macro and the stop of a single block, the MDI instructions other
than those are related to macros may be executed.
In macro calling mode (G66), inputting a move instruction by MDI cannot perform macro
calling.
(2)
(3)
Single block
The blocks other than macro call instruction, operation instruction, control instruction
sometimes may be processed in single block stop mode in a macro.
The blocks of macro call instruction (G65, G66, and G67), operation instruction and control
instruction do not stop in the workpiece with single block.
However, the blocks other than macro call instruction may perform single block stop and be
set through the following settings and parameters.
For the check of a macro body
0318
MCS9
0319
MCS8
MCS7
187
When MCS7 = 1, single block stop will be performed in the macro statements in 01 to 07999
and 0990009999.
When MCS8 = 1, single block stops in the macro statements in 080008999.
When MCS9 = 1, single block stops in the macro statements in 090009899.
However, when single block stops in a macro in offset compensation mode C, it is assumed
that it does not to move. Sometimes wrong compensation is also performed (strictly
speaking, instructing movement is similar to that the amount of movement is zero). The
assumption is preferential for the single block stop restraint of #3003. In a word, when MCS7,
8 and 9 are equal to 1, #3003 will be equal to 1 (also called 3) in the programs in all program
sequence numbers. All single blocks will be restrained. Here MCS7, 8 and 9 are the
parameters for the inspection of macros. Therefore, the parameter shall be set to 0 at the
end of macro inspection.
(4)
(5)
]), it
PRG9
0319
PRG8
Here PRG8 = 1 corresponds to the user macros and subprograms of program numbers
80008999 while PRG9 = 1 to those of 90009899. Recording, clearance and edition are
not allowed. However, clearance of all blocks and output of single programs can be carried
out upon tenderization.
(6)
MPD9
0319
MPD8
MPD8 = 1 corresponds to the user macros and subprograms of program numbers 8000
8999 while MPD9 = 1 to those of 90009899. These programs are not displayed in the
PROGRAM page for the modes other than EDIT.
(7)
Reset
When reset function is used for clearance, all local variables and public variables #100 to
#149 are in <Empty> mode and system variables #10000 through #1132 cannot be cleared.
188
The calling mode of user macro and subprogram as well as the state of D0 will be cleared
and the main program be returned to in the cases other than the clearance in MDI mode. For
the clearance in MDI mode, only the calling state in MDI mode is cleared.
(8)
(9)
(10)
When the MDI in automatic operation is used to insert a macro, up to 4 levels of the nesting
degree called by macros and that of D0 can be continuously called from the beginning of
automatic operation.
The display of PROGRAM RESTART page
The M and T codes used for calling a subprogram are not displayed like M98.
(11)
Feedrate
When Feedrate is set to ON, the execution of macro statement stops (also stops during
alarm clearance).
ISO
Meaning
[
]
#
*
=
0
+
(2)
Binary encoding
1
1
1
1
1
1
0
1
1
0
0
0
1
0
0
0
1
1
1
0
1
1
1
0
0
1
0
0
1
1
0
1
1
1
1
0
1
0
0
1
1
0
Symbol
1
0
1
1
0
1
1
1
1
1
0
1
1
1
[
]
#
*
=
0
+
EIA
Meaning
[
]
#
*
Binary encoding
0
0
0
1
0 1
1
1
0 0
1
1
Parameter setting
0 0
1
1
189
Symbol
0
0
0
0
&
0
1
1
1
1
1
1
0
0
0
1
0
1
0
,
+
0317
The special characters used by Macro A are as follows: OR, XOR, IF, GOTO, EQ, GT, LTT,
GE, LE.
The special characters used by Macro B are as follows:
AND, SIN, COS, TAN, ATANN, SQRT, ABS, BIN, RCD, ROUND, FIX, FUP, WHILE, DO,
END.
3.10.10 Restrictions
(1) Usable variables
#0, #1#33, #100#149, #500#509 and system variables
(2) Usable variable value
Maximum 1047, minimum 10
39
]: up to 5 levels
n is applicable.
P9802
XxYyZzRrQqIIJjKkTtDdFfEe*
X#10
Y#11;
Z#18;
#14=18;
D01;
#14=#14#17;
IF[#14GE13]GOTO 1;
#14=#13;
192
G01
Z#14
F#8;
X#12 F#9;
#15=1;
WHILE[#15
LE
#31] D02;
Y[#11+#15*#32];
IF[#15
AND
1 EQO]GOTO02;
X#10;
GOTO
3;
N2 X#12;
N3 #15=#15+1;
END2;
G00 Z #18;
X#10 Y#11;
IF[#14 LE#13]GOTO 4;
G01 Z[#14+1F[8*#8];
END1;
N4 M99;
#b
Character
Variable
[o] ]
Number of effective digits after decimal point
The output of characters and binary output of variables are performed during the
execution of BPRNT instruction.
(a) Characters: Instructed characters output as ISO codes. The characters that can be
instructed include:
z
Latin letters (AZ)
z
Numerical values
(b) Since all variables with a decimal point will be saved. The number of the valid digits after
decimal point is indicated with the parentheses following a variable instruction. The
variable value that takes the digits after decimal point into account is indicated with a
2-character data (32bit) and starts from high byte outputting in binary data.
(c) EOB codes outputs with ISO codes after outputting instruction data.
(d) The variables of <Empty> cannot be output (with 114#p/s alarm)
(2) DPRNT [
#b
[cd]
Number of the digits after decimal point
Number of the digits before decimal point
Variable
Character
The output of characters and digits of numerical values may be performed with ISO
codes during the execution of DPRNT.
(a) Refer to the descriptions for the points (a), (c) and (d) of BPRNT instruction.
194
(b) During the output of a variable value, the variable number is specified after character #.
Here the numbers of the digits before and after decimal point are specified in
parentheses.
The number of digits of a variable value starts from high-byte valid digit. Each digit and
its decimal point are output through ISO codes.
A variable value consists of up to eight digits. If its high-byte digit is 0, then no code will
be output when No. 315 parameter PRT=1 and space code is output when PRT=0.
Whenever no decimal is output, + code outputs space code when No.315 parameter
PRT=0 in the situation of its sign is positive (+). No code will be output when PRT=1.
PRT
7
6
5
4
3
2
1
0
The leading zero is treated by PRT DPRNT instruction as follows during the output of data.
0: Output space
1: Not output
3.10.13.5 Cautions
(1) It is unnecessary to continuously set the open instruction (POPEN), data output
instruction (BPRENT, DPRNT) and close instruction (PCLOS). After setting the open
instruction at the beginning of a program, it is not necessary to set the open instruction
until the close instruction is set.
(2) Open instruction and close instruction shall be set in pair without omission.
That is, close instruction shall be given at the end of a program. It is impossible to
individually set the close instruction without the open instruction.
(3) Reset the data output instruction in the execution of stop program and cancel the data
195
that follows.
If the reset process is instructed by with M30 or a similar instruction at the end of a data
output program, you need to specify the close instruction at the end of the program and
to wait until all data is output before the start of M30 or other reset process.
(4) It is necessary to select Macro B and I/O interface for the function.
Setting M99; program returns from the original program. The sequence number of the
original program returned to may be set with address P.
(Note 1): Refer to Appendix 11 for the details of the functions of macro.
(Note 2): Make sure to refer to the operation manual supplied by the manufacture of the
machine when using this function.
Format
O
G10L3
P L
Meaning
Program number
To set the beginning of tool groups
What follows P is the group number of N01~128
196
TH O O D
TH O O D
TH O O D ;
P L;
TH O O D ;
G11:
M02(M30):
Tool No.
16
16
32
64
128
(Note 3) H codes and D codes can be omitted when they are not to be used.
197
(Note 4) The same tool number may appear for many times or appear in any position in set
data. The following is an example of program format.
00001;
G10L3;
P001 L0150;
T0011 H02 D13;
T0132 H05 D08;
T0068 H14 D16;
P002 L1400;
T0061 H15 D07;
T0241 H25 D04;
T0134 H17 D03;
T0074 H08 D21;
P003 L0700;
T0012 H14 D08;
T0202 H22 D02;
G11;
M02;
(Note 5) The tool group numbers specified by P are not necessarily continuous and all
savable tool groups need not to be set.
Meaning
198
M O 6 T ;
H;
D00
T ;
M O 6 T;
M02
( M
3 0
);
Meaning
199
T 0 1 0 1;
M 0 6 T 0 0 0 3;
G 4 3 H 9 9;
G 4 1 D 9 9;
D 0 0;
H 0 0;
T 0 0 0 5;
M 0 6 T 0 1 0 1;
What follows the next M06 instruction is No.1 group of the used tools.
End of the currently used No.0003 tool and start of using No.1 group of
tools
The setting of the tool length offset number used in No. 1 group
The setting of tool offset number used in No. 1 group
Cancellation of tool compensation
Cancellation of tool length compensation
To use No.0005 tool after the next M06 instruction
End of No.1 group of tools and start of No.0005 tool
and tool change reset signal input or MDI panel (see 3.11.4.3) operated. All data such as life
counter *,@, etc (see 3.11.4.2) are cleared. All tool groups are changed and reset when tool
change signal is automatically released at the end of tool life. After machining is restored, the
group starts selection from the first tool.
(Note) For specifying tool life in time, tool change signal is output once it has reached service
life and machining goes on until the end of program. For specifying tool life in number of
cycles, tool change signal is output in case of M02 or M30 reset at the end of tool life.
3.11.4.2 The display of tool life data during the execution of machine program
Pressing the DIAGNOSIS button twice in any mode displays the first page of tool life data in
the following format on the screen of LCD.
201
Group No.
T 0 0L
Service life
LIFF
DA TA
01 :
00001
N0012
SELECTED GRP
GRP
GRP
GRP
001:
LIFE
9800
001
COUNT
Life counter
* 0034
*0078
* 0090
@0 0 7 6
0032
0098
0054
0010
0099
0087
0077
service
0066
0055
0024
LIFE
0500
COUNT 0112
#:
* 0011
*0 0 2 2
*0 2 0 1
*0 1 4 4
* 0155
*0 0 6 6
*0 1 7 6
*0 1 8 8
#0019
0234
0007
0112
0156
0090
0016
0232
0 0 2:
TO
003
BE
006
*0012
6501
*0056
CHANGED :
012
013
LSK
014
INC
Two groups of data are displayed on each page. Pressing the page turning button displays
all data groups in sequence. Tool change signal may be given to up to 5 groups, which are
displayed at the bottom of each page. For 6 or more groups, an arrow will be indicated in the
diagram.
To review the data, select address N, enter the group number and press the INPUT button,
or pressure press the CURSOR button to move the cursor to the GRP of the next group
and to display its data.
functions as the reset of the tools in the group (see Section 3.11.3.2).
The point A in the above figure is the actual position. The mentioned instruction moves as
shown in the above figure.
203
B45 ;
X29 ;
Indexing sequence A
204
Indexing sequence B
Positioning check is always performed at the Point A when the above indexing sequence A/B
is selected by parameter setting.
Note 1: Clamping or releasing signals are cleared when the NC is reset in the waiting state
after clamping or release. NC unit then completes the waiting state and enters into reset
state.
Note 2: In clamping or releasing mode, these states remain unchanged even the unit is reset,
namely the sequence of release or clamping cannot be automatically executed through reset,
but clamping are releasing signals are cleared.
Note 3: The waiting state after clamping or releasing is displayed in diagnosis mode display
state (DGN701-BCNT).
3.12.5 Jog/step/handwheel
Operations in Jog/step/handwheel mode cannot be performed for Axis B. However it may
return to the reference point in Jog mode. Travel stops once the axis selection signal
becomes 0 when manually returning to the reference point. Clamping instruction is not
performed. In order to avoid the problem, set the sequence program on the machine side so
that the axis selection signal will not become 0 before returning to the reference point.
The indication of the actual position on the screen of LCD, indication of external
position and the indication on the screen of COMND have a decimal point.
Example: B180.000
(2)
Whether the internal absolute coordinates of NC for Axis B use 360 full circle is set by
parameter (314IRND).
(i) when IRND0, absolute coordinate is rounded to 360 and starts from 0 position.
If G90 B720; is specified, Axis B rotates by 720 (2 turns) and the actual position
205
90
180
270
90
180
270
0.
The result of 360 rounding, absolute coordinates and actual position are displayed
between 0 and 359.
For the RELATIVE in the display of the actual position (ABSOLUTE RELATIVE),
rounding is only performed when parameter No. 007 PPD1.
No matter it is in the condition of (i) or (ii), the mechanical coordinate system often
uses 360 for rounding. When automatic return to the reference point is specified,
(G28) calculates the amount of movement with the mechanical coordinate system.
The movement between the intermediate point and reference point is less than
360 (on turn).
(3)
(Note) Though M15 is processed inside the NC, FIN signal returns to the NC because
MF and M codes are sent to the machine side.
(4) During the movement of Axis B, Feedrate, reset and emergent stop are valid. Proper
workpiece shall be done on the machine side in order to prevent stop in midway.
(5) When the option is adopted, the additional axis servo ON signal (*8VF4) will become
invalid.
206
(6) Standard additional axis still applies to the requirements, parameters and inter-unit
connection that are not described in the instruction manual.
207
Add: No.52, 1st . Street, Luochong North Road, Luochongwei, Guangzhou, 510165, China
Website: http://www.gsk.com.cn
Tel: 86-20-81796410/81797922
E-mail: gsk@gsk.com.cn
Fax: 86-20-81993683
Aug.
2007/Edition 4
Aug.
2007/Printing 4
User Manual
(Volume II: Operations)
Foreword
Dear user,
We are really grateful for your patronage and purchase of GSK983M milling CNC system made by
GSK CNC Equipment Co., Ltd.
This manual consists of two volumes. Volume I mainly describes the specifications
and programming of the system while Volume II operations, all codes, parameters,
I/O interfaces and other appendices.
All specifications and designs herein are subject to change without further notice.
We are full of heartfelt gratitude to you for supporting us in the use of GSKs
products.
CONTENTS
4. OPERATIONS......................................................................................................................................1
4.1 Power On/off .................................................................................................................................1
4.1.1 Power on ..................................................................................................................................1
4.1.2 Power off ..................................................................................................................................1
4.2 Key Switch.....................................................................................................................................1
4.3 Operations Involving with the Operation Panel .........................................................................1
4.3.1 Operation panel........................................................................................................................1
4.3.2 Emergency stop (red)...............................................................................................................2
4.3.3 Selection mode.........................................................................................................................3
4.3.4 Operations involving with manual operation .............................................................................3
4.3.4.1 Jog feed .............................................................................................................................3
4.3.4.2 MPG feed...........................................................................................................................4
4.3.4.3 Manual absolute ................................................................................................................5
4.3.5 Manually returning to reference point (reference position) .......................................................9
4.3.6 Operations on automatic running ...........................................................................................10
4.3.6.1 Start of automatic operation .............................................................................................10
4.3.6.2 Suspension of automatic operation..................................................................................10
4.3.6.3 Single block .....................................................................................................................10
4.3.6.4 Restart after feed hold or stop .........................................................................................11
4.3.6.5 The manual operations in automatic run..........................................................................11
4.3.6.6 The MDI operations in automatic run ...............................................................................11
4.3.6.7 Skipping over optional blocks ..........................................................................................12
4.3.6.8 Feedrate override ............................................................................................................12
4.3.6.9 Dry run .............................................................................................................................12
4.3.6.10 Machine lock..................................................................................................................12
4.3.6.11 Display lock....................................................................................................................12
4.3.6.12 Mirror image...................................................................................................................12
4.3.6.13 Rapid traverse override .................................................................................................13
4.3.6.14 External workpiece number search function ..................................................................13
4.3.7 JOG feed at any angle ...........................................................................................................14
4.3.8 Manual insertion .....................................................................................................................15
4.3.8.1 Inserting operations by MPG(manual pulse generator/handwheel) .................................15
4.3.8.2 Manual inserting movement by MPG...............................................................................16
4.4 The Display and Operations of the MDI/LCD Panel with LCD Characters .............................17
4.4.1 Status display .........................................................................................................................18
4.4.2 Key input ................................................................................................................................18
4.4.3 Display of program numbers and sequence numbers ............................................................19
4.4.4 Alarm display (function button ALARM)..................................................................................20
4.4.5 Operator information ..............................................................................................................21
4.4.6 Display of actual position and reset (function key POSITION) ...............................................21
4.4.7 Indication of instruction value (function button COMMAND) ..................................................22
4.4.8 Setting (function button SETTING) ........................................................................................24
4.4.8.1 Display and setting of input, output, etc ...........................................................................24
4.4.8.2 Display and setting of user macro variables ....................................................................26
4.4.9 Operating through MDI (function key COMMAND) ................................................................27
4.4.10 Start of MDI motion...............................................................................................................28
4.4.11 Reset ....................................................................................................................................28
4.4.12 Tool position offset................................................................................................................29
4.4.13 Setting and display of workpiece origin offset (Optional) ......................................................30
4.4.14 Measurement of tool length ..................................................................................................31
4.4.15 Program display (function button PROGRAM).....................................................................31
4.4.16 Program number search (function key PROGRAM) ............................................................33
4.4.17 Inputting a program with keys...............................................................................................33
III
IV
4. OPERATIONS
4.1 Power On/off
4.1.1 Power on
1) Make sure all parts of the machine are properly wired and secured.
2) Switch on the machine by following its manual.
3) Pictures appear on the LCD several seconds after switching on the machine.
Relevant operations cannot be performed unless the key switch is actuated. However, the
concerned data is still displayed on the LCD.
2)
Operations can or cannot be performed without actuating the key switch. It is possible to
switch between the two modes by parameter.
The Section 4.4 herein will describe in detail which functions are under the protection of 1) or 2)
mode.
In an emergency, press the EMERGENCY STOP button to stop the movements of all the axes of
the machine. At the same time, the button is locked in the stop position.
The release mode of the button varies with different manufacturers. In general, it is released by
pushing down and clockwise turning the button.
Note 1: The power supply of the motor is switched off when the button is pressed.
Note 2: The control unit is in reset state.
Note 3: Make sure to eliminate all troubles before releasing the button.
Note 4: Return to the reference point by through manual operations or G28 instruction.
Modes
EDIT
AUTO
(MEMORY)
MDI
JOG
MPG(HANDLE)
MACHINE
ZERO (HOME)
Functions
Perform the following operations:
(1) Saving programs in storage;
(2) Modifying, inserting and deleting programs;
(3) Outputting the programs in storage and editing other programs
(1) Executing the programs saved in storage;
(2) Search the sequence numbers of the programs in storage
(1) Manual data entry may be performed through MDI and the
operation panel of the machine.
(1) It is possible to perform Jog feed.
(1) It is possible to perform manual feed.
Return to the machine zero.
2)
Select a motion axis so that the machine travels in the selected direction.
Note 1
Note 2
After power on, the selected axis of the machine will not immediately move even the
SELECTION MODE switch is set to JOG position. Now it is necessary to reselect an axis.
3)
Feedrate
Lead screw for feed in metric system
mm/min
inch/min
0
0
1.0
0.04
0.02
0.508
1.4
0.055
0.208
0.711
2.0
0.079
0.04
1.02
2.7
0.106
0.054
1.37
3.7
0.146
0.074
1.88
5.2
0.205
0.104
2.64
7.2
0.283
0.144
3.66
10
0.394
0.2
5.08
14
0.551
0.28
7.11
10
20
0.787
0.40
10.2
11
27
1.06
0.54
13.7
12
13
52
2.05
1.04
26.4
14
72
2.83
1.44
36.6
15
100
3.94
2.00
50.8
16
140
5.51
2.80
71.1
17
200
7.87
4.00
102
18
270
10.6
5.40
137
19
370
14.6
7.40
188
20
520
20.5
10.40
264
21
720
28.3
14.40
366
22
1000
39.4
20.00
508
23
1400
55.1
28.00
711
24
2000
78.7
40.00
1016
Note 1: The numerical values listed in the above table vary with different machines.
Note 2: The allowable deviation of the feedrates listed in the above table is approximately 3%.
4)
Rapid traverse
An axis rapidly traverses in the selected direction when the button is pressed.
Note 1: The feedrate, time constant and acceleration/deceleration mode for manual rapid traverse are
the same as the rapid traverse under G00 program instruction.
Note 2: When the machine has a memory type travel limit selecting function, it shall be provided with an
axis with the function of returning to the reference point. When the RAPID button is pressed after
power on or emergency stop, its feedrate will not change into rapid feed but maintain at Jog
feedrate provided that the function of returning to the reference point is not executed.
This is because memory type travel limit dose not function before the manual return to the
reference point, thereby preventing the machine from quickly reaching the end of run.
- direction
1
0.001mm
0.0001inch
Note 1: If the handwheel rotates at a speed over 5 turns per second, the amount of the rotation of the
4
If the switch is set to ON, the manual-operated travel amount will be added to the coordinate axes.
(1)
(2)
G01
G90
X100.0
Y100.0
F010
X200.0
Y150.0
X300.0
Y200.0
a) The above block has been executed while block is only executed after manual
operation (travel by 20.0 in X direction and 100.0 in Y direction).
b) Press the FEED HOLD button in the execution of the block . After manual operation
(Y+75.0), press the CYCLE START button so as to cancel the hold mode and continue the
execution.
c) Press the FEED HOLD button in the execution of the block . Reset the machine after
manual operation (Y+75.0). The block restarts inputting.
d)
When manual operation is followed by a single-axis instruction, then only the instructed axis
returns to the programmed absolute position of the axis.
N1 G01 G90
N2 X200.0
N3 Y160.0
X100.0
Y100.0 F5000
e) When manual operation is followed by an incremental instruction, then the position that the
6
(2)
The vectors between the next block (tool path from PB to PC) and the one that follows (from
PC to PD) do not need compensation. The new vectors (VC1, VC2) with compensation
results from the relationship between the two blocks (programmed paths from PB and PC to
PD and from PC to PD). Since vector VB2 coincides with VB2, however, the section of path
between PB and PC as a result of tool offset is not accurately performed. But for the block
after point PC, tool offset can be precisely performed.
Example 2: If manual operation is inserted in angle machining in the case of tool radius
compensation, the feed path after manual operation will be determined by the same method
as Example 1. That is, the vectors VA2, VB1 and VB2 in the figure below are determined by
translating the vectors VA2, VB1 and VB2 by an amount of manual travel and the new
vectors result from VC1 and VC2. The block after point PC will be precisely performed by the
tool offset compensation C.
(b) If manual operation is inserted after the execution of single block function, the vectors VB1
and VB2 for the end points of the current block will be moved in parallel and the method for
determining the following feed path will be identical with (a). MDI operation may be inserted
after the execution of a block with single block function. The feed path after MDI operation
coincides with tat after the insertion of a manual operation.
Select the program number. See Section 4.4.16 Program number search.
(b)
(c)
Press the CYCLE START button. Automatic operation starts once the CYCLE START
button is pressed and at the same time the CYCLE START indicator is lit.
Note 1: The programs read in are loaded when the CYCLE START button is pressed in EDIT mode. The
loading mode is the same as that when the INPUT button is pressed for parameter setting.
Note 2: The CYCLE START button is inactive in the following conditions
(a) When the FEED HOLD button is pressed;
(b) When the EMERGENCY STOP button is pressed;
(c) When the RESET signal is enabled (contact the manufacturer of the machine for details);
(d) When the SELECTION MODE switch is set to a wrong position (other than AUTO or EDIT
mode);
(e) When it is search a sequence number;
(f)
When the result of the fixed circular calculation is not 1, the FEED HOLD indicator illuminates
except the block of the final cycle. The FEED HOLD indicator illuminates whenever block
or stops.
Note 3: For the blocks of M98P, M99 and G65, G66 or G67, the stop of the single block is invalid.
However, it is valid if the instructions in M98 or M99 block are of the addresses other than O, N, L
and P.
(2)
Press the CYCLE START button. The FEED HOLD indicator goes out when the CYCLE
START button is pressed.
In automatic run, suspend the operation by pressing the FEED HOLD button on the
operation panel or bring the SINGLE switch to ON position.
(2)
Record the coordinates of the stop position displayed by the location display unit.
(3)
(4)
Return the tool to the recorded coordinates (the origin of JOG operation).
(5)
Set the SELECTION MODE switch to the position before JOG operation so as to restart
automatic run.
(6)
(2)
(3)
(4)
To restart automatic operation, return to the original operation mode and press the CYCLE
START button on the operation panel.
Note 1: The modal data reserved in cycle movement is under influence when MDI instruction is used.
Note 2: The modal data instructed by MDI is still valid for automatic MDI operation.
11
Note: While blocks are being read in the buffer from storage, the validity of function of skipping
over optional blocks is judged. Therefore the function is invalid for the blocks read in buffer
register.
When G27, G28 or G30 instruction is set, the machine will not return to the reference point.
Hence the indicator for returning to the reference point is not lit.
Note 2:
12
N
120 M02
0
0002
N
0001 G00
N
300 M30
0
0004
N
001 G00
13
0
6247
N
001 G00
N
034 M99
Note 1:
Each program shall be started by the address 0 followed by a program number and ended by
M02, M30 or M99. However, M02, M30 and M99 cannot be specified in the middle of the
program. If one of them is specified in the middle section, the program that follows will
regarded as another program segment (the block following M02, M30 or M99 is immediately
numbered as a program when the program is stored in memory).
Note 2:
The allowable quantity of workpiece numbers depends on factory setting (see the manual of
the machine).
Note 3:
For the machine system provided with external workpiece number search function A, the
allowable maximum workpiece number is 31. Now the first two digits of the program number
corresponding to a workpiece number must be 00.
(1) Operating procedures
Operating procedures vary with different manufacturers of machine. The operating
procedures described below are general. Refer to the manual supplied by manufacturer of
the machine for specific operating procedures.
Note 1:
Select the automatic mode and then set the program (01 to 31) corresponding to the workpiece
number with the rotary switch on the operation panel on the machine side. When the START
button is pressed, the program corresponding to the set workpiece number will be searched
out and machining performed with the start of the program.
Note 2:
When a workpiece number is set to 00, the corresponding program will not be searched if the
START button is pressed. The execution starts from executable section of the current program.
For the situations that starts in the midway of the program or that the executing program is
independent of workpiece number, it is necessary to set the workpiece number to 00 and press
the START button after sequence number search or program number search.
Note 3:
The function does not apply to MDI operation but automatic operation.
Note 4:
If a program number corresponding to the workpiece number is not stored in the memory, an
alarm (No. 59) will be given once the START button is pressed.
Note 5:
It is not always necessary to select the relevant program even a workpiece number is selected
with the dial. Refer to the manual supplied with the machine for the procedures for selecting a
program. When workpiece number search function A is selected, program search is performed
after the NC system starts automatic operation in reset mode.
Set the SELECTION MODE switch to the mode of JOG feed at any angle
(2)
Set an angle with the angle setting dial. The position of an angle is selected among 0-71 with a
2-digit BCD code. 0 ~71 correspond to 0 ~360 respectively (in 5 increment).
14
For angle setting, make sure to switch on angle strobe pulse. If angle strobe pulse is switched
on, the formerly set angle will remain valid.
As shown in the above figure, the + direction of Axis X is 0 and that of Axis Y is 90.
(3)
Select a feedrate (speed in tangential direction) with the Jog feed dial.
(4)
Press the START button in the mode of JOG feed at any angle. Then the machine moves at
the selected feedrate in the set direction.
If the JOG RAPID button is pressed, the machine will feed at the maximum Jog feedrate. The
machine feeds when the JOG RAPID TRAVERSE button is switched off and stops feed when
it is switched off.
Note 1:
If axes X and Y are interlocked, both axes will slow down and stop. They will restart once the
interlocking is disabled.
Note 2:
In automatic operation, it is possible to insert JOG feed at any angle when the machine is stop
in feed hold mode.
Note 3:
For the situation with external deceleration selection, JOG feed at any angle is also active.
Now the tangential feed is equal to the external decelerating rate.
Note 4:
The automatic acceleration and deceleration for cutting feed also apply to the JOG feed at any
angle.
Note 5:
JOG feedrate at any angle does not change with Jog feedrate even during the switching
between metric and inch systems.
(2)
Operating state: Manual insertion is possible during linear interpolation, arc interpolation, spiral
interpolation or sine-curve interpolation.
However, the following conditions are excluded:
(I)
(3)
Amount of travel: The amount of travel to be inserted by manual shall be identical with that
during JOG feed. The amount of travel depends on the scale of the manual pulse generator and
JOG feed overrides (X1, X10 and X100) and is added to that of automatic operation.
(2)
Traverse speed: The axial speed for JOG insertion is the result of the addition of the travel speed
of automatic operation to that inserted by manual. Therefore, axial speed is limited to rapid
traverse speed (Parameter HR) in the event that axial speed exceeds rapid traverse speed.
Displacement mismatches the indicated value of the manual pulse generator.
(3)
(4)
Affected: The tool does not move when MACHINE LOCK is enabled.
Affected: Relative coordinates remain unchanged when display is locked.
Not affected: The machine moves forward when the handwheel is turned
clockwise.
(5)
Travel
Travel
Not affected: Manual-inserted pulse is not added to absolute coordinates
Affected: Manual-inserted pulse is added to relative coordinates
Affected: Manual-inserted pulse is not added to mechanical coordinates
806
807
808
809
16
4.4 The Display and Operations of the MDI/LCD Panel with LCD
Characters
The MDI/LCD panel is usually mounted on the upper front side of the control cabinet. It consists
of an LCD and buttons as follows.
Function buttons: The large number of items displayed with the function buttons is just like the
chapters of a book. When a function button is pressed for the second time and third time, the chapter
2 or 3 of the corresponding display functions (if the function button for the chapter is provided). Each
chapter includes several pages and each page is selected with the page button.
4TH
5TH
The names and meanings of all function buttons are listed below.
POSITION
SETTING
Pressing once
Pressing once
Pressing twice
Pressing for
the third time
Pressing once
PROGRAM
Pressing twice
PARAMETER
OFFSET
ALARM
COMMAND
Pressing once
Pressing twice
Pressing once
Pressing twice
Pressing once
Pressing twice
Pressing once
Pressing twice
Status indication
18
Data cannot be typed in any more when the POSITION or and ALARM button among the
function buttons is pressed to display a screen.
Press D/H to enter D and again to enter H.
Only a word consisting of one address and a figure can be typed in when Program edit is not
being performed. Pressing CANCEL once clear a word.
One or more words, a block or any character string of up to 32 characters can be entered with
the keys during Program edit.
The last entered character is cleared by pressing the CANCEL key. If the CANCEL key is
pressed continuously, the typed characters will be cleared in succession.
Note: In EDIT mode, Program edit is possible when the PROGRAM button is pressed.
19
Edit mode
Auto
mode
(MEMORY)
Operation
Indication
To display
searched
the
program
numbers
Note: As a rule, alarm message appear on the screen in the event of alarm.
20
When operator information appears after some other page is displayed, press the ALARM button.
When alarm message appears, press it again.
(2)
Press the Page button. Data is displayed in one of the following three modes.
(I)
GO)
DISTANCE TO GO indicates the remaining distance of a block. The positions of all coordinate
systems cannot be reset when displaying the comprehensive position. The unit of machine
coordinate system is identical with that of the machine system.
22
(2)
Press the PAGE button. Data is displayed in the following two modes.
(I)
Display the formerly set modal values while executing an instruction value.
As shown in the above figure, the figure following character % stands for feedrate.
(II)
Display the instruction value input by MDI or the instruction value to be executed next time.
(III) Display the instruction value of the next block to be executed during the tool offset of tool
radius compensation C.
23
(2)
Press the PAGE button. Setting and display may be performed in the following two modes.
(I)
Setting (active when the program protection lock is disabled and inactive when it is locked,
which can be switched by parameter)
(a)
(b)
Press the cursor button to move the cursor to the position of the item to be changed. The
cursor cannot be moved with the address key N.
(c)
24
or
1 , INPUT to proceed.
Note 1: Unselected selection function cannot be set. For example, INPUT UNIT=1 cannot be
used for a metric-system machine when metric/inch system selection function is not available.
PUNCH CODE=1 cannot be set when ISO code input selection function is not available.
Note 2: INPUT UNIT is automatically rewritten when executing G20 (input in inch system and
G21 (input in metric system).
Note 3: The ISO or EIA specified by PUNCH CODE is independent of input during data output.
ISO or EIA code can be automatically identified.
Note 4: The output device for data output is set with data No. 341.
(II)
Meaning
Run time (Unit: hr) (TMHOR)
Run time (Unit: min) (TMMIN)
Run time (Unit: sec) (TMSEC)
The retraction (CYCR) in fixed cycle G73 (depth high-speed Jog touring cycle)
The cutting origin in fixed cycle G83 (depth Jog touring cycle)
Run time (TIMDE1)
X value of Acme 1 of storage type travel limit 2
Y value of Acme 1 of storage type travel limit 2
Z value of Acme 1 of storage type travel limit 2
X value of Acme 2 of storage type travel limit 2
Y value of Acme 2 of storage type travel limit 2
Z value of Acme 2 of storage type travel limit 2
The sequence number whose execution has stopped
Settings (PRG8.MSBL)
25
340
341
355
356
407
Note 1: The data numbers other than those listed in the above table are not displayed.
Note 2: It is also possible to set the data number identical with the above table as a reference
number.
Note 3: Refer to Appendix 5 for the details about data numbering.
Note 4: The details of data No. 340 and 341 are as follows:
340
I DVICE
341
O DVICE
IDVICE is used to select an input device for storing data in memory. When the set input device
(INPUT DEVICE)2=1(Interface RS232), the setting is valid.
ODVICE is used to select an output device for data output.
Setting
0
1
2
3
4
I/O
Input: paper tape reader; output: FACIT PUNCHER
Common for input and output: ASR33/ASR43; Set
parameters to 310.
Common for input and output: reader/puncher; Set
parameters to 311.
Common for input and output: reader/puncher; Set
parameters to 312.
Common for input and output: reader/puncher; Set
parameters to 313.
26
Display
(1)
(2)
Since the display covers 6 pages, you need to press the PAGE button to display the required
page.
Page 1The currently called local variables #1-#20 for nesting
Page 2The currently called local variables #21-#33 for nesting
Page 3General variables #100-#119
Page 4General variables #120-#139
Page 5General variables #140-#149
Page 6General variables #500-#509
(3)
Example: X 10.5
Y200.5
27
(d) Press the X , 1 , 0 , and 5 keys and the INPUT button in succession. If the
numeral entered before pressing the INPUT button is incorrect, press the CANCEL button
and enter the correct numeral again. If an error is found after pressing the INPUT button, it
is necessary to enter the numeral again.
(e) Press the Y , 2 , 0 , 0 , and 5 keys and the INPUT button. If the typed numeral
is found incorrect, proceed in the same way as inputting X.
(f)
(2)
Press the CYCLE START button on the control panel of the machine.
Delete Y200.5 from X10.5 Y200.5 before pressing the CYCLE START button.
(a) Press the
4.4.11 Reset
As a rule, pressing the RESET button cancels alarm state.
Once the RESET button is pressed, the NC system is set to the following states:
28
In any case, pressing the RESET button sets the NC system to reset state. In the modes other
than MDI, the NC system is set to the LABEL SKIP mode.
(2)
(3)
(4)
(5)
Type
P ,
1 ,
5 ,
Note 1: When offset is changed in automatic operation, the new offset is not valid until its number
is specified as D or H code.
Note 2: 0-9999 INPUT is used to reset all offsets to zero.
(2)
Press the PAGE button to display the required page. Each page indicates as follows:
(i)
(4)
(5)
Type X ,
button.
Y,
or 4TH/5TH and the offset to be changed or set. Then press the INPUT
The setting range of the workpiece coordinates is 0 mm to 7.999 mm or 0 inch to 7.999 inch.
(2)
Select a standard tool and manually move it until it contacts the fixed point of the machine (or
fixed point of workpiece).
(3)
Press the Z and SHIFT buttons so that the relative coordinates of Axis Z is reset to zero.
(4)
Then select the tool to be measured and manually move it until it contacts the same fixed point.
Now the difference between the standard tool and that to be measured is indicated in the display
of relative position.
(5)
Just like the setting of offset, move the cursor to the offset number and press the Z and INPUT
keys but do not type in any numeral. The measured difference now is the offset to be input.
When in EDIT mode, press the PROGRAM key to display the page of the selected character in
the current selection program.
31
See the program number in Section 4.16 for which program is displayed. Pressing the cursor
or key displays the contents of the program in sequence. When the cursor key is
pressed, the page is displayed in forward direction. When the cursor key is pressed, it is
displayed in reverse direction.
(Note 1) Set the SELECTION MODE switch to EDIT and press the PROGRAM button to display
the contents of the program at the beginning of an executing or executed block. However, the
beginning of the program will be displayed when it is returned to (see 4.4.24.4).
(2)
In automatic operation
Press the PROGRAM button to display the current executing block.
Note 1: Strictly speaking, when the buffer register becomes empty neither in automatic operating
state nor in feed hold state, the blinking of the cursor indicates the next block is going to read in
the buffer register so as to continue to execute a program.
Note 2: When the PAGE button or cursor button is pressed in EDIT mode to move the cursor and
the program is started in memory mode, the block at the cursor in EDIT mode is read in the
buffer register.
(4)
1001
3054
1972
Method 1
(a)
(b)
(c)
Enter
and the program number to be searched and then press the cursor
key.
Method 2
(a)
(b)
(c)
Press
displayed.
(3)
Method 3
(a) Select the EDIT mode
(b) Press the PROGRAM key.
(c) Press
programs are displayed in sequence for reviewing the stored program numbers when the
cursor
Note 1: The start position is returned to when the stored program numbers are displayed.
Note 2: The contents in the buffer register are deleted when search a program number.
33
O , the program
EOB
(e) If a typed character is incorrect, press the CANCEL key to delete the lastly typed word.
Pressing the CANCEL key continuously deletes the typed words one by one from the last
typed one. If the number of the characters of a block exceeds 32, the program cannot be
entered. Now it is possible to divide the block with proper breakpoint.
(f) If the typed program is correct, press the INSERT key.
34
For restart, continuously move the cursor to the lastly typed character. The procedure is the
same as insertion.
(j)
When all programs are input and at the end of the procedures, press the RESET key if you
want to return to the start position.
O,
-,
9,
9,
9,
and DELETE.
to find
Note 1: Coordinates and modal data do not update during search. These data are set through
MDI after search.
Note 2: The following items are checked during search.
TH check
TV check
Skipping over optional blocks
Alarm check (03, 04, 05 and 10)
Note 3: M98P (calling a subprogram) is not executed during sequence number search.
Therefore, when the sequence numbers in the subprogram called by the current
selected program for search in AUTO mode, No. 060 alarm will be given.
1 2 3
Cursor
Sequence number
The number of times is 1, the higher four digits can be omitted. The preceding zero can also
be omitted when the number of times is established.
(f)
After search, LCD changes to display the page for program restart.
(2)
When the tool moves to the machining restarting position in AUTO mode, check the
distance indicated by DISTANCE TO GO is correct and the tool does not contact workpiece.
Press the CYCLE START button after manually moves the tool to the position that does not
contact the workpiece. Now the tool moves to the restarting position in the sequence of the
4th axis, axis X, axis Y and axis Z and restart machining.
(g) Search the sequence number that the block restarts by pressing the Q and cursor
button and typing in the sequence number.
When the same sequence number appears for many times during search, the higher four
digits are specified as the number of times of sequence number appearance and the lower
four digits as its sequence number.
(h) After search, LCD turns to display the page for program restart.
(i)
(j)
Observe the page. Output by the MDI panel in MDI mode if the M, S, T and B codes to be
output exist. In this case, they no longer appear on the program restart page.
(k) When the tool moves to the machining restarting position, check that the tool does not
contact workpiece. If necessary, manually move the tool to the position that does not contact
the workpiece.
(l)
(m) Return to the AUTO mode and press the CYCLE START button. Now the tool moves to the
restarting position in the sequence of the 4th axis, axis X, axis Y and axis Z and restart
machining.
Note 1: The following conditions, pressing the
button do not restart the program.
(g) Program restart instruction is given during the execution of the cutting program with skip or
the blocks of an absolute instruction.
(h) A coordinate system is established after search. Nevertheless, in the condition of (c) the
return of the tool in P mode in the block executed by setting the mirror image machining
switch to OFF position as well as the blocks that follow. In this case, the mirror image
machining state is the same as interruption. No alarm is given in any case.
Note 8: When the specified block only includes M98, M99, macro calling instruction (M65, G66
and G67) or macro statement, or no specified block is searched, No.60 alarm will be given.
Note 9: When program restarting operation is instructed and G28 is detected without returning to
the reference point after power on or cancellation of emergency stop or travel limit alarm
(immediate stop), P/S alarm (98) will be resulted in.
Note 10: After the end of search, P/S alarm (99) is given when a move instruction is executed
through MDI operations before axis motion.
Note 11: After the program restart is instructed, RESTR blinks at the button of the LCD screen
before the return of the last axis (Z).
Note 12: When the block before the restart block has G28, G30, an instruction or incremental
instruction, the absolute position of the 4th axis can be displayed in the range of 360. In this
case, the 4th axis is an axis of rotation and the direction of returning to the reference point is
negative.
(d) Select the AUTO mode and get ready for operation by setting the machine.
(e) Press the CYCLE START button.
The machine stops after the data in the block whose sequence number has been
predetermined in step (c).
The predetermined sequence number is cleared while the machine is stopping.
To perform another comparison stop, repeat the above procedures from (a).
Note 1: Sequence number O cannot be used for comparison stop
Note 2: The predetermined sequence number is cleared by setting.
According to the definition, a word is also an edit unit. On the basis of the following explanations
about edit, strictly speaking, word shall be called edit unit.
Note 2: During program execution, machining is temporarily suspended by single block
skipping, feed hold and other functions. Nevertheless, continuing to execute a program is not
allowed after program modification, insertion and deletion; otherwise the program cannot be
correctly executed as required by program data. Program is displayed on the LCD after
subsequent machining.
To modify stored data in part program edit mode, they must be modified in reset condition before
program execution or when resetting operation is performed after edit.
40
button.
The cursor moves forward word by word on the screen. The cursor is displayed underneath the
address character of the selected word.
(2)
button.
The cursor returns word by word on the screen. The cursor is displayed underneath the address
character of the selected word.
Example:
(3)
Continuous search can be conducted by pressing down and holding the cursor
button.
(4)
The next page is displayed and search starts from the beginning of the page by pressing the
page button.
(5)
The previous page is displayed and search starts from the beginning of the page by pressing the
page button.
41
or
(6)
Y1250X1234N5678
Current word
Search direction
(1)
Enter
X,
1,
2,
M03
Note 1: The search that only enters X123 and X1234 with the keypad can not be performed.
Note 2: The search that only enters X9 and X009 with the keypad can not be performed. 009
shall be entered with the keypad for the search of X009.
(2)
Y1250X1234N5678,
Current word
(1)
Type in
(2)
M03
M.
Note 1: Pressing the CANCEL button after typing in a numeral deletes the latter and displays a
blank space. Pressing the CANCEL button only indicates CAN.
Note 2: Both word search and address search do not start by pressing the cursor
button.
Beginning
(1)
Current word
Method 1
A program is displayed from its beginning when the RESET button is pressed in EDIT mode.
(2)
Method 2
Perform sequence number search.
(3)
Method 3
(a) Set the SELECTION MODE button to AUTO.
42
4.4.24.5 Word insertion (active when the program protection lock is disabled)
Insert T105
N1234100.0
Y1250X1234N5678,
M03
Object of search
(1)
Quickly search and scan the word preceding the position where a word is to be inserted.
(a) Scan. See 4.24.1.
(b) See 4.24.2 for word search. When Y1250 is in front of the currently indicated position, first
move the cursor to the beginning of the program.
(2)
Type in
T,
1,
and
Before insertion
After insertion
Note 1: When what is inserted is not an address but a numeral, the inserted number is added to
the word indicated by the cursor. (Edit unit: In the above example, the insertion of 2.5 will create
43
4.4.24.6 Word modification (active when the program protection lock is disabled)
N1234100.0
Y1250T105 S1234
To be changed to M15
(1)
(2)
Type in
M,
and
N1234100.0
Y1250M15 S1234
Before insertion
44
After insertion
A word indicated by the cursor can be changed to a word, block or a string, etc.
Note 1: When the cursor is underneath Y in Y1250, the insertion of 25 M20 will become Y1250
2.5 M20.
Note 2: When the cursor is underneath Y in Y1250 T105, the insertion of 2.5 M20 will become
Y1250 2.5 M20.
4.4.24.8 Word deletion (active when the program protection lock is disabled)
N1234 100.0
Y1250
T105 X1234
(1)
To delete Y1250
Search and scan the word to be deleted.
(2)
T105
X1234
Y1250
T105
M13 X1234
Range of deletion
Press the EOB and DELETE buttons to delete the part before EOB and move the cursor to
the underneath of the address character of the next word.
45
(2)
N,
2,
2,
and
4.4.24.13 Edit of user macro (active as the program protection lock is disabled)
User macro may be edited using the SHIFT key. Operate the key in EDIT mode and when the
program protection switch is released. The following points shall be observed.
(a)
SHIFT key
Once the SHIFT key is pressed, the cursor (the cursor for keyboard entry: the cursor is in the
position of the character whose data is last input) changes from to . Press the key with
a character in the lower right angle of the key top in this state. The character in the lower right
angle can be entered.
After entering a character, the cursor restores to the initial . If the SHIFT key is pressed
46
(b)
).
Control OUT/IN
(Example)(#1=100):
The cursor cannot stop here.
(Note 2) The position of the cursor can change with the changed program.
(Example) X100 Y200: before program modification:
If Y200 is changed into 100 with the ALTER key, it will become X100 100:
(c)
Note 1: The accumulated time includes automatic operating time but not the single block offtime,
feed hold offtime, etc.
Note 2: If the power supply is switched off immediately after the stop of automatic operation, a
time error up to 6min may be caused after power on again.
Note 3: When necessary, time can be preset through setting operations. The data number is 57,
58 or 59.
(ii) Press the PAGE button to select the desired page from the two pages than can be
displayed.
Page 1: The part other than optional blocks skipping
Page 2: Optional block skipping 1~9.
Setting
Proceed as follows after the above procedures.
(iii) Move the cursor to the page number to be changed.
Move the cursor to the page number to be changed by pressing the cursor or key.
(iv) When the address P is pressed, enter 1 for switching on and 0 for switching off. Press the
1
keys in the sequence of (P)
(entry).
2
49
4.4.27.2 Display
(1)
The actual position of relative coordinate system is displayed on the LCD when the soft function
key REL is pressed.
50
Press the page key the update display as shown above. The positions of workpiece
coordinate system and relative coordinate system are exchangeable on the screen.
(2)
Display of a program
Press the PROGRAM soft function key to display a program. It is possible to make background
edit (edit the programs other than the currently running programs) using B. EDIT.
Press the PROGRAM soft function key again to display program list. The program list is
displayed as follows.
51
(3)
Display of offsets
When the OFT soft function key is pressed, the offset corresponding to each tool number is
indicated on the LCD. Press the page or key and cursor or key to select
the desired data. At the same time, the actual position of relative coordinate system is
displayed on the lower part of the LCD.
(4)
Display of an instruction
52
(5)
Setting
53
Press the SET soft function key. Now all set data is displayed on the screen. Run time is
displayed in the page of SET DATA 01.
54
Press the MACRO key. Now the local variable and common variable of user macro are
displayed on the LCD screen.
Press the ON-OFF key. The menu switch window is displayed as shown as shown in Section
4.26 (menu switch function).
(6) Display of alarm and operation information
Pressing the ALM soft function key displays the alarm messages as shown in the above figure.
Pressing the OUTMESS soft function key displays the external information as shown in the
above figure.
55
(7)
Parameter display
Pressing the NC PARA and PC PARA soft function keys to display the relevant parameters on
the LCD.
Pressing the page
(8)
or
and cursor
56
or
Operating procedures
The relative coordinate system may be cleared away and workpiece origin offset set on the
workpiece origin offset page of the LCD through the following procedures.
(a) Delete the relative coordinate system
Pressing the
and SHIFT keys deletes the relative coordinate system of axis X (this
operation accordingly applies to axes Y and Z as well as the 4th and 5th axes).
(b) Set workpiece origin offset
Press the
and INPUT keys after moving the cursor to the required workpiece offset
number. Then the coordinates of the axis X in the corresponding coordinate system is set
as the axis-X workpiece origin offset of the selected workpiece offset number.
(This operation accordingly applies to axes Y and Z as well as the 4th and 5th axes
Note: When the
key is pressed in steps (a) and (b), the X of the relative coordinate
system blinks.
57
58
Appendix 1
Character
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
DEL
ISO Code
7 6 5 4
3
0
0
Character
EIN Code
6 5 4
0
1
2
3
4
5
6
7
8
9
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
DEL
59
Meaning
?
?
Numeral 0
"1
"2
"3
"4
"5
"6
"7
"8
"9
Address A
"B
"C
"D
"E
"F
"G
"H
"I
"J
"K
"L
"M
"N
"O
"P
"Q
"R
"S
"T
"U
"V
"W
"X
"Y
"Z
Delete
(cancellation
of an incorrect
* hole)
ISO Code
Charact
er
NUL
EIN Code
4
Charact
1
er
Blank
8 7
BS
HT
LForNL
CR
SP
%
(
0
0
Meaning
3
1
No-hole and EIA
codes are not
* used
in
effective-value
information area
Rewind
*
( backspace )
Separator
*
End of block
BS
Tab
CRorEO
B
0
0
0
0
0
0
Return of printer
* base
SP
ER
(2-4-3)
(2-4-7)
0
0
0
0
* Blank space
End of rewinding
Control OUT (start
of note)
Control IN (end of
note)
Positive
sign
*
Negative sign
#
$
&
*
,
0
0
0
0
&
[
]
0
0
0
0
0
0
0
*
*
*
*
*
*
0
0
0
0
0
0
60
As a program
number of ISO
codes
Stop
of
block
selection
Full stop (decimal
point)
Well number
Unit number
& (and)
Apostrophe
Asterisk
Comma
Semicolon
Left
angular
bracket
* Equal sign
Right
angular
*
bracket
* Question mark
* @ sign
* Quotation mark
* Left brace
* Right brace
61
Appendix 2
G Codes
G00*
G01*
G02
G03
G04
G07
G09
G10
G17*
G18
G19
G20
G21
G22
G23
G27
G28
G29
G30
G31
G33
G40*
G41
G42
G43*
G44*
G49*
G45
G46
G47
G48
G50*
G51
G54*
G55
G56
G57
G58
G59
G60
G61
G62
G64*
G65
G66
G67*
G73
G74
G76
G Codes List
Group No.
01
00
02
06
04
00
01
08
00
11
14
00
15
00
2
09
Function
Positioning (quick)
Linear interpolation (cutting feed)
Arc interpolation CW (clockwise circle)
Arc interpolation CCW(counterclockwise circle)
Suspension
imaginary axis designation
Accurate stop check
Offset, work zero offset setting
To select XY plane
To select ZX plane
To select YZ plane
To input in inch system
To input in metric system
Storage travel limit ON
Storage travel limit OFF
Reference point return check
To return to reference point
To return from reference point
To return to the 2nd, 3rd and 4th reference points
To skip over cutting
Thread cutting
To cancel tool compensation
Tool compensation left side
Tool compensation right side
Tool radius compensation, +
Tool radius compensation, To cancel tool length compensation
To increase tool offset
To reduce tool offset
To increase tool offset by twice
To reduce tool offset by twice
Zooming OFF
Zooming ON
To select workpiece coordinate system 1
To select workpiece coordinate system 2
To select workpiece coordinate system 3
To select workpiece coordinate system 4
To select workpiece coordinate system 5
To select workpiece coordinate system 6
One-way positioning
Accurate stop detecting mode
To enable automatic angle adjustment
Continuous cutting mode
Simple recall of a user macro
Modal recall of microinstruction
To cancel modal recall of microinstruction
Gun drilling cycle
Left-handed tapping cycle
Finish boring
62
G80*
G81
G82
G83
G84
G85
G86
G87
G88
G89
G90*
G91*
G92
G94*
G95
G96
G97*
G98*
G99
(Note 1) The G codes marked with * are the initial G codes of all groups. That is, these G codes are
established when power on or pressing the RESET key (the system parameters specifying
initial G codes are validate).
The selection of the state of the initial G codes such as G00, G01, G43, G44, G49, G90, G91
or G94 and G95 shall be set by parameters (G00, G43, G44, G90 and G95).
For G20 or G21, it becomes the state before power off.
(Note 2) The G codes in group 00 are modal and are only valid in the blocks they belong to.
(Note 3) When a G code not listed in the above table is specified or an optional G code not defined by
control unit is specified, (N0.010) will give an alarm. (N0.010) But G38 and G39 are ignored.
(Note 4) Some G codes may be specified in the same block even they do not belong to the same group.
When 2 or more G codes than belong to the same group are specified in a block, the lastly
specified G code will be valid.
(Note 5) If any G code in group 01 in fixed cycle mode, the fixed cycle will be automatically disabled and
the system will be in G80 state. However, the G codes in group 01 are not subject to the
influence of the G codes of fixed cycle.
(Note 6) G70 and G71 replaces G20 and G21 (special G codes) by parameter setting (GSP).
(Note 7) The G codes of all groups are displayed.
63
Appendix 3
Input in mm
Output in mm
Input in inch
Output in mm
Input in mm
Output in inch
Input in inch
Output in inch
0.001mm
0.001
0.0001inch
0.001
0.001mm
0.001
0.0001inch
0.001
99999.999mm
99999.999mm
3937.0078inch
99999.999inch
99999.999mm
99999.999
3937.0078inch
99999.999
99999.999mm
99999.999
99999.999inch
99999.999
1 mm/min
to 15000
mm/min
0.01 inch/min to
600.00
inch/min
1 mm/min to
15000
mm/min
0.01 inch/min to
600.00
inch/min
30 mm/min to
15000
mm/min
30 mm/min to
15000
mm/min
3.0 inch/min to
600.0
inch/min
3.0 inch/min to
600.0
inch/min
6 mm/min to
15000
mm/min
6 mm/min to
15000
mm/min
0.6 inch/min to
600.0
inch/min
0.6 inch/min to
600.0
inch/min
1 mm/min to
2000
mm/min
0.04 inch/min to
78.7
inch/min
0.5 mm/min to
1016
mm/min
0.02 inch/min to
40
inch/min
0 mm to
99999.999mm
0 mm to
99999.999mm
0 inch to
3937.0078inch
0 inch to
99999.999inch
Tool offset
0 mm to
99999.999mm
0 inch to
99999.999inch
0 mm to
99999.999mm
0 inch to
99999.999inch
0.001mm
0.0001inch
0.001mm
0.0001inch
0mm to 0.255mm
0 mm to
0.255mm
0 inch to
0.255inch
0 inch to
0.255inch
0mm to
0.007mm
0mm to
0.007mm
0inch to
0.007inch
0inch0.007inch
0mm to
99999.999mm
0mm to
99999.999mm
0inch to
3937.0078inch
0inch to
99999.999inch
0s to 99999.999s
0s to
99999.999s
0s to 99999.999s
0s to
99999.999s
When
adjusting
cutting feed
by 100%
JOG feedrate
Pause
64
Appendix 4
Calculating Chart
Summary
Due to the delay of servo system (as a result of exponential deceleration/acceleration during
cutting or the use of the positioning system of a DC servo motor), a minor deviation exists
between the tool path (tool center path) and instructed path as shown in Fig. 4.1 (a). In this
center, the time constant T1 of exponential deceleration/acceleration is fixed to 0.
Fig. 4.1 (a): The tool path regarding a turning angle section
The tool path depends on the following parameters:
(a) Feedrate (V1, V2)
(b) Degree of the turning angle ()
(c) Time constant (T1)(T1 = 0) of exponential deceleration/acceleration during cutting
(d) Loop gain of positioning system
(e) Existence of buffer
This document makes theoretical analysis of tool path with the above parameters. The tool path
of temporarily set parameters is displayed in graph.
The above notes shall be observed for programming. Note whether the machining shape is
within the desired accuracy range.
That is, when it is possible to reach the theoretical accuracy, hold for a proper time using the
suspension function until the instruction speed drops to zero before reading in the next block.
(2)
Analysis
In the following conditions, make analysis of the tool path as shown in Fig. 4.1(b).
(a) Feedrate remains constant in the blocks before and after the turning angle.
(b) The control is provided with a buffer (error changes with the reading rate of the input
equipment and the number of characters of the next block).
65
VX1 = Vcos1
VY1 = Vsin1
VX2 = Vcos2
VY2 = Vsin2
(1-2)=
[Explanations for the symbols]
V:
1:
The included angle between the direction of the instruction path in the previous block and
axis X
2:
The included angle between the direction of the instruction path in the next block and axis
X
66
Y0 = Vy1(T1+T2)(2)
= Vx2 1 Vx1
T1 + T2
Vy(t)=
Vy1 Vy 2
T1 T2
Vx1
{T1 exp t T2 exp t } + Vx1]
T1 T2
T1
T2
(3)
t
t
T1 exp T2 exp + Vy 2
T2
T1
(4)
t
t
T1 exp T2 exp
T
1
T2
The coordinates of the tool path at time t are calculated with the following formula.
t
t
t
Vx 2 Vx1 2
2
T1 exp T2 exp
T1 T2
T2
T1
Vx 2 (T1 + T2 t ) (5)
Y(t)= 0 Vy (t )dt Y0
=
Vy 2 Vy1
T1 T2
2
t
t
2
T1 exp T2 exp
T2
T1
Vy 2 (T1 + T2 t ) (6)
67
r=
V
1 2
T1 + T22 2
2
r
(1)
The radius r(mm) and permissible error r(mm) of a workpiece are given in actual machining.
Permissible speed limit V(mm/sec) can be calculated with the formula (1).
The Time constant of deceleration/acceleration during cutting set by the unit varies with
machine types. Refer to the user manual supplied with the machine.
68
Appendix 5
Parameters
In the event of error during typing in, press the CANCEL key.
(f)
(g) After the setting of all parameters and end of confirmation, return the switch on the main
PCB to DISABLE (OFF).
(h) To terminate the alarm state (No. 100), press the RESET button.
ORWD
SCTO
EENB
OTCS
FMIC
MDL
MIC
SCW
0
Perform detection of speed reaching signal during instruction and changing from
quick speed to cutting feed.
Not perform detection of speed reaching signal.
Servo OFF signal is active.
Servo OFF signal is inactive.
Stop once the travel switch of hardware is pressed.
(Mechanical position is lost)
FMIC
MDL
0:
Slow down and stop once the travel switch of hardware is pressed. (Mechanical
position is not lost)
1:
0:
Not 1/10
1:
The minimum unit of the indication on the position display unit is 0.01mm or input
in metric system and 0.001inch for input in inch system.
69
0:
MIC
SCW
1:
The minimum setting unit of the indication on the position display unit is 0.01mm or
input in metric system and 0.0001inch for input in inch system.
0:
The minimum setting unit of the indication on the position display unit is 0.001mm
or input in metric system and 0.0001inch for input in inch system.
1:
0:
ADFT
7
ADET 1:
EOM
CINP
DCS
CLER
TVC
2
PPD
RDRN
0:
1:
If M30 is sent to the machine side and FIN returns when M30 is instructed, it is
continuously executed from the preceding block of the program, or the machine
side does not send back FIN signal but external reset signal. The program returns
to the beginning to enter into reset state (in automatic mode).
0:
When M30 is instructed, only M30 is sent out to the machine side and the program
does not return to the beginning unless reset and rewinding signal is used (in
automatic mode).
1:
Instruction speed reduces to 0 between two non-cutting blocks. The next block is
not continued until the machine confirms that the designated position is reached
(the confirmation is called positioning detection).
The next block is executed once the instruction speed reduces to 0 between two
non-cutting blocks (not perform positioning detection).
1:
The start button on the MDI panel does not pass through the machine side, but
directly is switched on the NC side (only for MDI mode).
0:
The start button on the MDI panel is sent to the machine side, and then the start
button on the machine side returns for start.
CLER 1:
The NC is brought into clearing state (see Appendix 7 for clearing state) using the
RESET button, external reset signal, reset and rewinding signal.
0:
The NC is brought into reset state using the RESET button, external reset signal,
and reset and rewinding signal.
1:
0:
1:
0:
Not preset the position display unit during the setting of a coordinate system.
EOM
CINP
DCS
TVC
PPD
ICR
7
GSP
6
5
70
G44
G90
G95
G43
G00
GSP
G90
G95
G00
1:
When ISO code is used for output, EOB will be output by LF.
0:
When ISO code is used for output, EOB will be output by LFCR CR.
1:
0:
1:
0:
1:
0:
1:
0:
G44, G43
G44
G43
Initial state
FIX2
7
FIX2
RWL
MCF
RWL
MCF
FMFS
FCUT
0:
Not output the M code but SSP and SRV in a fixed cycle (fixed cycle II)
1:
0:
1:
Output EF at the end of the positioning of G81 (axis Z does not move).
0:
0:
FCUT 1:
The travel of the axes X and Y in a fixed cycle uses the G codes in Group 01.
0:
The travel of the axes X and Y in a fixed cycle usually uses rapid feed.
1:
0:
Not change the initial plane points even using the RESET button.
1:
0:
TDRN 1:
0:
0
TDRN
EFRI
EFR1
1:
FMFS 1:
ILVL
ILVL
TCW
7
CWM
SOV
SLCC
OFSD
SOVC
71
ISOT
1
1:
0:
TLCC 1:
The change of offset in G43 and G44 modes starts to take effect from the next
block.
0:
The change of offset in G43 and G44 modes starts to take effect from the following
H and D codes.
OFSD 1:
0:
SOVS 1:
ISOT
0:
1:
With the storage type travel limit selection, JOG rapid feed is valid even returning
to the reference point is not performed.
0:
With the storage type travel limit selection, JOG rapid feed is valid unless returning
to the reference point is performed.
DGNE
7
SETE
6
DECI
SSPB
DGNE 1:
0:
SETE 1:
DECI
VCT
3
SUPM
ADLN
0:
1:
Decelerate when the decelerating signal is 1 during the return to reference point.
0:
Decelerate when the decelerating signal is 0 during the return to reference point.
SSPB 1:
0:
1:
0:
VCT
SUPM 1:
0:
ADLN 1:
0:
0
ZGM4
7
ZGGMZ
6
ZGMY
5
ZGMX
4
ZM4
ZMZ
ZMY
ZMX
ZGMX, ZGMY, ZGMZ and ZGM4 are the return-to-reference-point modes for axes X, Y and Z
and the 4th axis respectively.
72
0:
PSG2
PSG1
PHS
5
PSG2, PSG The tooth to spindle ratio of spindle and position coder
Override
PSG2
0
0
1
1
X1
X2
X4
X5
PSG1
0
1
0
1
Override=
When in PHS and PSCG modes (rotary transformer and inductosyn), the initial setting of
relative offset:
1:
0:
automatically sets phase deviation. PHS automatically changes to 1 after the setting is
performed once.
DMR
7
6
6
Z
3
2
GRD
73
2
GRD
5
DMR
GRD
4
DMR
7
DMR
7
0
6
GRD
4
DMR
7
4
3
2
GRD
DMRX, DMRY, DMRZ, DMR4 and DMR5 are the measuring override ratio for axes X, Y, Z and
the 4th axis respectively.
Setting codes
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
Overrides
Rotary transformer and inductosyn
1/8
1/4
1/4
1/2
3/8
3/4
1/2
1
Pulse coder
1/2
0
1
0
1
0
1
0
1
1
1
2
3/2
3
2
4
GRDX, GRDY, GRDZ, GRD4 and GRD5 are the capacities of the reference counters for axes X,
Y, Z and the 4th axis respectively.
Setting codes
0
0
0
1
0
1
1
0
1
0
1
1
0
0
0
0
0
0
0
0
1
Capacity of a cycle
2000
3000
4000
5000
6000
8000
10000
1
0
1
0
1
1
1
(Note) The codes other than those listed in the above table are treated as 8000 capacity.
0
8
3
CPF2
CPF1
Pulse frequency (holoaxial calling) for CPF2 and CPF1 clearance compensations.
Frequency, KHZ
32
64
128
256
0
CPF2
0
0
1
1
CPF1
0
1
0
1
TMF
9
7
TFIN
5
TMF The time from the send-out of M, S, T and B codes to that of MF, SF, SF and TFBF:
16126ms (16ms interval).
TFIN The time of FIN signal receiving width: 16265ms (16ms interval).
74
TMF
15m
sec
32m
sec
48m
sec
64m
sec
80m
sec
96m
sec
112m
sec
128m
sec
144m
sec
160m
sec
176m
sec
192m
sec
208m
sec
224m
sec
240m
sec
256m
sec
0
TFIN
>15m
sec
>15m
sec
>15m
sec
>15m
sec
>15m
sec
>15m
sec
>15m
sec
>15m
sec
>15m
sec
>15m
sec
>15m
sec
>15m
sec
>15m
sec
>15m
sec
>15m
sec
>15m
sec
CLSI
7
CLSI
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
ZTN5
ZTN4
1:
0:
Setting
0
0
0
0
0
1
0
1
1
0
1
0
1
1
1
1
0
0
0
0
0
1
0
1
1
0
1
0
1
1
1
1
ZTNZ
ZTNY
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
ZTNX
ZTNX, Y, Z, 4 and 5 are the availability of return-to-reference-point function for axes X, Y and Z
as well as the 4th and 5th axis respectively.
1:
0:
G84S
7
SFOU
6
EDMZ
5
75
EDMY
4
EDMX
EDPZ
EDPY
EDPX
0
G84S 1:
0:
SFOU
1:
Output SF.
0:
EDMX, EDMY and EDMZ correspond to the negative instructions of axes X, Y and Z
respectively.
1:
0:
EDPC, EDPY and EDPZ correspond to the positive instructions of axes X, Y and Z respectively.
1:
0:
2
7
SIJ
SIJ
6
PMXY2
5
PMXY1
4
RS43
3
FXCD
2
TAPSG
1
FXCS
0
0:
The amount of travel uses address Q as instruction and its direction is determined
by parameters PMXY1 and PMXY2
PMXY2, 1 Setting of tool returning direction in fixed cycle G76 or G87(only valid when SIJ =0)
PMXY2
0
0
1
1
RS43
PMXY1
0
1
0
1
Returning direction
X
X
Y
Y
1:
The offset vectors of G43 and G44 are retained after reset.
0:
The offset vectors of G43 and G44 are cleared after reset.
FXCD 1:
0:
TAPSG 1:
0:
FXCS 1:
M05 is not output and spindle rotates reversely or forward in fixed cycles G74 and
G84 (Valid only when FIX2 = 1)
0:
M05 is output and spindle rotates reversely or forward in fixed cycles G74 and
G84
EXIOD
7
76
EXIOD 1:
0:
0
PMC2, 1
PML2
PML1
DLME
RDAL
ADW2
ADW1
ADW0
FMT
FMT
1:
0:
When it is ready for the check, the parameter is automatically set to 1. It cannot be externally
switched on or off.
PML2
0
0
1
1
DLME 1:
PML1
0
1
0
1
Override
1
2
4
8
All programs stored before are automatically cleared when storing programs in
memory.
0:
RDAL 1:
0:
ADW2, 1, 0 Select the name for the 4th axis in the even of data output or display on LCD.
ADW2
0
0
0
0
1
1
0
MSUB 1:
0:
MURS 1:
0:
MCYL 1:
0:
ADW1
0
0
1
1
0
0
MUSR
MCYL
ADW0
0
1
0
1
0
1
MSUB
Address
A
B
C
U
V
W
MPRM
7
6
5
4
Subprogram type user macro terminates.
TSE
3
(Note) The local variable for a macro terminated and called by subprogram type user macro
does not change. The local variable for a macro terminated and called by macro type user
macro differs from that is used in the current program.
MPRM 1:
TSE
0:
1:
0:
0
NGMP
OFFVY
OGE
7
6
5
4
3
2
1
MGMP The amounts of travel of manual pulse generator are as follows.
NGMP
0
0
0
0
1
1
1
1
MP2
0
0
1
1
0
0
1
1
OFFVY 1:
CKIM
MP1
0
1
0
1
0
1
0
1
CKIM
0
Amounts of travel
0.001mm/0.0001inch
0.01mm/0.001inch
0.1mm/0.01inch
0.1mm/0.01inch
0.01mm/0.001inch
0.001mm/0.0001inch
0.1mm/0.01inch
0.1mm/0.01inch
Servo alarm is not given even when VRDY is ON before PRDY output.
0:
1:
Ignore the switching of signal during automatic operation (the state of during
CYCLE START is valid).
0:
CMRX
CMRY
CMRZ
CMR4
CMR5
CMRX, CMRY, CMRZ, CMR4 and CMR5 are the instruction multiplying powers for axes X, Y
and Z as well as the 4th and 5th axes respectively.
1
2
4
10
0.5
1
2
20
10
VLOCX
VLOCY
VLOCZ
VLOC4
VLOC5
VLOCX, Y, Z, 4 and 5 are the minimum values of speed instruction for axes X, Y and Z as well as
the 4th and 5th axes respectively.
78
MBUF1
MBUF2
MBUF1, MBUF2
buffer.
0
SPGST
The setting between 0 and 255 for the number of revolutions of spindle motor (S12 or
S analog output A/B) during the shifting of spindle gear.
Setting=
0
SPSOR
SPSOR Number of revolutions during accurate stop of spindle (S12 or S analog output A/B)
Settings 0 to 255
Unit: rpm
PECZRX
PECZRY
PECZRZ
PECZR4
PECZR5
PECZRX to 5 are the settings of pitch error origin for axes X, Y and Z as well as the 4th and 5th
axes respectively.
Settings 0 to 127
Set some points corresponding to the reference point. For example, assuming that the pitch
error origin is set to 0 and the set point 1 is located at +8.000mm, then the compensation range
of the set point 127 at 1016.000mm is 0 mm to 1016.000mm.
79
This is the occasion that pitch error compensating clearance (parameters 163 to 166) is 8000.
0
UMMCD4
UMMCD5
UMMCD6
UMMCD7
UMMCD8
UMMCD9
UMMCD10
UMMCD11
UMMCD12
UMMCD13
UMMCD4 to UMMCD13
Up to 10 M codes for calling user macros can be set (assignment of independent variable is also
possible).
Settings 01 to 97
0
MACINTON
MACINTON: The code for a user macro to terminate its active state.
Settings 03 to 97
The parameters are only valid when the parameter 025MPRM = 1.
0
MACINTOF
MACINTON: The code for a user macro to terminate its inactive state.
Settings 03 to 97
The parameters are only valid when the parameter 025MPRM = 1.
0
TMHOR (hr)
TMMIN (min)
TMSEC (sec)
IDXUNT
Unit: deg(degree)
It is only valid when it is used in junction with the parameter 3/45(IFIX)= 1. Now P/S alarm (No.
180) will be given if the travel other than the integral multiples of IDXUNT setting is specified.
In addition, P/S alarm (No. 180) will be given if the instructed value of coordinate setting (G92),
the parameter value of automatic coordinate system setting and the parameter value of
workpiece origin offset are beyond the integral multiples set in IDXUNT.
0
FIND
The constant of change in feedrate when the pulse generator is moved for one division
by JOG under F1-digit instruction.
F=
FIDN
F max
(i=1.2)
100n
Set the n in the above formula, namely the feedrate hits Fmax i when the pulse generator is
rotated for n turns by JOG.
Settings 1 to 12
The Fmax i in the above formula is the upper limit of the feedrate of F1-digit instruction and is set
by parameter No.065, 066.
Fmax1 Upper limit of the feedrate of F1 to F4 (065)
Fmax2 Upper limit of the feedrate of F5 to F9 (066)
0
SCTTIM
SCTTIM The delay time setting of the spindle speed reaching signal detection; the setting of the
time from the start of execution of S function to the end of spindle speed reaching
signal detection.
Settings 0 to 255
Unit: msec
3
7
ADL5
HIR5
ZDL5
EX5NG
HIRS
1:
0:
1:
AP5
1
G605
0
0:
EX5NG 1:
0:
1:
Enable the automatic coordinate system setting for the 5th axis.
0:
Disable.
1:
The approaching direction of the single-directional positioning for the 5th axis is
negative.
0:
AP5
G605
4
7
SCLZ
2
SCLY
1
SCLX
0
SCLX, SCLY and SCLZ are the settings of availability of the zooming functions of axes X, Y and
Z respectively.
1:
0:
FIDMAX1
FIDMAX2
CYCR
CYCR
The setting of return in fixed cycle G73 (high-speed depth drilling cycle)
CYCD
CRCDL
CRCDL
The neglecting limit of the minor amount of travel while the tool is machining on the
exterior side of the turning angle near 90 during tool radius compensation.
Settings:
82
When XCRCDL and YCRCDL, minor travel is neglected. In this way the influence as a
result of workpieces stop on workpiece may be prevented.
0
INPX
INPY
INPZ
INP4
INP5
INPX, INPY, INPZ, INP4 and INP5 are the positioning width settings for axes X, Y and Z as well
as the 4th and 5th axes respectively.
Settings 0 to 32767 measurement units
0
STPEX
STPEY
STPEZ
STPE4
STPE5
STPEX, STPEY, STPEZ, STPE4 and STPE5 are position deviation limits for axes X, Y and Z as
well as the 4th and 5th axes respectively.
Setting units: 0 to 32767 measurement units
0
SERRX
SERRY
SERRZ
SERR4
SERR5
SERRX, Y, Z, 4 and 5 are position deviation limits for axes X, Y and Z as well as the 4th and 5th
axes respectively.
83
GRDSX
GRDSY
GRDSZ
GRDS4
GRDS5
GRDSX, Y, Z, 4 and 5 are grid drifts for axes X, Y and Z as well as the 4th and 5th axes
respectively.
Settings 0 to 32767measurement units
The setting is a + (-) value when the reference point is the drift in the + (-) direction.
0
LPGMX
LPGMY
LPGMZ
LPGM4
LPGM5
LPGMX, Y, Z, 4 and 5 are the settings of servo loop gain multiplier for axes X, Y and Z as well as
the 4th and 5th axes respectively.
Settings = 2048
E
1000
L
E = 7V (motor: 7V/1000rpm)
3.5V(motor: 7V/2000rpm)
L = Mechanical travel in mm or inch equivalent to one rotation of motor
= Measurement unit (mm or inch)
Example: Servo motor: 2mm travel each rotation, 7V/1000r/min
Measurement unit: for 1/1000mm
2048
Setting
7
1
1000 = 7168
2 1000
LPGIN
JOGF
RPDFX
RPDFY
RPDFZ
RPDF4
RPDF5
RPDFX, Y, Z, 4 and 5 are the quick speeds of for axes X, Y and Z as well as the 4th and 5th axes
respectively.
Settings 30 to 15000
30 to 6000
LINTX
LINTY
LINTZ
LINT4
LINT5
LINTX, Y, Z, 4 and 5 are the time constant (for quick speed) of linear acceleration/deceleration
for axes X, Y and Z as well as the 4th and 5th axes respectively.
Settings 8 to 4000, unit: msec.
1
EXPTX
EXPTY
EXPTZ
EXPT4
EXPT5
EXPTZ, Y, Z, 4 and 5 are exponential acceleration/deceleration time constant for axes X, Y and
Z as well as the 4th and 5th axes respectively.
Settings 8 to 4000
1
unit: m.s
FEEDT
FEDMX
FEDMX The upper-limit rate of cutting feed, valid for all axes
(a)
EXDEC
EXDEC
FEDFL
FEDFL
unit 0.1inch/min
JGFLX
JGFLY
JGFLZ
JGFL4
JGFL5
JGFLX, Y, Z, 4 and 5 are lower limit (FL) of exponential acceleration/deceleration for continuous
JOG feed for axes X, Y and Z as well as the 4th and 5th axes respectively.
Settings 6 to 15000, unit: mm/min.
6 to 6000, unit: 0.1inch/min
1
SPDFL
SPDFL
The lowest speed (F0) for quick adjustment (common for all axes)
unit: 0.1inch/min
0.1deg/min (output in inch system)
6 to 6000
(Note) For output in inch system, the unit for an additional axis is 0.1deg/min or 1deg/min
depends on parameter ROT10 (306).
1
ZRNFL
ZRNFL
Low-speed feedrate (FL) for return to the reference point (common for all axes)
86
BKLX
BKLY
BKLZ
BKL4
BKL5
BKLX, Y, Z, 4 and 5 are lower limit (FL) of reverse clearances for axes X, Y and Z as well as the
4th and 5th axes respectively.
Settings 0 to 255unit 0.001mm(output in metric system)
0 to 255unit 0.0001inch(output in inch system)
1
SPDLC
SPDLC
Spindle speed offset compensation, i.e. the compensation for setting the zero offset of
spindle speed instruction voltage (for S analog output A/B)
TLCNEG
DRFTX
DRFTY
DRFTZ
DRFT4
DRFT5
DRFTX, Y, Z, 4 and 5 are the compensation of the drift occurred inside the servo ring of axes X,
Y and Z as well as the 4th and 5th axes respectively.
Settings 0 to 5000
unit: VELO
The value automatically changes after the parameter setting (007-ADFT) of automatic drift
compensation.
1
PRAZX
PRAZY
PRAZZ
PRAZ4
87
PHAZX, Y, Z, 4 and 5 are the servo phase deviation of axes X, Y and Z as well as the 4th and 5th
axes respectively. The value corresponding to the signal phase fed back from phase detector is
automatically set (for rotary transformer and inductosyn).
Settings 0 to 500
1
GRLMAX
GRLMAX The setting of maximum number of spindle revolutions for low-speed gear (S12-digit
outputs A, for S analog output A)
The setting of number of spindle revolutions when speed instruction voltage is 10V.
Settings 1 to 9999
unit: r/min
1
GRHMAX
GRHMAX The setting of maximum number of spindle revolutions for high-speed gear (S12-digit
outputs A, for S analog output A)
The setting of number of spindle revolutions when speed instruction voltage is 10V.
Settings
1
1 to 9999
unit r/min
GRHMIN
GRHMIN The setting of lower limit of spindle revolutions for high-speed gear (S12-digit outputs
A, for S analog output A)
Settings 1 to 9999
unit r/min.
(Note) It becomes a low-speed gear when a value identical with the setting is instructed.
1
SPDMIN
Settings
SPDMIN
The setting of lower limit of spindle motor output (S12-digit outputs A/B, for S analog
output A/B)
=
Settings 1 to 4095
1
SPDMAX
SPDMAX The setting of upper limit of spindle motor output (S12-digit outputs A/B, for S analog
output A/B)
Settings
Settings 1 to 4095
1
PSANGN
(5) Set the parameter and then instruct the maximum (10V) confirming output voltage of S
analog quantity as 10V.
1
TIME1
TIME1
TIME2
unit: 0.1hr
TIME2
unit: 0.1hr
LT1X1
LT1Y1
LT1Z1
LT141
LTI51
LT1X2
LT1Y2
LTIZ2
LT142
LT152
LT2X1
LT2Y1
LT2Z1
LT2X2
LT2Y2
LT2Z2
89
2
unit: 0.001mm (output in metric system)
unit: 0.0001inch(output in inch system)
REF2X
REF2Y
REF2Z
REF24
REF25
REF2X, Y, Z, 4 and 5 are the distance from the 2nd reference points to the 1st one of axes X, Y
and Z as well as the 4th and 5th axes respectively.
Settings 0 to 99999999, unit: 0.001mm(output in metric system).
0 to 99999999, unit: 0.0001inch(output in inch system).
0 to 99999999, unit: 0.001(axis of rotation).
1
PECINTX
PECINTY
PECINTZ
PECINT4
PECINT5
PECINTX to 5 are the settings of pitch error compensation spacing of axes X, Y and Z as well as
the 4th and 5th axes respectively.
Settings 8000 to 20000000, unit: 0.001mm (output in metric system).
4000 to 20000000, unit: 0.0001inch (output in inch system).
6000 Unit: 0.001(axis of rotation)
(Note) The setting to 0 does not compensate.
1
ATCLZV
Password
FIDF1
FIDF2
FIDF3
FIDF4
FIDF5
FIDF6
FIDF7
FIDF8
FIDF9
FL4
7
FLZ
FLY
FLX
G604
G60Z
G60Y
G60X
0
G60X, Y, Z and 4 are the approaching directions of the single-directional positioning of axes X, Y
and Z and the 4th axis.
1.
0.
For FLX, Y, Z, 4, NC/TC, whether the axes X, Y and Z and the 4th axis are parallel to the 5th axis
(NC/TC)
1.
parallel
0.
not parallel
3
SKPF
7
SKPF 1.
0.
CHR
6
SFRV
5
NEOP
3
ROT10
TMCR
SALM
0
For skip instruction (G31), the feedrate becomes the FL speed (No.342) set by
parameter.
For skip instruction (031), feedrate is specified by F code.
91
CHR
1.
0.
SFRV 1.
0.
In G84 and G74, SRV can be used to change the polarity of analog voltage.
Cannot change
(Note) The parameter is valid only when the parameter NO.010 Bit7 TCW is 1.
NEOP 1.
0.
When storing programs in memory, M02, M30 and M99 are not used for the end of
program.
May be used for the end of program.
ROT10 1. For output in inch system, the unit of feedrate parameters(No.091, 106, 113 and 114)
is 1deg/min.
0.
(The parameter is valid only when the additional axis is an axis of rotation.)
TMCR 0.
1.
SALM 1.
0.
EX4NG
7
EX4NG 1.
0.
SFOB
5
SCDB
GRST
TLCD
2
0.
Output SF.
SCDB 1.
0.
The last 2 digits of S4-digit is output to B21 through B38 for S12-digit output B or
analogy output B. If B3-digit function is required, the digit can not be set to 1.
Not output
GRSR 1.
All executive data in all groups are cleared during the input of tool change reset
signal.
0.
Only the executive data that tool life times out are cleared during the input of tool
change reset signal.
TLCD 1.
0.
3
DIOM 1.
0.
MSFT 1.
0.
LGCM 1.
DIOM
MSFT
LGCM
RSTB
4
CFMF
2
0.
Note: The parameter is valid for S12-digit output A and S analog output A.
RSTB
1.
In-reset signal is not output when the system is reset by with emergency stop,
93
0.
1.
For G84 and G74 in the fixed cycle II, output signal FMF is switched OFF by the
FIN of M05.
0.
For G84 and G74 in the fixed cycle II, output signal FMF is output until R-point
plane.
TLSK
GST2
GST1
LCTM
7
TLCK
AP4
3
1.
0.
APZ
APY
APX
GST1, GST2
GST2
0
0
GST1
0
1
0
1
1
1
LCTM
1.
0.
Group No.
1 to 16
1 to 32
1 to 64
1 to 128
APX, Y, Z and 4 are the settings of availability of automatic coordinate setting of axes X, Y and Z
and the 4th axis respectively.
1.
0.
Disable.
NFED1
RSCR1
STP21
RAD1
NFED2
RSCR2
STP22
RAD2
NFED3
RSCR3
STP23
RAD3
NFED4
RSCR4
STP24
RAD4
When NFED1, 2, 3 and 4 use I/Os 1, 2, 3 and 4 respectively, whether the blank space between
the first and last guide holes and program is output or not:
1.
0. Output.
RSCB1, 2, 3, 4
When RSCB 1, 2, 3 and 4 use I/Os 1, 2, 3 and 4 respectively, whether the control codes (DC1 to
DC4) are used or not:
1.
1 stop bit
RAD1, 2, 3 and 4 are the baud rate settings for I/Os 1, 2, 3 and 4.
(Note) If ROBOT interface selection is provided, the baud rate for the data transmission between
NC and ROBOT is set to BAD4.
Baud rate
50
100
110
150
200
300
600
1200
2400
4800
9600
RAD1, 2, 3, 4
0
0
0
0
0
0
0
0
1
1
1
0
0
0
0
1
1
1
1
0
0
0
0
0
1
1
0
0
1
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
IM15
7
MINT
IFIX
IRND
H4
HZ
HY
HX
IM15 1. For the instructions for axis B, its rotating direction is positive despite that G90/G91
mode must be regarded as an absolute instruction.
In addition: M15 is instructed to rotate in negative direction.
0. The instruction for axis B is an absolute/incremental instruction depending on
G90/G91 and its rotating direction is positive or negative. M15 has no special
meaning.
MINT 1. Start to execute interrupt program (user macro interrupt type II) at the end of the
execution of the current block.
0. Immediately execute the interrupt program
IFIX
1. Give P/S alarm for the instructions other than integral multiple of the indexing angle of
indexing workbench (parameter No.060 shall be also be set).
0. The instructions for axis B may instruct the instructions independent of the minimum
angle of the indexing workbench.
Enable.
95
Disable.
3
PRT
PRT
BLOW
BDEG
IDXB
SSCR
SSCA2
SSCA1
SSCA0
1. Leading zero outputs nothing while DPRNT instruction is used for data input.
0. Leading zero outputs blank spaces while DPRNT instruction is used for data input.
SLOW 1. The parameter setting of the clamping value for the minimum number of spindle
rotations in the constant control of surface speed is applicable for all gears. (No. 347)
0. Set for all gears respectively (No. 343, 344, 345 and 346)
BDEG 1. Input unit: 0. 001(B1=0001).
0. Input unit of axis B: 1(B1=1).
IDXB 1. Indexing sequence B of indexing workbench.
0. Indexing sequence A of indexing workbench.
SSCR 1. In the blocks of rapid feed, surface speed is calculated in accordance with the
coordinates of the end point of the current block.
0. In the blocks of rapid feed, surface speed is calculated in accordance with the actual
position of the tool.
SSCA2, SSCA1 and SSCA0 are settings for the axis as the calculation basis in the constant
control of surface speed.
SSCA2
0
0
0
0
1
SSCA1
0
0
1
1
0
CDSCG
7
CDSCG 1.
0.
SSCA0
0
1
0
1
0
Axis
X
Y
Z
4
5
DSCGZ
DSCGY DSCGX
1
ACMR
1.
0.
DSCGX, Y, Z, 4 and 5 are the position detection system type settings of axes X, Y and Z as well
as the 4th and 5th axes respectively.
1.
0.
(Note) Combination of pulse coder and rotary transformer or inductosyn in axes X, Y and Z is not
allowed. The mixture of the 4th and 5th axes is also not allowed.
3
UM#8
7
UM#7
6
UM#6
5
UM#5
4
UM#4
3
UM#3
2
UM#2
1
UM#1
0
UM#1 to 8 For EIA code, store and use the codes corresponding to # used in macro.
Example: UM#8 to UM#1=01001001
96
PRG9
MSC9
MPD9
MSRH
RSTL
ADNW
PRG9
7
MSC9
6
MPD9
5
NSRH RSTL
3
2
1
ADNW
0
1.
0.
1.
When executing the programs of numbers 9000 to 9899, single block stops while
executing a macroinstruction in user macro if it is single block mode.
0.
Not execute.
1.
The contents of program are not displayed when executing the programs of
numbers 9000 to 9899.
0.
The contents of program are displayed when executing the programs of numbers
9000 to 9899.
1.
0.
1.
STL signal is not output when using CYCLE START to store messages in memory
in EDIT mode.
0.
1.
Feedrate is of type B.
0.
Feedrate is of type A.
[Type B]
(1)
JOG feedrate
The JOG feedrate of additional axis (axis of rotation) is set by parameter No.348. When the
additional axis is interlocked with another axis or it is a linear axis (for parameter No. 11 BIT0
ANLN=1), however, the JOG feedrate of the additional axis is identical with other axes
(parameter No. 091 JOGF).
(2)
(1)
JOG feedrate
The feedrate of additional axis is set along with other axes in parameter No.091.
(2)
PRG8
MCS8
MPD8
MCS7
4
1.
0.
Possible
1.
MCS7
0.
1.
0.
1.
0.
UMMCD1
UMMCD2
UMMCD3
UMMCD 1, 2, 3
Settings 01 to 91.
(User macro cannot be called with M00. The setting of 00 is equivalent to no setting.)
3
UMGCD0
UMGCD1
UMGCD2
UMGCD3
UMGCD4
UMGCD5
UMGCD6
UMGCD7
UMGCD8
UMGCD9
UMGCD019
Up to 10 G codes for calling user macro are set.
Settings 001 to 255.
(User macro cannot be called with G00. The setting of 00 is equivalent to no setting.)
3
AOVMDR
AOVMDR
The minimum reduction ratio of interior arc cutting rate
Range: 1 to 100%, standard setting: 1
3
AOVOR
AOVOR The minimum reduction ratio of automatic adjustment for interior turning angle section
Range: 1 to 100%, standard setting: 50
98
AOVTH
AOVTR
Interior reference angle for automatic adjustment for interior turning angle.
POSTNX
POSTNY
POSTNZ
POSTN4
POSTN5
POSTN X, Y, Z, 4 and 5 are the approaching amount of negative positioning of axes X, Y and Z
as well as the 4th and 5th axes respectively.
Settings 0 to 255; unit: 0.01mm (output in mm).
0 to 255; unit: 0.001 inch (output in inch).
3
IDVICE
ODVICE
IDVICE: Select an input device (INPUT DEVICE2=1(RS232) interface for setting; this setting is
valid) for storing programs in memory.
ODVICE: Select an output device for data output.
Settings
0
1
2
3
4
I/O
Paper tape reader for input and FACIT and PUNCHER for output
ASR33/ASR43 is used to set baud rate and other data (No.310) for both
input and output.
Reader/puncher interface for I/O.
Set baud rate and other data in parameter No.311.
Reader/puncher interface for I/O.
Set baud rate and other data in parameter No.312.
Reader/puncher interface for I/O.
Set baud rate and other data in parameter No.313.
PSKPFL
GRMIN1
GRMIN2
GRMIN3
GRMIN4
GRMIN1 to GRMIN4 Minimum number of spindle revolutions in surface speed constant control
(G96) mode
99
LOWSP
LOWSP Minimum number of spindle revolutions in surface speed constant control (G96) mode
(for constant control selection)
Settings 0 to 9999
unit RPM
JOGFAD
The JOG feedrate when the rotary switch is set to 10 with the existence of an additional axis
(axis of rotation) (type B).
Settings 1 to 150
unit: deg/min
AOVLE
AOVLE
The decelerating distance Le at the end point of the automatic adjustment of interior
turning angle section
Range:
AOVLS
AOVLS
The decelerating distance Ls at the end point of the automatic adjustment of interior
turning angle section
EXOFSX
EXOFSY
EXOFSZ
3 6 0
EXOFS4
EXOF5
EXOFS X, Y, Z, 4 and 5 are external workpiece origin offset of axes X, Y and Z as well as the 4th
and 5th axes.
Settings 0 to 7999 unit: 0.001mm (input in metric system).
0 to 7999
Typically the parameter is automatically set by the input on the machine side.
(External data input function).
3
PGMAX1
100
PGMAX3
PGMAX4
PGMAX1, 2, 3 and 4 select the maximum set numbers of rotations of gears 1, 2, 3 and 4 (For
S12-digit output B and S analog output B).
Set the number of spindle rotations at 10V speed instruction voltage.
Settings 1 to 9999rpm.
3
SPDMXL
SPDMXL Settings =
parameter
FEDMXAD
FEDMXAD
REF3Y
REF3Z
REF34
REF35
REF3X, Y, Z, 4 and 5 are the distances from the 3rd reference point to the 1st reference point of
axes X, Y and Z as well as the 4th and 5th axes respectively.
Settings 0 to 99999999
0
to
unit:
0.0001inch
inch system)
3
REF4X
REF4Y
REF4Z
REF44
REF45
101
99999999
(output
in
REF4X, Y, Z, 4 and 5 are the distances from the 4th reference point to the 1st reference point of
axes X, Y and Z as well as the 4th and 5th axes respectively.
Settings 0 to 99999999
0 to 99999999
PPRTMX
PPRTMY
PPRTMZ
PPRTM4
PPRTM5
PPRTMX, Y, Z, 4 and 5 are settings of automatic coordinate system input in metric system of
axes X, Y and Z as well as the 4th and 5th axes respectively. The distance from the origin of
coordinate system to the first reference point is set in metric system.
Settings 0 to 99999999
unit: 0.001mm
If Inch/metric switching option is provided, parameter No.379 to 382 and 411 shall also be set.
It is only valid for the axes that are set active in the automatic coordinate system set in parameter
No.309.
3
PPRTIX
PPRTIY
PPRTIZ
PPRTI4
PPRTI5
PPRTIX, Y, Z, 4 and 5 are settings of automatic coordinate system input in inch system of axes X,
Y and Z as well as the 4th and 5th axes respectively.
The distance from the origin of coordinate system to the first reference point is set in inch
system.
When settings 0 to 99999999 (unit 0. 0001inch) are provided with Inch/metric switching option,
parameters No. 375 to 378 and 440 shall be set. This is only valid for the axes that are set active
in the automatic coordinate system set in parameter No.309.
3
ZOFSIX
ZOFSIY
ZOFSIZ
ZOFSI4
ZOFSI5
ZOFSIX, Y, Z, 4 and 5 are the first workpiece origin offsets (G54) of axes X, Y and Z as well as
the 4th and 5th axes respectively.
102
ZOFS2 X
ZOFS2 Y
ZOFS2 Z
ZOFS2 4
ZOFS2 5
ZOFS2X, Y, Z, 4 and 5 are the 2nd workpiece origin offsets (G55) of axes X, Y and Z as well as
the 4th and 5th axes respectively.
Settings 0 to 99999999
0 to 99999999
ZOFS3 X
ZOFS3 Y
ZOFS3 Z
ZOFS3 4
ZOFS3 5
ZOFS3X, Y, Z, 4 and 5 are the 3rd workpiece origin offsets (G56) of axes X, Y and Z as well as
the 4th and 5th axes respectively.
Settings 0 to 99999999
0 to 99999999
ZOFS4 X
ZOFS4 Y
ZOFS4 Z
ZOFS4 4
ZOFS4 5
ZOFS4X, Y, Z, 4 and 5 are the 4th workpiece origin offsets (G57) of axes X, Y and Z as well as
the 4th and 5th axes respectively.
Settings 0 to 99999999
0 to 99999999
ZOFS5 X
103
ZOFS5 Z
ZOFS5 4
ZOFS5 5
ZOFS5X, Y, Z, 4 and 5 are the 4th workpiece origin offsets (G57) of axes X, Y and Z as well as
the 4th and 5th axes respectively.
Settings 0 to 99999999
0 to 99999999
ZOFS6 X
ZOFS6 Y
ZOFS6 Z
ZOFS6 4
ZOFS6 5
ZOFS6X, Y, Z, 4 and 5 are the 5th workpiece origin offsets (G57) of axes X, Y and Z as well as
the 4th and 5th axes respectively.
Settings 0 to 99999999
0 to 99999999
SCRATE
SCRATE
Scaling rate
LOCK/UNLOCK
Typing will not be locked when a value identical with that of No.168 is input. It is locked in the
event of input of different values.
4
1
7
6
5
4
3
The return-to-reference point mode of the 5th axis
ZGM5
ZGM5
1
ZM5
0
1. The returning direction to reference point and the initial direction of clearance of the
5th axis are negative.
0. The returning direction to reference point and the initial direction of clearance of the
5th axis are positive.
ADW52
2
7
ADW51
ADW50
4
104
AD5B
AD5A
AD4B
AD4A
ADW51
0
0
1
1
0
0
ADW50
0
1
0
1
0
1
Letter
A
B
C
U
V
W
CLCL
7
CLCL
WNSAA
6
1. Local coordinate system is cleared after the JOG return to reference point
0. Not cleared.
WNSAA 1. External workpiece number search function is used to search the programs of a
program number whose first digits are 00 and last two digits are identical with the
search number.
0. External workpiece number search function is used to search the programs of a
program number whose last two digits are identical with the search number.
6
ROTR
7
ROTR
RTANGL
7
Settings 0 to 7
Settings 0 to 7
Settings 0 to 7
Settings 0 to 7
Settings 0 to 7
106
Item
The settings related to I/O (DNC, RMT, INCH, ISO, TVON, REV4, REVY and
REVX)
Machining time (unit: hr) (TMHOR)
Machining time (unit: min) (TMMIN)
Machining time (unit: sec) (TMSEC)
The returning amount in fixed cycle G83 (high-speed depth drilling cycle) (CYCR)
The cutting origin in fixed cycle G83 (high-speed depth drilling cycle) (CYCD)
Machining time (TIME1)
Storage type travel limit 2, X value of the 1st acme
Storage type travel limit 2, Y value of the 1st acme
Storage type travel limit 2, Z value of the 1st acme
Storage type travel limit 2, X value of the 2nd acme
Storage type travel limit 2, Y value of the 2nd acme
Storage type travel limit 2, Z value of the 2nd acme
The program number of the program whose execution is stopped
All settings (PRG8 and MSBL).
Select an input device for data storage (IDVICE)
Select an output device for data output (ODVICE)
The decelerating distance at the end point of a block (automatic adjustment of
turning angle)
The decelerating distance at the starting point of a block (automatic adjustment of
turning angle)
Scaling factor
The data numbers other than other listed in the table above are displayed as blank.
The data number with a * can be set with address PARAM in the same data number.
See the parameter explanations regarding the same data numbers for the contents.
107
Appendix 6
Alarms List
No.
Descriptions
000
001
002
003
A data with impermissible number of digits is input (see the item of Maximum
instruction value)
004
005
006
007
008
009
010
A prohibited G code is used (the alarm is also given when an instruction similar
to the unselected G code is instructed).
011
014
015
017
018
021
An axis beyond plane assignments (G17, G18 and G19) is instructed in arc
instruction.
022
023
108
Remarks
without
028
An instruction of more than 2 axes is instructed for the axis in the same direction
in an arc instruction.
029
030
The compensation number instructed with the D and H codes for tool radius
compensation, tool length compensation and tool position compensation is
excessive.
031
032
The offset instructed by P is excessive in the input of offset (using G10 or user
macro input command).
033
034
035
036
037
038
Overcutting is caused as the radius of arc is 0 at its origin and end point in tool
radius compensation.
041
044
G27 through G30 and ATC cycle (M06) are instructed in fixed cycle mode.
045
046
047
048
058
059
The block of the selected workpiece number is not found (external workpiece
number selection A function).
060
The specified sequence number is not found during sequence number search or
restart of program.
065
066
After the application of scaling, traveling amount, coordinates and arc radius
exceed the maximum instruction value.
109
070
071
072
073
074
075
Neither program number nor sequence number is entered in the first paragraph
of the program.
076
Address P is not instructed in the blocks containing M98, G65 and G66.
077
A subprogram is called for 3 times (or 5 times with a user macro option).
078
079
084
085
086
The program number (the program number instructed when G, M and T calling
are used) specified by address P, sequence number or serial number specified
by GOTO statement is not found in the blocks containing M98, M99, G65 and
G66.
A communicated program is not identical with the original one (program
comparison).
Program edit is impossible as a result of improperly instructed origin, end point or
travel end point in expanded edit function.
The number of bits or baud rate of input data is not correct during reading in with
RS232 and DNC connectors.
Transmission or I/O device is abnormal during input and output with RS232
connector.
087
A data with more than 10 characters is input after sending DC3 stop code when
RS232 and DNC connectors are used for reading in.
090
The one-revolution signal from pulse coder (basic origin signal for linear
graduation) is not input or reference point is not correctly returned to during the
return to reference point in grid mode.
091
The one-revolution signal from pulse coder (basic origin signal for linear
graduation) is not in step with basic counter and reference point is not correctly
returned to during the return to reference point in grid mode.
092
094
095
The restart of program cannot instruct type P (because external workpiece origin
offset is changed after program interrupt).
096
The restart of program cannot instruct type P (because workpiece origin offset is
changed after program interrupt).
097
The restart of program cannot instruct type P (because automatic operation has
been never performed after power on or emergency stop and termination of
storage limit alarm (emergency stop)).
110
098
099
100
101
102
110
The absolute value of data indicated by fixed point goes beyond the allowable
range.
111
The data displayed by floating point goes beyond the upper limit.
112
The divisor is 0.
113
114
115
116
118
The number of layers of brackets goes beyond the upper limit (5).
119
122
The number of calling layers of macro goes beyond the permissible range (1-4).
123
124
125
126
127
128
129
130
The data of a big address is incorrect during the input of external data.
131
132
133
134
The rotary plane of coordinate system or the plane of arc or tool radius
compensation C is incorrect.
140
Tool group number goes beyond the upper limit (one of 16, 32, 64 and128).
111
142
The number of tools in a group goes beyond the upper limit of storable number.
143
144
145
146
The T code following M06 in program execution does not match the relevant T
code in tool group in service.
There is not P and L instructions at the beginning of the program for setting tool
group.
147
The set number of tool groups goes beyond the upper limit.
148
The values of parameter No.333, 334 and 335 are beyond the setting range.
160
170
The programs of program number 8000 to 8999 and 9000 to 9899 are edited.
However, these programs are prohibited from edit, resulting in the alarm (see
parameters No.318 for PRG9 and 319 for PRG8)
180
A value below the decimal point is specified when a decimal point is used in
B-axis instruction and a value beyond the integral multiple of the minimum
indexing angle of the indexing workbench is instructed.
181
One of the axes X, Y and Z is instructed at the same time with axis B.
190
210
211
212
213
214
215
The moving part of the machine contacts the travel limit switch in + direction of
axis X.
The movable part of the machine contacts the travel limit switch in - direction of
axis X.
Tool enters the exclusion area of storage type travel limit 1 when axis X moves in
the positive direction.
Tool enters the exclusion area of storage type travel limit 1 when axis X moves in
the negative direction.
Tool enters the exclusion area of storage type travel limit 2 when axis X moves in
the positive direction.
Tool enters the exclusion area of storage type travel limit 2 when axis X moves in
the negative direction.
220
The movable part of the machine contacts the travel limit switch on the positive
side of axis Y.
221
The movable part of the machine contacts the travel limit switch on the negative
side of axis Y.
222
223
224
225
230
Tool enters the exclusion area of storage type travel limit 1 when axis Y moves in
the positive direction.
Tool enters the exclusion area of storage type travel limit 1 when axis Y moves in
the negative direction.
Tool enters the exclusion area of storage type travel limit 2 when axis Y moves in
the positive direction.
Tool enters the exclusion area of storage type travel limit 2 when axis Y moves in
the negative direction.
The movable part of the machine contacts the travel limit switch on the positive
side of axis Z.
112
Indexing
job
Indexing
function.
231
232
233
234
235
240
241
242
243
250
251
252
253
400
401
402
403
404
Though the position ready signal (PRDY) is switched off, the speed ready signal
(VRDY) is not OFF. When the power is switched on again, the ready signal
(PRDY) is not ON, so the speed ready signal (VRDY) will be ON.
405
407
The position ready signal (VRDY) of the 5th axis is switched off.
410
The position offset during the stop of axis X exceeds the setting.
411
The position offset during the travel of axis X exceeds the setting.
412
413
The position offset of axis X exceeds 32767 or the speed instruction value of
DA converter is beyond +8191 to -8192. The alarm is often caused by wrong
setting.
414
415
416
The detecting device for the pulse coder of axis X is out of order (disconnection
alarm).
113
420
421
422
423
The position offset of axis Y exceeds 32767 or the speed instruction value of
DA converter goes beyond the range of +8191 to -8192. The alarm is usually a
result of incorrect settings.
424
425
426
The position detector for the pulse coder of axis Y is out of order.
427
430
431
432
433
434
The position offset of axis Z exceeds 32767 or the speed instruction value of DA
converter goes beyond the range of +8191 to -8192. The alarm is usually a result
of incorrect settings.
The detecting device of the rotary transformer and inductosyn of axis Z
malfunctions.
435
436
The detecting device for the pulse coder of axis Z is out of order (disconnection
alarm).
437
440
Position offset exceeds the setting when the 4th axis stops.
441
Position offset exceeds the setting when the 4th axis travels.
442
443
444
The position offset of the 4th axis exceeds 32767 or the speed instruction value
of DA converter goes beyond the range of +8191 to -8192. The alarm is usually a
result of incorrect settings.
The detecting device of the rotary transformer and inductosyn of the 4th axis
malfunctions.
445
A speed above that in unit/sec detected by 511875 is instructed in the 4th axis.
The alarm is the result of incorrect CMR setting.
446
The detecting device for the pulse coder of the 4th axis is out of order
(disconnection alarm).
447
114
Position offset exceeds the setting when the 5th axis stops.
451
Position offset exceeds the setting when the 5th axis travels.
452
453
The position offset of the 5th axis Y exceeds 32767 or the speed instruction
value of DA converter goes beyond the range of +8191 to -8192. The alarm is
usually a result of incorrect settings.
454
The detecting device of the rotary transformer and inductosyn of the 5th axis
malfunctions.
455
A speed above that in unit/sec detected by 511875 is instructed in the 5th axis.
The alarm is the result of incorrect CMR setting.
456
The position detecting device for the pulse coder of the 5th axis is out of order
(disconnection alarm).
457
600
601
602
603
604
605
606
607
700
701
702
703
704
900
901
902
903
904
115
906
907
908
909
910
911
912
920
930
940
Offset memory alarm (excessive offset is set): Set correct offset in the specified
offset number.
950
960
The temporary storage area for system control commands becomes inadequate
(overflow).
961
996
Necessary option of additional RAM is added, but RAM is not really installed.
997
998
999
116
NO alarm
NO alarm
Appendix 7
Clearance
Clearing state
Reset state
Offset
Setting data
Parameter
Programs in
memory
Information in
memory
In MDI mode
Other than in MDI mode
Indication of
sequence
numbers
(Note 1)
(Note 2)
One-off G codes
Modal G codes
Initial value
G20/G21 remains
constant as before
power failure
Initial values
G20/G21 and
G22/G23 remain
unchanged.
Zero
Zero
STMB
In MDI mode
Other than in MDI mode
Workpiece
coordinates
Zero
Travel
Dwell
MSTB code is
sent.
Tool length
compensation
Depending on
RS43
Items
Setting
data
Data
Coordinate
system
Executing
motions
117
When
switching on
Clearing state
Reset state
Tool
radius
compensation
In MDI mode
Other than in MDI mode
(Note 2)
In MDI mode
Other than in MDI mode
(Note 2)
The indicator
goes out in the
absence of
alarm.
(The indicator is
lit in case of
emergency stop.)
LSK
The indicator is
lit.
BUF
The indicator
goes out.
The indicator
goes out.
Items
Executing
motions
ALM
NOT READY
Indicators
and output
signals
MDI mode:
A mode other than MDI:
the he indicator goes out.
MDI mode:
A mode other than MDI:
the he indicator goes out.
Return to reference
point
STB codes
(emergency
stop)
M codes
MSTB
strobe
signal
Spindle
rotation
signal (S12-digit /S
analog signal)
NC ready signal
(MA, MB)
ON
ON (in the
absence of
servo alarm)
(emergency stop )
Note 2: When the NC is reset in the execution of a subprogram, the next block of the called subprogram
during the return of the control to the main program cannot be executed in midway due to the
subprogram. Therefore control returns to the start of the program.
118
Appendix 8
A8.1 Feature
Pitch error compensation is applicable for the minimum instruction units for all axes. The function
is valid after returning to reference point.
A8.2 Specifications
The tool position after returning to reference point is called compensation origin. The
compensations of the concerned axes are set in parameters.
i) Compensable axes: axes X, Y and Z as well as the 4th and 5th axes.
ii) Number of compensation points:
Linear axis 128 points
Rotary axis 61 points
iii) Range of compensation
0 to 7X compensation scaling rate/compensation point (minimum instruction unit)
Compensation scaling rate X1, X2, X4 and X8 (common for all axes)
iv) Compensation interval
Travel unit
Metric system
inch system
unit
0. 001mm
0.0001inch
PML1
0
10
0
1
Scaling rate
X1
X2
X4
X8
(Common for all axes)
(2)
PECZRX
119
PECZRY
PECZRZ
PECZR4
PECZR5
Pitch error origins PECZRX, Y, Z, 4 and 5 specify the origin values in the pitch error
compensations list.
The setting ranges of all axes are any value between 0 and 127 depending on machine type.
(3)
PECINTX
PECINTY
PECINTZ
PECINT4
PECINT6
Pitch error compensation intervals PECINT X, Y, Z, 4 and 5 specify pitch error compensation
intervals.
Except setting the positive values of 8000 or above (metric system) and 4000 or above (Inch) (for
the value that the axis of rotation is 3), the setting of 0 is not compensated.
(4)
Compensation setting
The pitch error compensation for all axes is set in the following parameters:
Axis name
Axis X
Axis Y
Axis Z
The 4th axis
The 5th axis
Parameter number
1000 to 1127
2000 to 2127
3000 to 3127
4000 to 4127
5000 to 5127
Compensation cannot be set for the parameter numbers other than listed in the above table. The
set compensation rage is 07. The setting beyond the range is invalid.
(Example)
1
7
6
5
4
3
2
1
0
In the above example, a compensation of 7 is set at the set point No.120 of axis X. The value
of the set point is added or reduced by 1 using the cursor or . The compensation values
at adjacent points are displayed.
120
A8. 4
(1)
The beginning of the compensation list corresponds to the reference point while compensation
point 1 corresponds to the point moving by 10000 in the positive direction from the reference point.
After that, every 1000 corresponds to a compensation point. As a result, the compensation
point128 is set at 1270000. The compensation for the travel from 0 to 10000 is set at
compensation point 1 while that from 1000 to 2000 is set at compensation point 2 and that from (n
1) (compensation interval) corresponds to n(compensation interval) is set at compensation
point n.
In the above example
Interval
Compensation data
0 to 10000
10000 to 20000
+6
20000 to 30000
When the real machine move from the reference point to the position at +30000, the total pitch
error compensation is as follows:
(+7) + (-6) + (+4) = 5
(2)
The set point 60 corresponds to the reference point. The set point 61 is located in the position of
+10000. After that, every 10000 corresponds to a compensation point. The set point 59 is located in
the position of -10000. After that, every -10000 corresponds to a compensation point and
compensation point 0 is located at -600000. That is, the compensation for the travel from (n-61)
(compensation interval) to (n-60)(compensation interval) is set at compensation point n.
In the above example, in the interval
-30000 to -20000:
A compensation of +7 is set.
-20000 to 10000:
A compensation of +7 is set.
-10000 to 0:
A compensation of -6 is set.
0 to 10000:
A compensation of -4 is set.
In the above example, the total compensation for pitch error when the machine moves from
-30000 to +10000 is:
(-7)+(-7)+(+6)+(+4)=(-4)
(3)
The end of the compensation list corresponds to the reference point. The set point 126 is located
in the position of -10000. After that, every -10000 corresponds to a compensation point. The
compensation for the travel from -10000 to 0 is set at compensation point 127 while that from
-20000to -10000 is set at compensation point 126. The compensation for the travel from (n-128)
(compensation interval) to (n-127)(compensation interval) is set at compensation point n.
In the above example, compensation data is as follows:
in the interval -40000 to -30000: -3
-30000 to -20000: +7
-20000 to 10000: 0
-10000 to 0: -2
The total compensation for pitch error when the real machine moves from -40000 to the reference
point is:
(+3)+(-7)+(0)+(2)=(-2)
Compensation interval
They are not directly related. The compensation at the compensation point n (n=0, 1, 2127) is
determined by the mechanical error (the remaining travel for a move instruction) in the interval
n-(compensation origin +1) compensation interval to (n compensation
origin)(compensation interval).
(1)
(2)
For pitch error compensation for the 4th axis as an axis of rotation, its parameters are set as
follows:
Parameter No.
42
166
Descriptions
Compensation zero
Compensation interval
Parameter setting
0
6000
That is, pitch compensation error origin =0 and compensation interval=6000 shall be used. Now a
circumference is divided into 60 parts and compensation is made for every 6 degrees.
Compensation is set as the following 61 points.
Parameter No.
4000
4001
4002
4059
4060
Parameter setting
-6 to 0 deg compensation
0 to 6 deg compensation
6 to 12 deg compensation
In special cases, parameters 4000 and 4060 may be set to the same value. The pitch error
compensation for an axis of rotation uses rapid feedrate 110000deg/min (31.2rpm) or the
following speeds.
The sign of the pitch error compensation is based on its moving direction.
Namely for positive compensation, the amount of travel is only increased by one quantity of
compensation.
For negative compensation, the amount of travel is only reduced by one quantity of compensation.
When mechanical travel has negative and positive errors opposite to the move instruction,
negative and positive compensations are set.
When the error (excessive travel) is positive (+), the compensation will be negative (-).
When the error (excessive travel) is negative (-), the compensation will be positive (+).
(Example of setting)
For travel in positive direction, +3 (-5) shall be compensated by the arrival of the compensation
point.
For travel in negative direction, -3 (+5) shall be compensated by the arrival of the compensation
point.
123
For travel in positive direction, +3 (-5) shall be compensated by the arrival of the compensation
point.
For travel in negative direction, -3 (+5) shall be compensated by the arrival of the compensation
point.
(Note) Thus it can be seen that the sign of compensation is only related to the traveling direction
during compensation instead of the position of origin.
124
Appendix 9
Item
Clear
Communication
input
Operations List
Parameter
writing ON/OF
Mode
Function key
To clear memory
Power ON
To clear parameters
To clear programs
Power ON
Power ON
To input parameters
Emergency stop
ON
PARAMETER
Function
Program
protection OFF
To store a program
EDIT mode
To add programs
To store all programs
Parameters for pitch error
compensation
EDIT mode
EDIT mode
Emergency stop
ON
To input parameters
PARAMETER
MDI mode
PARAMETER
- 9999 - INPUT
O
O CANCEL INPUT
O - 9999 - INPUT
P
- 9999 - INPUT
N
parameter number INPUT
P
parameter writing switch OFF RESET (Note 2)
To input an offset
Any mode
(Except EDIT)
OFFSET
MDI mode
SETTING
EDIT mode
EDIT mode
PARAMETER
OFFSET
P
P
- 9999 - OUTPUT
- 9999 - OUTPUT
EDIT mode
PARAMETER
- 9999 - OUTPUT
MDI input
Communication
output
Operating procedures
To output parameters
To output an offset
To output the parameters
for
pitch
error
compensation
125
dataINPUT
offset dataINPUT
Search
Edit
EDIT mode
EDIT mode
EDIT mode
PARAMETER
O program No (cursor
(cursor)
AUTO mode
PARAMETER
EDIT mode
PARAMETER
EDIT mode
PARAMETER
O
O
- 9999 - OUTPUT
program No. - OUTPUT
EDIT mode
PARAMETER
- 9999 - DELETE
To delete a programs
EDIT mode
PARAMETER
To
delete
programs
EDIT mode
PARAMETER
EDIT mode
PARAMETER
To delete a word
To change a word
EDIT mode
EDIT mode
PARAMETER
PARAMETER
To insert a word
EDIT mode
PARAMETER
Memory sorting
EDIT mode
PARAMETER
126
CANCEL
sequence number(cursor)
several
Appendix 10
A10.1 General
Program numbers 9000 to 9899 are locked with keys. In key lock mode, the
programs of program numbers 9000 to 9899 cannot be displayed, edited and
output. The function may be used to protect the special programs developed with
manufacturers user macros and prevents them from accidental deletion.
127
Secret No.
Lock/unlock
A10. 5 Cautions
(1) Proceed as follows if the set secret code is forgotten:
(a) Completely clear the memory (disable key lock).
(b) Input all parameters (except parameter No.168)
(c) Save secret programs in the memory.
(d) Set a secret code in parameter No.168 (with key lock).
(2) The PROGRAM page is displayed as follows if a program with key lock is
switched to EDIT mode. The settings of the program are hidden. The display
or edit of other programs shall be performed by reset (now continuous
operation is impossible due to reset). The initial page will be returned to once
the system is reset. To continue to execute a program, switch the mode to
AUTO or DNC mode. Machining is performed using CYCLE START.
(3) Once programs 90000 to 9899 are stored and edited, please apply key
lock for the programs other than 9000 to 9899. When programs 9000 to
9899 are displayed, the above page is displayed in EDI mode and programs
are displayed by reset.
128
Appendix 11
A11.1 General
During the execution of a program, it is possible to call another program by
inputting interrupt signal on the machine side. This function is called interrupt
function of user macro.
The interrupt instruction in a program is as follows:
M96, Puser macro interrupt ON
M97, Puser macro interrupt OFF
By using this function it is possible to call other programs on any executing block
of program and start program operations in ever-changing conditions.
(Example of application)
(1) Start tool abnormality detection with external signal.
(2) Stop the currently performing machining and insert other machining in the
continuous machining.
(3) The current machining information is read regularly.
(2)
(3)
A11.2. 2
Instruction types
User macro interrupt function disables or enables interrupt signal (UINT) using
M96 and M97 in principle.
That is, when M96 is instructed, interrupt signal (UINT) may be used to start user
macro INTERRUPT until M97 is instructed or NC is reset. Also, INTERRUPT
(UINT) is invalid without the instruction of M96. User macro INTERRUPT cannot
be started even by inputting interrupt signal (UINT) after M979 is instructed or
reset.
(Format)
M96 P;
M97
Even user macro INTERRUPT is not used, it is not necessary to change the
program. For this purpose, parameter ENABLE/MASK (parameter
No.025MSUR) is provided for selecting user macro INTERRUPT.
If user macro INTERRUPT is set to MASK in the parameter, M96 and M97 will be
output to the outside as common M codes. If it is set to ENABLE, they are
processed inside the parameter without inputting to the outside.
A11.3. 2
131
A11.3. 5
There are two modes of reception of user macro interrupt signal (UINT): state
triggering and edge triggering. The so-called state triggering is that it is valid in
the ON state of signal. Edge triggering is that the signal on the edge is active
when the signal is switched from OFF to ON. The use of a mode shall be
determined by parameter No.025TSE.
If this parameter is set to state triggering mode, user macro interrupt occurs
when the interrupt is active, i.e. the interrupt signal (UINT) is ON (1). Therefore,
interrupt program can be repeatedly executed when the interrupt signal (UINT) is
continuously ON.
In addition, when the parameter is set to edge triggering mode, interrupt program
is completed in an instant (only the program instructed by macro, etc) because it
is only valid during the rise of the interrupt signal (UINT). Therefore, it is only
applicable for the occasions that is not suitable for state triggering mode and only
one user macro interrupt is performed in the whole program (interrupt signal is
kept ON in this case).
132
Except special purposes, the actual effects of the two modes are the same (there
is not difference in the time from the input of signal to the interrupt of actual
execution).
State triggering performs user macro interrupt in the ON state of signal. Edge
triggering performs user macro interrupt in the rise of signal. Therefore, in the
above example state triggering performs 4 interrupts while edge triggering only
one.
For O, N, P, L and M, the block is considered as the same block as the previous
one of the program. Thus even a signal block does not stop. The program is:
G
X ; M99 is actually identical with
G
M99.
133
134
During the return of M99, the reception of modal information before interrupt
is valid while the modal information changed in interrupt program is invalid.
2)
During the return with M99 and P0000, the modal information changed in
interrupt program is also valid after the return of modal information (the
same as M98).
A11.4 Parameters
0
2
MUSR
7
MUSR
5
MSUB
4
MPRM
0
TSE
MSUB
MPRM 1. The M code for the control of user macro interrupt is set by
parameter.
0. User macro interrupt is under the control of M96 and M97.
Note)
User macro interrupt is a part of User macro B function. That is, user
macro interrupt cannot be used without the selection of user macro B.
The settings of parameters No.053 and 054 are valid only when
MPRM=1 (user macro B must be selected).
TSE
Note)
MACINTON
MACINTOF
6
MINT
MINT
Note)
Once user macro interrupt signal (UINT) type I is input, the currently
executing program is interrupted and the interrupt program is executed.
The motion after the return varies with the availability of NC instruction in
interrupt program.
i) With NC instruction
The remaining instructions (amount of travel and suspension time) disappear
in the interrupted blocks.
ii) Without NC instruction
The remaining instruction in an interrupted block continues to execute.
However, the sending auxiliary function can be correctly output in the both
cases.
z
Type II: The current block is not interrupted and the interrupt program
executed even interrupt signal is input. If the interrupt program has an NC
instruction, it starts to execute after the execution of the interrupted
program.
A11.5 Diagnosis
7
UINT 1.
0.
UINT
User macro interrupt ON.
User macro interrupt OFF.
The signal is the external signal for user macro interrupt. Intended for the
applications have requirements for high speed, the signal may be detected
through not only the signal generated by strong power, but also external signal.
Therefore, the manufacturer needs to connect the external signal to the position
of the signal as shown below. The position is not applicable for other purposes.
7
3
UINT
A11.7. 3
(Specifications)
To manage machining status, machining information is sent out on a regular
basis. This exerts no impact on machining sequence.
(Parameter setting)
TSE=0: Edge triggering mode
MUSR=1: Enable user macro interrupt function
MSUB=0: Subprogram type user macro interrupt
MPRM=*: Setting of the M code for the control of user macro interrupt
MINT=0: Interrupt program is executed before the end of block
(Explanations)
Assuming that an interrupt program does not include any NC statement, the
interrupt program is started only once in edge triggering mode on an regular
basis depending on the ON/OFF of interrupt signal (because interrupt program is
repeated when the signal is ON in state triggering mode). Since block may
interrupt in the midway, the rise corresponding to the interrupt signal immediately
interrupts.
The external output of machining information adopts user macro DO, output
modal information and position information.
An interrupt program may execute in parallel with the original block. However,
the machining will stop for a period of time at the end of the original block and
before the end of the interrupt program.
A11.7. 4
cutting
(Specifications)
Each executive program is provided with special travel. But the instruction is not
easy to be executed in general program.
(Parameter setting)
TSE=1: State triggering mode
MUSR=1: Enable user macro interrupt function
MSUB=*: Subprogram type/macro type user macro interrupt
MPRM=*: Setting of the M code for the control of user macro interrupt
MINT=1: Interrupt program is executed after the end of block.
(Explanations)
138
Disable interrupt
M96
Enable interrupt
M99
The interrupt signal is kept ON in state triggering mode.
Therefore, user macro interrupt is executed at the end of each block in the original
program. The special travel to be executed is instructed in an interrupt program. The
program part that needs no user macro interrupt is disabled using M97.
139
Add: No.52, 1st . Street, Luochong North Road, Luochongwei, Guangzhou, 510165, China
Website: http://www.gsk.com.cn
Tel: 86-20-81796410/81797922
E-mail: gsk@gsk.com.cn
Fax: 86-20-81993683
Aug. 2007/Edition 4
Aug. 2007/Printing 4