The Publisher reserves all rights for contents
of this Manual. No reprinting, even in
extracts, is permissible unless our written
consent is obtained.
The text of this Manual has been compiled
and checked with utmost care, yet we
assume no liability for possible errors or
spurious data and for consequential losses or
demages.
8
1 Introduction
1 Introduction
1.1 The Part Program
The Part Program is a set of instructions that can be interpreted by the control system in order to
control the operation of the machine.
The Part Program consists of blocks which, in turn, comprise words.
Word: Address and Data
Each word is made up of two parts - an address and a data. The address has one or more
characters, the data is a numerical value (an integer or decimal value). Some addresses may be given
a sign or operator I.
At an address marked with a * in the Value Limits column, the data may have a decimal value as
well.
At an address marked with I and –, an incremental operator or a sign can be assigned, respectively.
The positive sign + is not indicated and not stored.
9
1 Introduction
Block
A block is made up of words.
The blocks are separated by characters s (Line Feed) in the memory. The use of a block number
is not mandatory in the blocks. To distinguish the end of block from the beginning of another block
on the screen, each new block begins in a new line, with a character > placed in front of it, in the
case of a block longer than a line, the words in each new line are begun with an indent of one
character.
Program Number and Program Name
The program number and the program name are used for the identification of a program. The use of
program number is mandatory that of a program name is not.
The address of a program number is O. It must be followed by exactly four digits.
The program name is any arbitrary character sequence (string) put between opening "(" and
closing brackets ")". It may have max. 16 characters.
The program number and the program name are separated by characters s (Line Feed) from the
other program blocks in the memory.
In the course of editing, the program number and the program name will be displayed invariably in
the first line.
There may be not two programs of a given program number in the backing store.
Beginning of Program, End of Program
Each program begins and ends with characters %. In the course of part program editing the
program-terminating character is placed invariably behind the last block in order to ensure that the
terminated locks will be preserved even in the event of a power failure during editing.
Program Format in the Memory
The program stored in the memory is a set of ASCII characters.
The format of the program is
Program Format in Communications with External Devices
The above program is applicable also in communications with an external device.
Main Program and Sub-program
The part programs may be divided into two main groups -
main programs, and
subprograms.
The procedure of machining a part is described in the main program. If, in the course of machining
repeated patterns have to be machined at different places, it is not necessary to write those
program-sections over and over again in the main program, instead, a sub-program has to be
organized, which can be called from any place (even from another sub-program). The user can
10
1 Introduction
return from the sub-program to the calling program.
DNC Channel
A program contained in an external unit (e.g., in a computer) can also be executed without storing it
in the control's memory. Now the control will read the program, instead of the memory, from the
external data medium through the RS232C interface. That link is referred to as "DNC channel". This
method is particularly useful for the execution of programs too large to be contained in the control's
memory.
The DNC channel is a protocol-controlled data transfer channel as shown below.
Controller:
Equipment:
<
BEL > DC1 NAK/ACK DC3ACK > BLOCK <
The above mnemonics have the following meanings (and their ASCII codes):
BEL (7): The control requests the sender to establish the communication. The control issues
L again unless ACK is returned in a definite length of time.
ACK (6): Acknowledgment.
NAK (21): Spurious data transfer (e.g. hardware trouble in the line or BCC error). The
transfer of BLOCK has to be repeated.
DC1 (17): Transfer of the next BLOCK has to be started.
DC3 (19): Interruption of communication.
BLOCK:
– Basically an NC block (including the terminating character s) and the checksum
thereof (BCC) stored in 7 bits as the last byte of the block (bit 7, the
uppermost one, of BCC is invariably 0). No SPACE (32) or some other
character of lower ASCII code may be contained in the block.
– EOF (26) (End Of File), a signal is transferred by the Equipment ("sender") to
interrupt the communication.
For the DNC mode, set the second physical channel (only that one is applicable as a DNC channel)
for 8-bit even-parity mode.
A main program executed from the DNC channel may have a linear sequence only. This does not
apply to subprogram or macro (if any have been called) however, they must be contained in the
memory of control. In the event of a departure from the linear sequence in the main program
(GOTO, DO WHILE), the control will return error message 3058 NOT IN DNC. If the control
detects a BLOCK error and returns NAK, the BLOCK has to be repeated.
11
1 Introduction
1.2 Fundamental Terms
The Interpolation
The control system can move the tool along straight lines and
arcs in the course of machining. These activities will be hereafter referred to as "interpolation".
Tool movement along a straight line:
Program:
G01 Z__
X__ Z__
Tool movement along an arc:
Fig. 1.2-1
Program:
G02 X__ Z__ R__
Fig. 1.2-2
Preparatory Functions (G codes)
The type of activity to be performed by a block is described with the use of preparatory functions
(also referred to as G codes). E.g., code G01 introduces a linear interpolation.
12
1 Introduction
Feed
The term "feed" refers to the speed of the tool relative to the
workpiece during the process of cutting. The desired feed
can be specified in the program at address F and with a numerical value. For example F2 means 2 mm/rev.
Fig. 1.2-3
Reference Point
The reference point is a fixed point on the machine-tool. After power-on of the machine, the slides
have to be moved to the reference point. Afterwards the control system will be able to interpret data
of absolute coordinates as well.
Coordinate System
The dimensions indicated in the part drawing are measured
from a given point of the part. That point is the origin of the
workpiece coordinate system. Those dimensional data have
to be written at the coordinate address in the part program.
E.g., X150 Z–100 means a coordinate point of 340 and
–100 mm in the coordinate system of the workpiece in the
direction X and Z respectively.
The coordinate system in which the control interprets the
positions, is different from the coordinate system of the
workpiece. For the control system to make a correct workpiece, the zero point offsets of the two coordinate systems
have to be set. This can be achieved, e.g., by moving the
tool tip to a point of a known position of the part and setting
the coordinate system of the control to that value.
Fig. 1.2-4
13
1 Introduction
Absolute Coordinate Specification
When absolute coordinates are specified, the tool travels a
distance measured from the origin of the coordinate system,
i.e., to a point whose position has been specified by the
coordinates.
The code of absolute data specification is G90.
The block
G90 X200 Z150
will move the tool to a point of the above position,
irrespective of its position before the command has been
issued.
Incremental Coordinate Specification
In the case of an incremental data specification, the control
system will interpret the coordinate data in such a way that
the tool will travel a distance measured from its instantaneous
position:
U–50 W–125
The code of incremental data specification is G91. Code
G91 refers to all coordinate values.
The specification above is equivalent to the block below:
G91 X–50 Z-125
It will move the tool over the above distance from its previous position.
Fig. 1.2-5
Fig. 1.2-6
Diameter Programming
The coordinate X may be specified both in diameter or in radius depending on parameter.
Modal Functions
Some codes are effective until another code or value is specified. These are modal codes. E.g., in
program detail
N15 G90 G1 X20 Z30 F0.2
N16 X30
N17 Z100
the code of G90 (absolute data specification) and the value of F (Feed), specified in block N15, will
be modal in blocks N16 and N17. Thus it is not necessary to specify those functions in each block
followed.
14
1 Introduction
One-shot (Non-modal) Functions
Some codes or values are effective only in the block in which they are specified. These are one-shot
functions.
Spindle Speed Command
The spindle speed can be specified at address S. It is also termed as "S function". Instruction S1500
tells the spindle to rotate at a speed of 1500 rpm.
Constant Surface Speed Control
The control changes the spindle speed according to the diameter machined the way that the speed of
the tool tip relative to the surface of the workpiece to be constant. This function is the constant
surface speed control.
Tool Function
In the course of machining different tools have to be employed for the various cutting operations.
The tools are differentiated by numbers. Reference can be made to the tools with code T. The first
two digits of the T code refer to the tool number (that is in which position in turret it can be found),
while the second two digits refer to the code of offset compensation. Instruction
T0212
in the program means that tool No. 2 has to be changed and the offset compensation group No. 12
is to be applied.
Miscellaneous Functions
A number of switching operations have to be carried out in the course of machining. For example,
starting the spindle, turning on the coolant. Those operations can be performed with M
(miscellaneous) functions. E.g., in the series of instructions
M3 M8
M3 means “rotate the spindle clockwise”, M8 means "turn on the coolant".
Tool Length Compensation
In the course of machining, tools of different
length are employed for the various operations.
On the other hand, a given operation also has to
be performed with tools of different lengths in
series production (e.g., when the tool breaks).
In order to make the motions described in the
part program independent of the length of the
tool, the various tool lengths must be set in control system. If the program is intended to move
the tip of the tool to the specified point, the
value of the particular length data has to be
called. This is feasible at the second two digits
of the T code. Henceforth the control will move
Fig. 1.2-7
the tip of the tool to the specified point.
15
1 Introduction
Tool Nose Radius Compensation
When machining a workpiece and the tool does not move
parallel to one of the axes exact size can be achieved only if
not the tool tip is moved on the programmed path but the
tool nose center parallel to it and with the distance of r.
Radius compensation has to be introduced in order to write
the actual contour data of the part in the program, instead of
the path covered by the tool tip . The values of radius
compensations have to be set in control system. Hereinafter
reference can be made to tool nose radius compensations at
address T in the program.
Fig. 1.2-8
16
2 Controlled Axes
2 Controlled Axes
Number of Axes (in basic configuration)2 axes
In expanded configuration6 additional axes (8 axes altogether)
Number of axes to be moved simultaneously8 axes (with linear interpolation)
2.1 Names of Axes
The names of controlled axes can be defined in the parameter memory. Each address can be
assigned to one of the physical axes.
In the basic configuration, the names of
axes: X and Z.
The names of additional (expansion) axes
depend on their respective types.
Possible names of expansion axes
performing linear motions are: Y, U, V and
W. When U, V, W axes are parallel to the
main axes X,Y and Z, their name will be
U,V and W, respectively.
Axes performing rotational motions are
termed A, B and C. The rotational axes
whose axle of rotation parallel to X, Y and
Z directions are termed A, B and C,
respectively.
The name of the spindle axis in case of polar
or cylindrical coordinate interpolation is
used: C.
In case U, V or W axis cannot be found in
the machine at the above addresses
incremental movements can be specified for
the axes X, Y, Z respectively. Address H can be used for specifying incremental movement for C.
Fig. 2.1-1
2.2 Unit and Increment System of Axes
The coordinate data can be specified in 8 digits. They can have signs, too. The positive sign + is
omitted.
The data of input length coordinates can be specified in mm or inches. They are the units of input
measures. The desired one can be selected from the program.
The path-measuring device provided on the machine can measure the position in mm or in inches. It
will determine the output unit of measures, which has to be specified by the control system as a
parameter. The two units of measures may not be combined among axes on a given machine.
In the case of different input and output units of measures, the control system will automatically
17
2 Controlled Axes
perform the conversion.
The rotational axes are always provided with degrees as units of measure.
The input increment system of the control is regarded as the smallest unit to be entered. It can be
selected as parameter. There are three increment systems available IS-A, IS-B and IS-C. The
increment systems may not be combined for the axes on a given machine.
Having processed the input data, the control system will provide new path data for moving the axes.
Their resolution is always twice the particular input increment system. It is termed the outputincrement system of the control.
Thus the input increment system of the control is determined by the resolution of the encoder.
Increment system Min. unit to be enteredMax. unit to be entered
0.01 mm999999.99 mm
IS-A
IS-B
IS-C
0.001 inch99999.999 inch
0.01 degree999999.99 degree
0.001 mm 99999.999 mm
0.0001 inch 9999.9999 inch
0.001 degree 99999.999 degree
0.0001 mm 9999.9999 mm
0.00001 inch 999.99999 inch
0.0001 degree 9999.9999 degree
Coordinate data of X axis can also be interpreted by the control in diameter, provided parameter
4762 DIAM is 1. In this case the value limits defined in the above table are interpreted in diameter
with their value remaining so.
18
3 Preparatory Functions (G codes)
3 Preparatory Functions (G codes)
The type of command in the given block will be determined by address G and the number following
it.
The Table below contains the G codes interpreted by the control system, the groups and functions
thereof.
Feed per revolution45
Constant surface speed control64
13
Constant surface speed control cancel64
Canned cycle initial level return153
10
L Notes:
– The * marked G codes in a group represent the state assumed by the control system after power-
on.
– If several codes are marked with * in a group, a parameter can be set to select the effective one
after power-on. They are : G00, G01; G17, G18; G43, G44, G49; G90, G91; G94, G95.
– At the time of power-on, the particular one of G20 and G21 will be effective, that has been set at
the time of power-off.
– Default interpretation of command G05.1 after power-on can be specified with the MULBUF
parameter.
– G codes in group 00 are not modal ones; the rest are so.
– More than one G code can be written in a block with the restriction that only one of the same
21
3 Preparatory Functions (G codes)
function group may used.
– Reference to an illegal G code or specification of several G codes belonging to the same group
within a particular block will produce error message 3005 ILLEGAL G CODE.
22
4 The Interpolation
4 The Interpolation
4.1 Positioning (G00)
The series of instructions
G00 v
refers to a positioning in the current coordinate system.
It moves to the coordinate v. Designation v (vector) refers here (and hereinafter) to all controlled
axes used on the machine-tool. (They may be X, Y, Z, U, V, W, A, B, C) E.g.:
G00 X(U)__ Z(W)__
where X, Z refer to absolute movement, while U, W refer to incremental one (provided U, W are
not selected for axis).
The positioning is accomplished along a straight line involving the simultaneous movements of all axes
specified in the block. The coordinates may be absolute or incremental data.
The speed of positioning cannot be commanded in
the program because it is accomplished with
different values for each axis, set by the builder of
machine-tool as a parameter. When several axes
are being moved at a time, the vectorial resultant of
speed is computed by the control system in such a
way that positioning is completed in a minimum
interval of time, and the speed will not exceed
anywhere the rapid traverse parameter set for each
axis.
In executing the G00 instruction, the control system
performs acceleration and declaration in starting
and ending the movements, respectively. On completion of the movement, the control will check the
"in position" signal when parameter POSCHECK in the field of parameters is 1, or will not do so
when the parameter is set to 0. It will wait for the "in position" signal for 5 seconds, unless the signal
arrives, the control will return the 1020 POSITION ERROR message. The maximum acceptable
deviation from the position can be specified in parameter INPOS.
Being a modal code, G00 remains effective until it is re-written by another interpolation command.
After power-on, G00 or G01 is effective, depending on the value set in parameter group CODES.
Fig. 4.1-1
4.2 Linear Interpolation (G01)
The series of instructions
G01 v F
will select a linear interpolation mode. The data written for v may be absolute or incremental values,
interpreted in the current coordinate system. The speed of motion (the feed) can be programmed at
address F.
The feed programmed at address F will be accomplished invariably along the programmed path. Its
axial components:
23
4 The Interpolation
Feed along the axis X is
Feed along the axis Z is
where x, z are the displacements programmed along
the respective axes, L is the vectorial length of
programmed displacement:
G01 X192 Z120 F0.15
The feed along a rotational axis is interpreted in units of
degrees per minute (°/min):
G01 C270 F120
In the above block, F120 means 120deg/minute.
If the motion of a linear and a rotary axis is combined
through linear interpolation, the feed components will be
distributed according to the above formula. E.g. in block
Fig. 4.2-1
G91 G01 Z100 C45 F120
Fig. 4.2-2
feed components in Z and B directions are:
Feed along axis Z:
Feed along axis C:
mm/min
°/min
Being a modal code, G01 is effective until rewritten by another interpolation command. After
power-on, G00 or G01 is effective, depending on the parameter value set in group CODES of the
parameter field.
24
4 The Interpolation
4.3 Circular and Spiral Interpolation (G02, G03)
The series of instructions specify circular interpolation.
A circular interpolation is accomplished in the plane selected by commands G17, G18, G19 in
clockwise or counter-clockwise direction (with G02 or G03, respectively).
Fig. 4.3-1
25
4 The Interpolation
The above figure shows clockwise (G02) and
counter clockwise (G03) circular directions in
plane G18 when the plane is viewed in the
positive-to-negative direction of axis Y. If the
plane is viewed in the negative-to-positive
direction of axis Y the interpretation of circular
directions is reversed owing to tool turret
arrangements.
Fig. 4.3-2
Here and hereinafter, the meanings of Xp, Yp, and Zp are:
Xp: Axis X or its parallel axis,
Yp: Axis Y or its parallel axis,
Zp: Axis Z or its parallel axis.
The values of Xp, Yp, and Zp are the end-point coordinates of the circle in the given coordinate
system, specified as absolute or incremental data.
26
Further data of the circle may be specified in one of two different ways.
Case 1
At address R where R is the radius of the circle. Now the
control will automatically calculate the coordinates of the
circle center from the start point coordinates (the point
where the control is in the instant of the circle block being
entered), the end point coordinates (values defined at
addresses Xp, Yp, Zp) and from the programmed circle
radius R. Since two different circles of radius R can be
drawn between the start and the end points for a given
direction of circumventing (G02 or G03), the control will
interpolate an arc smaller or larger than 180° when the
radius of the circle is specified as a positive or a negative
The circle center is specified at address I, J, K for the Xp, Yp and Zp axes. The values specified at
addresses I, J, K are interpreted always incrementally by the control system, so that the vector
defined by the values of I, J, K points from the start point to the center of the circle. Value I must
always be specified in radius even if X coordinate is set to diameter. For example:
With G17: G03 X10 Y70 I-50 J-20 (X programmed in radius)
With G18: G03 X70 Z10 I-20 K-50 (X programmed in radius)
With G19: G03 Y10 Z70 J-50 K-20
Fig. 4.3-4
The feed along the path can be programmed at address F,
pointing in the direction of the circle tangent, and being
constant all along the path.
Fig. 4.3-5
27
4 The Interpolation
LNotes:
– I0, J0, K0 may be omitted, e.g.
G03 X0 Z100 I-100
– When each of Xp, Yp and Zp is omitted, or the end point coordinate coincides with the start point
coordinate, then:
a. If the coordinates of the circle center are programmed at addresses, I, J, K the control
will interpolate a complete circle of 360°. E.g.:
G03 I-100,
b. If radius R is programmed, the control returns error 3012 ERRONEOUS CIRCLE DEF.
R.
– When the circle block
a. does not contain radius (R) or I, J, K either,
b. or reference is made to address I, J, K outside the selected plane, the control returns
3014 ERRONEOUS CIRCLE DEF. error. E.g. G03 X0 Y100, or (G18) G02 X0
Z100 J-100.
– The control returns error message 3011 RADIUS DIFFERENCE whenever the difference
between the start-point and end-point radii of the circle defined in block G02, G03 exceeds
the value defined in parameter RADDIF.
Whenever the difference of radii is
smaller than the value specified in
the above parameter, the control
will move the tool along a spiral
path in which the radius is varying
linearly with the central angle.
The angular velocity, not the one
tangential to the path will be
constant in the interpolation of a
Fig. 4.3-6
circle arc of a varying radius.
The program detail below is an example of how a spiral
interpolation (circle of varying radius) can be specified by the
use of addresses I, K.
G90 G0 X0 Z50
G3 Z-20 K-50
Fig. 4.3-7
28
If the specified circle radius is smaller than half the distance
of straight line inter-connecting the start point with the end
point, the control will regard the specified radius of the circle
as the start-point radius, and will interpolate a circle of a
varying radius (spiral), whose center point is located on the
straight line connecting the start point with the end point, at
distance R from the start point.
G0 G90 X0 Z0
G2 X60 Z40 R10
In the following sample blocks X coordinate is in diameter
and U and W are assumed not to be selected for axis:
G2 G90 X100 Z40 R41.2
or
or
or
or
or
or
or
G2 G90 X100 Z40 I40 J10
G2 G91 X60 Z30 R41.2
G2 (G90) U60 W30 R41.2
G2 (G90) XI60 ZI30 R41.2
G2 G91 X60 Z30 I40 J10
G2 (G90) U60 W30 I40 J10
G2 (G90) XI60 ZI30 I40 J10
4 The Interpolation
Fig. 4.3-8
Fig. 4.3-9
29
4 The Interpolation
4.4 Equal Lead Thread Cutting (G33)
The instruction
G33 v F Q
G33 v E Q
will define a straight or taper thread cutting of equal lead.
The coordinates of maximum two axes can be
written for vector v. The control will cut a
tapered thread if two coordinated data are
assigned to vector v. The control will take the
lead into consideration along the long axis.
If "<45°, i.e. Z>X, the programmed lead will
be taken into account along axis Z,
if ">45°, i.e. X>Z, the control will take the
programmed lead along axis X.
The lead can be defined in one of two 2 ways.
– If the lead is specified at address F, the data
will be interpreted in mm/rev or
Fig. 4.4-1
inch/rev. Accordingly, F2.5 has to be
programmed if a thread of 2.5 mm lead is to be cut.
– If the pitch is specified at address E, the control will cut an inch thread. Address E is interpreted
as number of ridges per inch. If, e.g., E3 is programmed, the control will cut a thread
a"=25.4/3=8.4667mm lead.
The shift angle of the thread start is specified at address Q expressed in degrees from the zero pulse
of the spindle encoder. A multiple thread can be cut by an adequate programming of the value of Q,
i.e., the control can be programmed here for the particular angular displacements of the spindle, at
which the various threads are to be cut. If, e.g., a double thread is to be cut, the first and the second
starts will be commenced from Q0 (no special programming is needed) and from Q180,
respectively.
G33 is a modal function. If several threadcutting blocks are programmed in succession,
threads can be cut in any arbitrary surface
limited by straight lines.
Fig. 4.4-2
The control is synchronized to the zero pulse of the spindle encoder in the first block, no
synchronization will be performed in the subsequent blocks resulting in a continuous thread in each
section of lines. Hence the programmed shift angle of the thread start (Q) will also be taken into
account in the first block.
30
Loading...
+ 198 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.