This user manual describes all items concerning the operation of
the system in detail as much as possible. However, it is impractical to give
particular descriptions of all unnecessary and/or unavailable operations of
the system due to the manual content limit, product specific operations and
other causes. Therefore, the operations not specified herein shall be
considered impossible or unallowable.
This user manual is the property of GSK CNC Equipment Co.,
Ltd. All rights are reserved. It is against the law for any organization or
individual to publish or reprint this manual without the express written
permission of GSK and the latter reserves the right to ascertain their legal
liability.
GSK218TB Turning CNC System User Manual
FOREWORD
Dear user,
We are really grateful for your patronage and purchase of this GSK218TB Turning
CNC system made by GSK CNC Equipment Co., Ltd.
The user manual describes the programming, operation, installation and connection
of this GSK218TB Turning CNC system. Please read it carefully before operation in
order to get the safe and effective working.
Warning
This system can only be operated by authorized and qualified personnel as
improper operations may cause accidents.
Please carefully read this user manual before use!
Note: The power supply installed on (in) the cabinet is exclusive to GSK’S CNC
systems.
The power supply form is forbidden to be used for other purposes. Otherwise,
there may be extreme danger!
This user manual shall be kept by final user.
II
content
Content
CONTENT ··············································································································· III
3.1.1 Four methods of position page display ·······················································118
3.1.2 Display of information of machining time, number of parts, programming speed,
override and actual speed···········································································120
3.1.3 Number of machined workpieces, time of cutting and zero clearing method121
3.2DISPLAY PROGRAM ···································································································121
3.3DISPLAY, REWRITING AND SETTING TOOL COMPENSATION ···········································123
1.1 Input signal of machine side (I/O board) ············································237
1.2 Output the signal to the machine side (I/O board)························237
2SYSTEMINTERFACESIGNAL·················································································238
3MDIOPERATIONPANELKEYPAD···········································································239
4CNCINPUT/OUTPUTSIGNAL··················································································239
5SIGNALOUTPUT FROM CNC····················································································241
6CNCSTATEINFORMATION OF SYSTEM·································································241
APPENDIX Ⅳ LIST OF SPECIFICATION ························································ 243
Ⅰ Overview: It introduces the system, the composition of the chapter, the system model, and the
relative usage introduction and precaution of reading the manual.
Ⅱ Programming: It introduces the composition of the part program and the basic knowledge of
programming, and the function of each code, and the command format, which is
programmed by NC language, and its characteristics and limits.
Ⅲ Operation: It introduces each interface and setting, each operation of the machine, input/output of
programs, editing and the system communication, etc in GSK 218TB system.
Ⅳ Connection of the machine: It introduces the structure and the installation dimension of GSK218TB
system, and connection between equipments, the definitions of I/O interfaces, the
machine debugging, the system specification, and matched pitch error
compensation function in memory type.
Appendix: It lists the parameter table, which includes parameter default values and setting
ranges, the alarm table and the diagnosis table.
This manual applies to GSK218TB Turning CNC system.
1.2. Brief introduction of the system
GSK218TB CNC Turning System is the economical and popularized CNC system, which is
researched and designed by GSK CNC EQUIPMENT CO., LTD.
As an upgraded product, GSK218TB possesses the following characteristics:
● It adopts the hardware interpolation technology of CPU and CPLD in 32 bits to realize the μm
level control at high speed;
● It adopts four-layer circuit board, high integrated level, and the system process structure is
proper, and high reliability.
● LCD screen, display in Chinese and English versions, friendly interface, convenient operation;
● Adjustable acceleration and deceleration, matching with the step or the servo drive unit;
● Adjustable electrical gear ratio, and convenient application.
3
GSK218TB Turning CNC System User Manual
1.3. Model and meaning
Fig. 1-3
1.4 Introduction of order
The standard collocation of the system is linkage of two axes, and whether select Y axis as the
additional axis should be marked during order. About the introduction of Y axis operation, refer to
relevant content.
Model Specification
GSK218TB Aluminum operation panel 420mm×260mm
GSK218TB-B GSK218TB assembled with AP01 operation cabinet
Table 1-4
(445mm×345mm×182mm)
4
Volume Ⅱ Programming
PⅡROGRAMMING
5
GSK218TB Turning CNC System User Manual
6
Volume Ⅱ Programming
1. BASIC KNOWLEDGE of PROGRAMMING
1.1 Definition of the coordinate axis
It is very significant to name the coordinate axis of CNC machine and movement directions. The
designer of CNC machine, operator and maintenance worker should have the correct and uniform
knowledge about the CNC machine. Otherwise, it perhaps results in programming confusion,
mistakes of data communication, accident occurred in operation, and failing to maintain.
Fig. 1-1-1 is sketch map of turning machine axes.
Fig. 1-1-1
The system adopts the right angle coordinate system, which is composed of X and Z axes for
positioning and interpolation. X axis is the back-and-forth direction and Z axis left-and-right on the
horizontal plane. The direction close to the work piece is negative and leaving the work piece is
positive, which is shown in figure 1-1-1.
The system supports the front and rear tool post function and stipulates the tool post in front of
the work piece is front post, otherwise, the rear tool post, which is looked from the right side. The
figure 1-1-2 shows the coordinate system of the front tool post and the figure 1-1-3 the rear one. From
figures 1-1-2 and 1-1-3, we can find that the X-axis directions in the front and rear tool post are
opposite, but those of Z axis are same. In the following figures and examples, the manual introduces
the front tool post coordinate system, while the rear tool post can be analogized.
Z
X
X
Z
Fig. 1-1-2 Coordinate system of front tool post Fig. 1-1-3 Coordinate system of rear tool post
7
GSK218TB Turning CNC System User Manual
1.2 Machine coordinate system and machine zero
The machine coordinate system is fixed, and the origins of the machine coordinate system are
regarded as the machine zero or the mechanical zero, and it is normally located at the max travel
between the positive directions of X and Z axes. After designing, manufacturing and adjusting, the
machine zero will be determined and fixed. When CNC device is turned on without determining the
machine zero, it requires automatic or manual returning to the machine zero to set the machine
coordinate system. After the machine returns to the machine zero, the CNC has set the machine
coordinate system.
Remark: please do not use the relative functions of the machine zero provided by the system when
the machine zero is not set in the machine coordinate system.
1.3 Work piece coordinate system and reference position (program
zero)
The work piece coordinate system, which is also called as the floating coordinate system, is used
by programmer during programming. Programmers select one point as the reference position, which
is also called as the program zero, to set a new coordinate system, which is called as the work piece
coordinate system. Once the work piece coordinate system has been created, then it becomes valid
until it is replaced by a new one. And the zero position can not be saved during power off or shutdown.
The system uses G50 to define the work piece coordinate system. When there is no G50 in the
program, then the current absolute coordinate value is taken as the reference position to set the work
piece coordinate system. The reference position of the work piece coordinate system should try to
satisfy the conditions of simple programming, less dimension conversion and machining errors.
Normally, the reference position should be selected at the datum marked by the dimension or at the
positioning datum. About the turning machine programming, the reference position of the work piece
coordinate system is always located on the end face between the work piece axis and the chuck
(refer to the Fig. 1-3-1) or in the point of intersection on the end face of the work piece (refer to the Fig.
1-3-2).
Z
X
Fig. 1-3-1 Reference position on the end face of chuck
8
Z
Volume Ⅱ Programming
Fig. 1-3-2 Reference position on the end face of the work piece
1.4 Number of controlled axes
Table 1-4
Number of controlled axes
Number of controlled axes simultaneously
1.5 Setting units
Table 1-5
The input/output system Least setting unit Least movement unit
X:0.001 mm
Z:0.001 mm (Specified by
The input/output
metric system
diameter)
X:0.001 mm
Z:0.001 mm (Specified by
radius)
X
2 axes(X,Z)
2 axes(X,Z)
X:0.0005 mm
Z:0.001 mm
X:0.001 mm
Z:0.001 mm
Diameter/radius is set by bit parameter NO: 1# 2 and the parameter is only valid to X axis.
Regarding to the setting unit, refer to the manual of the machine manufacturer.
1.6 Max limit
Max limit=Min setting unit X 9999999
1.7 Absolute and relative coordinate programming
There are two methods for movement amount of the specified axis: the absolute and relative
value commands. The absolute value command adopts the coordinate value of the end point of the
axis movement to execute the programming, which is called as the absolute coordinate programming.
The relative value command uses the axis movement value for programming, which is called as the
9
relative coordinate programming. In the system, the absolute coordinate programming adopts
addresses X and Z, and the relative uses U and W.
GSK218TB Turning CNC System User Manual
Table 1-7-1
Absolute value
commands
X U X axis movement commands
Z W Z axis movement commands
Example: It respectively uses the absolute coordinate, the relative coordinate and the combining
coordinate for programming A→B program in the Fig. 1-7.
Relative value
commands
-100-50
100
Remark
0
Z
A
200
B
Fig. 1-7
Table 1-7-2
X
Programming
method
Program G1 X200 Z-50 G1 U100 W-50 G1 X200 W-50
Remark It is assumed that the tool is located at point A as the current
Remark: When one block is with X and U or Z and W, it alarms #132: the coordinate value is with X
and U or Z and W at the same time.
Such as: G50 X10 Z20;
G1 X20 W30 U20 Z30;
Absolute
coordinate
programming
coordinate point, and uses the linear interpolation for
movement.
Relative
coordinate
programming
Combining
coordinate
programming
1.8 Programming through diameter and raduis method
The outer appearance of the work piece, which is machined by CNC turning machine, is body of
revolution and X axis dimension can be specified by two methods: diameter and radius methods. It
can be set by bit parameter NO: 1#2.
When the bit parameter NO: 1#2 is 1, it is specified by the radius for programming.
When the bit parameter NO: 1#2 is 0, it is specified by the diameter for programming.
10
Volume Ⅱ Programming
Table 1-8 Diameter and radius specification
ITEM
Z axis command No connection with the diameter and the radius
X axis command Specified by
Increment commands
of address U
Setting coordinate system (G50) Set by
Tool offset X axis value It is specified by the diameter value or the
Radius command of circular
interpolation (R, I , K )
Feedrate of X axis direction Changeable radius (mm/min, mm/r)
Display X axis position Display the diameter value Display the radius value
Remark 1: In the following content, it is normally specified by the diameter without special
explanation.
Remark 2: The meaning of the tool offset value using the diameter/radius is the outer diameter of the
work piece changes through the diameter or the radius value when the tool offset value
changes. For example: if the diameter specifies and compensation amount is 10mm,
then the outer diameter value of cutting work piece changes into 10mm; and if the radius
specifies and compensation amount is 10mm, then diameter value of cutting work piece
diameter changes into 20mm.
SPECIFIED BY
THE DIAMETER
the diameter value
Specified by
the diameter value
the diameter value
radius value set by bit parameter NO:2#5
Specified by
the radius value
SPECIFIED BY
THE RADIUS
Specified by
the radius value
Specified by
the radius value
Specified by
the radius value
Specified by
the radius value
1.9 Mode, non-mode and initial state
The mode means once the function and status of corresponding fields are executed, it will be
valid until the new function and status are executed again. That is to say, the following blocks use the
same function and status, and then the fields are not required to input again.
Like the following programs:
G0 X100 Z100;(Rapid position in X 100 Z100)
X120 Z30;(Rapid position inX 120 Z30, G0 is mode command and can be omitted)
G1 X50 Z50 F300;(Linear interpolation is at the position of X50 Z50, the feedrate is
300mm/min G0→G1)
X100; (Linear interpolation is at the position of X100 Z50, and the feedrate is 300mm/min,
G1, Z50 and F300 are modal commands and can be omitted.)
G0 X0 Z0;(Rapid position in X0 Z0)
Non-mode means once the function and status of corresponding fields are executed, it will be
valid for one time. If the same function and status are required to use again, theyshould be executed,
11
GSK218TB Turning CNC System User Manual
again. That is to say, the following blocks use the same function and status, and then the fields should
be input again.
The initial state is the default function and status after the systemis turned on, that is to say, if the
corresponding function and state are not specified after power on, it will execute the function in initial
mode and status. The initial states are G00, G40, G97, G98, M05, M09 and M33.
Like the following programs:
O0001;
G0 X100 Z100;(Rapid position in X 100 Z100, G0 is the initial state of the system)
G1 X0 Z0 F100;( Linear interpolation is at the position of X0 Z0, feeding per minute, the feedrate is
100mm/min, G98 is the system initial state at power on.)
12
Volume Ⅱ Programming
2. COMPOSITION of a PART PROGRAM
The series gathering of machining commands, which CNC machine completes the machining of
parts, is called programs. The programs are input into the system, according to the commands, the
system can control the tool moving along the straight line and arc, or the spindle rotation, stop and
cooling ON/OFF, etc. In the programs, these commands can be edited on the base of the actual
movement series of the machine.
2.1 Common structure of a program
The program is composed of many blocks, and a block consists of many fields.Each block uses
EOB code to separate each other, for example, the EOB code of ISO is LF, EIA is CR. The field “;”
represents EOB code. The common structure of program is shown in the figure 2-1:
Command word
Program
name
Serial
number
Program
Fig. 2-1
O0001
N0010 G50 X1000 Z100 ;
N0020 G0 X40 Z5 ;
N0030 G01 X10 Z-30 F200 ;
N0040 G01 U50 W20 F100 ;
……;
……;
……;
N0200 M30 ;
%
;
2.1.1 Program name
EOB
code
Block
Program
end
EOB
code
In the system, the memorizer of the system can store 700 user programs. To differentiate these
programs, at the beginning of the program, the address O and the following 4 digits constitutes the
program name.
O
Program number (0000~9999,lead zero can be omitted. )
Address O
Program end
The program starts from the program name and ends with “%”.
13
GSK218TB Turning CNC System User Manual
2.1.2 Sequence number and blocks
The program is composed of many commands and one command unit is called as a block, refer
to Fig. 2-1. The block is separated through end code (refer to Fig. 2-1), it adopts the field “;” as the
end code.
At the beginning of the block, the sequence number is composed of address N and the following
four digits.
N
Program number (0000~9999,lead zero can be omitted. )
Address N
The order of sequence number is arbitrary and the bit parameter NO: 2 # 7 sets whether the
sequence number is inserted or not. Its interval may not be equal and the space will be set by data
parameter P50. All the blocks can be with the sequence number, or just some important one. But
according to the machining sequence, the sequence number should be from small to large.
2.1.3 Command word
The command word is the component of the blocks and the word is composed of the
address and the following digits, sometimes followed by marks of +, -, which is shown in the
Fig. 2-1-3:
X
Add Digit
Command Word
Fig. 2-1-3
Address is one of the English letters from A to Z, and it stipulates the meaning of following
numerical values. In the system, the address and meaning which are useful are shown in the table
2-1-3. According to the different commands, sometimes an address has different meanings.
ADDRESS RANGE OF VALUES MEANING
O
1000
Z
Add Digit
Command word
Table 2-1-3 List of command words
0~9999
Program name
-500
N
G
-9999.999~9999.999(mm)
X
0~9999.999(s)
Z
U
14
-9999.999~9999.999(mm)
-9999.999~9999.999(mm)
0~9999
00~99
Sequence number
Preparatory function
Coordinate address of X direction
Specified pause time
Coordinated address of Z axis
X direction increment
Volume Ⅱ Programming
ADDRESS RANGE OF VALUES MEANING
W
-9999.999~9999.999(mm)
0.001~9999.999(mm)
-9999.999~9999.999(mm)
-9999.999~9999.999(mm)
0.001~9999.999(mm)
-9999.999~9999.999(mm)
-9999.999~9999.999(mm)
-9999.999~9999.999(mm)
0.001~9999.999(mm)
1~9999999(time)
Finishing allowance in X direction of
G71,G72 and G73 commands
G71 cutting depth
G73 moving distance of tool retraction in
X direction
Z direction increment
G72 cutting depth
Finishing allowance in Z direction of
G71,G72 and G73 commands
G73 moving distance of tool retraction in
Z direction
Radius of arc
Cycle moving distance retraction in G71
and G72
Times of roughing in G73
R
I
K
F
S
T
M
P
0~9999.999(mm)
0~9999.999(mm)
0~9999.999(mm)
-9999.999~9999.999(mm)
-9999.999~9999.999(mm)
0.06~25400(teeth/inch)
-9999.999~9999.999(mm)
1~8000(mm/min)
0.001~500(mm/r)
0.001~500(mm)
0~9999(r/min)
00~04
10~99
0100~0800
00~99
1~9999999(0.001s)
0~9999
0~999
The moving distance of retraction
in G74 and G75 after cutting
The moving distance of retraction in G74
and G75 when cut to the end
Finishing allowance in G76
Tapering in G90, G92 and G94
Relative start point of circular center in X
axis vector
Number of thread teeth of inch system
Relative start point of circular center in Z
axis vector
Feedrate per minute
Feedrate per rev
Screw thread lead of metric system
Specified spindle speed
Multilevel spindle output
Subprogram calling
Tool function and subprogram calling
Miscellaneous function output, program
execution process, subprogram calling
Pause time
Number of calling subprogram
Times of subprogram calling
15
ADDRESS RANGE OF VALUES MEANING
GSK218TB Turning CNC System User Manual
0.001~9999.999(mm)
Refer to introduction of
commands in programming
chapter 3.4.
1~9999
1~9999
Q
H
L
Table 2-1-3 shows all the limit values of CNC devices, but the limit of the machine does not
include in the table. Please pay attention to the operation manual of the machine and understand the
programming limits during programming.
0~9999.999(mm)
1~9999.999(mm)
01~99
01~99
Cycle moving amount in X direction of
G74 and G75
Thread cutting parameters in G76
Initial block sequence number of
compound cycle command finishing
Last block sequence number of
compound cycle commandfinishing
Cycle moving distance in Z direction of
G74 and G75
Cutting amount at the first time in G76
Operator in G65
Number of thread heads in G92
16
Volume Ⅱ Programming
2.2 Relations between the command numerical value and the
decimal point
In the system, some commands can not input the decimal point, and whether the programming
uses the decimal points is set by the bit parameter NO: 11#0. Table 2-2 lists the relations between the
command numerical value and the decimal point:
Table 2-2
ADDRESS
X
Z
U
W
R
I
K
P
S
WITH DECIMAL
POINT OR NOT
Yes
Yes Command: G1 Z20
Yes Command: G1 U20
Yes Command: G1 W20
Yes
Yes
Yes
No Command:G4 P2
No
NO:11#0=1NO:11#0=0 REMARK
Command:G1 X20
Positioning point: 20
Command:G4 X20
Delay:20s
Positioning point: 20
Increment value:
20mm
Increment value:
20mm
Delay: 0.002s
Command:G1 X20
Positioning point: 0.02
Command:G4 X20
Delay:0.02s
Command: G1 Z20
Positioning point: 0.02
Command: G1 U20
Increment value:
0.02mm
Command: G1 W20
Increment value:
0.02mm
Same as
address X
No connection
with the decimal
point
2.3 Subprogram control
2.3.1 The main program and the subprogram
To simplify the program, when the same or similar machining path or control process should be
used for many times, the program command of this part can be edited as the independent program
for calling. The program which calls the other one is the main program, and the program which is
called and ends with M99 is subprogram. Subprogram and main program should take the program
capacity and storing space. The subprogram should have its own program name, and can be called
by any main programs and independently run. After the subprogram ends, it will return to the main
program and continuously run, which is shown as the following figure:
17
GSK218TB Turning CNC System User Manual
2.3.2 The subprogram calling M98
Format:
M98 Pooo
The program which is called is from 0000 to 9998. When calling times is
not input, the leading 0 before subprogram number can be omitted; when
the calling times is input, the subprogram should be in 4 digits;
Calling times(1-999), when the calling time is just one, it is not required
to input.
Command function: When the other commands of present block are executed completely, the
system will not execute the next block, but execute the subprogram which is
specified by P, and the max times of subprogram being executed are 999.
Remark 1: The subprogram can not be called in the MD1 mode!
Remark 2: The subprogram can not be called in O9999, and the block with G70 command can not
run, either.
2.3.3 Return to M99 from the subprogram
Format:
M98 Poooo
Return to the program number (0000~9998) which is executed
by the main program and the leading 0 can be omitted.
Function: After completing to execute the other commands of the present block in the subprogram,
it will return to the blocks of the main program, which is specified by P. During returning
the main program withoutP, the subprogram is called after the one called by M98
currently. If M99 is used for ending the main program, then the present block can be
executed repeatedly.
18
Volume Ⅱ Programming
;
;
Example: Fig. 2-3-3-1 indicates the execution path of calling subprograms and M99 includes P
command word and the Fig. 2-3-3-2 represents the calling and returning path without P in
M99.
Fig. 2-3-3-1
Fig. 2-3-3-2
The system can call four-nested subprogram at the most, that is to say, the subprogram can also call
the other subprograms. The two-nested subprogram is shown in the Fig. 2-3-3-3.
Main program
O0001;
…
…
…
M98P1000;
…
…
…
…
M30
First-nested subprogram
O1000;
…
…
…
M98P2000;
…
…
…
…
M99;
Second-nested subprogram
O2000;
…
…
…
M98P3000;
…
…
…
…
M99
First nest
Second nest
Fig. 2-3-3-3 Two-nested subprogram
19
Loading...
+ 226 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.