Академический Документы
Профессиональный Документы
Культура Документы
Security Precaution
III
Installation and Connection Manual of GSK218MC CNC System
Statement!
z In this manual we have tried as much as possible to describe all
various matters. However, we cannot describe all the matters which
must not be done, or which cannot be done, because there are so
many possibilities. Therefore, matters which are not especially
described as possible in this manual should be regarded as
“impossible”.
Warning!
z Before installing, programming and operating the machine, thoroughly
read this manual and user manual issued by the machine
manufacturer, and rigidly operate the machine based upon the
requirement of this manual, otherwise, possibly causing damage to
the workpiece and/or machine itself, or injury to the user.
Notice!
z The product functions and technical indexes (such as accuracy,
velocity) described in this manual are only for this machine, which
installs the CNC system of this product. The actual function
configuration and technical capacity are determined by the machine
manufacturer, and the function configurations of the CNC machine
and technical indexes are subjected on the manual issued by the
machine builder.
IV
Preface and Precaution
Safety Precautions
V
Installation and Connection Manual of GSK218MC CNC System
Appendix
Introduce the use explanations of the GSK218MC series machining center CNC
system and the appendix
VI
Preface and Precaution
Security Responsibility
VII
Installation and Connection Manual of GSK218MC CNC System
VIII
Contents
CONTENTS
VOlUME Ⅰ PROGRAMMING...................................................................................... 1 0H
2.3 The Priority Sequence of the Performance (the 1st Level, the 2nd level).......................... 6 10H
3.2 PLC → Address of the Machine Tool Side (Y) ................................................................. 13 16H
5.1 END1 (End of the 1st Level Sequence Program) ................................................................. 22 36H
5.2 END2 (The End of the 2nd Sequence Program) ................................................................... 23 37H
IX
Installation and Connection Manual of GSK218MC CNC System
CHAPTER SIX THE COMPILATION LIMIT OF THE LADDER DIAGRAM .............................. 49 70H
3.2 MPG (Manual Pulse Generator) / Single Step Feed ............................................................ 59 83H
X
Contents
2.3 The Operation Explanation of the Ladder Diagram ........................................................... 105 12H
XI
Installation and Connection Manual of GSK218MC CNC System
2.2 Connection between the System and the Drive Unit .......................................................... 139 146H
2.7 The Control Interface of the External Power Supply........................................................... 149 159H
CHAPTER THREE THE MACHINE CONTROL I/O INTERFACE ............................ 150 160H
3.2.1 The Circuit Principle of the Input Interface ....................................................................... 151 163H
3.2.2 The Interface Definition of the Input Signals .................................................................... 152 164H
3.3.1 The Circuit Principle of the Output Interface .................................................................... 154 16H
XII
Contents
4.9 Controlling the Input and Output Signals during the Spindle CW and CCW Rotation......... 171 17H
4.12 The External Editing Lock and the External Operation Panel Lock ..................................174 180H
1. Points for Attention during Using the Ladder Diagram when GSK218MC with the Turret
Magazine..................................................................................................................................183186H
2. The Allocation and Definitions of I/O Address and Internal Software Components in CNC PLC
of GSK218MC ..........................................................................................................................183 187H
3. Usage and Maintenance of GSK218MC CNC System with the Turret Magazine......................212 18H
2. The Allocation and Definition of PMC, I/O Address and the Internal Software Components in
GSK218MC CNC System.........................................................................................................222 19H
3. Usage and Maintenance of GSK218MC CNC SYSTEM with the Disc Magazine ................ 254 192H
4. Note of GSK218MC CNC System with the Disc Magazine Macro Program.........................262 193H
2. “%” in a Single Line Meaning Saving M Code Information End ............................................263 196H
XIII
Installation and Connection Manual of GSK218MC CNC System
XIV
Chapter One The Compilation Schedule of the Sequence Programming
Volume I Programming
VOlUME Ⅰ PROGRAMMING
1
Installation and Connection Manual of GSK218MC CNC System
Volume I Programming
VolumI Programming
2
Chapter One The Compilation Schedule of the Sequence Programming
Volume I Programming
1.1 GSK218MC Series PLC Specification
The programming is performed a logic control to the machine tool and its relative equipments, which
is called sequence programming.
After the programming is converted into some kind of format, CPU can be performed the code and
calculation treatment for it, and its fruits can be memorized to RAM. CPU can be rapidly read each
code stored in the memory, which can be performed the programming according to the calculation
operation.
The compiling of the sequence programming starts with developing of the ladder diagram
3
Installation and Connection Manual of GSK218MC CNC System
The interface can be distributed after confirming the controlled object and calculating the points of the
corresponding input/output signal.
Volume I Programming
Refer to the Chapter Four Input/output interface signal table in the part of the Installation and
Connection when distributing the interface.
VolumI Programming
The control operation required by the machine tool can be expressed by the ladder diagram with the
on-line compiling of the GSK218MC. The functions, such as the timer and counter, can not be
expressed by relay symbols, which can be indicated by the specified function code symbols.
The compiled ladder diagram should be stored and converted into the corresponding PLC codes
before operating, namely, the so-called instruction list.
4
Chapter Two Sequence Programming
Volume I Programming
The operating principle is different with the common relay, because the PLC sequence controlling is
carried out by compiling the on-line diagram. And therefore, it is better to thoroughly understand the
sequence controlling principle when designing the PLC sequence programming.
In the general relay controlling circuits, each of them can be simultaneously operated. When the relay
A is operated in the following figure, the replay D and E can be operated (when the contactor A and B
are closed) at the same. Each replay in the PLC sequence control is operated in turn. The relay D is
operated before relay A, and then the relay E operates (refer to the following figure). Namely, each
relay is operated based upon the sequence of the ladder diagram (compiling sequence).
A B
D
A C
E
The differences between the relay circuit and PLC programming operation are shown below in the Fig.
2.1 (b) and Fig. 2.1 (c).
A C
B
A
C
A
C
A C
B
5
Installation and Connection Manual of GSK218MC CNC System
PLC performs from the beginning to the end of the ladder diagram. It performs again from the
VolumI Programming
beginning of the ladder diagram after this diagram is performed, which is called cycle performance.
The performance time from the beginning to the end of the ladder diagram is abbreviated as a period
of a cycle treatment. The shorter of the treatment period is, the stronger of the response capacity of
the signal is.
2.3 The Priority Sequence of the Performance (the 1st Level, the 2nd
level)
GSK218MC PLC program are composed of two parts: the 1st level program and the 2nd level program,
which are inconsistent with the performance period.
The 1st level program performs once each 8ms, which can be treated some fast corresponding and
short pulse.
The 2nd program performs once each 8*nms. N is the partition value of the 2nd level program. PLC
may divide the 2nd level program into N parts when the 2nd level program is executed. It is performed
one part for each 8ms.
Fig. 2-3-1
PLC in the GSK218MC is separately performed in the PLC-AVR SCM. The 1ms of each 8ms is the
communication time for reading the PLC data from the CNC. The 5ms is that the PLC gains the
system control signal (F. X), and uploads the control result data (G, Y parameter) external port I/O.
PLC is always performed the ladder diagram calculation other than the interruption of the response
exchange data.
6
Chapter Two Sequence Programming
Volume I Programming
Fig. 2-3-2
When the last partition value of the 2nd level program of the n is performed, the program is then
executed from the beginning of the program. In this case, when the partition value is n, the
performance time of one cycle is 8*n ms. The 1st level program performs once each 8ms; the 2nd level
program performs once each 8*n ms. If its steps of the 1st level program is increased, and therefore
the steps of the 2nd level program within 8ms should be reduced correspondingly; the partition value
may be increased, and the treatment time of the overall program will be longer. So, the compiling of
the 1st level program should be shorter.
The ladder diagram is compiled with sequence in the traditional PLC. It owns the following
advantages in the ladder diagram language allowing the structured programming:
1. The program is easy to comprehend and compile.
2. It is more convenient to find the faults during the programming.
3. It is easy to find some reasons when the operation malfunction occurs.
A C
B
Task A
A
C
.
.
Task B .
.
Fig. 2-4-1
2) Nesting
One subprogram can be performed the task by calling another one.
Main program Subprogram 1 Subprogram 2
Task A12
Task B
Task An
Fig. 2-4-2
7
Installation and Connection Manual of GSK218MC CNC System
3) Conditional branch
The main program is performed circularly, and checks whether its conditions are suitable. The
corresponding subprograms are performed under these conditions, vice versa.
Volume I Programming
VolumI Programming
Fig. 2-4-3
CNC
CNC—PLC
Shared register
Latched at the
beginning of the
2nd level The 2nd level
nd program
The 2
program input
signal latch
Machine tool
input register
8ms
IO terminal
Fig. 2-5-1
The treatment of the output signal:
Fig. 2-5-2
8
Chapter Two Sequence Programming
Volume I Programming
signals.
The signals both in the NC and machine tool input register can be locked to the 2nd level program
input latch, as long as the 2nd level program performs. The signal state in this latch keeps invariable
during the performance of the 2nd level program.
2.5.3 The Distinguish of the Signal State Between the 1st Level and the
2nd Level Program
As for the same input signal, their states may different between the 1st and 2nd level programming,
that is the reason that different registers are used between two levels programming. Namely, the input
signal used with the 2nd level program is the one of the 1st level who is locked. And therefore, the
signal in the 2nd level program is later than the 1st level one. At the worst case, one 2nd level program
performance cycle can be lagged.
It is better to remember this point when programming the ladder diagram.
A .
. B
.
.
END1
.
.
A .
It belongs to the 2 nd partition
. C of the 2 nd level program
Fig. 2-5-3-1
9
Installation and Connection Manual of GSK218MC CNC System
A=1 performs the 1st level program when the 1st 8ms is performed, then B=1. And therefore, the 2nd
level program is performed, the A=1 is latched to the 2nd level program, and then the first partition of
the 2nd level program is completed.
Volume I Programming
A turns into 0 to perform the 1st level program when the 2nd 8ms is performed, then B=0. And
therefore, the 2nd partition of the 2nd level program is performed; in this case, the state of the A is still
latched as the one last time. So, C=1.
VolumI Programming
2.6 Interlocking
In the sequence control, the interlocking is very important from the safety issue.
It is necessary to use the interlocking in the sequence control programming. Simultaneously, the hard
interlocking is used in the relay control circuit of the strong electric cabinet of the machine tool sides.
This is the reason that the interlocking is disabled when the hardware of the performance sequence
programming malfunctions, even if the interlocking is logically used in the sequence program
(software). And therefore, the interlocking can be ensured the safety for the user, and prevent the
machine tool from damaging in the strong electric cabinet of the machine sides.
10
Chapter Three PLC Address
Volume I Programming
Address distinguishes signal. Different address is separately corresponding to the I/O signal at the
side of the machine tool, the I/O signal at the side of the CNC, the internal relay, the counter, the timer,
the keep relay and the data list. Each address is composed of the address number and bit number,
and its number is as shown below:
X 000 . 6
Type Address number Bit number
Address type: X, Y, R, F, G, K, A, D, C and T
Address number: Decimal number means one byte.
Bit number: Octonary number system, 0~7 are separately indicated the bytes (0~7 bits) in the front
of the address number.
The address type of the GSK218MC PLC is shown below:
Table 3-1
Address Address explanation Length
X Machine →PLC (64 bytes) INT8U
Y PLC → machine tool (48 bytes) INT8U
F CNC → PLC (64 bytes) INT8U
G PLC → CNC (64 bytes) INT8U
R Intermediate relay (512 bytes) INT8U
D Data register (0~255) INT16U
The data register of the counter
DC INT16U
preset value
C Counter (0~127) INT16U
A PLC alarm detection INT8U
T Timer (0~127) INT16U
The data register of the timer preset
DT INT16U
value
K Keep relay (64 types) INT8U
INT8U data type is 8-bit character type without symbol, INT16U data type is 16-bit integral type
without symbol.
11
Installation and Connection Manual of GSK218MC CNC System
Users can define the signal significance of the X address of the I/O ports based upon the actual cases,
which can be connected the machine tool and compiled the corresponding ladder diagram. Refer to
the appendix one (GSK218MC CNC system PLC I/O address) and the configuration and definition of
the internal software components for the initial definition of the input address.
Volume I Programming
12
Chapter Three PLC Address
Volume I Programming
Feed override cancellation X31.4
User 3 X24.2
(218MC-H/-V is the feed override FOV2)
Feed positive override X31.5
User 4 X24.3
(218MC-H/-V is the feed override FOV4)
Feed override FOV8 X31.6
User 5 X24.4
(218MC-H/-V)
Feed override FOV16 X31.7
Rapid switch X24.7
(218MC-H/-V)
Users can define the signal significance of the Y address of the I/O ports based upon the actual cases,
which can be connected the machine tool and compiled the corresponding ladder diagram. Refer to
the appendix one (GSK218MC CNC system PLC I/O address) and the configuration and definition of
the internal software components for the initial definition of the input address.
Table 3-2-2-1
13
Installation and Connection Manual of GSK218MC CNC System
indicator
Spindle CCW indicator Y13.0 USER3 indicator Y16.7
Spindle CW indicator Y13.1 +X key indicator Y17.0
Spindle stop indicator Y13.2 +Y key indicator Y17.1
Y axis zero return
Y13.3 +Z key indicator Y17.2
Volume I Programming
indicator
Y axis zero return
Y13.4 +4TH key indicator Y17.3
indicator
Z axis zero return
Y13.5 USER1 key indicator Y17.4
indicator
VolumI Programming
The addresses from G0 to G63, its definition type: INT8U, totally 64 bytes.
The operation panel key signal is shown below:
Table 3-3-1
14
Chapter Three PLC Address
Volume I Programming
Spindle negative override
G22.3 Manual feed axis -Y G28.1
(218MC integration)
Spindle override cancellatio
G22.4 Manual feed axis -Z G28.2
(218MC integration)
Spindle positive override
G22.5 Manual feed axis -4Th G28.3
(218MC integration)
Spindle JOG G22.6 Spindle orientation G29.0
Tunnel selection signal G22.7 Tool magazine zero return G29.1
Lubrication G23.0 Tool clamping/release G29.2
Cooling G23.1 Tool magazine positive G29.3
Chip removal G23.2 Tool magazine negative G29.4
Cycle start G23.6 Tool pivoting (Tool infeed) G29.5
Feed hold G23.7 Tool return (tool retraction ) G29.6
Feed positive override
G24.0 Tool changer G29.7
(218MC integration)
Feed override cancellation
G24.1 Overtravel release G30.0
(218MC integration)
The signal of G63 bytes are used inside the system, the G63.0, G63.1 and G63.2 are the answer
signal inside the system separately performed by M, S and T.
The addresses from F0 to F63 are defined as: INT9U, totally 64 bytes.
Refer to the Chapter Two Function for details.
The address area is reset when the system is turned on. R510 and R511 are used by the system.
Its definition type is: INT8U, totally 512 bytes.
Address
number 7 6 5 4 3 2 1 0
R0
R511
Fig. 3-5-1
15
Installation and Connection Manual of GSK218MC CNC System
R511 (System timer) The following four signals can be used for system timer:
7 6 5 4 3 2 1 0
R511
Always cut off
Volume I Programming
Always power on
(104ms ON, 96ms OFF) 200ms period
signal
(504ms ON, 496ms OFF)
VolumI Programming
1s period signal
Fig. 3-5-2
This address area is used for nonvolatile replay and PLC parameter setting. This area is called
nonvolatile relay area, namely, the content inside the register will not lose even if the system is turned
off. K000~~K005 are used by the system, which is used to protect the PLC system parameter, it is
very convenient for user to control PLC in the CNC system.
Its definition type: INT8U, totally 64 bytes.
Address 7 6 5 4 3 2 1 0
number
K0
K1
K relay
area
K63
Fig. 3-6-1
Note: When PLC address K005.2 =1, PLC enters the debugging mode. All of the external alarms are cancelled, and
the machine interlocking signals are then cancelled, the tool-change code can not be performed. The parameter
can be modified only when comprehending the parameter, so that the damage in the machine tool or injury of
the person may occur.
Fig. 3-7-1
16
Chapter Three PLC Address
This area is used for placing the current count value of the counter. The data is reset after the system
is turned off.
Volume I Programming
Its definition type: 128 addresses.
This address area is used for storing the counter preset, which is a nonvolatile storage area, that is,
the memorized content may not loose even the system is power off.
Its definition type: 128 addresses. The setting value of the DC is only read instead of writing.
This address area is used for storing the current numerical value of the timer. The data initial is
presetting value after the system is power off. Current data is presetting value when it is set to 0.
Its definition type: 128 addresses
This address area is used for placing the timer preset value. This area is nonvolatile register area,
namely, the content inside the register will not lose even if the power of the system is turned off.
Its definition type: 128 addresses. The setting value of the DT is only read instead of writing.
The content inside the memory will not lose even if the power of the system is turned off.
Its definition type: totally 256 addresses. Wherein, D240~247 are used by the system, users can not
define by themselves.
It is used to specify signs both skip object and the LBL code in the JMPB code.
Its range: 0~99
It is used to specify the called object subprogram number in the CALL code and the subprogram
number in the SP code.
Its range: 0~99
17
Installation and Connection Manual of GSK218MC CNC System
The design of the sequence program begins from the compiling of the ladder diagram. The ladder
Volume I Programming
diagram consists of relay contact and function code. The logic relationship in the ladder diagram
composes of sequence program. There are two methods of the sequence program input: one is that
the input method uses the mnemonic symbol language (The system is not temporarily supported the
PLC command code of the RD, AND and OR); the other one that is used the relay symbol. The
VolumI Programming
programming can be compiled using ladder diagram, and do not comprehend the PLC code based
upon the latter.
Actually, the sequence program inside the system can be converted into corresponding PLC code
even if it is input by the relay symbol.
The basis codes are commonly used codes when designing the sequence programming, which are
performed one-digit calculation.
Table 4-1
18
Chapter Four PLC Basis Code
Code explanation
z WRT and WRT.NOT codes are the coil drive code of the output relay and internal relay, but
the input relay can not be used.
z The paratactic WRT command can be used multiply, but it can not output with double coil.
Volume I Programming
Refer to the following programming:
RD X002.1
X002.1 Y003.7
() WRT Y003.7
RD.NOT F100.3
F100.3 G120.0
()
WRT G120.0
Fig. 4-1-1
Code explanation
z Connect 1 contact with series connection by using AND, AND.NOT code. The numbers of
series connection contacts are unconstrained, and this code can be used for dozens of times.
RD X002.1
X002.1 F100.3 X008.6 Y003.7
() AND.NOT F100.3
AND X008.6
WRT Y003.7
Fig. 4-2-1
Code explanation
z Connect 1 contact with series connection using the OR and OR.NOT code.
19
Installation and Connection Manual of GSK218MC CNC System
z OR, OR.NOT is started from the step of this code; it can be connected with series connection
with the abovementioned RD, RD.NOT code step.
Refer to the following programming:
Volume I Programming
X002.1 Y003.7
() RD X002.1
OR.NOT F100.3
F100.3
WRT Y003.7
VolumI Programming
Fig. 4-3-1
Code explanation
z OR.STK code is the separate code without any address.
Refer to the following programming:
X 0 0 2 .1 X 0 0 2 .2 Y 0 0 3 .7 RD X 0 0 2 .1
1 ( )
A N D .N O T X 0 0 2 .2
N ode N 1
F 1 0 0 .3 F 1 0 0 .6 R D .N O T F 1 0 0 .3
2 O R .S T K AND F 1 0 0 .6
O R .S T K
R 0 2 2 .1 OR R 0 2 2 .1
3 OR
W RT Y 0 0 3 .7
Fig. 4-4-1
There are three branches ①, ② and ③ from the left bus to the node N1. The branches ① and ② are
series connection circuit block. When the series connection circuit block is performed between bus to
node or among the nodes, other than the first branch, use the RD code when the following branch is
ended. The branch ③ is not a series connection circuit block, which can be used by the OR code.
OR. STK and AND. STK are the code without operation component, which indicates the OR , AND
relationships between circuit blocks.
Code explanation
20
Chapter Four PLC Basis Code
z Use the AND. STK coded when the branch circuit (parallel circuit block) is connected with
series connection with the front of the circuit. The start of the branch is used RD, RD.NOT
code. Use the AND. STK code is connected with series connection with the front of the circuit
Volume I Programming
after the series connection circuit block is executed.
z AND. STK code is the separate code without any address.
X 0 0 2 .1 R 1 0 0 .0 R 1 0 0 .3 Y 0 0 3 .7 R D X 0 0 2 .1
( ) O R .N O T F 1 0 0 .3
O R .N O T X 0 1 1 .0
F 1 0 0 .3 G 0 0 3 .3 R 0 0 9 .7 R D R 1 0 0 .0
A N D .N O T R 1 0 0 .3
R D G 0 0 3 .3
X 0 1 1 .0 A N D R 0 0 9 .7
O R .S T K (1 )
B lo c k 1 B lo c k 2 A N D .S T K (2 )
Fig. 4-5-1
As for the abovementioned ladder diagram and command table, ⑴OR.STK indicates parallel
connection of the series connection circuit block in the block ②, ⑵AND.STK expresses the series
connection between circuit block ① and ②.
21
Installation and Connection Manual of GSK218MC CNC System
When the basis command code is not easy to compile some operations of the machine tool, the
Volume I Programming
Serial Serial
Name Function Name Function
number number
VolumI Programming
Function
This function can be specified once in sequence program at the end of the 1st level program, or it
can be performed at the beginning of the 2nd level program when the 1st level program does not
execute. The first program can be compiled up to 500 steps.
22
Chapter Five PLC Function Code
Format
Volume I Programming
Fig. 5-1-1
Function
It specifies at the end of the 2nd level program.
Format
END2
Fig. 5-2-1
Function
Call one specified subprogram
It owns the following characters and limitations:
Subprogram can be nested and called other subprograms up to 18 layers, as for the endless
repetition caused by the closure call, the system may alarm. The system allows that the maximum
subprogram call number is 100 for controlling the performance data value. The subprogram call can
not be performed at the 1st level program. The code or network wrote between END2 AND SP, or after
SPE, or before SP, the system can not be performed, and then alarms.
Format
ACT
Subprogram
CALL
number
Fig. 5-3-1
Control condition
ACT=0, next code after performing CALL
ACT=1, call subprogram of the specified subprogram number
Parameter
Subprogram number: specify the called subprogram number. The subprogram number is
indicated as 0~99.
Function
Call one specified subprogram without any condition
23
Installation and Connection Manual of GSK218MC CNC System
not be performed at the 1st level program. The code or network wrote between END2 AND SP, or after
SPE, or before SP, the system can not be performed, and then alarms.
Format
VolumI Programming
Subprogram
CALLU
number
Fig. 5-4-1
Parameter
Subprogram serial number: specify the called subprogram number, its range is 0~99.
5.5 SP (Subprogram)
Function
SP is used to generate a subprogram. The subprogram number is regarded as its name. The range of
the subprogram is specified by the SP code and the aftermentioned SPE code together.
Notice
1. The subprogram should be compiled after END2.
2. Another subprogram can not be set inside one subprogram.
Format
Subprogram
SP
number
Fig. 5-5-1
Parameter
Subprogram number: specify a called subprogram mark number, its range is 0~99.
Function
* Specify the range of the subprogram when the SPE and SP are used together.
* The control will return to the main program of the called subprogram when this function code
is performed.
* The subprogram should be compiled after END2.
Figure format
SPE
Fig. 5-6-1
24
Chapter Five PLC Function Code
For example
CALL P33
Volume I Programming
END2
SP P33
SPE
Fig. 5-6-2
Function:
Set 1 in the specified address.
Format:
ACT
SET Add.b (Address)
Fig. 5-7-1
Controllable condition
ACT=0, the state of the add.b remains invariable.
ACT=1, the add.b is set to 1.
Parameter
Add.b: setting component address bit can be treated as the output coil, Add = Y, G, R, K and A.
Function:
Set 0 on the specifying place.
Format:
ACT
RST Add.b (Address)
Fig. 5-8-1
Controllable condition
ACT=0, the state of the add.b remains invariable.
ACT=1, add.b is set to 0.
25
Installation and Connection Manual of GSK218MC CNC System
Parameter
Add.b: resetting component address can be treated as output coil, Add = Y, G, R, K and A.
Function:
JMPB immediately transfers the control to program following with mark number in the ladder diagram
programming.
VolumI Programming
Fig. 5-9-1
Controllable condition
ACT=0, Do not skip, it performs the next code after JMPB.
ACT=1, Perform the next code after the mark number when the skip jumps to the specified mark
number.
Parameter
Lx: Specify a skip object mark number. Any value (from 0 to 99) can be specified.
Function
Specify one mark number in the ladder diagram, namely, JMPB specifies a skip object.
It is very important to notice that one mark number with xx only can be specified once using LBL. It
may alarm if it uses repeatedly.
Format
Fig. 5-10-1
Parameter
xx: Specify a skip object mark number, its range is 0~99.
26
Chapter Five PLC Function Code
For example
JMPB 33
Volume I Programming
LBL 33
JMPB 33
Fig. 5-10-2
Function
Delay conducting timer.
Format
ACT
TIMER (Timer
TMR (W)
number)
Fig. 5-11-1
Controllable condition
ACT=0, close the timer.
ACT=1, start the timer.
Refer to the following figure for details:
ACT
W
TIMER= Setting time
Fig. 5-11-2
Parameter
TIMER: The timer number indicates by xxx (it expresses by numbers from 0 to 127).
Output
W: Output coil. W=1 when it reaches to the resetting value, W=0 means it does not reach to it.
Note: TIMER performs once each 8ms, its setting unit is ms, and 8ms is the performance radix, complete 8ms if it is
insufficient. For example: the setting is 54ms, 54=6*8+6, complete 2ms, the actual performance is 56ms. The
time of the timer is set in the [TMR] of the [PLCPAR] under the program-controlled interface. The sequence
number of the timer may be detected its range by the system directly. The alarm may occur when the sequence
number repeats or exceeds its range.
27
Installation and Connection Manual of GSK218MC CNC System
Function
Delay conducting timer.
Volume I Programming
Format
ACT
Timer Timer Presetting
TMRB (W)
accuracy number time
VolumI Programming
Fig. 5-12-1
Controllable condition
ACT=0, close the timer
ACT=1, start the timer
TIMER=Setting time
Fig. 5-12-2
Parameter:
TIMER: Fix the timer number, it is indicates by xxx (it expresses by number from 0 to 127).
Table 5-12-1 (Timer accuracy)
Timer Setting
Setting time range Error range
accuracy number
8ms 0 From 8ms to 524.280s Scan period from 0 to the 1st level program
48ms 1 From 48ms to 31.456min Scan period from 0 to the 1st level program
1s 2 From 1s to 546 min Scan period from 0 to the 1st level program
10s 3 From 10s to 182 h Scan period from 0 to the 1st level program
1min 4 From 1min to 1092 h From 0 to 1s
1ms 5 From 1ms to 65.4s Scan period from 0 to the 1st level program
Presetting time
The time setting of the fixed timer, its numerical range is: 0~65535.
Output
W: Output coil. W=1, when it reaches to the presetting. W=0, when it does not reach.
Note: As for the sequence of the timer, the system may check its range automatically, if the repeated sequence or out
of the range, the system may alarm. The presetting time in timer is solidified in the ROM along with the ladder
diagram, so, the time of the timer only can be changed by modifying the ladder diagram file.
Function
Delay conducting timer
Format
ACT
Timer Timer
TMRC (W)
accuracy number
Fig. 5-13-1
28
Chapter Five PLC Function Code
Controllable condition
ACT=0, close the timer
ACT=1, start the timer
Volume I Programming
ACT
W
T IM E R =S etting tim e
Fig. 5-13-2
Parameter
TIMER: The timer number indicates by xxx (xxx expresses by numbers from 0 to 127).
Table 5-12-1 (Timer accuracy)
Timer Setting
The range of setting time Error range
accuracy number
8ms 0 From 8ms to 524.280s Scan period from 0 to the 1st level program
48ms 1 From 48ms to 31.456 min Scan period from 0 to the 1st level program
1s 2 From 1s to 546 min Scan period from 0 to the 1st level program
10s 3 From 10s to 182 h Scan period from 0 to the 1st level program
1min 4 From 1min to 1092 h From 0 to 1s
1ms 5 From 1ms to 65.4s Scan period from 0 to the 1st level program
Output
W: Output coil. W=1, when it reaches to the presetting, W=0, when it does not reach to it.
Note: The time of the timer is set in the [TMR] in the [PLCPAR] controlling by the program surface. TMRC and TMR
timers are shared with a same address, so, the TMRC and TMR timers can not be repeatedly used. The system
may automatically check the range of the sequence of the timer. It may alarm when the sequence number is
repeated or exceeded its range.
Function
The data in the counter are binary system, which have the following functions based upon the
applications
1) Presetting counter
If the count reaches to the output signal of presetting value, preset the numerical value.
2) Ring-counter
When the counter reaches to the presetting value, it inputs the count signal and resets the
initial value and performs the count again.
3) Addition and subtraction counter
This is treated as the forward-backward counter, which can be used both addition and
subtraction.
4) The selection of the initial value
The initial value can be regarded as 0 or 1.
29
Installation and Connection Manual of GSK218MC CNC System
Format
CNO
CTR COUNTER (W )
UPDOW N
Volume I Programming
RST
ACT
C o u n te r
VolumI Programming
num ber
Fig. 5-14-1
Controllable condition
Specify initial value (CN0)
CN0=0, counter begins with 0.
CN0=1, counter begins with 1.
Specify rising or descending counter (UPDOWN):
UPDONW=1, subtraction counter
UPDOWN=0, addition counter
Reset (RST):
RST=0, release the reset
RST=1, reset: W resets to 0, and the counter value reset to initial value. The RST is set
to 1, as long as the reset is required.
ACT=1: Count performs when ACT is at the rising edge.
ACT=0: Counter does not operate, W will not change.
Parameter
COUNTER: Specify the number of the counter, which is indicated by xxx (it expresses by the
numbers from 0 to 127).
Output
W: Coil output, W=1, when it reaches to the presetting value.
Note 1: The system may automatically check its range of the sequence number of the timer, it may alarm if the
sequence is repeated or exceeded its range.
Note 2: The current value of the timer may automatically reset, after the ladder diagram is converted and downloaded.
Reset the counter by the pulse signal before counting for ensuring the reliable of the counter.
Function
DEC can be decoded for the binary system code data, one of the consecutive data of the specified
8-bit (1 type) or 16-bit (2 types) is same as the code data. The corresponding output data bit is 1; the
output data is 0 without any same number.This code is used for the data decode of M or T function.
Format
ACT S2 S3
Length S1 code decode decode
DEC Format data
specifying result
specifying address
number address
Fig. 5-15-1
30
Chapter Five PLC Function Code
Controllable condition
ACT=0: Reset all of the output bits.
ACT=1: Perform the data decode; the treatment result is set at the output data address.
Parameter
Volume I Programming
Length: Set the dimension of the code data at the 1st bit data of the parameter.
0001: The code data is binary system code data of one byte.
0002: The code data is binary system code data of two bytes.
S1: Code data address. Supply an address of the storage code data.
S2: Decoding specifying number. Specify the 1st bit with the consecutive number of the 8-bit to
be decoded (1 byte) or 16-bit (two bytes).
S3: Decode result address. Specify an address output the decoding result. The register area
must be output with one byte or two bytes areas.
For example:
ACT
DEC 1 F10 8 R4
Fig. 5-15-2
When ACT=1, F10=8, R4=0000,0001;
When ACT=1, F10=9, R4=0000,0010;
………………………….
When ACT=1,F10=15, R4=1000,0000;
Function:
COD code may automatically produce a corresponding table under its function block when it inputs
the data capacity, which is used for inputting the conversion table data for the user. 10 grids of each
row in this table, it calculates based upon the quotient +1 if it can not be exactly divided, but the
capacity data does not change, and then the address of the table number may not display.
Format
RST
specifying
format
Length1
table
conversion
capacity of the
Length2 data
address
input data
S1 conversion
address
output data
S2 conversion
COD (W)
ACT
Fig. 5-16-1
Table 5-16-2
S1 0 1 2 ……… 9
S2 XXX YYY AAA ……… ………
S1 10 11 12 ……… N-1
S2 ……… ……… ……… ……… UUU
31
Installation and Connection Manual of GSK218MC CNC System
Controllable condition
Reset (RST):
RST=0, Do not reset.
RST=1, W resets, the error may output.
Volume I Programming
is taken out from conversion table to output the “output address to the conversion data (S2)”.
Conversion table
Table Conversion
Conversion number data
input data 1 YYY Conversion
address 0 XXX data output
(S1) address (S2)
1 YYY
2 AAA
…… ……
N-1 UUU
Fig. 5-16-2
Parameter
Length1: Specify the byte number of the binary system data of the conversion data in the conversion
table.
1: Binary system of 1 byte.
2: Binary system of 2 bytes.
Length2: The capacity of the conversion table data. Each conversion table capacity can not more
than 100, it is 100 bytes when 1 type format is specified; it is 100 bits when 2 bytes format are
specified. The total capacity of the entire COD codes conversion table should be less than 512 bytes.
S1: The data in the conversion table can be taken out by the specifying table number, and the
address of the specifying table number is regarded as the input address of the conversion data. This
address should be supplied a register with one byte.
S2: The output address of the conversion data. Specify the byte numbers of the register in the form
specification beginning with the address.
Output
If the abnormal occurs during the COD code performs, W=1, it indicates that the error issues.
Note: The capacity of the conversion data table is up to 100 bytes (bits), this table is compiled between the parameter
conversion data output address and error output (W).
32
Chapter Five PLC Function Code
Function
COM specifies the control until the coil working within the public end code COME range. The system
Volume I Programming
may alarm if the public end code does not specified.
Format
AC T
CO M
(W)
The perform ance
range of the C O M
(W) com m and
CO M E
Fig. 5-17-1
Controllable condition
When ACT=0, the coil within the specified range is cut off without any condition (W=0).
When ACT=1, it is same as the COM code that does not perform any operation.
Note 1: Do not specify another COM code within the range of one COM code.
Note 2: When the ACT = 0 of the COM, the coil within the specified range WRT NOT is set to 1 at any time (WRT NOT
= 1).
Note 3: The function codes, such as JMPB, END1, END2, CALL, CALLU, LBL, SP, SPE, COM and COME, can not be
used between COM and COME, otherwise the system may alarm.
Function
This code is specified the controllable range of the concentric control line code (COM), which can not
be used separately; it must be used with COM together.
Format
COME
Fig. 5-18-1
Function
It is used for the revolving control, such as the tool post and rotation workpiece. The code is with
some functions, refer to the following:
1. Select the revolving direction with the short path.
2. Count the steps from the current position to the objective one; or count the steps from the previous
position of the current one to the previous position of the objective one.
3. Count the position number at the objective previous position or the steps at the objective previous
position.
33
Installation and Connection Manual of GSK218MC CNC System
Format
CNO
ROT (W)
Objective position
Calculation result
position address
Current position
output address
Rotary table
DIR
address
address
Volume I Programming
S2
S1
S4
S3
POS
INC
VolumI Programming
ACT
Fig. 5-19-1
Controllable condition
Specify the initial number of the rotary table (CN0):
CNO=0, counter begins with 0.
CNO=1, counter begins with 1.
Check whether the short path can be selected the rotation direction (DIR)
DIR=0, do not select, the selection direction is only positive.
DIR=1, select, the selection direction can be divided into positive or negative.
Specify the operation condition (POS):
POS=0, counting objective position
POS=1 the previous position of the counting object
Specify the position numbers and steps (INC):
INC=0, counting position number. Specify INC=0 and POS=1 if the previous position of the
objective one is to be calculated.
INC=1 counting steps. Perform the code (ACT) when the code INC=1 and POS=0, if the distance
between the current position and the objective one is to be calculated.
Performance code (ACT):
ACT= 0, do not perform the ROT code. W is without change.
ACT=1, perform the ROT code. Generally, set the ACT=0, if the operation is to be required, set
the ACT=1.
Parameter
S1: Supply the rotary position number.
S2: Supply the address storing the current position.
S3: Specify the address (or code value) storing the objective position. For example, store the address
of the T code outputting from the CNC.
S4: The calculation outputs to address, compute the steps to be rotated of the rotary, which reaches
to the objective position or the previous position. Always check whether the ACT is 1 when using the
calculation result.
Output
W: Rotation direction output. It outputs to the W by the short-circuit rotation direction, its direction is
positive (FOR) when W=0; it is the negative direction (REV) when W=1. The definitions of the FOR
and REV are shown below, the increase direction of the position number of the revolving table is
positive (FOR); it is the negative direction in the decrease state. The address of W can be selected
freely, however, if the W results should be used, always check the condition of the ACT=1.
34
Chapter Five PLC Function Code
Volume I Programming
3 11
Position D
- +
4 10
Position A
5 9
Position C
6 8
7 Position B
Fig. 5-19-2
CNO
ROT W
DIR
POS
INC
ACT
Fig. 5-19-3
The short path rotation is performed, and the numbers of the previous position of the objective one is
then calculated.
Current position number S2=1, revolving index position number S1=12, CNO=1, DIR=1, POS=1 and
INC=0
Wherein:
S3=10, S4=11, W=1, when the objective position is A in the ACT = 1.
S3=8, S4=9, W=1, when the objective position is B in the ACT = 1.
S3=5, S4=4 and W=0, when the objective position is C in ACT = 1.
S3=3, S4=2 and W=0 when the objective position is D in the ACT = 1.
Function:
This code can be shifted 1 byte (8-bit) based upon the digits specifying by the code parameter each
time. The “1” overflown from cycle shifting will be added from the negative direction, for example, the
top bit “1” is overflown when shifting to left, the lowest bit supplies “1”, vise versa.
Format:
Fig. 5-20-1
35
Installation and Connection Manual of GSK218MC CNC System
Controllable condition
Specify the shifting direction (DIR)
DIR=0, left shift
DIR=1, right shift
Volume I Programming
Parameter
S1: Set the shifting data address, it composes of one storage area by 1 byte.
Length: it is a 4-digit, which is shown in the following figure:
A 0 0 L
L Moving digit
each time
A Moving state
Fig. 5-20-2
L: its range is 0~8
A: it is treated as bit-parameter, it is always shifted when ACT =1 during A =0, and it moves once each
period.
ACT is regarded as the pulse signal when A = 1, and when the value turns into 1 from 0, it moves
once.
Output
W: “1” state does not move out when the W = 0 shifting operation is performed.
“1” state moves out when the W = 1 shifting operation is performed.
Function:
This code is set the output signal to 1 during the scan period of the input signal rising edge.
Format
ACT
L Rising edge
DIFU (W)
num ber
Fig. 5-21-1
36
Chapter Five PLC Function Code
Controllable condition
Input signal: The output signal is set to 1 at the rising edge (01) of the input signal.
Output signal: The output signal keeps to 1 during one scan period of the ladder diagram when the
function code is performed.
Volume I Programming
Parameter:
L: The range of the rising number is 0~255. The system alarm may occur when another DIFU code or
DIFD code is used the same number in the ladder diagram.
Operation
1 2 3 4
P e rfo rm a n c e
p e rio d
ACT
OUT
Fig. 5-21-2
The system may automatically check the range of the series number of the rising edge, as for the
repeated series number or the exceeding range, the system alarm may occur.
Function:
This code outputs 1 signal of one scan period when inputting the signal descending edge.
Format
ACT
L Descending
DIFD (W)
edge number
Fig. 5-22-1
Controllable condition:
Input signal: The output signal is set to 1 at the descending edge (10) of the input signal.
Output signal: The state in the output signal keeps one scan period of the ladder diagram when this
function code is performed.
Parameter:
L: The range of the descending edge number is 0~255. The system alarm may occur when another
DIFU code or DIFD code is used the same number in the ladder diagram.
Operation:
1 2 3 4
Performance
period
ACT
OUT
Fig. 5-22-2
The system may automatically check the range of the series number of the descending edge, as for
the repeated series number or the exceeding range, the system alarm may occur.
37
Installation and Connection Manual of GSK218MC CNC System
Function:
Volume I Programming
Compare the dimensions of two binary number data. Specify the enough bytes to store the input data
and comparison data in the memory block.
Format:
ACT
VolumI Programming
Length S1 input S2
COMP format data comparison (W)
specifying address data address
Fig. 5-23-1
Controlled condition
ACT=0, Do not perform the COMP code. W value is invariable
ACT=1, Perform the COMP code
Parameter
Length: Input the specified format (constant or address) and the specified data length (1 byte or 2
bytes) of the data.
0 0
Fig. 5-23-2
S1, S2: The contents both the comparison 1 and comparison 2 can be regarded as constant and
address number.
Address number: R, X, Y, F, G, K, A, D and C
Output:
W =0: Inputting data > comparison data
W = 1: Inputting data ≤ comparison data
Function:
This code can be detected whether the input value and comparison value are consistent.
Format:
ACT
Length S2
S1 (W)
COIN format Comparison
Input value value address
specifying
Fig. 5-24-1
Controllable condition:
ACT=0, Do not perform the COIN code. W value is invariable.
ACT=1, Perform the COIN code.
Parameter
Length: Input the specified format (constant or address) and the specified data length (1 byte or 2
38
Chapter Five PLC Function Code
0 0
Volume I Programming
F o rm a t D a ta le n g th
s p e cify in g sp e cifyin g
0 : C o n s ta n t 1 : 1 b y te le n g th
1 : A d d re s s
2 : 2 b y te s le n g th
Fig. 5-24-2
S1: The input data can be specified both the constant and storage address.
S2: Compare the storage address of the data.
Output:
W: W = 0: input value ≠ comparison value
W = 1: input value = comparison value
Function:
The data of the source address or the specified binary data is transferred to the destination address.
Format of the figure:
ACT Length S1 S2
transfer the transfer the (W)
MOVN new byte resource destination
number address address
Fig. 5-25-1
Controllable condition
ACT=0, No data.
ACT=1, the byte specified by the quantity is transferred.
Parameter:
Length: the byte numbers or data number to be transferred.
S1: Resource start address or constant.
Select the transfer form based upon the S1:
1. If the S2 is single byte address, S1 is the constant, the resolution of the S1 based upon the byte is
copied to the address where it is corresponding Length type at the beginning with S2; the S1
should be evaluated based upon the bit, if S2 is the bit address; the bit address corresponding
Length begins with the S2 address.
2. The address type both S1 and S2 will not be considered whether it is matched, which is transferred
the data by the byte address.
39
Installation and Connection Manual of GSK218MC CNC System
For example:
ACT
MOVN 2 S1 S2 (W)
Volume I Programming
Fig. 5-25-2
1. When S1 is regarded as constant 5, and the S2 is treated as R60, then R60=00000101,
R61=00000101.
2. When S1 is regarded as constant 5, and the S2 is treated as D60, then D60=5, D61=5
VolumI Programming
Function:
The MOVB code transfers the 1 byte data to a specified destination address from a specified
resource address.
Figure format:
ACT S1 S2
transfer the transfer the
M OVB resource destination (W)
address address
Fig. 5-26-1
Controllable condition:
ACT=0, No data transfers
ACT=1, 1 byte is transferred.
Parameter
S1: Resource address or constant
If the S2 is single byte address, the S1 should be copied to the S2 address based upon the byte value;
if S2 is bit address, the S1 should be copied to the S2 lower byte address based upon the byte value.
Function
MOVW code transfers the 2 bytes data to a specified destination address from a specified resource
address.
Figure format
ACT S1 S2
transfer transfer
MOVW resource destination (W)
address address
Fig. 5-27-1
40
Chapter Five PLC Function Code
Controllable condition
ACT=0, No data transfers.
ACT=1, 1 byte is transferred.
Parameter
Volume I Programming
S1: Resource address or constant
S2: Destination address
Function
This function code is used to read or write the data from the data table. The data number
(tablecapacity) in this table can be specified by address; the data table can be operated by PLC
based upon the user’s setting during operating.
Format:
RW
format specifying
Length
storage address
data table capacity
S1
table head
the address of data
S2
address
input/output data
S3
RST
ACT
Fig. 5-28-1
Controllable condition
Specify the operation (read or write) (RW)
RW=0: Read the data from the data table.
RW=1: Write the data to the data table.
Reset (RST)
RST=0: Release the reset
RST=1: Reset W=0.
Perform the code (ACT)
ACT=0: Do not perform the XMOV code, W keeps invariable.
ACT=1: Perform XMOV code.
Parameter
Length: The format specifies the length of the transmission data.
1: 1 byte length.
2: 2 bytes length.
S1: The data capacity storage address of the data table is used to store the data capacity of the data
table; the occupied byte number should be suitable for the specified length of the Length. The valid
range of the data is determined by the specified byte length of the Length 1 format.
1 byte length: from 1 to 512.
2 byte length: from 1 to 256, that is, 256×2=512 bytes, which is the capacity of the PLC data table.
S2: Set the address of the data table head. The storage area of the data table = byte length × data
number of its table. The address of the table head should be the value in which is set inside the data
table.
S3: Input/output address. Set and place the address from the reading when the data is read. Set and
place the address from writing when the data is write. Its byte numbers should be suitable from the
41
Installation and Connection Manual of GSK218MC CNC System
S4: Storage address of the table number. It is used to store the table number to be read or write. It
occupied bytes should be suitable for the specifying in the Length. If the setting of the table number is
more than the data registered in the S1, it outputs W=1 in a wrong way.
Volume I Programming
Actual transmission address = head address + table number, the table number is 0 (S1-1); The actual
transmission address can not be exceeded the data list.
Output:
VolumI Programming
When the value in the table number exceeds the S1, W=1, the read or write of the data table does not
perform.
W=0, without error
W=1, with error
Function:
This function code can be use for indexing the binary data in the data table. The data number (table
capacity) in the data table can be specified by address. In this case, the table capacity still can be
changed even if the program is written into ROM.
Format
REP
format specifying
Length
address
index result output
S4
DSCH (W)
RST
ACT
Fig. 5-29-1
Controllable condition
Detection repetition (REP)
REP=0: Perform DSCH code, start to search it from the first address of the data table, it will not
consider the destination data may generate repeatedly; it may stop the search outputting its address
when detecting the destination data at the first time. W=1, if the indexed data does not find.
REP=1: Perform DSCH code. If the indexed data does not find or it has two or above data, W=1.
Reset (RST)
RST=0, Release the reset.
RST=0: Reset W=0.
Performance code (ACT)
ACT=0: Do not perform DSCH code, W keeps invariable.
ACT=1: Perform DSCH code. Output its table number if the indexed data is found; if it is
not found or it has two more above data, W=1.
42
Chapter Five PLC Function Code
Parameter
Length: Format specifies the length of the index data.
1: 1 byte length
2: 2 bytes length
Volume I Programming
S1: Data number storage address of the data table. The byte length specified by this address is
distributed the storage area for the requirement of the byte. The data number of the data table is
n+1 (table head is 0, the end of the table is n).
S2: Set the data table head address.
S3: Set the input address of the index address.
S4: The address output of the index result. Actual address = head address + table number, table
number is 0~(S1-1), the actual address can not exceed the data table. After indexing: output
its number from the list if the index data is found. The table number is outputted to the index result
output address of which the required storage byte number should be suitable for the specified format.
Output
W=0, Find the indexed data.
W=1, Do not find the indexed data.
Function:
This function code is used for the add operation of the 1 byte or 2 bytes binary data. The addend data
and the add operation output the data should be set the storage address with the corresponding byte
length.
Format
RST
address
addend
S1
specifying
format
Length1
address
result output
calculation
S3
constant)
(address or
addition
S2
ADD (W)
ACT
Fig. 5-30-1
Controllable condition
Reset (RST):
RST=0: Release the reset.
RST=1: Reset W=0.
Performance code (ACT)
ACT=0: Do not perform ADD code, W keeps invariable.
ACT=1: Perform ADD code.
Parameter:
Length: Specify the data length (1 byte or 2 bytes) and the specifying method of the addend (constant
or address).
0 0
Fig. 5-30-2
43
Installation and Connection Manual of GSK218MC CNC System
Function
This function code is used for the subtraction of the 1 byte or 2 bytes binary data. The minuend data
and the subtraction output data should be set the storage address with the corresponding byte length.
Format
RST
address
result output
Operation
S3
specifying
format
Length1
constant)
(address or
Subtrahend
S2
address
minuend
S1
SUB (W )
ACT
Fig. 5-31-1
Controllable condition
Reset (RST):
RST=0: Release the resetting.
RST=1: Reset W=0.
Performance code (ACT):
ACT=0: Do not perform the SUB code, W keeps invariable.
ACT=1: Perform the SUB code.
Parameter:
Length: Data length specified (1 or 2 bytes) and the addend specifying method (constant or address).
0 0
Fig. 5-31-2
S1: Specify and store the minuend address.
S2: The specifying method of the subtractor is determined by Length.
S3: Specify and output the address of the operation result.
Output
W=0: Normal operation.
W=1: Abnormal operation.
The subtraction result exceeds the specified data length, W=1
44
Chapter Five PLC Function Code
Function
Volume I Programming
This code is performed the AND with a constant (or the content from the address B) from the content
of the address A, and its result is stored to address C.
Format
ACT
Length S1 S2 S3
ANDF Format Constant or
specifying Address A address B Address C
Fig. 5-32-1
Controllable condition
ACT=0: Do not perform ANDF code.
ACT=1: Perform the ANDF code.
Parameter
Length: Specify the data length (1 byte or 2 bytes), input the data format (constant or address).
0 0
Fig. 5-32-2
S1: Specify the input data that will to be performed by AND. The address is then begins and the data
length is consistent with the Length.
S2: The input data is performed with the one of the AND. When the format specifying is selected the
address, the address is then started, and the data length is consistent with the length.
S3: It is used for storing the address of ANDF operational result. The result from the ANDF is stored
from this address, and the data length is consistent with the one of the Length.
For example: When the address A and B have the following data, which are shown below:
Address A 1 1 1 0 0 0 1 1
Address B 0 1 0 1 0 1 0 1
45
Installation and Connection Manual of GSK218MC CNC System
Format
ACT
Length S1 S2 S3
ORF format Constant or
VolumI Programming
Fig. 5-33-1
Controllable condition
ACT=0: Do not perform the ORF code.
ACT=1: Perform the ORF code.
Parameter
0 0
Fig. 5-33-2
Length: Specify the data length (1 byte or 2 bytes), input the data format (constant or address).
S1: Specify the input data that will to be performed by NOT. The address is then begins and the data
length is consistent with the length.
S2: The input data is performed with the one of the OR. When the format specifying is selected the
address, the address is then started, and the data length is consistent with the.ength.
S3: It is used for storing the address of ORF operational result. The result from the ORF is stored
from this address, and the data length is consistent with the one of the length..
For example: When the address A and B have the following data, which are shown below:
Address A 1 1 1 0 0 0 1 1
Address B 0 1 0 1 0 1 0 1
46
Chapter Five PLC Function Code
Function: This code is reversed to each content in address A, and store the result to the address B.
Volume I Programming
Format:
ACT Length
S1 S2
NOT form at
Address A Address B
specifying
Fig. 5-34-1
Controllable condition
ACT=0, Do not perform the NOT code.
ACT=1, Perform the NOT code.
Parameter
Length: Specify the data length (1 byte or 2 bytes)
0 0 0
Data length
specifying
1: 1 byte length
2: 2 bytes length
Fig. 5-34-2
S1: The input data is reversed bit-by-bit. The address is started and the data length is consistent with
the length.
S2: It is used for outputting NOT operational result. The result of the NOT operation starts to store
from this address, and the length of the data is consistent with the one of the length.
For example:
When the address A and B have the following data, which are shown below:
Address A
1 1 1 0 0 0 1 1
The operation result of the NOT is shown below:
Address B 0 0 0 1 1 1 0 0
Function:
This code is performed the Exclusive OR with a constant (or the content from the address B) from the
content of the address A, and its result is stored to address C
Format
ACT
Length S2
S1 S3
EOR Format Constant or
Address A address B Address C
specifying
Fig. 5-35-1
47
Installation and Connection Manual of GSK218MC CNC System
Controllable condition
ACT=0: Do not perform the EOR code.
ACT=1: Perform the EOR code.
Parameter
Volume I Programming
Length: Specify the data length (1 byte or 2 bytes), input the data format (constant or address).
0 0
specifying specifying
0: Constant 1: 1 byte length
1: Address 2: 2 bytes length
Fig. 5-35-2
S1: Specify the input data that will to be performed by Exclusive OR. The address is then begins
and the data length is consistent with the length.
S2: The input data is performed with the one of the Exclusive OR. When the format specifying is
selected the address, the address is then started, and the data length is consistent with the length.
S3: It is used for storing the address of EOR operational result. The result from the EOR is stored
from this address, and the data length is consistent with the one of the length
For example: When the address A and B have the following data, which are shown below:
Address A 1 1 1 0 0 0 1 1
Address B 0 1 0 1 0 1 0 1
48
Chapter Six The Compilation Limit of the Ladder Diagram
Volume I Programming
1. The program should with the codes END1 and END2, which is regarded as the end symbol of
the 1st level and 2nd level program, and the END1 should be performed before END2.
2. The parallel output is only output instead of multi-level output.
3. The result output address in the overall basis code, output function code can not be set to the
following address:
1) Counter presetting address DC, timer presetting address DT.
2) The address systems from K0 to K5 are used, user can not define it.
3) The address systems among the GA63, R510 and R511 are used, user can not define
it.
4) X address and F address on the I/O input port.
4. The vertical hovering, the node point does not connect to the following node and the parallel
conducting line is performed the parallel connection to the node network, will generate the
node or network, which can not be performed. So, the system alarm occurs.
5. The start network does not connect directly between different vertical lines in the same row;
one of row does not consecutively connect to the vertical line. As for this case, the system can
not be treated, and therefore the system alarm occurs.
6. The upper embossment can not be accepted inside the network, that is, the parallel network
generates on several nodes on one certain row, and any row of it can not be connected to this
parallel network. The system alarm may issue.
This is regarded as syntax error, and the system alarm may occur, which is as follow:
(W )
(W )
(W )
(W )
(W )
(W )
(W )
Fig. 6.1
49
Installation and Connection Manual of GSK218MC CNC System
Volume I Programming
50
Chapter One Controllable Axis
Volume Ⅱ
Function
51
Installation and Connection Manual of GSK218MC CNC System
Volume Ⅱ
Function
52
Chapter One Controllable Axis
Brief The movement state of each axis can be output to the PLC.
Signal Axis movement signal
MV1~MV4 (F017#0~F017#3)
[Type] Output signal
[Function] These signals are indicated that one controllable axis is being moved.
MV1: X axis is being moved.
MV2: Y axis is being moved.
MV3: Z axis is being moved.
Volume Ⅱ
MV4: A axis is being moved.
[Output condition]
The signal turns into 1 in the following case:
z The corresponding axis has been moved.
The signal turns into 0 in the following case:
Function
z The corresponding axis has been stopped.
The signal of the axis movement direction
MVD1~MVD4(F019#0~F019#3)
[Type] Output signal
[Function] These signals are indicated as the movement direction of one controllable
axis.
MVD1: The movement direction of X axis
MVD2: The movement direction of Y axis
MVD3: The movement direction of Z axis
MVD4: The movement direction of A axis
[Output condition] “0” indicates the corresponding axis moves along with the negative
direction, “1” indicates the corresponding axis moves along with the positive
direction.
Note:
These signals are kept invariable during stopping, which indicates the axis movement direction
before stopping.
Signal address
#7 #6 #5 #4 #3 #2 #1 #0
53
Installation and Connection Manual of GSK218MC CNC System
#7 #6 #5 #4 #3 #2 #1 #0
F000 SA
Volume Ⅱ
Function
54
Chapter Two Ready for Operation
2.1 ESP
Brief: The machine immediately stops by pressing the ESP button on the operation panel of the
machine tool.
Red
ESP button
Volume Ⅱ
Fig. 2-1
The button is locked after pressing; the releasing methods are differing from the manufactures.
Usually, the button can be released by left-rotation.
Signal ESP Signal
ESP ( G001.0 )
Function
[Type] Input signal
[Function] The machine immediately stops after inputting the ESP signal.
[Function] The CNC is reset and in the ESP state when the ESP signal becomes 1.
Signal address
G001 ESP
Brief: The limit switch operates, and the tool decelerates and stops when the tool movement exceeds
the stroke end set by the machine tool limit switch, the overtravel alarm is then displayed.
Signal Overtravel signal
+L1~+L5(G012#0~G012#4)
-L1~-L5(G013#0~G013#4)
[Type] Input signal
[Function] It indicates the controllable axis has been reached to the stroke limit. Each direction of
each controllable axis has this signal. The + and – are expressed the direction of the signal name, the
digit is corresponding with the controllable axis.
L 1 : th e X th a x is o ve rtra v e l
2 : th e Y th a x is o v e rtra v e l
3 : th e Z th a x is o ve rtra v e l
4 : th e 4 th a x is o v e rtra v e l
5 : th e 5 th a x is o v e rtra v e l
+ o v e rtra v e l
- o ve rtra v e l
55
Installation and Connection Manual of GSK218MC CNC System
[Operation] When the signal is “0”, the operations of the controllable unit are shown below:
* All of the axes are decelerated in the automatical operation, even if only the overtravel
signal of one axis turns into 1, the alarm occurs and stops.
* The axis with movement signal 1 is decelerated and stopped in the manual operation,
the axis after stopping can be moved along with the negative direction.
* The movement direction of the axis is memorized once its overtravel signal turns into 1.
Before eliminating the alarm, this signal axis can not moved along with this direction, even if the
signal becomes 0.
Signal address
Brief: When the alarm occurs in the CNC, which displays on the screen, and its alarm signal is set to
1.
Signal Alarm signal
Function
AL(F001#0)
[Type] Output signal
[Function] The alarm signal indicates that the following alarms are displayed when the CNC is in the
alarm state:
a) P/S alarm
b) Overtravel alarm
c) Servo alarm
[Output condition] The alarm signal is 1 in the following conditions:
―― CNC is in the alarm state
The alarm signal is 0 in the following situation:
―― Clear the alarm by the CNC resetting
Signal address
#7 #6 #5 #4 #3 #2 #1 #0
F001 AL
56
Chapter Two Ready for Operation
Volume Ⅱ
#7 #6 #5 #4 #3 #2 #1 #0
F002 CUT
Function
57
Installation and Connection Manual of GSK218MC CNC System
Brief
JOG feed The feed axis and direction selection signal on the operation panel is set to 1 in the JOG
mode. The machine is consecutively moved along the selected axis in its direction.
Incremental feed The feed axis and direction selection signal on the operation panel is set to 1 in
the incremental feed mode. The machine moves one step along the selected axis in its direction; the
least distance of the machine movement is the least input increment, each step has the least input
increment with 10, 100 or 1000 folds.
Volume Ⅱ
JOG feed and incremental feed are absolutely same, other than the feed distance selection method.
In JOG feed, the machine can be consecutively feed when the feed axis (+J1, -J1, +J2, -J2, +
J3 and -J3) and direction selection signal are set to 1. In incremental feed, the machine is single
step feed. The JOG feedrate can be adjusted by its override disk.
Function
J
1: the X th axis feed
2: the Y th axis feed
3: the Z th axis feed
4: the A th axis feed
+ Feed
- Feed
[Operation] When the signal is set to 1, the controllable unit is shown below:
* The controllable unit can be moved the specified axis along the specified direction when the JOG
feed or incremental feed is enabled.
In JOG feed, the controllable unit consecutively moves the controllable axis when the signal is set to
1.
* In the incremental feed, the controllable unit makes that the specified axis feeds based upon the
specified step distance, and then it stops. The controllable unit may not stop feeding even if this
signal is set to 0 during the axis feed. Move the axis again, and the signal will be set to 0 then to 1.
Manual rapid feed selection signal
RT(G024#7)
[Type] Input signal
[Function] Select the rapid traverse rate of the JOG feed or increment feed.
58
Chapter Three Manual Operation
When the signal turns into 1, the operation of the controllable unit is shown below:
z The controllable unit performs the JOG feed or increment feed at the rapid traverse rate. The
rapid traverse override is enabled.
z The signal shifts to 0 from 1 or is reverse, and its feedrate decreases to 0 during the JOG feed
or increment feed. The feed axis and the direction selection signal can be kept to 1 during the
acceleration or deceleration.
Signal address
#7 #6 #5 #4 #3 #2 #1 #0
G024 RT
Volume Ⅱ
3.2 MPG (Manual Pulse Generator) / Single Step Feed
Brief In the MPG/single step feed mode, the machine tool can be slightly moved by rotating the
Function
MPG or single-stop operation. The machine tool movement axis can be selected by the MPG
feed axis signal or axis movement signal.
Signal Single-step feed amount signal selection
G026#0~G026#3)
[Type] Input signal
[Function] The move distance from the pulse is generated by pressing the axis movement
key once during this signal is selected the single-step feed.
Signal MPG feed amount signal selection
(G026#4~G026#6)
[Type] Input signal
[Function] The move distance from a pulse is generated by rotating each unit from the MPG.
59
Installation and Connection Manual of GSK218MC CNC System
Brief The machine tool moves along with the specified direction and returns to the reference
position by setting the parameter No. 7#3~#7 in the mode of the manual reference position return.
The selected axis from the panel buttons is only indicated the one of the specified zero return and it is
regardless of the axis move.
The following signals are related with the manual reference position return:
Table 4-1-1
Signal
End signal of reference position return
Function
ZP1~ZP4(F016#0~F016#3)
[Type] Output signal
[Function] This signal shows that the machine tool has been held in the reference position
of the controllable axis.These signals are one-to-one corresponding with the axes.
Table 4-1-2
60
Chapter Four Reference Position Return
Volume Ⅱ
These signals are one-to-one corresponding with the axes.
Table 4-2-1
Function
PREF*3 Allowance signal of reference position detection along with A axis
End signal of the 1st reference position return
ZP11---ZP14 (F041#0---#3)
Table 4-2-2
ZP*1 End signal of reference position return along with X axis
ZP*2 End signal of reference position return along with Y axis
ZP*3 End signal of reference position return along with Z axis
ZP*4 End signal of reference position return along with A axis
[Output condition] This signal is enabled when the detection allowance signal (G57, G58 and
G59) of the reference position is set to 1. The signal becomes 1 when the following states are
displayed.
z The manual reference position return has been completed, and its current position is
performed in the in-position area.
61
Installation and Connection Manual of GSK218MC CNC System
z The automatical reference position return (G30) has been completed, and its current
position is performed in the in-position area
z The detection of the reference position return has been completed, and its current position
is performed in the in-position area.
Table 4-3-1
AQ1 Detection signal of the 2nd reference position area along with Z axis
AQ2 Detection signal of the 3rd reference position area along with Z axis
AQ3 Detection signal of the 4th reference position area along with Z axis
[Output condition]
When the machine tool position is within the area of the stored stroke check 1 (Data parameter
P66~P75 is set the boundary), and without the area of the stored stroke check 2 (Data parameter
P76~P85 or program code can be set this boundary), the signal is then turned into 1; otherwise, it
turns into 0.
Signal address
#7 #6 #5 #4 #3 #2 #1 #0
62
Chapter Four Reference Position Return
Volume Ⅱ
Function
63
Installation and Connection Manual of GSK218MC CNC System
Brief Start the automatical operation (Cycle start): In the storage mode, the automatic operation
start signal ST is set to 1 during the DNC or MDI mode; the CNC enters into the automatic operation
start state, then operates.
Signal ST is ignored in the following conditions:
1. The ST signal is ignored other than the mode of the Auto, DNC and MDI
2. The ST signal is ignored when the feed dwell signal (SP) is set to 1.
3. The ST signal is ignored when the ESP signal (ESP) is set to 1.
4. The ST signal is ignored when the <RESET> key on the MDI is pressed.
5. The ST signal is ignored when the CNC is in the alarm state.
Volume Ⅱ
6. The ST signal is ignored when the automatic operation has been started.
7. The ST signal is ignored when the program restart signal is set to 1.
8. The ST signal is ignored when the CNC is being searched a sequence number.
In the automatic operation, the CNC enters into the feed hold state and stops in the following states:
Function
In the automatic operation, the CNC enters into the reset state and stops in the following states.
1. When the ESP signal is set to 1.
2. Press the <RESET> key on the MDI.
Automatic operation interruption: The feed hold signal SP is set to 1 during the automatic operation,
the CNC enters into the dwell state and stops. At the same time, the cycle start light STL is cleared to
0, and the feed hold indicator SPL is set to 1. The automatic operation will not restart even if the SP
signal is cleared to 0 again. If the restart automatic operation should be performed again, the SP
signal should be cleared to 0, and then the ST signal is set to 1, then clears to 0.
Signal Cycle start signal
ST(G023#6)
[Type] Input signal
[Type] Start the automatic operation
[Operation] ST is set to 1 in DNC or MDI mode during the automatic operation, the CNC then enters
into the cycle start state and starts to operate,
Feed hold signal
SP(G023#7)
[Type] Input signal
[Function] Automatic operation interruption
[Operation] SP signal is set to 1, and CNC enters into the feed hold state and stops during the
automatic operation. When the SP signal is set to 0, the automatic operation can not be started.
64
Chapter Five Automatical Operation
Volume Ⅱ
[Output condition] This signal can be set to 1 or 0, which is determined by CNC state, refer to the
Fig. 5.1.
Table 5-1
Cycle start LED Feed hold LED Auto operation LED
STL SPL OP
Function
Cycle start state 1 0 1
Feed hold state 0 1 1
Auto operation stop state 0 0 0
Reset state 0 0 0
Signal address
#7 #6 #5 #4 #3 #2 #1 #0
G023 SP ST
5.2 Reset
Brief: The CNC is reset and entered into the reset state in the following conditions:
1. The ESP signal is set to 1.
2. Press the <RESET> key on MDI
The reset signal RST outputs to PLC when CNC is reset. After the abovementioned conditions are
released, the reset signal RST is set to 0 when it outputs the time set by parameter No.203.
RST=Treset (Reset treatment time) + the setting value of the parameter No.203
Reset
treatm ent
Reset The setting value of the
signal T reset parameter No.203
Fig. 5-2
In the automatic operation, the automatic operation stops when CNC is reset, and the operation axis
65
Installation and Connection Manual of GSK218MC CNC System
The CNC is reset during performing the M, S, T function, the MF, SF and TF signals are set to 0 within
16ms.
RST(F001#1)
[Type] Output signal
[Function] PLC and CNC is already reset, this signal is used for treating the PLC reset.
[Output condition] This signal is set to 1 based upon the following conditions:
1. ESP signal is set to 1.
2. Press the <RESET> key on MDI.
This signal is set to 0 in the following case:
After the abovementioned conditions are released, and then the CNC is reset. The reset signal output
time set by parameter No.203 has been ended.
Signal address
Volume Ⅱ
#7 #6 #5 #4 #3 #2 #1 #0
F001 RST
Brief: The automatic operation detection should be firstly performed before machining, which is
tested whether the generated program is correct. When the machine does not operate, the detection
is performed by the change viewing the position display or the actual operation machine tool.
Signal address
#7 #6 #5 #4 #3 #2 #1 #0
F004 MMLK
66
Chapter Five Automatical Operation
This function is used for checking the move of the machine tool when the machine tool does not
install the workpiece.
Volume Ⅱ
Note:
The dry run signal becomes 1 from 0 during the machine operation, and the machine tool operation
speed is the one of the dry run, which is accelerated or decelerated by programming specified speed;
when the dry run signal becomes 0 from 1, the machine tool operation speed is accelerated or
decelerated to the programming specified speed by the dry run speed.
Signal address
Function
#7 #6 #5 #4 #3 #2 #1 #0
G021 DRN
67
Installation and Connection Manual of GSK218MC CNC System
Note:
1. The operation in the thread cutting
The SBK signal becomes 1 during the thread cutting, the operation is stopped after the thread cutting
code is performed before the 1st non-thread cutting block.
G021 SBK
Volume Ⅱ
F004 MSBK
Brief: In the Auto operation, when a slash is specified at the beginning of the block, and when the
skip optional block signal BDT is set to 1, this block is then ignored.
Signal: The signal of skip optional block
BDT(G021#0)
[Type] Input signal
[Function] Select whether the block with “/” is ignored.
[Motion] In the Auto operation, the block with “/” is ignored when BDT is set to 1; the program is
performed normally when BDT is set to 0.
Signal address
#7 #6 #5 #4 #3 #2 #1 #0
G021 BDT
F004 MBDT
68
Chapter Five Automatical Operation
Brief: The program can be restarted the block from the specified sequence number, after the tool is
damaged or had a rest then stopped. This function also can be used for the rapid program detection
function.
Signal: The signal of program restart
SRN<G021#6>
[Type] Input signal
[Function] Selection program restarts
[Operation] When the program restart signal is set to “1” for searching the sequence number of the
restart block; the CRT screen shifts to the program restart screen. When the program restart signal is
set to “0”, and the automatic operation is enabled, the machine tool moves to the machining restart
point with the dry run speed in turn based upon the setting of the axis sequence. The machining
restarts after the machine tool moves to the restart point.
Volume Ⅱ
The signal in the program restart
SRNMV<F002#4>
[Type] Output signal
[Function] It means that the program is being started.
[Output condition] This signal becomes 1:
Function
— When the G21 #6 is set to 1 in the Auto state, the program restart signal is
set to 1.
When this signal becomes 0:
— Program restart sequence end (all of the controllable axis from the machine
are moved to the restart point)
Signal address
#7 #6 #5 #4 #3 #2 #1 #0
G021 SNR
F002 SRNM
V
69
Installation and Connection Manual of GSK218MC CNC System
Fig. 6-1
Feedrate: The actual move speed is gained from which the setting value of the parameter P088~092
multiples the override value, regardless in the Auto or manual operation (it consists of the manual
reference position return and program zero return).
Function
70
Chapter Six Feedrate Control
Volume Ⅱ
selected by this signal, which gains the actual feedrate.
GSK 218MC-H and GSK 218MC-V CNC system:
Code detection signal of the feedrate override (G011#3~G011#7)
[Type] Input signal
Function
[Function] The cutting feedrate rate signal has five binary system code signals corresponding with
its override:
So, the override can be selected based upon the unit of the 10% within the range of the 0~200%.
Note: The feedrate both 218MC-H and 218MC-V are controlled by the feed brand switch.
G024 OVC
71
Installation and Connection Manual of GSK218MC CNC System
Brief: M code miscellaneous function When the registered M code is operated, the register signal
(F026.0~F033.7) and the strobe signal are sent to the PLC, PLC is started or cut off its relative
functions by these signals.
Basis processing
These signals are used for the following functions:
Table 7-1-1
Program Output signal Response
Function End signal
address Register signal Strobe signal signal
Volume Ⅱ
(1) It is supposed that the MXX is specified in the program (Suppose the register signal is FYYY.Y)
As for the MXX, if the user does not register it, the alarm may occur. User specify a unique F signal
Function
registering this M code to the system, that is, the code signal from F26 to F33.
(2) If the non M, S and T codes, such as the movement and dwell, are specified with the
miscellaneous function at the same time, the miscellaneous function is then simultaneously
performed. Multiple codes of the miscellaneous function are specified in a block, its codes may
perform in sequence.
(3) When the MXX is performed, the register signal FYY.Y and the strobe signal F007#0 are set to 1,
simultaneously, ensuring the PLC sets the response signal RESP(G063#0) to 0.
(4) PLC is set the end signal MFIN (G000#1) and FIN (G000#0) to 1 when the operation is
performed. If these functions, namely, the M, S and T code miscellaneous functions are performed
simultaneously, the end signal FIN(G000#0) can be set to 1 till all of these functions are executed.
(5) When the MXX is completed, ensuring the PLC is set the response signal MRESP (G63#0) to 1.
(6) M, S and T codes may be performed simultaneously in a block. The CNC can be performed next
block after affirming the end signal FIN is set to 1.
Brief: When the S code is performed, the I/O point or analog value control can be set by the bit 2 of
the bit parameter No: 1
Table 7-2-1
Output signal
Program Response
Function F address Strobe End signal
address signal
signal signal
S code S* TF SRESP FIN(G00#0)
miscellaneous S*
(F22) (F007#2) (G63#1) SFIN(G00#4)
function
72
Chapter Seven M.S.T Function
Volume Ⅱ
next block after affirming the end signal FIN is set to 1.
Table 7-2-1
Function
Output signal The signal
Program Response
Function Strobe completion of End signal
address F address signal signal
signal the shift
S code S** TF GRAR SRESP FIN(G000#0)
miscellaneous S****
(F034#0~#2) (F007#2) (G002#4) (G063#1) SFIN(G000#4)
function
73
Installation and Connection Manual of GSK218MC CNC System
Brief: T code miscellaneous function: T code should be used with the M code together, for example:
T06M06;
When the T code is performed, the data address (D241) and the strobe signal are sent to PLC, and
PLC starts or cut off its relative functions using these signals.
Basis process
These signals are used for the following functions
Table 7-3-1
Program Output signal Response
Function End signal
address Strobe signal
Data address
signal
Volume Ⅱ
(1) It is supposed that the TXX (XX is sent to the data address D241) is specified in the
program:
(2) If the non M, S and T codes, such as the movement and dwell, are specified with the
Function
miscellaneous function at the same time, the miscellaneous function is then simultaneously
performed. Multiple codes of the miscellaneous function are specified in a block, its code
will be performed in sequence.
(3) The strobe signal F007#3 is set to 1 when performing TXX.
(4) The end signal TFIN (G000#5) and FIN (G000#0) are set to 1 by PLC when the operation is
completed. If these functions, namely, the M, S and T code miscellaneous functions are
performed simultaneously, the end signal FIN(G000#0) can be set to 1 till all of these
functions are executed.
(5) M, S and T codes may be performed simultaneously in a block. The CNC can be performed
next block after affirming the end signal FIN is set to 1.
Note 1: The following miscellaneous function can be treated in the CNC: they can not be outputted even if they are
specified in the program:
* M98,M99
* The M code for calling subprogram
* The M code for calling the user macro program
Note 2: The encoding signal also can be outputted other than the code signal and strobe signal in the following
miscellaneous function.
M00,M01,M02,M30
Note 3: The M codes from the M00 to M39 can be supplied based upon the binary encoding.
74
Chapter Seven M.S.T Function
Volume Ⅱ
M30 DM30
[Output condition] The M encoding signal is set to 1 when the following conditions are described.
z Specify the corresponding miscellaneous function, and any specified move command and dwell
code is completed at the same block. However, when the end signal of the miscellaneous
Function
function returns before the move code and dwell code, these signals are then not outputted.
The M encoding signal bit is 0 when the following conditions are performed:
z FIN signal bit is 1.
z When it is reset.
75
Installation and Connection Manual of GSK218MC CNC System
[Operation] When this signal is 1, refer to the explanations in Section 7.1, 7.2 and 7.3 for the
operation and treatment of the control unit.
Caution
All of these functions abovementioned are shared with one end signal FIN (G000#0); this signal
should be set to 1 after the overall functions are completed.
Signal address
#7 #6 #5 #4 #3 #2 #1 #0
F007 BF TF MF
Brief: It is forbidden to perform the specified M, S and T functions. This function is used for detecting
the program even if the code signal and strobe signal are not output.
76
Chapter Seven M.S.T Function
[Motion] When the signal is set to 1, the functions of the control unit are shown below:
1. As for the Auto, DNC and MDI operations, the control unit does not perform the specified
M, S and T functions, namely, the code and strobe signals are not output.
2. This signal is set to 1 after the code signal is output, normally, perform the output
operation till it ends. ( to the manual FIN signal, and the strobe signal is set to 1.)
3. The miscellaneous functions, for example, M00, M01, M02 and M03 can be performed,
even if this signal is set to 1. The overall code, strobe and encoding signals are output
based upon the normal method.
4. The miscellaneous functions M98 and M99 can be performed based upon the normal
method, even if this signal is set to 1, however, the performance result does not
output in the control unit.
Caution: The spindle analog output is still performed even if this signal is set to 1.
The detection signal of miscellaneous function
MAFL(F004#4)
Volume Ⅱ
[Type] Output signal
[Function] This signal indicates the state of the miscellaneous function lock signal.
[Output condition] The miscellaneous function lock signal AFL is 1 when this signal is set to 1.
The miscellaneous function lock signal AFL is 0 when this signal is set to 0.
Function
Signal address
#7 #6 #5 #4 #3 #2 #1 #0
G021 AFL
F004 MAFL
77
Installation and Connection Manual of GSK218MC CNC System
Brief: GSK218MC divides the spindle into gear spindle and analog spindle based upon the control
method.
1. In the gear spindle, the CNC controls the spindle speed by which the S code turns into
switch value and then outputs to the spindle.
2. In the analog spindle, the CNC controls the spindle speed by which the S code turns into
analog value and then outputs to the spindle.
The I/O point or analog value control can be set by bit 2 of bit parameter No.1.
Brief: The gear spindle means that the spindle S code is controlled by I/O.
Signal
Spindle speed strobe signal
TF(F007#2)
Function
Actual output analog voltage value = spindle controlled S value x spindle override.
78
Chapter Eight Spindle Speed Function
When the spindle speed control is performed instead of using the spindle speed override, the setting
override value is 100%.
Notice: The spindle speed override function in the tapping cycle and thread cutting is disabled.
Volume Ⅱ
CNC selects the gear shift based upon the defined speed range of each gear shift in advance, as it is
directly selected by S code. The PLC can be selected the corresponding gear shift using its selection
signal (GR3, GR2 and GR1). Simultaneously, the CNC outputs the spindle motor speed based upon
the selected gear shift. Specify the S0~S99999 and CNC output corresponding codes with the
spindle speed in the MDI operation. Two or three speed gear shifts (GR1, GR2 and GR3) can be set
Function
by parameter No.246~248, and then the gear shift selection signal can be output at the same time.
When the gear shift selection signal changes, the SF signal is simultaneously output.
Table 8-1-2-1
79
Installation and Connection Manual of GSK218MC CNC System
F007 TF
Brief: The rigid tapping is synchronized the tapping axis and spindle axis in the common tapping
canned cycle.
The CNC needs to detect the rotation direction signal of the spindle ensuring the direction and
processing of the cutting feed during the rigid tapping (during performing G74 and G84).
Performance processing:
Spindle rotates → Z axis feed tapping → sending the M05 stop code to spindle → after the spindle is
absolutely stopped → sending a reverse code → Z axis retracts to the start → spindle stops
The corresponding ladder diagram should be compiled for carrying out the rigid tapping; inform the
rotation direction of the CNC external spindle.
Signal: Rigid tapping signal
RGTAP(G003#1)
[Type] Output signal
[Function] That this signal informs PLC has been in the mode of the rigid tapping.
[Output condition] RGTAP 1: It is rigid tapping mode at present.
0: It does not tapping mode at present.
Signal address
#7 #6 #5 #4 #3 #2 #1 #0
G003 RGTAP
80
Chapter Nine Programming Code
Brief: It is very essential to perform the same operation repeatedly for the subprogram, but the
variable, arithmetic, calculation, logic operation and condition branch an be used for the user macro
program function, which is very easy to develop the current program. The machining program can be
called the user macro program by a simple code, as the calling of the subprogram.
Volume Ⅱ
M99 P50;
Fig. 9-1-1
It means that one function is programmed by the user macro, which becomes the general function.
Namely, the data variable (changeable and undefinition data) can be compiled the program. For
example, the user macro program can be used for the composed technology.
Function
Signal: User macro program input signal
UI000~UI015(G054,G055)
[Type] Input signal
[Function] Do not offer any function to the controllable unit. These signals are regarded as one of
the system variable, which is read by the macro program, and it is used for the interface signal
between macro program and PLC.
The corresponding system variables of these signals are shown below:
Table 9-1-1
Signal Address Variable
UI000 G54#0 #1000
UI001 G54#1 #1001
UI002 G54#2 #1002
UI003 G54#3 #1003
UI004 G54#4 #1004
UI005 G54#5 #1005
UI006 G54#6 #1006
UI007 G54#7 #1007
UI008 G55#0 #1008
UI009 G55#1 #1009
UI010 G55#2 #1010
UI011 G55#3 #1011
UI012 G55#4 #1012
UI013 G55#5 #1013
UI014 G55#6 #1014
UI015 G55#7 #1015
UI000~UI015 G54, G55 #1032
Note: #1032 is the variable of the 16-bit, which is composed as follows:
81
Installation and Connection Manual of GSK218MC CNC System
Signal address
#7 #6 #5 #4 #3 #2 #1 #0
#1032 UI007 UI006 UI005 UI004 UI003 UI002 UI001 UI000
#7 #6 #5 #4 #3 #2 #1 #0
82
Chapter Nine Programming Code
Volume Ⅱ
Operation 1
Initial point
Operation
2 Operation 6
R
Operation
Function
3 Operation 5
Spindle control: Output the spindle code of the reverse rotation in some canned cycle.
The following canned cycles are required the spindle control:
Reverse tapping cycle G74 Fine boring cycle G76
Tapping cycle G84 Boring cycle G86
Counter boring cycle G87 Boring cycle G88
Using the frequently-used miscellaneous functions for the spindle control:
Refer to the miscellaneous function explanations.
M03: Spindle positive
M04: Spindle negative
M05: Spindle stop
M19: Spindle orientation
Tapping signal: Output the tapping signal during the tapping cycle. The tapping signal also can be
output when tapping cycle G code is enabled.
Override: The cutting feed override is always set to 100% during tapping.
Feed hold: The move may not stop immediately during tapping when pressing the feed hold key. The
move stops when the tool returns to the R panel.
Dry run: Whether the dry run is enabled during the TDR (bit 5 of parameter No.12) defines tapping.
83
Installation and Connection Manual of GSK218MC CNC System
F001 TAP
Function
84
Chapter Ten Display/Setting
Brief: The Year, Month and Day are displayed on the setting screen.
The system variable of the user macro program can be read the time.
Read and write can be performed for the time information.
Brief: This function can be displayed the current error. Operator performs the history records to the
MDI key and signal when the alarm occurs.
Volume Ⅱ
10.3 Help Function
Brief: The CNC alarm and the details of the CNC operation can be displayed on the screen using the
help function.
Function
Detailed information of alarm: The help screen displays the generated alarm and that how to release
the alarm information. However, the information from the P/S alarm is displayed, which is easy to be
distorted or misunderstood.
85
Installation and Connection Manual of GSK218MC CNC System
Brief: Linear interpolation can be commanded by specifying axial move following the G31, like G01. If
an external signal is input during the execution of this command, execution of the command is
interrupted and the next block is executed.
The skip function is used when the end of measuring is not programmed but specified with a signal
from the machine, for example, in grinding. It is used also for measuring the dimensions of a
workpiece.
The coordinate values when the skip signal is turned on can be used in a custom macro because they
are stored in the custom macro system variable #5016~#5019, as follows:
Volume Ⅱ
SKIPP <G001#1>
[Type] Input signal
[Function] This signal completes the skip cutting. Namely, the position of skip signal turns into “1”,
which is stored in the user macro variable, simultaneously, the move code of the block is ended.
[Operation] The controllable equipments are shown in the following when the skip signal turns into
“1”:
z When the block consists of the skip machining code G31, the current position of the code axis
when the control equipment is read and stored the signal that it is set to 1. The control
equipment stops the move of the axis, and then, clear the remaindering move distance of this
block code axis.
z The state of the skip signal is monitored instead of its rising edge. In this case, if the skip
signal is still “1”, it is regarded as the skip condition is met immediately when next skip cutting is
commanded.
Note: The requirement of the skip signal width is at least 10ms.
Signal address
#7 #6 #5 #4 #3 #2 #1 #0
G001 SKIPP
86
Chapter Twelve Panel Lock Setting
LEDT(G016#6)
[Type] Input signal
[Function] This signal locks the edit function of the program.
[Operation] The program edit function is enabled when signal is set to 1.
The program edit function is disabled (The program can not be compiled) when the
signal is set to 0.
The operation panel lock signal
LSYS(G016#7)
[Type] Input signal
[Function] This signal locks the button on machine’s operation panel.
Volume Ⅱ
[Operation] The overall button on the machine’s operation panel is locked and disabled when the
signal is set to 1.
The machine operation button is enabled when the signal is set to 0.
Signal address
Function
#7 #6 #5 #4 #3 #2 #1 #0
87
Installation and Connection Manual of GSK218MC CNC System
MINC F003#0
selection
Detection signal of MPG feed selection MH F003#1
JOG feed detection signal MJ F003#2
Detection signal of manual data input MMDI F003#3
Affirmance signal of DNC operational
MRMT F003#4
selection
Detection signal of Auto operational
MMEM F003#5
selection
Detection signal of register Edit selection MEDT F003#6
Detection signal of mechanical zero
MZRO F003#7
return selection
Detection signal of skip optional block MBDT F004#0
Detection signal of overall axes machine
MMLK F004#1
lock
Detection signal of single block MSBK F004#3
Auxiliary function lock signal MAFL F004#4
Detection of manual reference position
MREF F004#5
return
Detection signal of feed override
CFORD F005#0
cancellation
Detection signal of spindle override
CSORD F005#1
cancellation
Strobe signal of M code miscellaneous
MF F007#0
function
Strobe signal of S code miscellaneous
SF F007#2
code
Strobe signal of T code miscellaneous
TF F007#3
code
External operation panel lock LOPT F008#0
Hard limit ignorance LALM F008#1
ESP signal ignorance EALM F008#2
Tool change in performing RCT F009#0
System type selection signal CNCS F010#0
88
Appendix
Volume Ⅱ
BCLP F020#1
signal
Limit overtravel alarm along –X axis AL-X F021#0
Limit overtravel alarm along + X axis AL+X F021#1
Limit overtravel alarm along – Y axis AL-Y F021#2
Limit overtravel alarm along + Y axis AL+Y F021#3
Function
Limit overtravel alarm along – Z axis AL-Z F021#4
Limit overtravel alarm along + Z axis AL+Z F021#5
Limit overtravel alarm along – 4th axis AL-4 F021#6
Limit overtravel alarm along + 4th axis AL+4 F021#7
Gear controllable signal of spindle I/O SCODE1---SCOD
F022
point E5
F026 --- F033 (The address
can be registered in M
M**
Register signal of M code M.S.T function register table, refer to the
Section 3.5 in the Chapter
Three Operation)
The signal of spindle analog value control
GR1,GR2,GR3 F034#0 --- #2
gear selection
End signal of axis returning to the 1st
ZP11—ZP14 F041#0 --- #3
reference position
End signal of axis returning to the 2nd
ZP21---ZP24 F042#0 --- #3
reference position
End signal of axis returning to the 3rd
ZP31---ZP34 F043#0 --- #3
reference position
End signal of axis returning to the 4th
ZP41---ZP44 F044#0 --- #3
reference position
The detection signal in the 2nd reference
AQ1 F045#0
position along Z axis
The detection signal in the 3rd reference
AQ2 F045#1
position along Z axis
The detection signal in the 4th reference
AQ3 F045#2
position along Z axis
UO000 --- UO015 F054,F055
User macro program output signal
U100 --- U131 F056 --- F059
The established reference position signal ZRF1 ---- ZRF5 F060#0 --- #4
The arrival signal of the required
ESEND F061#1
component
The performance signal of axis returning
ZRFJ1 ---- ZRFJ5 F061#2 --- #6
to the reference position
89
Installation and Connection Manual of GSK218MC CNC System
The following parameters are performed at the high speed and in the accuracy mode:
High speed card scan counter F300
Pulse accumulation along the 1st axis of
F301
high speed card
nd
Pulse accumulation along the 2 axis of
F302
high speed card
rd
Pulse accumulation along the 3 axis of
F303
the high speed card
th
Pulse accumulation along the 4 axis of
F304
the high speed card
th
Pulse accumulation along the 5 axis of
F305
the high speed card
Pulse accumulation spindle of high speed
F306
card
Error alarm F307
Error alarm F308
Buffer area dimension of interpolation
F309
point
Volume Ⅱ
90
Appendix
Volume Ⅱ
FV8, FV16
*+L1 --- *+L5 G012#0 ---- #4
Overtravel signal
*-L1 ---- *-L5 G013#0 ---- #4
Editing lock signal LEDT G016#6
Operation panel lock signal LSYS G016#7
Detection signal of zero return deceleration G017#0 ---- #4
Function
AXIS1, AXIS2,
Additional axis selection G018#0 ---- #4
AXIS4, AXIS8
Detection signal of spindle override encode SV1, SV2, SV4, SV8 G019#0 ---- #3
Edit mode G020#0
Auto mode G020#1
MDI mode G020#2
Zero return mode G020#3
Single step mode G020#4
Manual mode G020#5
MPG mode G020#6
DNC mode G020#7
Skip G021#0
Single block G021#1
Dry run G021#2
M.S.T lock G021#3
Machine lock G021#4
Selection stop G021#5
Program restart G021#6
Spindle positive G022#0
Spindle stop G022#1
Spindle negative G022#2
Spindle – override (218MC all-in-one machine) G022#3
Spindle override cancellation G022#4
Spindle + override (218MC all-in-on machine) G022#5
Spindle JOG G022#6
Tunnel selection signal G022#7
Lubrication G023#0
Cooling G023#1
Chip-removal G023#2
Cycle start G023#6
Feed hold G023#7
Feed + override (218MC all-in-one machine) G024#0
Feed override cancellation G024#1
91
Installation and Connection Manual of GSK218MC CNC System
92
Chapter One PLC Interface Display
Volume Ⅲ Operation
93
Installation and Connection Manual of GSK218MC CNC System
Volume Ⅲ Operation
94
Chapter One PLC Interface Display
PLC operates when the system is turned on: the 1st period may use the R510.0 to conduct a period of
its network cables, the value of the R510.0 is then reset to “0”; the user can not output this value. The
value of the nonvolatile relay is the one of the last output before PLC stops.
Note: The keys inside the < > in the following explanations are panel buttons; the keys inside the 【 】is the soft button
under the screen; 【 】is the interface corresponding with the current soft key; means that it includes
submenu; all of the PLC operations are performed in the MDI mode, other methods only can be viewed and
searched.
1. Enter the programmable page by pressing the <program-controlled> key; enter the INFO interface
pressing the [INFO] soft key, refer to the fig. 1-2-1-1. Also, it can be set under the PLC interface
defining the bit parameter No: 26#6=1, and then enter the INFO interface pressing the
<program-controlled> key again. This interface offers some relative information of this system, such
as the version number, modification data.
Volume Ⅲ Operation
Fig. 1-2-1-1
(1) The ladder diagram name of current operation is supplied in the interface. The ladder diagram
divides into three types: the only one ladder diagram in operating, the rest of 15 ladder
diagrams other than the operation of the ladder diagram 0—15 and the other ladder diagrams
for compiling and reference (any two numbers can be identified or named other than 0-15).
(2) The value of the system is set by bit parameter 53#0~#3 when the power is turned on
initialization, which is the composed parameter of binary system; the No. 0 ladder diagram is
used when this value is set to 0; when this value is set to 1~15, the No. 1~15 ladder diagrams
are then used. The ladder diagram file for loading some one number is called operation file
95
Installation and Connection Manual of GSK218MC CNC System
(this operation may cause hazard; it is enabled after restarting when the power is turned off).
This file may be deleted to rebuild if the format is incorrect. So, the user should carefully
specify the file name of the ladder diagram. The overall file names of the ladder diagram must
be “ladderXX.grp” (XX is serial number), otherwise, the files may not be identified by the
system. The file format is described by the system, the user can not modify it without the
system, otherwise, it may be deleted or can not be identified.
(3) M6 is separately called the macro program from O91000 to O91015 when the 0~15 ladder
diagrams are used.
(4) The selection of the ladder diagram. The file name can be specified by moving the cursor or
inputting the “LX”/“LXX” (X/XX is number). The system may detect whether the X”/“XX is the
known file name by pressing the “input” key. If it does not detect, the ladder diagram file should
be set up based upon the file name “ladder0X.grp” or “ladderXX.grp”. The system may
automatically generate two function blocks “END1” and “END2” when the new file is set up, so
that the user can consecutively operate this ladder diagram file (The command table remains
null if it is converted after opening the file). User can copy or cut the ladder diagram from the
normal file (it can not exceeds 100 rows, otherwise, only the previous 100 rows can be
performed) pasting to other file, then copy the function (without modification), and then set up
a new file. For safety’s sake, after the ladder diagram is compiled, the current file may
automatically stored when another file is opened; the ladder diagram syntactic may be
detected before storing of which it may give up if the incorrect syntax is found.
(5) The file head includes the basis information of the file such as the line number and step number,
Volume Ⅲ Operation
wherein, the step information occurs as long as it is converted, otherwise, it always keeps the
opening information. User can delete the unopened and unoperated ladder diagram file; this
operation is the irreversible operation, so user should be careful. The system may stop the
renewal of the ladder diagram network after the user open the unoperated ladder diagram, in
order to avoid the misguidance. The operating ladder diagram can only be stored and copied,
so that user can copy this information to others ladder diagram files. It is better to stop the
operation before compiling the current ladder diagram. When the cursor stops at the
background compiling file, user can open the Info information to modify the compiling file
background (including the ladder diagram version number, suitable machine and ladder
diagram maintainer) by the “modification” key.
96
Chapter One PLC Interface Display
Enter PLCGRA interface pressing the [ PLCGRA] soft key, it also can be set under the PLC
interface defining the bit parameter N0:26#6=1, and press the <programmable> key to shift the
screen entering the PLCGRA interface. Refer to the Fig. 1-2-2-1:
Fig. 1-2-2-1
The content and operation of the PLCGRA interface:
PLCGRA [ladder01]: Operate the current ladder diagram name.
001/1193: It means that the cursor specified place is at the ladder diagram.
Run: Ladder diagram operation state. The operation stage of the ladder diagram includes RUN,
Volume Ⅲ Operation
STOP and DEBUG.
Figure area: Ladder diagram program
Input: Display the input data. The input data can be enquired pressing the on the panel.
MEA: The note of cursor positioning node
MDI mode: Current working method (The ladder diagram can be modified only in the MDI mode).
The searching and positioning can be performed by the pageup, pagedown and other direction
keys, the components then can be viewed and modified.
97
Installation and Connection Manual of GSK218MC CNC System
Enter PLCGRA interface pressing the [ PLCGRA] soft key, it also can be set under the PLC
interface defining the bit parameter N0:26#6=1, and press the <programmable> key to shift the
screen entering the PLCGRA interface. Refer to the Fig. 1-2-3-1:
Fig. 1-2-3-1
The content and operation of the PLCPAR interface:
RUN: Operation state of the ladder diagram
ADDR: Nonvolatile/keep relay address
Bit0~Bit7: Bit number state of the nonvolatile relay address
Volume Ⅲ Operation
1: It means that this address remains the original state (before the power off);
0: It means that the address is rest to default state after the power is turned off.
Input: Display the input data.
MDI: Current working method. (Note: The relative parameters of the PLCPAR can be modified
as long as in the MID mode.)
The searching and positioning can be performed by the pageup, pagedown and other direction
keys, the corresponding address then can be viewed and modified.
98
Chapter One PLC Interface Display
Enter PLCGRA interface pressing the [ PLCGRA] soft key, it also can be set under the PLC
interface defining the bit parameter N0:26#6=1, and press the <programmable> key to shift the
screen entering the PLCGRA interface. Refer to the Fig. 1-2-4-1
Fig. 1-2-4-1
The content and operation of the PLCDGN interface:
RUN: Operation state of the ladder diagram
ADDR: Address of diagnosis number
Bit0~Bit7: The bit number state of the diagnosis address. 1: with signal breakover; 0:
Volume Ⅲ Operation
without the signal breakover.
Input: Display the input data.
MDI mode: Current working method
The searching and positioning can be performed by the pageup, pagedown and other direction keys,
the corresponding diagnosis number then can be viewed and modified.
Generally, only the searching operation can be performed in the interface, the I/O terminal of the PLC
enters signal debugging mode, only the user gain the limit setting that K0.1 is set to 1, in this case,
user can modify the X and Y signals.
99
Installation and Connection Manual of GSK218MC CNC System
PLCTRA interface compose of two “setting” and “trace”. Enter the PLCTRA “setting” interface by
pressing the [ PLCTRA] soft key under the screen. Refer to the figure 1-2-5-1:
Fig. 1-2-5-1
The content and operation of the PLCTRA “setting” interface
(1) Mode:
- - Periodic cycle: periodic sampling for each time.
- - Signal change: sampling for the change of current signal.
Volume Ⅲ Operation
(2) Resolution:
Input the sampling resolution, the default value is the least resolution (8ms), its range is (8ms
--1000ms).
The input value uses the multiple of the 8ms.
2. Mode; It determines that what kind trigger mode is used to stop tracing.
Rising edge: The tracing is automatically stopped by the rising edge of the trigger signal.
Falling edge: The tracing is automatically stopped by the falling edge of the trigger signal.
Any change: The tracing is automatically stopped by the rising or falling edge of the trigger
signal.
(6) Sampling condition: This parameter is enabled when the sampling mode is set to “signal
change”, which is determined the sampling condition.
- - Signal trigger: The specified mode changes when the signal specified by the trigger address
which is set by the sampling condition, collect the signal.
- - Any change: Any change occurs when the signal specified by the trigger address which is
set by the sampling condition.
Trigger setting: When the sampling mode is set to “signal change”, and then the sampling
condition is set to “signal trigger”, this parameter is enabled.
1. Address: The input signal address, instead of using the R address, is treated as the sampling
of the trigger signal.
2. Mode: The trigger mode inputs the specified trigger signal.
Rising edge: The rising edge sampling of the trigger signal specifies the signal state.
Falling edge: The falling edge sampling of the trigger signal specifies the signal state.
Any change: Specify the signal state by the rising or falling edge sampling of the trigger signal.
Switch on: Sample the specified signal state when the trigger signal is switched on.
Switch off: Sample the specified signal state when the trigger signal is switched off.
Enter the PLCTRACE “trace” interface by pressing the [trace] soft key. Refer to the 1-2-5-2:
Volume Ⅲ Operation
Fig. 1-2-5-2
The content and operation of the PLCTRACE “trace” interface
(1) Sampling mode: Display the current sampling mode of the system.
(2) Period: Display the current sampling period of the system, that is, resolution
(3) Time: This parameter displays when the “sampling mode” selects the “periodic cycle”.
- - Format display when tracing: the current timing is at the left side, and the max. allowance
timing is at the right side.
- - Format display when stopping: the most right side timing is placed at the right side; the
timing of trace stopping is placed at the middle side, and the max. allowance timing is
placed at the right side.
101
Installation and Connection Manual of GSK218MC CNC System
(4) Setting address: Move the cursor by the and , the signal address that will be
traced is inputted inside the , it can be traced 15 signals at the same time. Any address
can be inputted. As for the R address, the previous 3 positions can be inputted the address before
256; the 4th and 5gh position can be inputted 2 addresses after 255.
(5) (S) start: The signal trace can be performed pressing key after the trace parameter is set
correctly.
(T) Stop: Stop the signal trace after controlling the key.
Clear: Clear the value under the cursor pressing the key.
Volume Ⅲ Operation
102
Chapter Two PLC Programming Operation
2.1 Brief
The PLC operations of the GSK218MC serial are completed corresponding interface in the system.
The overall modification of the ladder diagram should be performed after the limitation higher than the
debugging is gained.
Volume Ⅲ Operation
Fig. 2-1-1
2. PLCPAR interface includes CRT, TMR, DATA, KPAR and MDEC.
Enter PLCRAR interface pressing the [PLCPAR] soft key, refer to Fig. 1-2-3-1. Enter the PLCPAR
classification operation interface by controlling [PLCRAR] again, refer to the Fig. 2-1-2. The
parameter modification, PLC operation state control and entering the I/O debugging mode should be
performed after the limitation above the debugging is gained. Refer to the Chapter Three for details.
Fig. 2-1-2
103
Installation and Connection Manual of GSK218MC CNC System
Enter the basis command operation interface pressing the [Basis command] soft key in the Fig. 2-1-1.
Refer to the Fig. 2-2-1.
Fig. 2-2-1
Display other basis codes pressing the【X】key. Refer to Fig. 2-2-2.
Volume Ⅲ Operation
Fig. 2-2-2
The basis codes are displayed as follows:
104
Chapter Two PLC Programming Operation
z Add component: positioning the cursor to the place where the component is needed to be
added, input the component name in according to the corresponding menu, the display is
then appeared after the data; the corresponding components can be added pressing the
key on the panel. If the component has been positioned at the current place, the
new one may replace the old one.
z Insertion component: Positioning the cursor to the place where is required to insert the
component; a vacancy is inserted in this place pressing the key, and then add the
new component pressing the steps of the add component. The cursor can be inserted in turn.
(Note: Ensuring the indicator above the is lighted on when inserting the node.)
z Component Deletion: Delete the current component pressing the key on the panel.
(Note: Ensuring the indicator above the is lighted on when deleting the current
Volume Ⅲ Operation
component.)
z Add the vertical breakover cable: Add a vertical breakover cable at the lower right corner of
the current cursor by pressing the [ ] soft key.
z Delete the vertical breakover cable: The vertical breakover at the lower right corner of the
current cursor can be deleted by pressing the [ ] soft key.
z Insert the horizontal breakover cable: a horizontal breakover cable can be inserted at the
current cursor place by pressing the [——] soft key; the horizontal breakover cable may
replace the component which has been performed at the current position.
z Row insertion: The cursor is positioned at any destination row, press the on the
panel till the indicator above the is lighted up, then press the key, and
therefore a new row is inserted above the specified row of the cursor. The followings rows
are moved down in turn.
z Row deletion: The cursor is positioned at the destination row, press the on the
panel till the indicator above the is lighted up, then press the key, the
105
Installation and Connection Manual of GSK218MC CNC System
current row is then deleted, the following rows are moved up in return.
z Block deletion: The cursor is positioned as the start position where to be deleted, then input
the address of the output coil of the desired deletion block, and then press the key
on the panel.
z Search: Directly input the component name what you want to reach, it will display at the data
affirm it by pressing the key, the component X001.4 appears on the current cursor
position.
2. Rightward one place of the cursor, press the [ ] soft key, a symbol of the normally closed
contact occurs at the cursor positioning, directly input component name X2.1, affirm it by pressing
Volume Ⅲ Operation
the key, and then the X002.1 appears at the current cursor position.
3. The cursor is positioned at the next start position, press the [ ] soft key, a symbol of the
normally opened contact occurs at the cursor positioning, direct input the component name
X2.4, affirm it by pressing the , the component then appears at the current cursor
position.
4. Rightward one place of the cursor, press the [——] soft key, draw a horizontal breakover line at
the current cursor position;
5. Upward one place of the cursor, press the [ ] soft key, draw a vertical breakover line at
the lower right corner of the cursor.
6. Press the [—( )] soft key, the output coil is automatically generated (the required horizontal
breakover line), and then the output coil is produced at the right side of the ladder diagram.
Directly input the component name G1.0, affirm it by pressing thef , the component
G001.0 occurs at the current cursor position.
106
Chapter Two PLC Programming Operation
X 0 0 1 .4 X 0 0 2 .1 G 0 0 1 .0
( )
X 0 0 2 .4
Explanation: The green component indicates connection state in the ladder diagram regardless
of the normally opened, normally closed or output coil, and the white one means disconnected
state. (The dark color is disconnection state, the light color is connected state based on the
publish)
Press the [Function command] soft key in the Fig. 2-1-1, then enter the function code operation
interface, refer to the Fig. 2-4-1.
Volume Ⅲ Operation
Fig. 2-4-1
There are 35 PLC function codes are listed in the function code. Refer to the Chapter Two
Programming for function code format and usage, the compilation of the function code is consistent
with the ladder diagram operation in the Section 2.3.
107
Installation and Connection Manual of GSK218MC CNC System
In the PLCGRA interface, as the Fig. 2-1-1. Press the [Command table] soft key again, and then enter
the command table classification operation interface, refer to the Fig. 2-5-1.
Fig. 2-5-1
The content and operation of the command list:
1/3652: Offer the steps and totally steps information of in the current operation of the ladder diagram.
RUN: the operation state of the ladder diagram
Input: Display the input data.
Volume Ⅲ Operation
The positioning can be performed by the pageup, downpage and four direction keys, and then check
the command list.
108
Chapter Two PLC Programming Operation
Fig. 2-6-1
The content and operation of the command list interface:
1/1178: Display the current position of the cursor and the total line number of the ladder diagram.
RUN: The operation state of the ladder diagram.
Input: Display the input data.
MDI mode: Current working mode.
[Copy]: Press this key after entering G12.1, the ladder diagram between cursor and G12.1 can be
duplicated.
Volume Ⅲ Operation
[Paste]: Paste the copied diagram to the ladder diagram.
[Deletion]: Press this key after entering the G12.1, the ladder diagram between the cursor and G12.1
can be deleted.
[Replacement]: Input the replaced the signal address, then press this key, the system may prompt
whether it is replaced or replaced completely.
Y: Replaced; N: Do not replace; A: Replaced completely
[Return]: Return to the previous menu.
The search positioning can be performed by the pageup, pagedown and four direction keys on the
panel, then check the command list.
2. Press the <Programmable> key, in [PLCPAR] interface, enter the check and setting interfaces of
the hold/nonvolatile relay by pressing the [KPAR] soft key. The PLC can be operated modifying the
relative bit of the K000 and K001. (For example, K000.7 is set to 1, then memories). Refer to the K
code list of the Appendix in the Chapter Four Installation Connection for the definition of the relative
bit.
3. Press the [Command list] soft key in the [PLCGRA] interface, then press the [Stop] soft key in the
109
Installation and Connection Manual of GSK218MC CNC System
interface, the ladder diagram of current operation is stopped. (This step can be ignored if the current
ladder diagram does not modify).
4. The modification of the PLC program compilation is completed by the [Basis command], [Function
command] and [compilation command] in the [PLCGRA] interface. Press the <Store> key, the data
column prompts: “Ladder diagram stores successfully!” means that the storage is performed. When
some incorrect compilation occurs in the PLC, the corresponding alarm may display during storing,
check the PLC program.
5. The data column may display: “the ladder diagram is converting…” by pressing the [Command list]
soft key in the [PLCGRA] interface, then control the [Conversion] soft key. ”Successfully convert”!
displays after converting.
6. The data column may display: “the command list is downloading” by pressing the [Command list]
soft key in the [PLCGRA] interface, then press the [Download] soft key. “Successfully download!”
displays after the downloading is performed. The ladder diagram is converted into the command list
downloading to the CNC and then it operates automatically.
Volume Ⅲ Operation
110
Chapter Three PLC Address and Parameter Setting
The addresses and parameters, such as the counter, timer, data list and nonvolatile relay may be
used in the PLC; the viewing and setting of these addresses and parameter should be performed in
the corresponding interface. Press the [PLCPAR] soft key again in the PLCPAR interface, then enter
the PLC address and parameter setting interfaces, refer to the Fig. 3-1, which includes the nonvolatile
relay, timer, data list, counter, F address corresponding with the M function. It is used for checking
and setting these addresses, parameters and data list. (User can set it after the debugging password
is input and gained an authority)
Volume Ⅲ Operation
Fig. 3-1
Press the [KPAR] soft key in the Fig. 3-1, then enter the checking and setting interfaces of the
nonvolatile replay, refer to the Fig. 3-1-1.
Fig. 3-1-1
111
Installation and Connection Manual of GSK218MC CNC System
The set value can be downloaded to the CNC operation pressing the <Save> key after modifying.
“KPAR downloading successful” displays after the save is performed; the system displays:
“downloading fail” when the save is incorrect; the “illegal downloading parameter” displays without
downloading conditions.
(Note: It can be saved and operated by pressing the <Save> after modifying. K000~~K005 are used
by the system. Refer to the Appendix One and Three for details)
The search and positioning can be performed by the pageup, pagedown and four direction keys on
the panel; checking and modifying of the nonvolatile relay address can be performed.
3.2 Timer
Volume Ⅲ Operation
Press the [TMR] soft key in the Fig. 3-1, then enter the checking and setting interfaces of the timer,
refer to the Fig. 3-2-1.
Fig. 3-2-1
112
Chapter Three PLC Address and Parameter Setting
The set value can be downloaded to the CNC operation pressing the <Save> key after modifying.
“TMR downloading successful” displays after the save is performed; the system displays:
“downloading fail” when the save is incorrect; the “illegal downloading parameter” displays without
downloading conditions.
The search and positioning can be performed by the pageup, pagedown and four direction keys on the
panel; checking and modifying of the timer address can be performed.
Press the [DATA] soft key in the Fig. 3-1, then enter the checking and setting interface of the data list,
refer to the Fig. 3-3-1.
Volume Ⅲ Operation
Fig. 3-3-1
The content and operation of the data list:
RUN: The operation state of the ladder diagram.
N0.: Serial number of the data list; Do not change.
ADDR.: Data list address; Do not change.
DATA: Data list setting value; it can be changed after the K000.0 (PLC parameter allows modification)
is set to 1 in the MDI mode.
Input: Input data display.
MDI mode: Current working mode.
113
Installation and Connection Manual of GSK218MC CNC System
The set value can be downloaded to the CNC operation pressing the <Save> key after modifying.
“TMR downloading successful” displays after the save is performed; the system displays:
“downloading fail” when the save is incorrect; the “illegal downloading parameter” displays without
downloading conditions.
Note: It only can be saved and operated by pressing the [Save] key after modifying.
The search and positioning can be performed by the pageup, pagedown and four direction keys on
the panel; checking and modifying of the data list address can be performed.
3.4 Counter
Press the [CTR] soft key in the Fig. 3-1, then enter the checking and setting interface of the counter,
refer to the Fig. 3-4-1.
Volume Ⅲ Operation
Fig. 3-4-1
The content and operation of the counter:
RUN: The operation state of the ladder diagram
N0.: Serial number of the counter; Do not change
ADDR.: Counter address; Do not change
CURT: Current value of the counter; Do not change.
SET: Counter setting value; it can be changed after the K000.0 (PLC parameter allows modification)
is set to 1 in the MDI mode
Input: Input data display.
MDI mode: Current working mode.
[Return]: Return to the previous menu.
[X]: Enter to the next page.
The set value can be downloaded to the CNC operation pressing the <Save> key after modifying.
“CTR downloading successful” displays after the save is performed; the system displays:
“downloading fail” when the save is incorrect; the “illegal downloading parameter” displays without
downloading conditions.
114
Chapter Three PLC Address and Parameter Setting
Note: It only can be saved and operated by pressing the [Save] key after modifying
The search and positioning can be performed by the pageup, pagedown and four direction keys on
the panel; checking and modifying of the counter address can be performed.
Press the [X] soft key in the Fig. 3-1 entering the next page; press the [MDEC] soft key entering the
checking and setting interfaces of the M function corresponding to the F address, refer to the Fig.
3-5-1.
Volume Ⅲ Operation
Fig. 3-5-1
The content and operation of the M function corresponding to the F address:
MCodeDEC: It indicates MDEC interface.
RUN: The operation state of the ladder diagram.
MCODE: M function number.
ADDR: F address setting; Input the password higher than the terminal user, which can be modified
in the MDI mode; the system should be restarted again after modifying.
MEANING: M function explanation.
Input: Input data display
MDI mode: Current working mode.
[Return]: Return to the previous menu.
[W]: Enter to the previous page.
This interface is used for registering and deleting of the M code. F signal is set to the one unique
corresponding M code; the M code that does not set by the F signal is disabled.
The corresponding F strobe signal may be sent based upon this list when M code is performed, then
start the corresponding ladder diagram network. The system alarm occurs after modifying, the
prompt content is “Cut off the power”, and its setting is enabled after the system is restarted. The
setting of the M function in PLC program, its corresponding M code is desired to be used after the
corresponding address is modified, the ladder diagram is then modified. It is necessary to operate
carefully, so that the machine may be damaged or the injury accident may occur.
The search and positioning can be performed by the pageup, pagedown and four direction keys on
the panel; the M function corresponding to the F address can be checked or modified.
115
Installation and Connection Manual of GSK218MC CNC System
Note 1: M00, M03, M04 and M05 can not be changed because they are occupied by the system.
Note 2: The file numbers of the ladder diagram and configuration should be consistent when the system is performed
the ladder and configuration files. The data after modifying are stored to the configuration file of
corresponding current ladder diagram file number. User should compile its significance of the signal in this
configuration file, so that the system can be correctly displayed the modified information from the user. The
Chinese note name of the configuration is “LadChixx”, and the English note name is “LadEngxx”.
Volume Ⅲ Operation
116
Chapter Four The User Explanation of the Ladder Diagram Software EDIT
4.1 Brief
At present, the GSK218MC system supports the compilation software of the configured GSK ladder
diagram.
The compilation software of the GSK ladder diagram is a ladder diagram editor on the PC machine of
the GSK218MC and machine center CNC, which mainly offers the functions such as the edit,
conversion, debugging and printing of the GSK218MC series ladder diagram. This software can be
used in the Windows 98, Windows Me, Windows 2000, Windows XP and Windows 2003.
Volume Ⅲ Operation
The compilation software of the GSK ladder diagram is a green one without installing, which includes
two files (Lad Edit. Exe and Diag.mea) and one folder (LadFile). The Ladder01 file in the LadFile
folder is the standard ladder diagram of the system. The software can be operated by clicking Lad
Edit. Exe twice. When the Ladder01 ladder diagram in the LadFile folder is opened in the software,
the interface is shown below:
117
Installation and Connection Manual of GSK218MC CNC System
Fig. 4-2-1-1
z File menu
The file menu includes some program files, namely, the new, open and save, which can be produced
some functions, such as the performable ladder diagram file or binary system file, printing, printing
preview and printing setup and the recently opened file list.
Note: In the “ladder diagram editing” dialog box, each volume of the “ladder diagram version number”, “suitable
machine” and “ultimate modifier”, can be indicated by English, instead of Chinese, otherwise, the error may occur after
transferring.
z Edit menu
The edit menu includes some functions such as the cutting, copy, pasting, searching, conversion and
editing etc.
z View menu
Control the display and concealing of the toolbar, state bar, output and command list windows.
z Window menu
Control the selection and layout of each window.
z Help menu
Version information of this software
118
Chapter Four The User Explanation of the Ladder Diagram Software EDIT
4.3.1 Toolbar
There are two toolbars of the main view frame, which are related with the ladder diagram compilation.
Volume Ⅲ Operation
Component search
Insert the vertical breakover line (place at the lower right corner of the cursor)
Delete the vertical breakover line at the lower right corner of the component
119
Installation and Connection Manual of GSK218MC CNC System
Function code button: There are two methods in the Edit function code:
1. Spring the drawing menu pressing the mini arrow at the right once, and then select the function
codes.
Volume Ⅲ Operation
Fig. 4-3-1-2-1
2. Or, click the button icon, set the function code in the sprung function code selection dialog.
Fig. 4-3-1-2-2
120
Chapter Four The User Explanation of the Ladder Diagram Software EDIT
In the editing view of the ladder diagram, the black rectangle shadow means cursor, click the left key
of the mouse in the figure editing area between two bus cables, and select the position where the
figure unit needs to be edited. Refer to the following figure.
Fig. 4-3-2-1
When the block is selected, press the mouse left key at the beginning position of the block, then drag
to the end. The selected area indicates by the rectangle with dotted line before releasing the left key.
Volume Ⅲ Operation
Fig. 4-3-2-2
The inverted color of the whole ladder diagram after releasing, that is, the ladder diagram within this
rage is selected, and the next operation can be performed. For example, cutting, deletion and copy
etc.
Fig. 4-3-2-3
121
Installation and Connection Manual of GSK218MC CNC System
4.3.3.1 Cutting
There are three ways for carrying out this operation after the ladder diagram area to be edited is
selected:
1. Select the cutting after springing the environment menu by clicking the right key of the mouse;
2. Select the Edit [Alt+E]--- Cutting [T] of the main menu;
3. Shortcut key [Ctrl+X].
The cut content is placed to the clipboard, which is copied to the ladder diagram by the paste
operation.
4.3.3.2 Copy
There are three ways for carrying out this operation after the ladder diagram area to be copied is
selected:
1. Select the copy after springing out the environment menu by clicking the right key of the mouse;
2. Select the Edit [Alt+E]--- Copy [C] of the main menu;
3. Shortcut key [Ctrl+C].
The selected content after copying is put to the clipboard, which is copied to the ladder diagram by
Volume Ⅲ Operation
4.3.3.3 Pasting
There are three ways for carrying out this operation after the ladder diagram area to be pasted is
selected:
1. Select the pasting after springing out the environment menu by clicking the right key of the mouse;
2. Select the Edit [Alt+E]--- Pasting [P] of the main menu;
3. Shortcut key [Ctrl+V].
4.3.3.4 Deletion
There are three ways for carrying out this operation after the ladder diagram area to be deleted is
selected:
1. Select the basis code ---- Deletion node after springing out the environment menu by clicking the
right key of the mouse once;
2. Click the [Deletion node] button on the editing bar;
3. Shortcut key [Delete];
122
Chapter Four The User Explanation of the Ladder Diagram Software EDIT
There are three ways for carrying out this operation after moving the cursor to the position to be
inserted the ladder diagram line:
1. Select the insert after springing out the environment menu by clicking the right key of the mouse;
2. Select the Edit [Alt+E]---Insertion line [I] of the main menu;
3. Shortcut key [Insert];
4.3.3.6 Deletion Line
There are three ways for carrying out this operation after moving the cursor to the position to be
deleted the ladder diagram line:
1. Select the insert after springing out the environment menu by clicking the right key of the mouse;
2. Select the Edit [Alt+E]--- Deletion line [D] of the main menu;
3. Shortcut key [Ctrl+Delete];
4.3.3.7 Conversion
There are three ways for carrying out this operation after the ladder diagram of the current editing
interface is converted into the command list program:
1. Select the Edit [Alt+E]--- Conversion [V] of the main menu;
2. Click once the [Ladder diagram conversion] button on the editing bar;
Volume Ⅲ Operation
3. Shortcut key [F7];
Click the left key of the mouse twice out of the bus area at the ladder diagram right; input the notes in
the editing frame.
Fig. 4-3-4-1-1
123
Installation and Connection Manual of GSK218MC CNC System
There are two ways for carrying out this operation after moving the cursor to the position to be
modified the ladder diagram component:
1. Click the right key of the mouse after the component is selected; select the modified notes [M] in
the springing environment menu;
Fig. 4-3-4-2-1
Fig. 4-3-4-2-2
Input the notes in the springing dialog box; save it by clicking the OK button.
Fig. 4-3-4-2-3
124
Chapter Four The User Explanation of the Ladder Diagram Software EDIT
The notes saved will be displayed the output window under the screen when the component is
selected each time, refer to the following figure:
Fig. 4-3-4-2-4
4.3.5 Leading-out
The ladder diagram file should be converted when it is edited and saved, which can be generated the
performable file after converting, and then transfer to the CNC using the serial-port communication
software or U disk that it is performed by the PLC from the CNC system. Refer to the Chapter Eleven
System Communication in the Volume Three of the 218MC Programming and Operation Manual.
Volume Ⅲ Operation
The ladder diagram file is then produced.
Select the file [Alt+F]----Ladder diagram file producing [L] of the main menu, save it after inputting the
name and path, the ladder diagram file with the extension name “.grp” is produced, which can be
used in Milling machine and machining center of the GSK218MC series.
The configuration format of the ladder diagram is shown in the Appendix Two.
125
Installation and Connection Manual of GSK218MC CNC System
Volume Ⅲ Operation
126
Chapter One The System Configuration and Installation
VOLUME Ⅳ
Volume Ⅳ Connection
127
Installation and Connection Manual of GSK218MC CNC System
Volume Ⅳ Connection
128
Chapter One The System Configuration and Installation
INSTALLATION
GSK218MC CNC system is composed of the following units, and the composition of the system is
shown as figure 1-1.
(1)GSK218MC CNC system
(2)Additional operation panel (optional parts)
(3)CNC AC servo drive unit (step drive unit)
(4)Servo motor (step motor)
(5)AC transformer
The strong
GSK218MC current
CNC system cabinet of
the
machine
~380V
AC
Drive unit Motor
transformer
Fig. 1-1
Volume Ⅳ Connection
Firstly, check whether the parts, such as CNC system, the drive unit, the motor and the photoelectric
encoder, etc, to be installed are all complete, in good condition and matched with each other.
The installation of CNC system must be fixed, and some space should be reserved around CNC
system, so the heat of the system can be sent out. CNC system should be installed the place in which
is each to operate, avoiding the scrap iron and coolant.
The strong and weak currents should be separated, and the power supply of CNC system and the
drive unit should be provided by the isolation transformer, and the power supply should be parted with
129
Installation and Connection Manual of GSK218MC CNC System
the strong current of the machine. The various cables should keep far away from AC contractor to
reduce the interference. It would be best that the photoelectric encoder, the limit signal and the
emergency stop signal should be connected with CNC system directly rather than come through the
strong current cabinet. The power supply must be connected with the earth properly.
Various sockets should be connected and the screw should be fixed tightly, and the joints of cables
are not allowed to plug and pull after power on.
During installing CNC system, the panel should not be scratched by the hard object and the edge iron;
CNC system should be taken off during painting to keep the panel clean.
Around CNC system, it should be free of the strong current, the ferromagnetic interference source,
and keep far away from the inflammable, the explosives and the various dangerous objects.
Volume Ⅳ Connection
130
Chapter One The System Configuration and Installation
Volume Ⅳ Connection
131
Installation and Connection Manual of GSK218MC CNC System
132
Chapter One The System Configuration and Installation
Volume Ⅳ Connection
133
Installation and Connection Manual of GSK218MC CNC System
134
Chapter One The System Configuration and Installation
Volume Ⅳ Connection
135
Installation and Connection Manual of GSK218MC CNC System
The additional panel of GSK218MC integration system is selected by the customers. The extension
holes on the panel are user-defined, such as the emergency stop, the program lock, the system
power on and off, feed hold, cycle start and MPG, etc. The following are optional parts of GSK218MC
integration system:
MPG: Changchun LGF-001-100;
Additional panel: Aluminum 460mm×130mm, which can be assembled under the panel;
Emergency stop button: LAY3-02ZS/1
Unself-lock button: KH-516-B11 (green or red)
Self-lock button: KH-516-B21(green or red)
Fig.1-4-1
Volume Ⅳ Connection
136
Chapter Two Connection between Equipments
Volume Ⅳ Connection
137
Installation and Connection Manual of GSK218MC CNC System
Fig. 2-1-2-1
138
Chapter Two Connection between Equipments
The interfaces with the drive unit include XS30(X axis), XS31(Y axis), XS32(Z axis)and XS33
(the 4th axis).
PC
+24V
AM26LS31
EN
Fig. 2-2-1-1
Volume Ⅳ Connection
139
Installation and Connection Manual of GSK218MC CNC System
1 XCP+ 1 YCP+
9 XCP- 9 YCP-
2 XDIR+ 2 YDIR+
10 XDIR- 10 YDIR-
3 XPC 3 YPC
11 0V 11 0V
4 +24V 4 +24V
12 +5V 12 +5V
5 XDALM 5 YDALM
13 +5V 13 +5V
6 6
14 0V 14 0V
7 XEN 7 YEN
15 0V 15 0V
8 0V 8 0V
X S 3 2 : D B 1 5 fe m a le ( Z a xis ) X S 3 3 : D B 1 5 fe m a le ( 4 T H a ixs )
1 ZCP+ 1 4CP+
9 ZCP- 9 4CP-
2 ZDIR+ 2 4DIR+
10 ZDIR- 10 4DIR-
3 ZPC 3 4PC
11 0V 11 0V
4 +24V 4 +24V
12 +5V 12 +5V
5 ZDALM 5 4DALM
13 +5V 13 +5V
6 6
14 0V 14 0V
7 ZEN 7 4EN
15 0V 15 0V
8 0V 8 0V
Fig. 2-2-2-1
YDIR+,YDIR-,ZDIR+,ZDIR-,4DIR+ and 4DIR- are movement direction signal, and the signals of
two groups are difference output.
The circuit diagram is shown as below:
CNC
side
CP+
CP-
6N137 Drive
Fig. 2-2-3-1
140
Chapter Two Connection between Equipments
R=4.7K
DALM
Fig. 2-2-3-2
EN
Fig. 2-2-3-3
PC PC
R=3.3K R=680
+24V +5V
zero zero
return return
Fig. 2-2-3-4
141
Installation and Connection Manual of GSK218MC CNC System
The wave of PC signals provided by the user is shown as the following figure:
Direction of
refe. return
Deceleration
siganl
Coder PC signal
(One-turn
signal) Ignore
Proximity
switch signal
(PC) Refe.
point
Fig. 2-2-3-5
0V 11 RDY2 14
Fig. 2-2-4-1
142
Chapter Two Connection between Equipments
Fig. 2-2-4-2
3. The cables of GSK218MC with DA98B series drive unit:
XS30,31,32,33 DA98B drive
SIGNAL PIN SIGNAL PIN
nCP+ 1 PULS+ 30
nCP- 9 PULS- 15
nDIR+ 2 SIGN+ 29
nDIR- 10 SIGN- 14
nDALM 5 ALM 5 Volume Ⅳ Connection
0V 11 DG 32/33
nEN 7 Son 23
nPC 3 CZCOM 36
+24V 4 CZ 37
COM+ 38/39
RSTP 9
DG 32/33
DG 32/33
FSTP 24
Fig. 2-2-4-3
143
Installation and Connection Manual of GSK218MC CNC System
GSK218MC CNC system can communicate with PC through RS232-C series interface. (GSK218MC
communication software must be equipped.) And the connection diagram is shown as below:
The connection diagram of cables is shown as below:
RS232 COM1/COM2
(Socket of 9 pins in type D)
DCD 1
RXD 2 3 TXD
Control
TXD 3 2 RXD
Common
unit DTR 4 4 DTR
GND 5 5 GND PC
DSR 6 6 DSR
RTS 7 1 DCD
CTS 8 7 RTS
8 CTS
Fig. 2-3-1
218MC system can be equipped with MPG or handhold unit in difference type or non-difference, the
interface signal is shown as below:
X S 2 2 : ( D B 2 6 fe m a le p lu g )
Volume Ⅳ Connection
10
1 HB+ 11 19 LED
1
2
2 HB- 20
3
2
1
HA+ VCOM
13 GND
4 HA- 22 ESP2
14
5 HX 23 HY
15
6 HZ 24 HU
16
7 H_ 25 H*1
17 VDD5
8 H*10 26 H*100
ESP1 18
9
Fig. 2-4-1-1
144
Chapter Two Connection between Equipments
HA+, HA-, HB+and HB-: with MPG in different type or handhold unit pulse signal (with MPG of
non-difference type or handhold unit, HA+, HB+ with +5V; HA- with MPG A; HB- with MPG B);
ESP1 and ESP2: Emergency stop signal of handhold unit;
HX, HY, HZ and HU: They are respectively the axis selection signals of X, Y, Z and 4th;
H*1, H*10 and H*100: They are respectively the override signals of MPG pulse equivalent;
VCOM: Common port of handhold unit.
The connection diagram of 218MC with the internal MPG is shown as below:
Built-in
XS22 handwheel
Pin Signal Signal
1
8
+5V
3 HA+ VCC
1 HB+
10 0V 0V
A
4 HA-
2 HB- B
FG
Fig. 2-4-2-1
Volume Ⅳ Connection
145
Installation and Connection Manual of GSK218MC CNC System
1
8
+5V VCC
15 0V 0V
3 HA+ A
A
-
4 HA-
21 VCOM COM
1 HB+ B
2 HB- B-
9 ESP1 NC1
22 ESP2 NC2
23 HY Y
24 HU 4th
8 H*10 X10
5 HX X
6 HZ Z
25 H*1 X1
26 H*100 X100
19 LED+ LED+
10 0V LED-
FG
Fig. 2-4-2-2
Connection diagram of GSK218MC with handhold unit in voltage type(E):
+5V
3 HA+ VCC
1 HB+
10 GND 0V
21 VCOM COM
A
4 HA-
Volume Ⅳ Connection
2 HB- B
9 ESP1 NC1
22 ESP2 NC2
23 HY Y
24 HU 4
8 H*10 X10
5 HX X
6 HZ Z
25 H*1 X1
26 H*100 X100
19 LED+ LED+
10 0V LED-
FG
Fig. 2-4-2-3
146
Chapter Two Connection between Equipments
The system interface is DB44 pin socket, and its pin definitions are shown as below:
1
8
32 GND
3
3
PZ- PZ+
SIGN+
4 ZOUT- 19 ZOUT+
34 SIGN-
5 SAR/PAR 20 ZSP
35 COM-
6 SECT 21 COIN
36 COM-
7 ALM 22 RDY
37 COM+
8 ARST 23 COM-
38 COM+
9 SFR 24 SON
10 SPO 25 SRV 39 COM+
1
1
40 SP1
4
1
STAO 26 SP2
SECO
12 VP 27 ZSL
42 PURS+
13 GE0 28 PULS-
43 GE1
14 VCMD+ 29 AGND
44 VPO
15 VCMD- 30 AGND
Fig. 2-5-1-1
147
Installation and Connection Manual of GSK218MC CNC System
GSK218MC is equipped with the interface connection circuit of DAP03 control circuit:
SCOM VCMD- 15
14 SVC VCMD+ 14
16 A+ PA+ 16
1 A- PA- 1
17 B+ PB+ 17
2 B- PB- 2
18 Z+ PZ+ 18
3 Z- PZ- 3
7 SDALM ALM 7
9 Spindle CW Y6.0 SFR 9
25 Spindle CCW Y6.1 SRV 25
37 24V COM+ 37
24 Spindle enable Y6.2 SON 24
11 Spindle orientation Y6.3 STAO 11
27 Zero speed clamp Y6.5 ZSL 27
12 Speed/pos.switch Y6.4 VP 12
42 4XCP+ PULS+ 42
28 4XCP- PULS- 28
33 4XDIR+ SIGN+ 33
Volume Ⅳ Connection
34 4XDIR- SIGN- 34
5 S.speed arrival X7.2 SAR 5
20 S.zero speed check X7.3 ZSP 20
21 S.orientataion finish X7.1 COIN 21
44 Speed/pos.switch finish X7.0 VPO 44
35 COM- COM- 35
FG
Fig. 2-5-4-1
148
Chapter Two Connection between Equipments
The input voltage of the system is +24V. And the power supply interface is as below:
+24V 1
2
3
GND 4
5
Fig. 2-6-1
The control interface diagram of the external power supply of the system operation panel is shown as
below:
ON 1
COM1 2
3
COM2 4
OFF
5
Fig. 2-7-1
Volume Ⅳ Connection
149
Installation and Connection Manual of GSK218MC CNC System
XS40(input 1):DB25 male plug XS41(input 2):DB25 male plug XS42(input 3):DB25 male plug
IN00 1 IN32
1 14 IN16
1 14 IN17 14 IN33
IN01 2 IN34
3
2 IN02 IN18
2 15
3
3
15 IN03 15 IN19 IN35
COM COM COM 16 COM
16 COM 16 COM 4 +24V
4 +24V 17 4 +24V 17 IN20 17 IN36
IN04 5 IN37
5 IN05 18 5 IN21 18 IN22 18 IN38
6 IN07 IN06 6 IN23 6 IN39 19
19 19 COM COM
COM 7 COM 20
7 COM 20 7 COM 20 +24V +24V
+24V 8 IN40
8 IN08 21 8 IN24 21 IN25 21 IN41
9 IN10 IN09 9 IN26 9 IN42 22
22 IN11 22 IN27 IN43
10 COM
1
1
10 COM 10 COM 23 COM
1
1
1
1
2 D002
3
10 COM 23 23 +24V
1
1
Fig. 3-1
Among them, XS40, XS41 and XS42 are input interfaces (DB25 pins), and XS43, XS44 and XS45
are output interface (DB25 hole).
150
Chapter Three The Machine Control I/O Interface
DC input signals from machine to CNC come from the buttons of the machine side, the limit switch
and the contacts of the relay, etc.
a)The contacts of the machine side should satisfy the following conditions:
Contact capacity: DC30V, above 16mA.
The leakage current of contacts during the open-circuit: below 1mA (voltage 26.4V).
The voltage drop of contacts during the closed-circuit: below 2V (current 8.5mA, including the
voltage drop of the cable).
b) The return circuit of the signals is shown as fig.3-2-1-1:
+24V
+5V
1K
4.7K
Input
signal
0.1
Machine
side CNC side
Fig. 3-2-1-1
Volume Ⅳ Connection
151
Installation and Connection Manual of GSK218MC CNC System
The definitions of each pin of the input interfaces are show as the following list:
List 3-2-2-1
ADDRESS SIGNAL INTERFACE DEFINITION CONTACTS
INTERFACE PIN NO.
X000.0 XS40 1 The limit signal of X axis in NC contact
positive direction
X000.1 XS40 14 The limit signal of X axis in NC contact
negative direction
X000.2 XS40 2 The limit signal of Y axis in NC contact
positive direction
X000.3 XS40 15 The limit signal of Y axis in NC contact
negative direction
X000.4 XS40 17 The limit signal of Z axis in NC contact
positive direction
X000.5 XS40 5 The limit signal of Z axis in NC contact
negative direction
X000.6 XS40 18 The limit signal of the 4th NC contact
axis in positive direction
X000.7 XS40 6 The limit signal of the 4th NC contact
axis in negative direction
X001.0 XS40 8 X axis zero return NC contact
deceleration signal
X001.1 XS40 21 Y axis zero return NC contact
deceleration signal
X001.2 XS40 9 Z axis zero return NC contact
deceleration signal
X001.3 XS40 22 The 4th axis zero return NC contact
deceleration signal
Volume Ⅳ Connection
152
Chapter Three The Machine Control I/O Interface
153
Installation and Connection Manual of GSK218MC CNC System
detection
154
Chapter Three The Machine Control I/O Interface
③ When the output is OFF, the voltage resistance includes the instant voltage below 24+20%.
④ When the output is OFF, the leakage current is below 100μA.
b)The output return circuit:
C N C s id e M a c h in e s id e
0V 0V
+24V
R e la y
0V
Fig. 3-3-1-1
All the output signals of the system are provided by Darlington tube, and when the output is valid, the
corresponding Darlington tube is conducted. Except TL-, TL+ and SPZD are the pulse signals (Not
hold output), the other outputs are the level signals (output hold), and the common port of the signal is
+24V.
List 3-3-2-1
155
Installation and Connection Manual of GSK218MC CNC System
156
Chapter Four Machine Debugging
This chapter introduces some methods and steps of installing, debugging and trial running
GSK218MC system. After the following debugging steps are completed, the machine can be
operated correspondingly.
157
Installation and Connection Manual of GSK218MC CNC System
z Press the emergency stop button and make sure all the air switches are OFF.
z Switch on the air switch of the main power supply in the cabinet.
z Connect the air switch controlling DC24V or the fuse and check whether DC24V power
supply is normal or not.
z Check whether the power supply of the other parts is normal or not.
z Electrify GSK218MC CNC device.
The system is with the software limit function. For safety, the hardware limit measure should be
adopted meanwhile, and the limit switches of each axis in positive and negative directions should be
installed.
About 218MC integration system, the user can monitor and check the state of the emergency stop
input signal through checking NO: 1#4(*ESP)on【X signal】software interface of the <diagnosis>
interface. After pressing the emergency stop button, all the air switches of the system must be OFF.
As to 218MC-H/ 218MC-V, check NO:23#5 (MT-emergency stop).
In JOG or MPG mode, each coordinate axis is moved slowly to testify the validity of each axis overrun
limit switch, the overrun release button and the correctness of alarm display. The system alarms
when the overrun occurs or the emergency stop button is pressed; while press the overrun release
button and the axis moves oppositely, the system can release the alarm.
Sate X1.4
address
Pin NO. XS40.24
218MC-H/-V parameter diagnosis (the input state on the system side)
State X23.5
address
Pin NO.
Remark: The situations occur in the system: 0251:the emergency stop alarm, please check whether the state of X1.4
is 1 in 218MC system; while check X23.5 in 218MC-H/-V system. However, it’s not allowed to ignore the emergency
stop alarm by the bit parameter NO:61#5, which may result some functions can’t be used normally, such as M3 and
M4. 218MC is with the external emergency stop button, while 218MC-H/-V is with the internal emergency stop button,
158
Chapter Four Machine Debugging
It’s required to correctly display the alarm “some axis (X, Y or Z) in some direction (positive or
negative) when the servo axis overruns. And it guarantees that after the overrun is released, the axis
can’t move in the overtravel direction when some axis overruns and the alarm occurs. Therefore,
GSK218MC system provides two connection methods of overrun limit switches to satisfy the
customers’ requirements.
List 4-3-1
159
Installation and Connection Manual of GSK218MC CNC System
List 4-3-3
SIGNAL INTERFACE
ADDRESS DEFINITION
INTERFACE PIN NO.
X000.0 XS40 1 Limit signal of X axis NC contact
X000.2 XS40 2 Limit signal of Y axis NC contact
X000.4 XS40 17 Limit signal of Z axis NC contact
X000.6 XS40 18 Limit signal of the 4th axis NC contact
List 4-3-4
List 4-3-5
Volume Ⅳ Connection
160
Chapter Four Machine Debugging
State parameters
0 1 1 BFA LZR
LZR =1: Detect the limit after power on before the manual reference point return.
=0: Not detect the limit after power on before the manual reference point return.
BFA =1: When the overrun command occurs, the system alarms after overtravel.
=0: When the overrun command occurs, the system alarms before overtravel.
The system parameter numbers:
0 3 1 G13
G13 =1: It is set as G13 mode during power-on or clearing the state.
=0: It is set as G12 mode during power-on or clearing the state.
When the machine traverse distance doesn’t comply with the movement distance displayed on the
system coordinate, the system parameters P160~P163 and P165~P168 can be rewritten to change
the electrical gear ratio, and then, the different mechanical transmission ratios can be applied.
The fractional frequency and frequency multiplication( the electrical gear) of the position code pulse
should be set.
Volume Ⅳ Connection
In the POSITION mode, the various pulse sources can be matched conveniently by setting the
parameters; therefore, the ideal controlled resolution ratio (angle/pulse) required by the customer can
be reached.
Formula:
Numerator 4C ZM
G= =
L
Denominator ZD
Frequency of the numerator: Parameter PA12 (The code frequency multiplication coefficient).
Frequency of the denominator: Parameter PA13 (The code fractional frequency coefficient).
【Example 1】If the screw lead is 8mm, the minimum output code unit of the system is 0.001mm, and
the motor coder linear number is 2500, so:
4C ZM 4 2500 1 5
G= L = =
ZD 8 0.001 1 4
The parameter setting of the system gear ratio is same as that of the digit servo gear ratio. If it is
equipped with the digit servo with the electrical gear ratio function, the electrical gear ratio of the
system is set as 1:1, and the calculated electrical gear ratio is set into the digit servo.
If the step drive is required, try to select the drive unit with the step subdivision function, select the
mechanical transmission ratio properly, and try to set the system electrical gear ratio as 1:1, so the
big difference between the numerator and the denominator of the electrical gear ratio can be avoided.
1×2500×4
G = N×C×4 =
P 360×1000×reduction ratio(driving/passive tooth)
Volume Ⅳ Connection
The dialgauge, the micrometer gauge or the laser can be used to measure; the backlash
compensation should be compensated to improve the machining precision. Therefore, measuring the
lead screw backlash in MPG or single step mode is not recommended, and the following method is
suggested:
z Editing a program:
O0001;
N10 G01 G91 X1 F800 ;
N20 X1 ;
162
Chapter Four Machine Debugging
N30 X1 ;
N40 X-1 ;
N50 M30 ;
z The backlash error compensation value is set as 0 before measuring;
z In the running program of a single block, find the measuring datum A after positioning two
times, record the current data, run 1mm in the same direction, and then run 1mm to point B
in opposite direction, finally read the current data.
A
Opposite
direction
Read the
data position
B
z The backlash error compensation value= | The data recorded by point A-the data recorded by
point B|; The calculated data are input into the corresponding system parameters.
Data A: The data of dial gauge in Point A;
Data B: The data of dial gauge in Point B;
Pulse equivalent:1 micrometer.
Remark 1: The backlash compensation amount of each axis is set by data parameters P190~P193.
Remark 2: The mode of backlash compensation amount and the compensation frequency are set by data parameters
P195~P198.
Remark 3: To guarantee the machine precision, the backlash can be detected again after the machine is unused for
three months.
The system parameter number
0 1 8 RVCS RVIT Volume Ⅳ Connection
RVIT =1: When the backlash is greater than the gap allowance value, the next block is executed after
the compensation is completed.
=0: When the backlash is greater than the gap allowance value, the next block is executed
before the compensation is completed.
163
Installation and Connection Manual of GSK218MC CNC System
If the machine traverse direction isn’t compliance with that required by the position movement code,
the position parameter NO:3#1~ NO:3#5 can be rewritten.
If the drive unit doesn’t provide the drive alarm signal, the signal can’t be connected, and the state
parameters NO:19#0 ~ NO:19#4 should be set as 1 meanwhile. When the system displays the drive
unit alarm, the operator should judge the fault on the system side or on the drive unit side.
164
Chapter Four Machine Debugging
165
Installation and Connection Manual of GSK218MC CNC System
List 4-7-1
PARAMETER SETTING VALUE
P216:The compensation number of 255
X reference point
P221:The compensation point 256
number of X axis screw pitch error
P226:The compensation interval of 10
X axis screw pitch error
P231: The compensation override of 0.001
X axis screw pitch error
Fig. 4-7-1
The compensation value is set in 【screw pitch compensation X】in offset.
List 4-7-2
NUMBER 0 …… …… 124 125 126 127
Volume Ⅳ Connection
COMPENSATION +2 …… …… +4 -6 +7 0
AMOUNT
The zero return screw pitch compensation is set in negative direction, and the mechanical zero point
is taken as the reference point of the error compensation, so the screw pitch error compensation can
only be executed on the machine coordinate system.
List 4-7-3
166
Chapter Four Machine Debugging
0 1 2 3 127
Setting
point (0) (+7) (-6) (+4) (+2)
Machine
coordinate
system Setting value
0 +10.000 +20.000 +30.000 +1270.000
Mechanical zero Measured value
0 +9.993 +20.006 +29.996 +1269.998
Fig. 4-7-2
List 4-7-4
NUMBER 0 1 2 3 …… …… 127
COMPENSATION 0 +7 -6 +4 …… …… +2
AMOUNT
JOG mode.
There are two types of zero return:1. with one-turn signal; 2. without one-turn signal, which are set by
bit parameter N0: 6#6.
During zero return, if there isn’t one-turn signal in the motor, zero mode type is classified as type A or
B, which are set by bit parameter N0:6#7.
167
Installation and Connection Manual of GSK218MC CNC System
The block
installed on
the machine
sliding plate
T3 T2 T1
Remark: When the system executes zero
return, the machine sliding plate moves
PNP-NC
positively , the proximity switch on T1 of the proximity
inductive chunk functions firstly, and the system switch
decelerates. Pay attention to that T1 width of
should be enough for deceleration from zero
return to (FL) speed set by #99. T1 width
should not be less than 25mm; the width of T2 The proximity switch signal
is sent to GSK218MC
should be greater than the measured diameter
deceleration, zero Signals
of the proximity switch; T3 is the zero in-position meanwhile
point, and the proximity switch is PNP-NC type,
i.e., the switch is OFF in T1 and T3, and it is ON
in T2 and the other connection states.
Fig. 4-8-1
Volume Ⅳ Connection
168
Chapter Four Machine Debugging
The block
installed on
the
machine
sliding plate
PNP-NC
proximity Remark: When the system executes the returning
switch mechanical zero point, the machine sliding plate
moves in negative direction. When the block
presses the limit switch, the system decelerates.
The proximity switch signal is
sent to GSK218MC
Pay attention to that the effective width of the block
deceleration, zero signals should be enough for deceleration which is from
meanwhile zero return speed to (FL) speed set by the system
data parameter #99. The width of the block should
not be less than 25mm; after the limit switch is off
with the block, the system stops immediately, and
zero return completes.
Fig. 4-8-2
(1)Press to enter the mechanical zero return mode, and then “mechanical zero return”
is displayed at the bottom right corner on LED screen.
(2)Select X, Y or Z axis for mechanical zero return, and zero return direction is set by bit
parameters N0:7#3~N0:7#5.
(3)The machine moves along the mechanical zero point, before the deceleration point, the
Volume Ⅳ Connection
machine traverses rapidly, and the traverse speed is set by the data parameters P100~
P103. After touching the deceleration switch, the machine traverses to the mechanical zero
point (the reference point) at FL speed set by data parameter P099. During returning the
mechanical zero point, the coordinate axis stops moving, the zero return indicator is ON.
3. Operation steps of the mechanical zero return with the program codes
After the bit parameter NO:4#3 is set as 0, zero return can be operated by G28 because detecting the
limit block is equivalent to the mechanical zero return in JOG mode,
Remark 1: If there isn’t the mechanical zero point in your CNC machine, please don’t use the mechanical zero return
operation.
169
Installation and Connection Manual of GSK218MC CNC System
Remark 2:After the mechanical zero point completes, the indicator of the corresponding axis is ON.
Remark 3: When the operator uses some axis taking from the mechanical zero point, the indicator is OFF.
Remark 4: About the mechanical zero point (the reference point) direction, please refer to the manual of the machine
manufactory.
z Relative signals
DECX: Deceleration signal in X direction;
DECY: Deceleration signal in Y direction;
DECZ: Deceleration signal in Z direction;
DEC4: Deceleration signal in the 4th axis.
170
Chapter Four Machine Debugging
ZRNFL: The low speed of X, Y, Z and the 4th axis return to the reference point, which are common to
all axes.
4.9 Controlling the Input and Output Signals during the Spindle CW
z Relative signal
M03: The spindle CW rotation
M04: The spindle CCW rotation
M05:The spindle stops
SON: The spindle enable
SAR/PAR: The spindle speed reach
ZSP: The spindle zero speed detection
COIN: The spindle orientation in-position
STATE Y6.2
ADDRESS
PIN NO. XS23.24
Y6.2= The spindle enable.
171
Installation and Connection Manual of GSK218MC CNC System
STATE X7.1
ADDRESS
PIN NO. XS23.21
X7.1= the spindle orientation finish signal.
z Control logic
① When the system is ON, the spindle stops, M05 signal output is hold;
② After executing M3/M4 code, M3/M4 is valid and hold, M05 signal doesn’t output.
z Relative signals
Y3.4~Y3.6: The spindle automatic gear change output signal.
X4.1~X4.3: The spindle gear change in-position signal.
When the spindle frequency conversion (0~10V analog voltage output) controls, the system can
Volume Ⅳ Connection
support the spindle automatic gear change control in three gears and the gear change in-position
detection function in three gears.
172
Chapter Four Machine Debugging
X4.1= the spindle gearⅠin-position;X4.2= the spindle gear Ⅱ in-position;X4.3= the spindle gear Ⅲ
in-position.
State parameters
0 0 1 SPT
2. When the spindle gear detection isn’t with the detection switch, K9.3 should be set as 1; otherwise, 0.
Volume Ⅳ Connection
3. When the spindle is I/O point control, K4.0 should be set as 1.
z Relative signals
ST: The external automatic cycle start signal, and it is same as the function of the automatic cycle
start key on the machine panel.
*SP: Feed hold signal, and it is same as the function of the feed hold key on the machine panel.
z Signal diagnosis
173
Installation and Connection Manual of GSK218MC CNC System
System side
*SP/ST
Fig. 4-11-1
System
side *SP
ST
XS40
socket
Fig. 4-11-2
4.12 The External Editing Lock and the External Operation Panel Lock
LSYS: The external operation panel lock signal. When the signal is 1, all the operation keys on the
machine are locked.
Signal address
#7 #6 #5 #4 #3 #2 #1 #0
174
Chapter Four Machine Debugging
z Relative signals
M08: Coolant is ON.
M35: The chip removal function is ON.
z Signal diagnosis
Parameter diagnosis (The output state on the machine side)
STATE Y0.1
ADDRESS
PIN NO. XS43.14
Y0.1= the cooling switch control.
System side
M08
ULN2803
+24V
M08 internal circuit
Fig. 4-13-1
175
Installation and Connection Manual of GSK218MC CNC System
RPD =1: Before connecting the power supply and the reference point return, the rapid in JOG
mode is valid.
=0: Before connecting the power supply and the reference point return, the rapid in JOG mode is
invalid.
LRP =1:Positioning (G00) interpolation type is linear.
=0: Positioning (G00) interpolation type is non-linear.
RFO =1: Rapid feeding, when the feed override is Fo, the feeding stops.
=0: Rapid feeding, when the feed override is Fo, the feeding doesn’t stop.
TDR =1: During tapping, dry run is valid.
=0: During tapping, dry run is invalid.
RDR =1: During cutting feed, dry run is valid.
=0: During cutting feed, dry run is invalid.
FDR =1: During rapid positioning, dry run is valid.
=0: During rapid positioning, dry run is invalid.
176
Chapter Four Machine Debugging
177
Installation and Connection Manual of GSK218MC CNC System
VGR =1: The gear ratio of the spindle and the position encoder can be random.
=0:The gear ratio of the spindle and the position encoder can be random.
DOV =1: The override is valid during the rapid tapping retraction.
=0: The override is invalid during the rapid tapping retraction.
PCP =1: It is the tapping cycle of the deep hole at high speed during the flexibility tapping.
=0: It is the tapping cycle of the standard deep hole during the flexibility tapping.
System parameter number
0 4 5 OVS OVU TDR NIZ
=0: During the rigid tapping feeding, the same time constant is not used during tool retraction.
OVU =1: The tool retraction override is 10% during rigid tapping.
=0: The tool retraction override is 1% during rigid tapping.
OVS =1: The feedrate override selection and the override cancel signal are valid during rigid
tapping.
=0: The feedrate override selection and the override cancel signal are invalid during rigid tapping.
178
Chapter Four Machine Debugging
ORI =1: The spindle exact stops when the tapping starts.
=0: The spindle doesn’t exact stop when the tapping starts.
Parameter number K
0 0 7 PAP
Appendix: The setting method of rigid and flexibility tapping when GSK218MC system
with DAP03 spindle servo drive unit
Points of attention:
(1)During rigid tapping, 218MC is with DAP03 spindle servo drive unit.
(2)During rigid tapping, 218MC must be connected with DAP03 spindle servo drive unit properly.
Setting steps:
A. Setting rigid tapping: The system adopts the default parameters, and only the following parameters
can be rewritten:
1. Bit parameter: NO:46#1 is rewritten into 1 (servo mode).
2. PLC parameter: K7#7 is rewritten into 1 (the spindle position mode).
3. Data parameter: The tapping maximum speed set by P257 parameter is set to comply with the
maximum speed of the spindle.
4. Data parameter: The gear 1 speed set by parameter P294 corresponding to tapping is set to
comply with the maximum speed of tapping.
5. PA4 is set as 5 in DAP03 parameter (speed and position modes).
6. During executing the rigid tapping command, if the rotation direction of the spindle doesn’t
Volume Ⅳ Connection
179
Installation and Connection Manual of GSK218MC CNC System
10. When the gear ratio of the spindle and the motor isn’t 1;1, the corresponding gear ratio should
be calculated and input into PA35 and PA36 parameters of DAP03.
11. The spindle CW and CCW rotation should comply with each other during rigid tapping. And
the fluctuation of revolution speed should not be too much, it’s better to keep in three
revolutions.
12. About cutting some soft material, such as the aluminum alloy and the copper, etc, it’s better to
use the tapping in spiral type, with the dedicated coolant to get better effect.
B. Setting the flexibility tapping: The system default parameter can be used, and only the
following parameters should be rewritten.
During the flexibility tapping, only the bit parameter NO:46#1 is rewritten into 0 (in the
following mode), K7#7 is changed into 0, and the code M29 is also used, and the dwell time
from 1s to 2s of the codes is with the better effect.
Remark: The above corresponds the setting method of the machine without the gear change.
Volume Ⅳ Connection
180
Appendix One The Usage Guide of the Ladder Diagram
APPENDIX
181
Installation and Connection Manual of GSK218MC CNC System
182
Appendix One The Usage Guide of the Ladder Diagram
1. During using the ladder diagram, the circuit should be connected strictly based on the
requirements.
2. During using the ladder diagram, PLC parameters should be correctly set, and the ladder diagram
should comply with the allocation of the machine.
3. If the machine has the special control requirements, the program should be added in the ladder
diagram, which requires the technicians have the electrical and PLC knowledge and learn the
ladder diagram very well.
4. The ladder diagram is only suitable for CNC milling machine or the machining center with the turret
magazine. If the machine is in the other type, it may cause the accident.
5. The ladder diagram is only taken as the reference, and the ladder diagram varies as the different
machine type.
183
Installation and Connection Manual of GSK218MC CNC System
184
Appendix One The Usage Guide of the Ladder Diagram
185
Installation and Connection Manual of GSK218MC CNC System
Points of attention:
1. About the connection method and points of attention of PLC input part (X), refer to chapter Ⅳ.
2. The contacts are classified into the four types: Normally open contact, NC contact, whether
the contact is normally open or NC is set by the parameters. Among them, the input points are
connected with normally open or NC contact are set by KAPA parameter in PLC. About the
details, refer to KAPA parameter introduction.
3. When use the ladder diagram, the users can add the new function into the undefined input
part, but pay attention to that if the undefined part is used, the ladder diagram should be
rewritten.
4. Operation panel
The function of USER1 button:
K11.1=0: The switch of the water hydrovalve
K11.1=1: Z axis returns to the 1st reference position in JOG mode.
The function of USER2 button: Z axis returns to the 2nd reference position in JOG
mode.
The function of USER3 button: The switch of starting blowing the spindle.
186
Appendix One The Usage Guide of the Ladder Diagram
187
Installation and Connection Manual of GSK218MC CNC System
188
Appendix One The Usage Guide of the Ladder Diagram
189
Installation and Connection Manual of GSK218MC CNC System
190
Appendix One The Usage Guide of the Ladder Diagram
191
Installation and Connection Manual of GSK218MC CNC System
8. When K004.0=1 (whether the spindle uses I/O point control), K008.4 (whether the
spindle is with the gear change device) is set to invalid, that is to say, the spindle is
without the gear change device.
9. When K015.0=0, the operation panel of GSK218MC is used; K015.0=1, the operation
panel of GSK990MA is used.
192
Appendix One The Usage Guide of the Ladder Diagram
193
Installation and Connection Manual of GSK218MC CNC System
194
Appendix One The Usage Guide of the Ladder Diagram
The alarms of A0.0~A19.7 are the system red ones. After the alarm, the system stops running.
A20.0~A31.7 are the customer self-defined blue alarms. After the alarm, the system continues to run,
which doesn’t affect the normal running.
195
Installation and Connection Manual of GSK218MC CNC System
Alarm information: 1205 The pressure oil pump motor is detected abnormal.
Reason: User-defined
Trouble shooting:
Alarm information: 1208 The machine control cabinet temperature is detected abnormal.
Reason: User-defined
Trouble shooting:
196
Appendix One The Usage Guide of the Ladder Diagram
Alarm information:1214 The spindle revolution can’t be operated due to the spindle gear abnormal.
Reason: The spindle gear abnormal is detected during the revolution code of the spindle is executed.
Trouble shooting: When the spindle is in gearⅠ(Y3.4=1) in the time set by T0021, if the
gearⅠin-position detection switch (X4.1) is OFF, adjust the time of T0021 or check whether X4.1 is
ON or not; When the spindle is in gearⅡ(Y3.5=1) in the time set by T0022, if the gear Ⅱ in-position
detection switch (X4.2) is OFF, adjust the time of T0022 or check whether X4.2 is ON or not; When
the spindle is in gear Ⅲ(Y3.6=1) in the time set by T0023, if the gear Ⅲ in-position detection switch
(X4.3) is OFF, adjust the time of T0023 or check whether X4.3 is ON or not.
Alarm information:1216 When the tool is released, the spindle can’t revolve.
Reason: When the tool is released, the code of the spindle revolution is executed. For example: In
the JOG mode, press the spindle CW, CCW rotation, inch or positioning, or in the auto mode, press
M03,M04 or M19, the spindle gets revolved.
Trouble shooting: In JOG mode, press clamp/release button, the tool is clamped (Y0.2=0); Check
whether the tool clamp detection switch (X2.6) is 1, when the state is 1, the alarm doesn’t occur
during the spindle revolution.
Alarm information:1217 The tool can’t be released during the spindle revolving.
Reason: When the spindle is revolving, the code of the tool release is executed.
Trouble shooting: When the spindle stops, the tool release code can be executed to avoid the alarm.
Alarm information:1218 When the magazine is abnormal and stops, the tool number should be
confirmed, again.
Reason: When M6 code is being executed and the magazine is revolving, the alarm occurs; or press
“reset” key, the alarm occurs.
Trouble shooting: 1. The magazine zero return is operated, again.
2. Reset the spindle tool number and the magazine tool number.
(About the detailed operation, please refer to Chapter Ⅲ: The usage method and maintenance of
GSK218MC CNC system with the turret magazine)
Alarm information: 1219 The spindle can’t revolve in the magazine tool advance position.
Reason: The spindle revolution is operated when the magazine doesn’t retract in-position.
Trouble shooting: The magazine returns to the tool retraction position. (detect whether the magazine
is in the tool retraction position by checking the state of X5.2.)
197
Installation and Connection Manual of GSK218MC CNC System
198
Appendix One The Usage Guide of the Ladder Diagram
ON or not; When the spindle is in gearⅡ(Y3.5=1) in the time set by T0022, if the gear Ⅱ in-position
detection switch (X4.2) is OFF, adjust the time of T0022 or check whether X4.2 is ON or not; When
the spindle is in gear Ⅲ(Y3.6=1) in the time set by T0023, if the gear Ⅲ in-position detection switch
(X4.3) is OFF, adjust the time of T0023 or check whether X4.3 is ON or not.
Alarm information: 1227 The magazine can’t revolve because it isn’t in the origin.
Reason: The magazine isn’t in the tool retraction position and Z axis isn’t in the origin; “magazine
CW” or “magazine CCW” in the JOG mode is pressed, the alarm occurs.
Trouble shooting: The magazine returns to the retraction position or Z axis returns to the origin.
Alarm information: 1228 The cycle start can’t be operated when the magazine is in the tool advance
position.
Reason: When the magazine isn’t in the tool retraction position, “start” is pressed in AUTO, MDI or
DNC mode, the alarm occurs.
Trouble shooting: The magazine returns to the tool retraction position.
Alarm information: 1230 When the spindle tool is released, the tool can’t be changed.
Reason: The spindle tool is released (Y2.0=1), M06 or M50 code is executed.
Trouble shooting: The spindle tool is in the clamp state (Y2.0=0).
Alarm information:1231 The tool can’t be changed when the magazine isn’t in the tool retraction
position.
Reason: When the magazine isn’t in tool retraction position, M06 or M50 code is executed.
Trouble shooting: The magazine is in the tool retraction position.
199
Installation and Connection Manual of GSK218MC CNC System
Alarm information: 1234 The program stops running when the magazine is in the tool advance
position.
Reason: The alarm occurs when the program is running while the magazine isn’t in the tool retraction
position.
Trouble shooting: The magazine should return to the tool retraction position before executing the
program.
Alarm information: 1235 The magazine moves in-position and is detected abnormal.
Reason: User-defined
Trouble shooting:
Alarm information: 1237 The magazine origin position is missed, so zero return should be operated,
again.
Reason: When the magazine returns zero point, the abnormal occurs; zero return stops, and the
alarm occurs.
Trouble shooting: The magazine returns zero point, again. (About the detailed operation, please
refer to Chapter Ⅲ: The usage method and maintenance of GSK218MC CNC system with the turret
magazine.)
Alarm information: 1240 The magazine is abnormal, zero return should be operated.
Reason:1. When the magazine stops for the time set by T102, the magazine counting switch (X3.5) is
detected abnormal, the pulse signal occurs.
2. When the magazine is rotating, the magazine counting switch is 0 or 1, which exceeds the
time set by T103.
Trouble shooting:1. The output of the magazine CW or CCW rotation (Y3.0 and Y3.1) is abnormal.
2. The magazine counting switch is abnormal.
3. Reset the values of T102 and T103.
(About the detailed operation, please refer to Chapter Ⅲ: The usage method and maintenance of
200
Appendix One The Usage Guide of the Ladder Diagram
Alarm information: 1244 For the magazine safety, tool changing stops due to the abnormal.
Reason: When the magazine changes the tool automatically, the tool changing stops or the magazine
is detected that it is not in the tool retraction position due to the abnormal, the alarm occurs. The
alarm only reminds the operator that the magazine and the tool number of the spindle are in disorder;
even the alarm is cleared, it doesn’t mean the magazine is normal, the magazine and the tool number
of the spindle should be reset. (About the detailed operation, please refer to Chapter Ⅲ: The usage
method and maintenance of GSK218MC CNC system with the turret magazine.)
Trouble shooting: 1. Press “reset” key to clear the alarm;
2. Readjust the magazine and confirm whether the tool number of the spindle
comply with the magazine, including the magazine returning to the retraction
position, the spindle in the tool clamp state, whether the current tool case
number complies with the current value of CTR100, whether the tool number of
the spindle complies with the value of D245, and the spindle can not be with the
tool when the value of D245 is 0.
Alarm information: 1245 There isn’t any code of the tool number in the tool list or the code of the tool
201
Installation and Connection Manual of GSK218MC CNC System
number is repeated.
Reason: There isn’t any tool number specified by T code in the tool list(D001-D099) or the tool
number specified by T code is repeated.
Trouble shooting: Rewrite the tool number value of the tool list.
Alarm information: 1246 The tool advance can’t be operated because the magazine isn’t in the tool
change position.
Reason: Z axis isn’t in the tool change position, but the tool advance in the magazine is operated.
Trouble shooting: After executing G91, G30 and Z0 codes, Z axis returns to the position of tool
change.
Alarm information: 1247 The spindle doesn’t position, the tool advance in the magazine can’t be
operated.
Reason: The spindle doesn’t position, but the tool advance in the magazine is operated.
Trouble shooting: The spindle positioning is executed.
Alarm information: 1248 The tool retraction in the magazine can’t be operated in the tool releasing
state.
Reason: The spindle tool is released, but the tool retraction is operated.
Trouble shooting: The tool retraction is operated after clamping the spindle tool.
Alarm information: 1249 The tool advance can’t be operated because the spindle is with tools.
Reason: The tool advance in the magazine is executed when Z axis is in the origin and the spindle is
with tools (D245 isn’t 0.) .
Trouble shooting: Unload the tool on the spindle, and set D245 as 0.
Alarm information: 1250 The tool advance can’t be operated because the spindle tool number doesn’t
comply with the current tool number in the magazine.
Reason: The tool advance in the magazine is operated when Z axis is in the tool change position, the
tool number of the spindle and that of the current tool case in the magazine are different.
Trouble shooting: The tool number of the current tool case in the magazine is the same as the spindle
tool number by rotating the magazine.
202
Appendix One The Usage Guide of the Ladder Diagram
Reason: Z axis is moved when the magazine is in the tool advance position and the tool is clamped.
Trouble shooting: 1. The magazine is in the tool retraction position.
2. The spindle tool is released.
Alarm information: 1254 The cycle start can’t be operated in the magazine debugging mode.
Reason: The alarm occurs when K010.7=1 and press “start” button in AUTO, MDI or DNC mode.
Trouble shooting: Set K0107 as 0.
Alarm information: 1255 The tool can’t return the origin because it is clamped.
Reason: Z axis returns to the origin when the magazine is in the tool advance position and the spindle
tool is clamped.
Trouble shooting: 1.The magazine is in the tool retraction position.
2. The spindle tool is released.
Alarm information:1256 The tool can’t return to the tool change position when the tool is clamped.
Reason: Z axis returns to the tool change position when the magazine is in the tool advance position
and the spindle tool is clamped.
Trouble shooting: 1. The magazine is in the tool retraction position.
2. The spindle tool is released.
Alarm information: 1257 The spindle doesn’t position, so the tool can’t return to the tool change
position.
Reason: Z axis returns to the tool change position when the magazine is in the tool advance position
and the spindle doesn’t position.
Trouble shooting: 1. The magazine is in the tool retraction position.
2. The spindle doesn’t position.
Alarm information: 1258 The tool can’t return to the tool change position due to the magazine
abnormal.
Reason: User-defined.
Trouble shooting:
203
Installation and Connection Manual of GSK218MC CNC System
Alarm information: 1259 The tool can’t be changed because T code tool number is abnormal.
Reason: Before executing M06 code, the wrong T code is executed. The wrong T code is: In the tool
list (D001-D099), there isn’t the tool number specified by T code or the number specified by T code is
repeated.)
Trouble shooting: After executing the correct T code, M06 code is executed.
Alarm information: 1260 The cycle start can’t be operated during the tool change in JOG mode.
Reason: The alarm occurs when K011.1=1 (the tool change is valid in JOG mode) and press “start”
button in AUTO, MDI or DNC mode.
Trouble shooting: Set K011.1 as 0.
Alarm information: 1261 The tool retraction can’t be operated in the origin.
Reason: The tool retraction in the magazine is executed when the magazine is in the tool advance
position and Z axis isn’t in the origin.
Trouble shooting: Z axis returns to the origin and then the tool is retracted.
Alarm information: 1263 M06 can’t be executed because the magazine hasn’t been used.
Reason: User-defined
Trouble shooting:
Alarm information: 1264 The abnormal occurs during switching the spindle position mode.
Reason: When M29 code is executed, the spindle position mode finish signal doesn’t receive in the
time set by T24.
Trouble shooting: Adjust the time set by T24 or check whether the spindle position mode finish signal
is output or not.
Alarm information: 1265 The abnormal occurs during switching spindle speed mode.
Reason: When M28 code is executed, the spindle speed mode finish signal doesn’t receive in the
time set by T28.
Trouble shooting: Adjust the time set by T28 or check whether the spindle speed mode finish signal is
output or not.
Alarm information: 1266 The gear change can’t be operated during the spindle revolving.
Reason:
Trouble shooting:
Alarm information: 1267 The magazine advance and retraction are detected abnormal.
Reason: The system detects the signal of the magazine advance in-position and the magazine
204
Appendix One The Usage Guide of the Ladder Diagram
Alarm information: 1268 The spindle tool releasing and clamping are detected abnormal.
Reason: The system detects the tool releasing and clamping signals at the same time.
Trouble shooting: Detect whether the signals of X2.5 and X2.6 are normal or not and the switch type
is correct or not.
Alarm information: 1269 The spindle orientation time sequence is detected abnormal.
Reason: Before executing the spindle orientation, the system has already detected the spindle
orientation finish signal.
Trouble shooting: Detect whether X5.0 signal is normal or not, and the switch type is right or not.
Alarm information: 1270 The tool change can’t be operated because Z axis doesn’t return to the
mechanical zero point.
Reason: After the system powers on or the emergency stop, M06 or M50 code is executed before Z
axis returns to the mechanical zero return.
Trouble shooting: Firstly execute Z axis zero return operation, and then the tool change.
Alarm information: 1271 The magazine stops revolving due to the abnormal.
Reason: 1. After the magazine sends the rotation command, the pulse signal isn’t detected in the
time set by T109, which is sent by the magazine counting switch (X5.3) .
2. During the magazine rotating, it exceeds the time set by T103 when the magazine
counting switch is 0 or 1.
Trouble shooting: 1. The output of the magazine CW or CCW rotation (Y3.0 and Y3.1) is abnormal.
2. The magazine counting switch is abnormal.
3. Reset the values of T109 and T103.
(About the detailed operation, please refer to Chapter Ⅲ: The usage method and maintenance of
GSK218MC CNC system with the turret magazine.)
Alarm information: 1273 The tool advance can’t be operated because the current tool number of the
toolpot is with a tool.
205
Installation and Connection Manual of GSK218MC CNC System
Reason: When the magazine is with the tool detection advice and K12.1 is 1, the spindle is with a tool,
while the system detects that the magazine is with a tool when the magazine advance is operated.
Trouble shooting: 1. Check whether the signal of X5.5 is normal or not.
2. Check whether the tool number of the magazine is complied with that of the
spindle, including the magazine returning to the tool retraction position, the
spindle is in the tool clamping state, whether the current tool case number is
complied with the current value of CTR100, whether the tool number of the
spindle is complied with the value of D245, and the spindle can’t load any tool if
the value of D245 is 0; otherwise, the magazine zero return is executed.
(About the detailed operation, please refer to Chapter Ⅲ: The usage method and maintenance of
GSK218MC CNC system with the turret magazine.)
Alarm information: 1274 The magazine can’t advance because the toolpot isn’t in-position.
Reason:
Trouble shooting:
Alarm information: 1288 The index worktable is released and detected abnormal.
Reason: When the worktable is executed the releasing movement (Y1.6=1), the worktable is
released in-position in the time set by T38 while the detection switch (X2.2) doesn’t operate.
Trouble shooting: 1. Check whether the switch is normal when the table is released in-position.
2. Check whether Y1.6 is output or not.
3. Adjust the time set by T38.
Alarm information: 1290 The index worktable doesn’t start the clamping device.
Reason: When the index worktable clamping device doesn’t start (K12.4=0), the index worktable
releasing or clamping command is executed.
Trouble shooting: After setting K12.4 as 1, the index worktable releasing or clamping command is
executed.
Alarm information: 1291 The index worktable can’t be rotated because it doesn’t release.
Reason: When the index worktable is released, the index worktable rotation is executed.
Trouble shooting: Firstly, the index worktable clamping is executed, and the worktable is rotated, or
the index worktable is adjusted into the debugging mode (k12.6 is set as 1), finally the rotation of the
index table is executed.
Alarm information: 1292 The index worktable can’t move because it doesn’t clamp.
Reason: When the index worktable is released, the feeding axis is executed the movement.
206
Appendix One The Usage Guide of the Ladder Diagram
Trouble shooting: Firstly, the index worktable clamping is executed, and the feeding axis is executed
movement, or the index worktable is adjusted into the debugging mode (K12.6 is set as 1), finally the
feeding axis is executed the movement.
Alarm information: 1293 The cycle start can’t be operated because the safety door is open.
Reason: When the safety door detection device is started (K8.3=1), the cycle start button is pressed
when the safety door is not closed (X4.5=0).
Trouble shooting: The cycle start is executed after the safety door is closed.
Alarm information: 1294 The index worktable can’t start because it doesn’t clamp.
Reason: When the index worktable is released, the cycle start button is pressed.
Trouble shooting: Firstly the index worktable is clamped, and then the cycle start is executed.
Alarm information: 1360 The lubrication pressure is low or the oil level is low.
Reason:
Trouble shooting: Detect the state of X001.7.
USER
INITIAL
ADDRESS NOTE SETTING
VALUE(ms)
VALUE (ms)
The time delay unit of the
T0001 500
spindle CW rotation finish
The time delay unit of the
T0002 500
spindle CCW rotation finish
The time delay unit of the
T0003 500
spindle gear change finish
The time delay unit of the
T0004 0
spindle orientation finish
The time delay unit of the
T0005 0
miscellaneous function finish
The spindle gear change time
T0006 500
delay unit
The time delay unit of the
T0007 0
spindle tool releasing finish
The time delay unit of the
T0008 0
spindle tool clamping finish
Setting the detection time
T0009 8000
of the spindle tool releasing
Setting the detection time
T0010 8000
of the spindle tool clamping
207
Installation and Connection Manual of GSK218MC CNC System
USER
INITIAL
ADDRESS NOTE SETTING
VALUE(ms)
VALUE (ms)
The time of the pulse
T0011 50
signal 1: one second
The time of the pulse
T0012 50
signal 2: one second
Setting the spindle
T0013 8000
positioning detection time
Setting the spindle
T0014 500
CW detection time
Setting the spindle
T0015 500
CCW detection time
Setting the lubricating
T0016 30
OFF time (unit:min)
Setting the lubricating
T0017 10
ON time (unit:sec)
Setting the spindle
T0018 2000
positioning delay detection time
T0019 The spindle inch time delay unit 500
The time delay unit of the
T0020 10
program restarting
The time delay unit
T0021 10000
of the spindle gearⅠ
The time delay unit
T0022 10000
of the spindle gear Ⅱ
The time delay unit
T0023 10000
of the spindle gear Ⅲ
The detection time of switching
T0024 between the spindle 10000
speed/position mode
M29 executing finish time
T0025 (it is valid without 4000
the detection signal)
The positioning finish time in the
T0026 spindle position mode (it is valid 2000
without the detection signal)
M28 executing the finish time
T0027 (It is valid without 2000
the detection signal.)
The detection time of
T0028 switching between the 10000
spindle speed/position mode
T0029 The spindle brake time 1000
T0030 Spindle gear 1: The delay 3000
208
Appendix One The Usage Guide of the Ladder Diagram
USER
INITIAL
ADDRESS NOTE SETTING
VALUE(ms)
VALUE (ms)
time of gear change without
the detection switch
Spindle gear 2: The delay time
T0031 of gear change without 3000
the detection switch
Spindle gear 3: The delay time
T0032 of gear change without 3000
the detection switch
Canceling the delay finish
T0033 time in the spindle gear control 3000
without the detection unit
T0034 M5 finish delay time 500
Disconnecting in the delay
T0035 time after the spindle 800
gear change finish
The delay time after the index
T0036 500
worktable releasing finish
The delay time after the index
T0037 500
worktable clamping finish
The delay time after the index
T0038 5000
worktable releasing detection
The delay time after the index
T0039 5000
worktable clamping detection
The delay time after the index
T0040 4000
worktable releasing finish
The delay time after the index
T0041 4000
worktable clamping finish
The turret magazine rotation
T0100 2000
delay time 1 in the JOG mode
The turret magazine rotation
T0101 2000
delay time 2 in the JOG mode
Setting the delay detection time
T0102 2000
of the turret magazine dwell
Setting the delay detection time
T0103 3000
of the turret magazine rotation
Setting the delay
T0104 detection time of the 5000
turret magazine tool advance
Setting the delay detection time
T0105 5000
of the turret magazine retraction
The time delay unit of the
T0106 0
turret magazine advance finish
209
Installation and Connection Manual of GSK218MC CNC System
USER
INITIAL
ADDRESS NOTE SETTING
VALUE(ms)
VALUE (ms)
The time delay unit of the turret
T0107 0
magazine tool retraction finish
Setting the delay detection time
T0108 3000
of the turret magazine rotation 2
Setting the time for compelling
T0109 to stop when the magazine 5000
rotation abnormal occurs
……
1. The setting value of D100 is less than 100, and the setting value is same as that of CTR100;
otherwise, the abnormal occurs.
For example: When D100=16, the data list D001-D016 are valid.
When D100=24, the data list D001-D024 are valid.
2. D000 only displays the spindle tool number, and the spindle tool number can’t be rewritten in D000,
and the spindle tool number should be rewritten in D245.
3. The value of D241 should be rewritten.
4. D240~D247 is only used by the system, so the customers can’t use the parameters as the
user-defined.
5. About the details, please refer to chapter Ⅲ.
210
Appendix One The Usage Guide of the Ladder Diagram
211
Installation and Connection Manual of GSK218MC CNC System
Magazine
212
Appendix One The Usage Guide of the Ladder Diagram
2).Output
213
Installation and Connection Manual of GSK218MC CNC System
214
Appendix One The Usage Guide of the Ladder Diagram
215
Installation and Connection Manual of GSK218MC CNC System
1. The above parameter (TMR) is related to the magazine type, about the magazine speed and other
performances, please refer to the magazine performance for properly setting the parameters.
2. When the above parameter (TMR) setting is not proper, the system alarms and the tool change can
not be executed normally.
The ladder diagram matches with the magazine after the above A-F steps are operated, but the
magazine cannot normally run, the magazine is executed CCW, CW, infeed and retraction in JOG
mode to check whether each operation of magazine is normal through the following chapter Ⅱ The
magazine manual and zero return operation.
216
Appendix One The Usage Guide of the Ladder Diagram
3. The spindle positioning angle and tool change coordinate position regulation
A. About the spindle positioning angle regulation, please refer to the manual of the spindle drive unit.
1. Input the system debugging password. Continuously press on MDI keypad to enter the
password interface; in MDI mode, input the system debugging password: 888888, and then press
key, “PASSWARD CORRECT” is shown on the left bottom corner on the screen.
2. Press “PROGRAM CONTROL” key on MDI keypad; on【 PLCPAR】interface, press 【KPAR】
softkey, the system enters the check and setting interface of the relay in keep type, press four
direction keys on the keypad and the cursor can position whether K010.7 magazine enters the
debugging mode. Press the numerical “1”, the enter key, and then , the data column reminds:
“KPAR download is done!”, which means saving is successful, and the magazine debugging mode
becomes valid (the advance and retraction of the magazine can be operated without any condition.).
Then, the system reminds: 1253 caution to operate the magazine debugging mode, and pressing
the reset key to cancel the alarm.
3. Prepare one knife handle to pull the pop-rivet.
4. In ZERO RETURN mode, Z axis zero return is executed.
5. In JOG mode, press “tool advance” key, the magazine is in the advance position.
6. Load the knife handle without the pop-rivet on the magazine and adjust it.
7. In MPG mode, Z axis can be moved upward and downward, which should be caution to operate.
Then, the motor rotor or the spindle connecting the motor rotor is directly twisted for one more circle,
217
Installation and Connection Manual of GSK218MC CNC System
and the spindle position is adjusted in JOG mode until the key on the spindle key enters the magazine
slot. (About the spindle positioning angle regulation, please refer to the manual of the spindle drive
unit.)
1. According to the above method, after the orientation regulation completes, the spindle orientation
is executed in the JOG mode, and then the tool releasing movement is operated, the pop-rivet of the
knife handle is installed (the magazine is still in the tool advance position.). In MPG mode, Z axis can
be moved upward or downward to adjust the tool change coordinate position (Please make sure the
tool is released.), and record the machine coordinate of Z axis (such as -120.000).
2. Firstly execute the tool clamping movement, and then press “tool retraction” key on the keypad,
and the magazine returns to the tool retraction position. (Please make sure the tool is clamped.)
3. In MDI mode, set K010.7 to 0 as the above method.
4.The previously recorded Z axis machine coordinate is set in the data parameter 0052, and the
parameter should be set correctly; otherwise, the accident may happen to cause the mechanical
damage.
Through the operation of the three steps, the correct tool change can be executed, the operation of T
code and M code is operated as below:
TxxM6; and Txx;M6; The executed effect is same.
T0M6; The tool on the spindle is returned to the magazine.
WARNING: When the spindle tool number is 0, the spindle can’t be with any tools; otherwise, the
accident may happen during tool change and causes the mechanical damage!
3. There are 25 display states in Monitor mode, and select the state to look by pressing .
Find (The motor coded disc is the positioning disc, and the spindle coded disc is taken
218
Appendix One The Usage Guide of the Ladder Diagram
(spindle) rotor can position on the positioning point. After the operation, the absolute position of the
is displayed on the monitor window, the numerical value “213” is input into the
parameter PA58.)
4. The right method of handling the emergency stop, power off, resetting and alarm during the
magazine running
1.In MDI mode, the tool change is commanded, or it is operated in Auto mode. When the magazine is
in the advance limit position, the spindle comes downward the tool hold position. After clamping the
tool, if the emergency stop, power off, alarm or resetting occurs when the magazine is going to retract,
press “tool retraction” on the system to exit the magazine in JOG mode, then the tool takes off the
current magazine chuck, the machine can be used.(Points for attention: If the spindle is released, Z
axis is lifted and the magazine is exited, the magazine corresponding to the current spindle is loaded
the tool, then hitting tool may happen during the tool change in the next time.)
2. In MDI mode, the tool change is commanded, or it is operated in Auto mode. When the magazine
is in the advance limit position, the spindle has already released the tool. If the emergency stop,
power off, alarm or resetting occurs, Z axis is going to be lifted, or the toolpot doesn’t rotate after Z
axis is lifted, press ”tool release” button on the spindle in JOG mode, and then the tool is released, Z
axis is lifted to reach the safe position in JOG or MPG mode, press “tool retraction” key on the system
to exit the magazine, the operation can be executed normally. (Remark: The magazine chuck
corresponding to the current spindle is loaded the tool, if the spindle is without the tool, the system
should display “T0000”. )
3.In MDI mode, the tool change is commanded, or it is operated in Auto mode. When the magazine is
in the advance limit position, Z axis is lifted to the 1st reference position. When the tool is rotating, the
current tool number may not comply with the actual one if the emergency stop, power off, alarm or
resetting occurs, and the system alarms: “1218 The magazine stops and confirm the tool number
again due to the abnormal.” Or “1244 To guarantee the magazine safety, the tool change stops
due to the abnormal” , etc. If the operation continues, press “tool retraction” key on the system to exit
the magazine in JOG mode, after the magazine returns zero, again and the spindle tool number and
the magazine tool number can be reset, the operation can be executed normally. (About the details,
please refer to: Chapter Ⅲ: The usage method and maintenance of GSK218MC CNC system with
the turret magazine.)
219
Installation and Connection Manual of GSK218MC CNC System
4. Note of GSK218MC CNC System with the Turret Magazine Macro Program
O91001; (Program name)
G65 H81 P50 Q#1003 R1; (Miscellaneous lock machine lock transfer to N50 when
spindle tool number=T code program end )
M50; (The tool change begins, and detect whether the condition of
tool change is satisfied or not; otherwise, the system alarms)
G69 G50 G15 G80 G40; (Canceling the relative modes)
G65 H81 P20 Q#1000 R1; (The spindle tool NO.=0 that is to say, the spindle doesn’t load
the tool, transfer to N20 and the tool return code isn’t
executed)
M19 G91 G49 G30 Z0; (Spindle positioning, return to the tool change coordinate point)
M21; (Tool return->magazine rotation magazine advance spindle
releasing tool)
N20 M19 G91 G49 G28 Z0; (Return to the mechanical origin)
G65 H81 P30 Q#1002 R1; (T code tool number=0, transfer to N30 and the tool searching
code isn’t executed)
M22; (Tool searching->tool rotation tool advance spindle tool
releasing)
G91 G49 G30 Z0; (Return to the tool change coordinate point)
N30 M17; (The spindle clamping tool)
M24; (The magazine retraction)
M51; (The tool change end)
N50 M99; (Program end)
%
220
Appendix Two The Usage Guide
1) During the tool change, every operation must be confirmed and then the next operation can
be executed.
2) Before the magazine positioning sensor confirming, the tool advance can’t be operated.
3) During the tool advance and before completing, the magazine motor can’t be started and the
toolpot can’t be rotated.
4) Before confirming the tool advance, the tool change can’t be operated.
5) Before the machine spindle reaches the tool change position, the tool change can’t be
operated.
6) Before the spindle positioning completes, the tool change can’t be operated.
7) The spindle head can’t be moved before the tool change completes and the tool arm returns
to the origin.
8) When the motor voltage is too high, the overload relay should trip firstly to avoid the motor
burnt.
9) The tool change is firstly executed in JOG mode, and then confirm the operations are correct,
such as the toolcase advance, the tool change by the mechanical part and the spindle
clamping and releasing the tool, finally the operation is controlled by CNC in sequence.
10) During debugging, only the input and output signals (X and Y addresses) in the ladder
diagram program can be rewritten, then the debugging requirements can be completed.
However, to avoid the accident, it’s better not to rewrite the other addresses if the operator
can’t guarantee the safety.
221
Installation and Connection Manual of GSK218MC CNC System
2. The Allocation and Definition of PMC, I/O Address and the Internal
222
Appendix Two The Usage Guide
223
Installation and Connection Manual of GSK218MC CNC System
224
Appendix Two The Usage Guide
225
Installation and Connection Manual of GSK218MC CNC System
USER
STATE
ADDRESS DEFINITION STATE 1 SETTING
0
VALUE
Whether allow to rewrite PLC
K000.0 NO YES
parameters
K000.1 Whether allow to debug PLC signals NO YES
Whether clear all Y signals when
K000.2 NO YES
PLC enters the debugging mode
226
Appendix Two The Usage Guide
USER
STATE
ADDRESS DEFINITION STATE 1 SETTING
0
VALUE
Whether allow to edit
K000.3 NO YES
A address information
Whether allow to edit
K000.4 NO YES
K address information
Whether allow to edit
K000.5 NO YES
X address information
Whether allow to edit
K000.6 NO YES
Y address information
Whether allow to operate
K000.7 NO YES
the command list
K001.0 Whether allow to use the magazine NO YES
Whether automatically download
K001.1 NO YES
during switching the ladder diagram
Selecting the spindle
K001.2 +24v valid 0v valid
interface input signal level
K002.0 Whether use the 4th axis NO YES
Whether use the gear control
K004.0 NO YES
(I/O point) for spindle
Whether only one axis is controlled
K004.1 Many axes One axis
in the reference point in JOG mode
Whether the machine
K005.0 NO YES
is with the external MPG
Whether the machine
K005.1 NO YES
is with the external cycle start
Whether the system
K005.2 NO YES
enters the debugging mode
K006.0 X axis limit switch selection 2 switches 1 switch
K006.1 Y axis limit switch selection 2 switches 1 switch
K006.2 Z axis limit switch selection 2 switches 1 switch
th
K006.3 The 4 axis limit switch selection 2 switches 1 switch
Whether X axis zero return
K006.4 NO YES
switch is normally open type
Whether Y axis zero return
K006.5 NO YES
switch is normally open type
Whether Z axis zero return
K006.6 NO YES
switch is normally open type
Whether the 4th axis zero return
K006.7 NO YES
switch is normally open type
Whether cancel
K007.4 NO YES
the 4th hardware limit
K007.5 Whether cancel NO YES
227
Installation and Connection Manual of GSK218MC CNC System
USER
STATE
ADDRESS DEFINITION STATE 1 SETTING
0
VALUE
the external emergency stop
Whether the spindle output
K007.6 NO YES
+10V~-10V analog voltage
Whether use
K007.7 NO YES
the spindle position mode
Normally
Whether the spindle positioning
K008.0 NC type open
detection is normally open type
type
Whether the tool clamping or
External Panel
K008.1 releasing is controlled by the panel
button button
button
Whether use the tool
K008.2 YES NO
clamping/releasing device
Whether the spindle
K008.4 NO YES
is with the gear change device
The spindle speed (speed Normally
K008.5 mode)/position(position mode) NC type open
reaching detection switch is NC type type
In the spindle speed mode, whether
K008.6 the detection switch is ON. (It’s OFF ON OFF
in the position mode.)
Whether there is a detection signal
K008.7 during switching between the YES NO
spindle position/speed mode
Whether there is a detection signal
K009.0 YES NO
for the spindle position reaching
Whether detect the lubrication
K009.1 NO YES
pressure or oil level
K009.2 Whether detect the air pressure NO YES
Whether there is a detection switch
K009.3
during detecting the spindle gear
Whether detect the magazine
K009.4 NO YES
rotation motor overload
Whether detect the manipulator
K009.5 NO YES
arm motor overload
Whether detect
K009.6 NO YES
the cooling motor overload
Whether the magazine is
K010.1 NO YES
with the zero return switch
Selecting the magazine Normally
K010.2 NC type
zero return switch contact open type
K010.3 Selecting the magazine tool Normally NC type
228
Appendix Two The Usage Guide
USER
STATE
ADDRESS DEFINITION STATE 1 SETTING
0
VALUE
advance detection switch contact open type
Selecting the magazine tool Normally
K010.4 NC type
retraction detection switch contact open type
Whether setting the magazine origin
K010.6 Invalid Valid
in JOG mode is valid or not
Whether the magazine
K010.7 NO YES
enters the debugging mode
Whether remind the spindle tool
K011.0 number during clamping or YES NO
releasing the tool in JOG mode
Whether allow to return to the tool
K011.1 NO YES
change position in JOG mode
Whether cut off and output
K011.4 NO YES
after the spindle positioning finish
Whether output CW rotation
K011.5 NO YES
signal during the spindle positioning
Whether the manipulator Normally
K012.0 NC type
braking signal is NC type open type
Whether the manipulator Normally
K012.1 NC type
tool hold signal is NC type open type
Whether the manipulator Normally
K012.2 NC type
zero signal is NC type open type
Whether the toolpot
K012.3 NO YES
detection switch is NC type
Whether use the index worktable
K012.4 NO YES
clamping or releasing device
Whether the index worktable
K012.5 NO YES
automatically clamps or releases
Whether the index worktable
K012.6 NO YES
enters the working mode
Whether the manipulator
K012.7 NO YES
enters the debugging mode
Whether X axis uses
K013.4 YES NO
the zero return switch
Whether Y axis uses
K013.5 YES NO
the zero return switch
Whether Z axis uses
K013.6 YES NO
the zero return switch
Whether the 4th axis
K013.7 YES NO
uses the zero return switch
K015.0 Whether it is the operation panel B NO YES
K015.6 Whether the keypad combined NO YES
229
Installation and Connection Manual of GSK218MC CNC System
USER
STATE
ADDRESS DEFINITION STATE 1 SETTING
0
VALUE
magazine control button is valid or
not
Whether the external magazine
K015.7 NO YES
control button is valid or not
230
Appendix Two The Usage Guide
231
Installation and Connection Manual of GSK218MC CNC System
232
Appendix Two The Usage Guide
233
Installation and Connection Manual of GSK218MC CNC System
234
Appendix Two The Usage Guide
Alarm information: 1205 The pressure oil pump motor is detected abnormal.
Reason: User-defined
Trouble shooting:
235
Installation and Connection Manual of GSK218MC CNC System
Alarm information: 1208 The machine control box temperature is detected abnormal.
Reason: User-defined
Trouble shooting:
Alarm information: 1214 The spindle revolution can’t be operated due to the gear abnormal.
Reason: When the spindle is executing the revolving codes, the spindle gear is detected abnormal.
Trouble shooting: When the spindle is in gearⅠ(Y3.4=1), the gearⅠin-position detection switch
(X004.1) is OFF in the time set by T0021, adjust the time of T0021 or check whether X004.1 is ON or
not; When the spindle is in gear Ⅱ (Y3.5=1), the gearⅡin-position detection switch (X004.2) is OFF
in the time set by T0022, adjust the time of T0022 or check whether X004.2 is ON or not; When the
spindle is in gear Ⅲ (Y3.6=1), the gear Ⅲ in-position detection switch (X004.3) is OFF in the time set
by T0023, adjust the time of T0023 or check whether X004.3 is ON or not.
236
Appendix Two The Usage Guide
Alarm information: 1216 The spindle can’t be rotated in the tool releasing state.
Reason: The spindle rotation codes are executed when the tool is released. For example: spindle CW,
CCW rotation, inch or positioning is executed in JOG mode or M03,M04 or M19 is executed in AUTO
mode, which causes the spindle rotation.
Trouble shooting: In JOG mode, press “clamp/release” button to make the tool clamped (Y0.2=10) ,
and detect whether the tool clamping detection switch (X2.6) is 1 or not; when the state is 1, the
system doesn’t alarm during the spindle rotating.
Alarm information: 1217 The tool can’t be released during the spindle rotating.
Reason: When the spindle is rotating, the code of tool releasing is executed.
Trouble shooting: The alarm can be avoided when the tool releasing code is executed during the
spindle stopping.
Alarm information: 1218 The magazine stops due to the abnormal and then the tool number should
be confirmed again.
Reason: Txx code is executed during the magazine rotating, the system alarms; or “reset” key is
pressed, the alarm occurs.
Trouble shooting: 1. The magazine zero return can be operated, again.
2. Reset the spindle tool number and the magazine tool number.
(About the details, refer to chapter Ⅲ: The usage method and maintenance of GSK218MC CNC
system with the disc magazine.)
Alarm information: 1219 The spindle rotation can’t be operated because the manipulator isn’t in the
origin.
Reason: The spindle revolution is executed while the manipulator isn’t in the origin.
Trouble shooting: 1. The manipulator returns to the origin. (whether the manipulator is in the origin or
not is detected by the state of X3.4.)
2. The diagnosis can be conveniently operated when the abnormal occurs during the manipulator
running. The manipulator can operate positioning in the mechanical zero position; when the
manipulator isn’t in the origin, the mechanical zero return should be operated before positioning.
(About the details, refer to chapter Ⅲ: The usage method and maintenance of GSK218MC CNC
system with the disc magazine.)
237
Installation and Connection Manual of GSK218MC CNC System
238
Appendix Two The Usage Guide
ON or not; When the spindle is in gear Ⅱ (Y3.5=1), the gearⅡin-position detection switch (X004.2) is
still OFF in the time set by T0022, adjust the time of T0022 or check whether X004.2 is ON or not;
When the spindle is in gear Ⅲ (Y3.6=1), the gear Ⅲ in-position detection switch (X004.3) is still OFF
in the time set by T0023, adjust the time of T0023 or check whether X004.3 is ON or not;
Alarm information: 1227 The cycle start can’t be operated because the manipulator isn’t in the
origin.
Reason: When the manipulator isn’t in the origin, pressing “start” button in Auto, MDI or DNC mode
causes the alarm.
Trouble shooting: The manipulator returns to the origin.
Alarm information: 1228 The cycle start can’t be operated because the toolcase is in the vertical
position.
Reason: When the toolcase is in the vertical position, pressing “start” button in Auto, MDI or DNC
mode causes the alarm.
Trouble shooting: The toolcase is returned to the level position.
Alarm information: 1229 M06 code should be executed after the mechanical zero return.
Reason: Without executing the mechanical zero return, M06 or M50 code is executed.
Trouble shooting: The mechanical zero return should be executed, firstly.
Alarm information: 1230 The tool change can’t be operated during the spindle tool releasing.
Reason: When the spindle is released (Y0.2=1), M06 or M50 code is executed.
Trouble shooting: The spindle tool is clamped (Y2.0=0).
Alarm information: 1231 The tool change can’t be operated because the toolcase isn’t in the level
position.
Reason: When the toolcase isn’t in the level position, M06 or M50 code is executed.
Trouble shooting: The toolcase is returned to the level position.
239
Installation and Connection Manual of GSK218MC CNC System
Alarm information: 1237 Zero return should be operated because the magazine origin is lost.
Reason: During the magazine zero return, it stops and the alarm occurs due to the abnormal.
Trouble shooting: The magazine is returned to the zero position, again.
(About the details, refer to chapter Ⅲ: The usage method and maintenance of GSK218MC CNC
system with the disc magazine.)
Alarm information: 1238 The toolcase level and vertical positions are detected abnormal.
Reason: The toolcase is neither in the level position nor in the vertical.
Trouble shooting: Detect whether the detection signals of X5.1 and X5.2 are normal or not.
Alarm information: 1239 The spindle can’t be rotated because the toolcase isn’t in the level position.
Reason: The spindle rotation is executed when the toolcase isn’t in the level position.
Trouble shooting: The toolcase is returned to the level position, which can be detected by the stated
of X5.2, and then the spindle rotation is executed.
Alarm information: 1240 Zero return should be operated, again, due to the magazine abnormal.
Reason: 1. The magazine stops rotating in the time set by T102, and the pulse signal occurs because
240
Appendix Two The Usage Guide
Alarm information: 1244 To guarantee the magazine safety, the tool change stops due to the
abnormal.
Reason: When the tool change is executed automatically in the magazine, the tool change stops due
to the abnormal or the manipulator isn’t in the origin during starting the system, which causes the
alarm. The alarm only reminds the operator that the tool number of the magazine and that of the
241
Installation and Connection Manual of GSK218MC CNC System
spindle may be in disorder, even clearing the alarm doesn’t mean the magazine is normal, so the tool
numbers of the magazine and the spindle should be reset.
(About the details, refer to chapter Ⅲ: The usage method and maintenance of GSK218MC CNC
system with the disc magazine.)
Trouble shooting: Readjust the magazine and confirm whether the tool number of the magazine is
complied with that of the spindle, including whether the manipulator is in the origin, the toolcase
returns to the level position, the spindle is clamped or not, whether the current toolcase number
complies with the current value of CTR100, whether the tool number of the spindle complies with the
value of D245.
Alarm information: 1245 There isn’t the tool number code in the tool list or the tool number code is
repeated.
Reason: The tool number isn’t specified by T code in the tool list (D000-D099) or the tool code
specified by T code is repeated in the tool list.
Trouble shooting: The tool number value is rewritten in the tool list.
Alarm information: 1246 The spindle tool releasing or clamping is detected abnormal.
Reason: The spindle tool is neither in the releasing position nor the clamping position.
Trouble shooting: Detect whether X2.5 and X2.6 is normal or not.
Alarm information: 1247 The spindle orientation time sequence is detected abnormal.
Reason: Before the spindle orientation, the finish signal is done.
Trouble shooting: Check whether the signal of X5.0 is normal or not.
Alarm information: 1248 Executing T code tool number condition is not satisfied.
Reason: Before the 1 T code tool number isn’t completed, the 2nd T code is executed.
st
Trouble shooting: After completing to execute the 1st T code tool number, the 2nd T code is executed.
Alarm information: 1249 The tool advance can’t be operated because the spindle is with a tool.
Reason: When Z axis is in the origin and the spindle is with a tool (D245 is not 0), the tool advance in
the magazine is executed.
Trouble shooting: Unload the spindle tool ,and set D245 as 0.
Alarm information: 1250 The tool advance can’t be operated because the tool number of the spindle
is different with the current one of the magazine.
Reason: The tool advance in the magazine is executed when Z axis is in the tool change position and
the tool number of the spindle is different with that of the current toolcase in the magazine.
242
Appendix Two The Usage Guide
Trouble shooting: Rotating the magazine to make the tool number of the current toolcase in the
magazine same as that of the spindle.
Alarm information: 1252 Z axis can’t be moved during the tool clamping.
Reason: Z axis traverse is executed when the manipulator is in the tool hold and the tool is clamped.
Trouble shooting: 1. The manipulator is in the origin.
2. The spindle tool is released.
Alarm information: 1254 Cycle start can’t be executed in the magazine debugging mode.
Reason: Set K010.7 as 1, pressing “start” button in Auto, MDI or DNC mode causes the alarm.
Trouble shooting: Set K010.7 as 0.
Alarm information: 1255 The origin can’t be returned during the tool clamping.
Reason: Z axis is returned to the origin when the magazine is in the tool advance position and the
spindle tool is clamped.
Trouble shooting: 1. The magazine is in the tool retraction position.
2. The spindle tool is released.
Alarm information: 1256 The tool can’t be returned to the tool change when the tool is clamped.
Reason: Z axis is returned to the tool change position when the magazine is in the tool advance
position and the spindle tool is in the clamping state.
Trouble shooting: 1. The magazine is in the tool retraction position.
2. The spindle tool is released.
243
Installation and Connection Manual of GSK218MC CNC System
Alarm information: 1257 The tool change position can’t be returned because the spindle doesn’t
position.
Reason: Z axis returns to the tool change position when the magazine is in the tool advance position
and the spindle doesn’t position.
Trouble shooting: 1. The magazine is in the tool retraction position.
2. The spindle is positioned.
Alarm information: 1258 The tool change position can’t be returned due to the magazine abnormal.
Reason: User-defined
Trouble shooting:
Alarm information: 1259 The tool change can’t be operated due to T code tool number abnormal.
Reason: The wrong T code is executed before executing M06 code. (The wrong T codes are: The
tool numbers not specified by T code exist in the tool list (D001-D099) or the tool number specified by
T code is repeated.)
Trouble shooting: After executing the correct T codes, M06 code is executed.
Alarm information: 1260 Cycle start can’t be operated during returning tool change position in JOG
mode.
Reason: When K011.1=1 (Returning tool change position is valid in JOG mode), pressing “start”
button in AUTO, MDI or DNC mode causes the alarm.
Trouble shooting: Set K011.1 as 0.
Alarm information: 1261 The tool retraction can’t be operated because Z axis isn’t in the origin.
Reason: The magazine tool retraction is executed when the magazine is in the tool advance position
and Z axis isn’t in the origin.
Trouble shooting: After Z axis is returned to the origin, the tool retraction is operated.
244
Appendix Two The Usage Guide
released completely, so caution to operate; Otherwise, the abnormal may damage the
mechanical part.
Trouble shooting: Setting K012.7 as 0 to exit the manipulator debugging mode.
Alarm information: 1264 Switching into the spindle position mode is abnormal.
Reason: During executing M29 code, the spindle position mode finish signal isn’t received in the time
set by T24.
Trouble shooting: Adjust the time set by T24 or check whether the spindle position mode finish signal
is output or not.
Alarm information: 1266 The gear change can’t be operated during the spindle rotating.
Reason:
Trouble shooting:
Alarm information: 1267 The manipulator can’t be operated when the toolcase isn’t vertical.
Reason: The manipulator movement is executed when the toolcase is vertical.
Trouble shooting: The toolcase should be executed the vertical movement firstly.
Alarm information: 1268 The manipulator can’t be operated because it isn’t in the origin.
Reason: The manipulator is operated when it isn’t in the origin.
Trouble shooting: Set K12.7 as 1, that is to say, the manipulator enters the debugging mode, and the
manipulator is returned to the origin in JOG mode.
Alarm information: 1269 The manipulator operation stops due to the abnormal.
Reason: Emergency stop is pressed during the manipulator running, and the manipulator operation
stops by resetting due to the abnormal.
Trouble shooting: Set K10.7 as 1, that is to say, the magazine enters the debugging mode, and the
manipulator is returned to the origin in JOG mode.
Alarm information: 1271 The manipulator can’t be operated because the spindle doesn’t orientate.
Reason: The manipulator operation is executed before the spindle orientating.
245
Installation and Connection Manual of GSK218MC CNC System
Alarm information: 1272 The manipulator can’t be operated when the spindle tool isn’t released.
Reason: When the spindle doesn’t release the tool, the manipulator is fallen downward for rotating
180°.
Trouble shooting: Check whether the output of Y0.2 is normal or not; check whether the input of X2.5
is normal or not.
Alarm information: 1273 The manipulator can’t be operated when the spindle tool isn’t clamped.
Reason: When the spindle doesn’t clamp the tool, the manipulator tool hold is executed or
the manipulator is returned to the origin.
Trouble shooting: Check whether the output of Y0.2 is normal or not; Check whether the input of X2.6
is normal or not.
Alarm information: 1274 The tool advance can’t be operated because the manipulator isn’t in the
origin.
Reason: The tool post retraction is executed because the manipulator isn’t in the origin.
Trouble shooting: The manipulator is returned to the origin.
Alarm information: 1275 The tool retraction can’t be operated because the manipulator isn’t in the
origin.
Reason: The tool post retraction is executed when the manipulator isn’t in the origin.
Trouble shooting: The manipulator is returned to the origin.
Alarm information: 1276 The manipulator can’t be rotated because it isn’t in the origin.
Reason: The toolpot rotation movement is executed when the manipulator isn’t in the origin.
Trouble shooting: The manipulator is returned to the origin.
Alarm information: 1277 The toolpot can’t be rotated because the tool case isn’t in the level position.
Reason: The toolpot rotation movement is executed when the toolcase isn’t in the level position.
Trouble shooting: The toolcase is returned to the level position; Check whether the input of X5.2 is
normal or not.
Alarm information: 1278 The manipulator can’t be operated when Z axis doesn’t return to the 2nd
reference position.
Reason: The manipulator is executed while Z axis hasn’t returned to the 2nd reference position.
Trouble shooting: 1. G30 G91 Z0 is executed to return to the 2nd reference position;
2. When the manipulator isn’t in the origin and returning to the 2nd reference position by G30 G91 Z0
in AUTO mode isn’t allowed to be executed, the 2nd reference position can be returned in JOG mode.
Firstly, Z axis is returned to the mechanical zero position in ZERO RETURN mode, and set K11.1 as 1
(returning to the tool change position in JOG mode), pressing “USER2” key to execute returning to
the 2nd reference position in JOG mode.
246
Appendix Two The Usage Guide
or X3.4 signal isn’t received in the time set by T110 after the system commands the manipulator to be
returned to the origin.
Trouble shooting: 1. The manipulator is returned to the origin in the debugging mode.
2. Adjust the time set by T110.
Alarm information: 1280 Compel to stop the magazine rotating due to the abnormal.
Reason: 1. After the magazine sending the rotation command, the pulse signal sent by the magazine
counting switch (X5.3,X5.4) isn’t received in the time set by T108.
2. During the magazine rotating, the system detects that the magazine counting switch state is 0 or 1,
which exceeds the time set by T103.
Trouble shooting: 1. The output (Y3.0 and Y3.1) of the magazine CW or CCW rotation is abnormal.
2. The magazine counting switch is abnormal.
3. Reset the values of T108 and T103.
(About the details, refer to chapter Ⅲ: The usage method and maintenance of GSK218MC CNC
system with the disc magazine.)
Alarm information: 1290 The index worktable clamping device doesn’t start.
Reason: When the index worktable clamping device doesn’t start (K12.4=0), the index worktable
releasing or clamping command is executed.
Trouble shooting: Firstly set K12.4 as 1, the index worktable releasing or the clamping command is
executed.
Alarm information: 1291 The index worktable can’t be rotated because it isn’t released.
Reason: When the index worktable is released, the index worktable rotation movement is executed.
Trouble shooting: Firstly, the index worktable clamping movement is executed, and the index
worktable rotation movement is operated; or the index worktable is adjusted into the debugging mode
(K12.6 is set as 1), and then the index worktable rotation movement is executed.
Alarm information: 1292 The index worktable can’t be moved because it isn’t clamped.
Reason: When the index worktable is released, the feeding axis is executed the movement.
247
Installation and Connection Manual of GSK218MC CNC System
Trouble shooting: After executing the index worktable clamping, and then the feeding axis is executed
the movement; Or the index worktable is adjusted to the debugging mode (K12.6 is set as 1), and
feeding axis movement is operated.
Alarm information: 1293 Cycle start can’t be operated because the safety door isn’t closed.
Reason: The cycle start button is pressed when the safety door detection switch (K8.3=1) is started
and the safety door isn’t closed (X4.5=0).
Trouble shooting: Executing cycle start is after closing the safety door.
Alarm information: 1294 Cycle start can’t be executed because the index worktable isn’t clamped.
Reason: The cycle start button is pressed when the index worktable is released.
Trouble shooting: Cycle start is executed after executing the index worktable clamping.
Alarm information: 1360 The lubrication pressure low or the oil level low.
Reason:
Trouble shooting: Detect the state of X001.7.
Points for attention: About “user-defined” reason, this kind of alarms aren’t designed in the ladder
diagram in which the user should rewrite the ladder diagram to add.
NOTE USER
INITIAL
ADDRESS SETTING
VALUE (ms)
VALUE
The time delay unit of the
T0001 500
spindle CW rotation finish
The time delay unit of the
T0002 500
spindle CCW rotation finish
The time delay unit of the
T0003 500
spindle gear change finish
The time delay unit of the
T0004 0
spindle positioning finish
The time delay unit of the
T0005 0
miscellaneous function finish
The time delay unit of
T0006 500
the spindle gear change
The time delay unit of the
T0007 0
spindle tool releasing finish
The time delay unit of the
T0008 0
spindle tool clamping finish
Setting the detection time
T0009 8000
of the spindle tool releasing
Setting the detection time
T0010 8000
of the spindle tool clamping
T0011 M code miscellaneous 50
248
Appendix Two The Usage Guide
NOTE USER
INITIAL
ADDRESS SETTING
VALUE (ms)
VALUE
function time delay finish
Time delay of T code
T0012 50
miscellaneous function finish
Setting the detection time
T0013 8000
of the spindle positioning
Setting the detection time
T0014 500
of the spindle CW rotation
Setting the detection time
T0015 500
of the spindle CCW rotation
Setting the time of
T0016 30
lubrication OFF (Unit: min)
Setting the time of
T0017 10
lubrication ON (Unit: sec)
Setting the detection time
T0018 2000
delay for the spindle positioning
T0019 The spindle inch time delay unit 2000
The program restarting
T0020 10
time delay unit
The time delay detector
T0021 10000
of the spindle gear Ⅰ
The time delay detector
T0022 10000
of the spindle gear Ⅱ
The time delay detector
T0023 10000
of the spindle gear Ⅲ
The detection time of
T0024 switching between the 10000
spindle speed/position mode
Time of completing executing
T0025 M29 (valid without the 4000
detection signal)
Time of completing
positioning in the spindle
T0026 1500
position mode (valid without
the detection signal)
The time of completing
T0027 executing M28 (valid without 2000
the detection signal)
The detection time of
T0028 switching between the 10000
spindle position/speed mode
T0029 The spindle brake time 5000
T0030 The spindle gear 1--the delay 2000
249
Installation and Connection Manual of GSK218MC CNC System
NOTE USER
INITIAL
ADDRESS SETTING
VALUE (ms)
VALUE
time of gear change without the
detection switch
The spindle gear 2—The delay
T0031 time of gear change without the 2000
detection switch
The spindle gear 3—The delay
T0032 time of gear change without the 2000
detection switch
When the spindle gear is
in-position without the detection
T0033 switch, cancel the delay time of 2000
completing gear change
in-position.
T0034 The delay time of M5 finish 500
The delay time of the index
T0036 500
worktable releasing
The delay time of the index
T0037 500
worktable clamping
The delay time of the index
T0038 5000
worktable releasing
The detection delay time of the
T0039 5000
index worktable clamping
The delay time of the index
T0040 4000
worktable releasing finish
The delay time of the index
T0041 4000
worktable clamping finish
The delay time 1 of the
T0100 2000
magazine rotating in JOG mode
The delay time 2 of the
T0101 2000
magazine rotating in JOG mode
Setting the detection delay time
T0102 2000
of the magazine stopping
Setting the detection delay time
T0103 3000
1 of the magazine rotation
Setting the detection delay time
T0104 5000
of the toolcase vertical
Setting the detection delay time
T0105 5000
of the toolcase level
The time delay unit of the
T0106 0
toolcase vertical finish
The time delay unit of the
T0107 0
toolcase level finish
250
Appendix Two The Usage Guide
NOTE USER
INITIAL
ADDRESS SETTING
VALUE (ms)
VALUE
Setting the detection delay time
T0108 3000
2 of the magazine rotation
Setting the time of compelling
T0109 to stop the magazine rotation 5000
due to the abnormal
The detection delay time
T0110 of the manipulator tool 2000
hold and origin return
The detection delay time
T0111 of the manipulator falling 4000
downward for tool change
251
Installation and Connection Manual of GSK218MC CNC System
PRESET
ADDRESS CURRENT VALUE FUNCTION
VALUE
C50 3 The current steps of the The manipulator
manipulator operation operation counting in
JOG mode
C100 24 The current tool case number The magazine counter
(24TOOL)
Points for attention:
1.Setting value of CTR100 must be less than 100, and its setting value is same as that of D100;
otherwise, the abnormal occurs.
For example: CTR100=16, the tool case number of the magazine is 16.
CTR100=24, the tool case number of the magazine is 24.
252
Appendix Two The Usage Guide
253
Installation and Connection Manual of GSK218MC CNC System
Magazine
1).Input
PIN SIGNAL
ADDRESS INTRODUCTION
POSITION INTERFACE REMARK
XS41 X002.4 The external Optional
17 clamping/releasing
tool control
XS41 X002.5 The tool releasing Normally open contact
5
detection
18 XS41 X002.6 The tool clamping Normally open contact
254
Appendix Two The Usage Guide
detection
XS41 X003.2 The manipulator Normally open
9
brake signal or NC
XS41 X003.3 The manipulator Normally open
22 tool hold detection or NC
signal
XS41 X003.4 The manipulator Normally open
24 zero position or NC
detection signal
XS42 X005.1 The tool case Normally open
21
vertical detection or NC
XS42 X005.2 The tool case level Normally open
9
detection or NC
XS42 X005.3 The magazine Normally open contact
22 counting (normal
0)
XS42 X005.4 The magazine Normally open contact
CW/CCW
24
in-position (normal
1)
XS42 X005.5 The toolpot zero Optional
12 return in-position
detection
XS23 X007.1 The spindle Normally open
21 orientation or NC
in-position
2).Output
PIN SIGNAL SYMBOL
INTRODUCTION
POSITION INTERFACE NO.
2 XS43 Y000.2 The tool releasing/clamping
5 XS44 Y002.5 The manipulator running
8 XS44 Y003.0 The magazine CW rotation
21 XS44 Y003.1 The magazine CCW rotation
9 XS44 Y003.2 The toolcase vertical
22 XS44 Y003.3 The toolcase level
11 XS23 Y006.3 The spindle orientation
255
Installation and Connection Manual of GSK218MC CNC System
For example: The magazine is without the zero return switch, each detection switch is normally open
type, the parameters should be set as:
K010.1=0 K010.2=0 K010.3=0 K010.4=0 K010.5=0
256
Appendix Two The Usage Guide
257
Installation and Connection Manual of GSK218MC CNC System
1. Because the magazine type is the disc, the following bit parameters should be set:
Bit parameter 53.0=0. Bit parameter 53.1=0, Bit parameter 53.2=0, Bit parameter 53.3=0.
2. KAPA parameter of PMC K001.0 is set as 1.
258
Appendix Two The Usage Guide
1. The magazine debugging PMC parameter can be set for the magazine holding tool chuck, the
spindle concentric degree and Z axis tool hold position. When K012.7 is set as 1, the condition
limit of the manipulator running can be cancelled and the magazine debugging state is entered.
After debugging, set K12.7 as 0 , and the data can’t be exchanged.
Z axis returns to the tool change point. (In MDI mode, G30G91Z0 is recorded, and Z axis is
Set K10.7 as 1.
Spindle orientation. (Press “ spindle orientation” in JOG mode, the orientation completes.)
Toolcase vertical. (In JOG mode, press “tool advance” button, the tool case is vertical
in-position.)
The manipulator is hold the tool in JOG mode. (In JOG mode, press “ tool change manipulator”
The tool releasing. (In JOG mode, press clamp/release, the tool is released in-position.)
The manipulator tool change in JOG mode. (Press “tool change manipulator” button again, and
The tool clamping (Press “tool clamping/releasing” again, the tool is clamped in-position.)
The manipulator is returned to the manipulator origin in JOG mode. (Press “tool change
In the normal situation, the conditions of running the manipulator in JOG mode:
The spindle orientation complete, the tool case vertical in-position, Z axis is returned to the tool
change point.
In JOG mode, press “MAG. CW” and the magazine is rotated according to the prescribed
negative direction of the machine; press “MAG. CCW” and the magazine is rotated according to
the prescribed positive direction of the machine; otherwise, the magazine counting will be
disorder to cause that the tool change is executed wrongly, which can be resolved by regulating
the phase sequence of the motor.
259
Installation and Connection Manual of GSK218MC CNC System
3. The spindle positioning angle and tool change coordinate position regulation
About the spindle positioning angle regulation, please refer to the manual of the spindle drive
unit.
3)There are 25 display states in Monitor mode, and select the state to look by pressing .
Find (The motor encoder is the positioning one, and the spindle encoder is taken as
260
Appendix Two The Usage Guide
The magazine tool change position coordinate is set in the system data parameter 0052, the
parameter must be set correctly; otherwise, the accident may happen causing the mechanical part
damage.
Through the above operation of three steps, the tool change can be executed correctly, and the
operation of executing T and M codes is described as below:
4. Adjusting in JOG mode after the magazine stopping due to the abnormal
During the manipulator running, power off occurs or the emergency stop or the resetting button is
pressed, the manipulator should return to zero position. Firstly, set K010.7=1, the magazine is
entered the debugging state, the manipulator is returned to zero position in JOG mode according to
the above steps; if the problem can’t be resolved, set K012.7=1, and the manipulator is entered the
debugging state, and then all the limit conditions of running manipulator are released, so be caution
to operate it. After the manipulator zero return, set K010.7=0 and K012.7=0, the manipulator can
run normally.
1. Input the system debugging password. Continuously press to enter the password screen;
in MDI mode, input the system debugging password, and then press key, “PASSWORD
CORRECT” is shown at the left bottom corner on the screen.
2. Press “PROGRAM CONTROL” key on MDI keypad; on 【 PLCPAR】interface, press 【KPAR】
261
Installation and Connection Manual of GSK218MC CNC System
softkey, the system enters the check and setting interface of the relay in keep type, press four
direction keys on the keypad and the cursor can position whether K010.7 magazine is entered the
debugging mode. Press the numerical “1”, and the enter key, finally , the data column
reminds: “KPAR download is done!”, which means saving is successful, and the magazine debugging
mode becomes valid. Set K010.7 as 0 to exit the magazine debugging mode.
Program
262
Appendix Three The Allocated File Format of the Ladder
LADDER DIAGRAM
The following information is saved in the form of signals in sequence in the ladder diagram allocated
file LadChixx.txt. (“xx” corresponding to the running ladder diagram file number set by the system.)
263
Installation and Connection Manual of GSK218MC CNC System
Remark: The above information must be rewritten to the top, about the details, please refer
to LadChixx.txt---the internal file in the system. The only difference in the corresponding
English file LadEng01.txt is that Chinese note is changed into 32 English words or
characters.
264