This manual describes the various matters concerning the
operations of this CNC system as much as possible. However, it is
impossible to give detailed descriptions to all the unnecessary or
unallowable operations due to space limitation and product specific
applications. Therefore, the matters not specially described herein
should be considered as “impossible” or “unallowable”.
This user manual is the property of GSK CNC Equipment Co.,
Ltd. All rights are reserved. It is illegal for any organization or
individual to publish or reprint this manual. GSK CNC Equipment Co.,
Ltd. reserves the right to ascertain their legal liability.
I
Preface and Precaution
Preface
Dear users,
It is our pleasure for your patronage and purchase of this machining center
CNC system of GSK990MA produced by GSK CNC Equipment Co., Ltd.
This book is “Programming and Operation Manual”, which introduces
the programming and operation of the machining center CNC system of
GSK990MA in detail.
To ensure the product works in a safe and efficient state, please read this manual
carefully before installation and operation.
Warnings
Improper operations may cause unexpected accidents. Only
those qualified staff are allowed to operate this system.
Special notes: The power supply fixed on/in the cabinet is exclusively
used for the CNC system made by GSK.
It cannot be applied for other purposes, or else it may
cause serious danger.
II
GSK990MA CNC System Connection and PLC Manual
Declaration!
z We try to describe all the various matters as much as possible in this
manual. However, it is impossible to give detailed descriptions to all
the unnecessary or unallowable operations because there are too
many possibilities. Therefore, the matters not specially described
herein should be considered as “impossible” or “unallowable”.
z Before installing, connecting, programming and operating the product,
please read this manual and the manual provided by the machine tool
builder carefully, and operate the product according to these manuals.
Otherwise, the operation may cause damage to the product and
machine tool, or even cause personal injury.
Warning!
Caution!
z The functions and specifications (e.g., precision and speed) described
in this manual are only for this product itself. For those CNC machine
tools installing this product, the actual function configuration and
specifications depend on the designs of the machine tool builders.
Moreover, the function configuration and specifications of the CNC
machine tool are subject to the manual provided by the machine tool
All specifications and designs in this manual are subject to change without notice.
III
Preface and Precaution
Safety notes
■ Transportation and storage
z Do not pile up the packing boxes over 6 layers.
z Never climb the packing box, neither stand on it, nor place heavy objects on it.
z Do not move or drag the product by the cables connected to it.
z Avoid impact or scratch to the panel and screen.
z Packing box should be protected from dampness, insolation and drench.
■ Open-package inspection
z Confirm the product is the one you purchased after opening the package.
z Check whether the product is damaged during transportation.
z Confirm all the elements are complete without damage by referring to the list.
z If there is incorrect product type, incomplete accessories or damage, please
contact us in time.
■ Connection
z Only qualified personnel can connect and inspect the system.
z The system must be earthed. The earth resistance should not be greater than
0.1Ω, and a neutral wire (zero wire) cannot be used as an earth wire.
z The connection must be correct and secured. Otherwise, the product may be
damaged or unexpected results may occur.
z Connect the surge absorbing diode to the product in the specified direction;
otherwise the product may be damaged.
z Turn off the power before inserting or unplugging a plug, or opening the electric
cabinet.
■ Troubleshooting
z Turn off the power supply before troubleshooting or replacing components.
z Overhaul the system when there is a short circuit or overload, and do not restart
it until the trouble is removed.
z Do not turn ON/OFF the product frequently, and the ON/OFF interval should be
1 minute at least.
IV
GSK990MA CNC System Connection and PLC Manual
Volume Ⅰ Programming Description
Introduce the technical specification, product type series and parameter
configuration, command code and program format of 990MA machining center CNC
system.
Volume Ⅱ Function Description
Introduce the main function of the GSK990MA series machining center CNC
system.
Volume Ⅲ Operation Description
Introduce the relative operations of PLC software of the GSK990MA machining
center CNC system.
Volume Ⅳ Installation and Connection
Introduce the installation, connection and setting methods of the GSK990MA
machining center CNC system.
Appendix
Introduce the use explanations of the GSK990MA machining center CNC
system and the appendix.
V
Preface and Precaution
Safety responsibility
Manufacturer Responsibility
——Be responsible for the danger which should be eliminated on the design
and configuration of the provided CNC systems
——Be responsible for the safety of the provided CNC and its accessories
——Be responsible for the provided information and advice
User Responsibility
——Be trained with the safety operation of CNC system operation
procedures and familiar with the safety operation.
——Be responsible for the dangers caused by adding, changing or
modifying the original CNC systems and accessories.
——Be responsible for the danger caused by failing to observe the
operation, maintenance, installation and storage in the manual.
This user manual shall be kept by the end user.
Thank you for your kind support when you are using the
products of Guangzhou CNC Equipment Co., Ltd.
Programming Chapter One Sequence Program Creating Process
2
GSK990MA CNC System Connection and PLC Manual
1 Sequence Program Creating Process
1.1 GSK990MA PLC specification
Specifications of GSK990MA PLC are as follows:
Specification GSK990MA PLC
Programming method language Ladder
Number of ladder level 2
1st level execution period 8ms
Mean processing time of basic instruction 10μs
Program capacity 4700 step
Instruction Basic instruction +function
A sequence program is a program for sequence control of machine tools and other systems.
The program is converted into a format to enable CPU execute encoding and arithmetic
processing, and stored into RAM. CPU reads out every instruction stored in the memory at a
high-speed and executes the program by arithmetic operation
The sequence program is written firstly from ladder.
1.3 Assignment of interface specifications(step 1)
interface may be assigned after control object is determined and the relevant input/output signal
points are counted.
For interface assignment, see input /output interface signal table in Book 4 Connection of this manual
3
Programming Chapter One Sequence Program Creating Process
1.4 Establishment of ladder diagram(step 2)
by GSK990MA ladder online edit function, use the ladder to express the machine control actions.
As for the timer, counter, etc, which cannot be expressed with the relay symbol, express them with
the designated functional instructions symbol.
The edited ladder should be stored and it should be converted into the corresponding PLC
instruction namely so-called instruction table before running.
1.5 Sequence program debugging(step 3)
The sequence program can be debugged in two ways:
1) Debug by simulator
Instead of the machine, connect a simulator (consisting of lamps and switches). Switch
ON/OFF stands for the input signal state of machine, lamp ON/OFF for the output signal
state.
2) Actual operation debugging
Debug sequence program through operating the machine. Do measures against the
unexpected affairs before debugging.
4
GSK990MA CNC System Connection and PLC Manual
2 Sequence Program
Since PLC sequence control handled by ladder online edit function and operates on principle
difference from a general relay circuit, the sequence control method must be fully understood in
order to design PLC sequence program.
2.1 Execution process of sequence program
In general relay control circuit, each relay operates at approximately the same time, in the figure
below for example, when relay A operates, the relay D and E operate at approximately the same
time(when contacts B and C are off)., In PLC sequence control, each relay of circuit operates
sequentially. When relay A operates, relay D operates, then relay E operates (see the below figure).
Thus each relay operates in sequence which can be written as a ladder diagram. (programmed
sequence).
A
B
D
A
Fig. 2.1(a) circuit example
Fig.(b) and (c) illustrate operations varying from the relay circuit to PLC program.
A
A
Fig. 2.1(b)
C
E
C
B
C
5
Programming Chapter Two Sequence Program
Fig. 2.1(c)
(1) Relay circuit
In Fig. (A) and (B), the operations are the same. Turning on A turns on B and C. Turning on C
turns off B.
(2) PLC program
In Fig. (B), as in the relay circuit, turning on A turns on B and C, and after one cycle of the PLC
sequence, turns off B. But in Fig.(C), turning on A turns on C, but does not turn on B.
2.2 Cycle execution
The PLC executes the ladder diagram from the beginning to the end . When the ladder diagram
ends, the program starts over from the beginning. This is called cycle execution.
The execution time from the beginning to the end of the ladder diagram is called the cycle
processing time. The shorter the process time is, the better the signal response becomes.
2.3 Priority of execution(1st level, and 2nd level)
GSK990MA PLC consists of two parts: 1st level sequence part, 2nd level sequence part. They have
different execution period.
st
The 1
high-speed response.
The 2
sequence part. The 2nd level sequence part is divided into n parts, and every part is executed every
8ms.
level sequence part operates every 8*n ms, which can deal with the short pulse signal with
nd
level sequence part operates every 8*n ms. Here n is a dividing number for the 2nd level
6
GSK990MA CNC System Connection and PLC Manual
Fig. 2-3-1
990MA PLC is solely executed in PLC-AVR single chip, and the first 1ms of each 8ms is the
communication time of CNC reading or writing PLC data. The fifth 1ms is the time that the PLC
receives the system control signal (F、X)and uploads the control result data(G、Y parameter)
to the external I/O interface(X、Y), except for the time responding the interruption to exchange the
data, the PLC executes the ladder operation at the rest time.
Fig. 2-3-2
nd
After the last 2
level sequence part (division n) is executed, the sequence program is executed
again from the beginning. Thus, when the dividing number is n, the cycle of execution is 8*n ms.
st
The 1
of the 1
level sequence operates every 8ms, and the 2nd level sequence every 8*n ms. If the steps
st
level sequence is increased, the steps of the 2nd level sequence operating within 8ms
becomes less, thereby increasing the dividing number and making the processing time longer.
Therefore, it is desirable to program so as to reduce the 1st level sequence to a minimum.
2.4 Sequence program structure
With the conventional PLC, a ladder program is created sequentially. By employing a ladder
language that allows structured programming, the following benefits are as following :
7
Programming Chapter Two Sequence Program
1. A program can be understood and developed easily
2. A program error can be found easily.
3.When an operation error occurs, the cause can be found easily.
Three major structured programming capabilities are supported:
1) Subprogram
A subprogram can consist of a ladder sequence as the processing unit.
Fig. 2-4-1
2) Nesting
The Ladder subprograms can call the other ladder subprogram to execute the job.
Fig. 2-4-2
3) Conditional branch
The main program loops and checks whether conditions are satisfied. If a condition is satisfied, the
corresponding subprogram is executed. If the condition is not satisfied, the subprogram is skipped.
Fig. 2-4-3
8
GSK990MA CNC System Connection and PLC Manual
2.5 Processing I/O ( input / output ) signals
Input signal processing:
Output signal processi ng:
Fig. 2-5-1
Fig. 2-5-2
9
Programming Chapter Two Sequence Program
2.5.1 Input signal processing
(1)NC input memory
The input signals from NC are loaded in memory of NC and are transferred to the PLC at intervals
of 8ms. Since the 1
(2)Input signal memory to machine tool
The input signal memory stores signals transferred from the machine tool at intervals of 8ms
period. Since the 1st level sequence part directly refer to these signal and process operations.
nd
(3)2
level input signal memory
The 2nd level input signal memory is also called 2nd level synchronous input signal memory. The
stored signals are processed by the 2
synchronizes with that of 2nd level sequence part.
Input memory Signals from NC and machine tool are transferred to the 2
memory only at the beginning of execution of the 2nd level sequence part. Therefore, the state of
nd
the 2
level synchronous input signal memory does not change from the beginning to end of the
execution of the 2nd level sequence part.
st
level sequence part directly refer to these signal and process operations.
nd
level sequence part. State of the signals set this memory
nd
level input signal
2.5.2 Output signal processing
(1)NC output memory
The output signals are transferred form the PLC to the NC output memory at intervals of 8ms.
(2)Output signals memory to machine tool
Signals stored in the machine tool output memory are transferred to the machine tool at intervals of
8ms.
Note:
The state of the NC input memory, NC output memory, input signals from machine, input/output
memory signals to machine can be checked by using the PC self-diagnosis function. The
self-diagnosis number specified is the address number used by the sequence program.
2.5.3 Difference state of signals between 1st level and 2nd level
The state of the same input signal may be different in the 1
Because they use different input memory. That is, at 1
signal memory and at 2nd level, processing is performed using the 2nd level synchronous input
nd
signal memory. Therefore, it is possible for a 2
level sequence execution at the worst, compared
with a 1st level input signal.
This must be kept in mind when writing the sequence program.
st
level and 2nd level sequences.
st
level, processing is performed using input
10
GSK990MA CNC System Connection and PLC Manual
Fig. 2-5-3-1
When the processing is 1st 8ms, A=1, and B=1 after 1st sequence part is executed. At the same
time, 2nd sequence part is started to execute, A=1 is stored to the 2nd sequence part and the 1st
division of 2nd sequence part is executed.
When the processing is 2nd 8ms, A=0, and B=0 after 1st sequence part is executed. And then
2nd division of 2nd sequence part is executed, at this time, A is still 1. So C=1.
So, B and C are different.
2.6 Interlocking
Interlocking is important on sequence control safety.
Interlocking is necessary in the sequence control program. However, hard interlocking for the relay
circuit should be applied in the machine strong power cabinet. This is because even interlocking is
logically used in the sequence program (software), the interlock will not work when trouble occurs
in the hardware used to execute the sequence program. Therefore, provide an interlock inside the
machine tool magnetic cabinet to ensure the safety and to protect the machine from damage.
11
Programming Chapter Three Address
3 Address
An address shows a signal location. Addresses include input/output signals with respect to the
machine, the input/output signals with respect to the CNC, the internal relays, the meters, the keep
relays, and data table. Each address consists of an address number and a bit number. Its serial
number regulations are as follows:
Address regulations:
The address comprises the address type, address number and the bit number in the format as
shown below:
Type: including X, Y, R, F, G K, A, D ,C, , T
Address number: decimal serial number stands for one byte.
Bit number: octal serial number, 0~7 stands for 0~7 bit of byte of front address number
990MA PLC address type is as follows:
Table 3-1
Address Signal description Length
X Machine tool → PLC(64 byte) INT8U
Y PLC→ Machine tool (48 byte) INT8U
F CNC→PLC(64 byte) INT8U
G PLC→CNC(64 byte) INT8U
R Auxiliary relay(512 byte) INT8U
D
DC Counter preset data register INT16U
C
A PLC message request signal INT8U
T
DT Timer preset data register INT16U
K
Data register (0~255)
Meter (0~127)
Timer (0~127)
Keep relay(64 byte)
INT16U
INT16U
INT16U
INT8U
INT8U data type is 8-bit character without signs, INT16U data type is 16-bit integer without signs.
3.1 Addresses from Machine tool to PLC(X)
X addresses of GSK990MA PLC are divided into two:
1. X addresses are assigned to IO input interface of XS43, XS44 and XS45.
2. X addresses are assigned to the input press keys on MDI panel.
12
GSK990MA CNC System Connection and PLC Manual
3.1.1 Assignment of IO module X address
The addresses are from X0 to X5. Its type is INT8U, 48 types. They are assigned to three IO input
interface of XS 43, XS44 and XS45.
The signal specification of X addresses can be customized by customer according to the actual
operation. X addresses are used for machine (tool) connection and the ladder editing. For the
initial definition of input address, see Book 4 Connection of this manual.
3.1.2 Assignment of MDI panel X address
The addresses are from X20 to X30, 11 bytes. They correspond to the press keys on MDI panel,
and their signal definitions cannot be changed by user.
Corresponding relationship for addresses and press keys are as follows:
Table 3-1-2-1
Input key on operator panel PLC
address
Edit mode
Auto mode
MDI mode
Machine zero return mode
Single step mode
Manual mode
MPG mode
DNC mode
Skip
Single block
Dry run
Miscellaneous(M, S, T) lock
Machine lock
Optional stop
Program restart
Spindle CCW
Spindle stop
Spindle CW
Spindle negative override
Spindle override cancel
Spindle positive override
Spindle jog
Lubrication
Cooling
Chip removal
X20.0
X20.1
X20.2
X20.3
X20.4
X20.5
X20.6
X20.7
X21.0
X21.1
X21.2
X21.3
X21.4
X21.5
X21.6
X22.0
X22.1
X22.2
X22.3
X22.4
X22.5
X22.6
X23.0
X23.1
X23.2
Input key on operator panel PLC
address
Feedrate positive override
Feedrate override cancel
Feedrate negative override
Rapid
Rapid F0 / 0.001
Rapid 25% / 0.01
Rapid 50% / 0.1
Rapid 100% / 1
Manual feed axis +X
Manual feed axis +Y
Manual feed axis +Z
Manual feed axis +4TH
USER1
Manual feed axis -X
Manual feed axis -Y
Manual feed axis -Z
Manual feed axis -4TH
USER2
USER3
Spindle orientation
Tool magazine zero return
Tool clamp/ release
Tool magazine CW
Tool magazine CCW
tool infeed
X24.0
X24.1
X24.2
X24.7
X26.0
X26.1
X26.2
X26.3
X27.0
X27.1
X27.2
X27.3
X27.4
X28.0
X28.1
X28.2
X28.3
X28.4
X28.7
X29.0
X29.1
X29.2
X29.3
X29.4
X29.5
13
Programming Chapter Three Address
Cycle start
Feed hold
X23.6
X23.7
tool retraction
Tool change manipulator
Overtravel release
X29.6
X29.7
X30.0
3.2 Address (Y) from PLC to machine tool
Y addresses of GSK990MA PLC are divided into two:
1. Y addresses are assigned to IO input interface of XS40, XS41 and XS42.
2. Y addresses are assigned to the indicators on MDI panel.
3.2.1 Assignment of IO module Y address
The addresses are from Y0 to Y5. Its type is INT8U, 48 types. They are assigned to three IO output
interfaces of XS40, XS41 and XS42.
The signal specification of Y addresses can be customized by customer according to the actual
operation. Y addresses are used for machine tool connection and the ladder editing. For the initial
definition of input address, see Appendix one Allocation and definition of PLC IO address, auxiliary
relay and register for GSK990MA CNC system
3.2.2 Assignment of IO module Y address
The addresses are from Y12 to Y19, 8 bytes. They correspond to the indicators on MDI panel, and
their signal definitions cannot be changed by user.
Corresponding relationship for addresses and indicators are as follows:
Table 3-2-2-1
Output key on operator panel PLC
address
Edit key indicator Y12.0 0.01/25% indicator Y15.4
Auto key indicator Y12.1 0.1/50% indicator Y15.5
MDI key indicator Y12.2 1/100% indicator Y15.6
Machine zero return indicator Y12.3 Spindle orientation indicator Y15.7
Single step key indicator Y12.4 Tool magazine zero return
The bit signals of G63 bytes are internally used by the system, G63.0, G63.1 and G63.2 are
separately the system internal response signals for M, S, T code completion.
G22.5
G22.6
Spindle orientation
Tool magazine zero return
G29.0
G29.1
3.4 Address (F) from CNC to PLC
Addresses are from F0 to F63. Type: INT8U, 64 bytes.
For signals, see Volume Function.
3.5 Internal relay address(R)
The address area is cleared to zero when the power is turned on. R510 and R511 are used by the
system.
Type: INT8U, 512 bytes.
Fig. 3-5-1
System program management area:
R510
Address signal of R510.0 is set to 1 when PLC is started or restarted, which is used for the
signal set by user in initialization. It is set to 0 after the ladder finishing the first pass.
R511(timer for system)
The following four signals are used as system timer:
16
GSK990MA CNC System Connection and PLC Manual
Fig. 3-5-2
3.6 Address of keep relay(K)
The area is used as keep relays and PLC parameters. Since this area is nonvolatile, the content of
the memory do not disappear even when the power is turned off. K000~~K005 are used by the
system, which are used for storing the PLC system parameter. It is convenient for the user to
control the PLC by CNC.
Type: INT8U, with 64 bytes.
Fig. 3-6-1
Note: When PLC address K K005.2=1, PLC enters the debug mode, cancel all the external alarm
signals and machine interlock signals, the tool change instruction can’t be executed. The
parameter can be modified under fully understanding it to avoid the machine damage or
the person accidence.
3.7 Addresses(A) for message selection displayed on CRT
The address area is cleared to zero when the power is turned on.
Type: INT8U, with 32 bytes.
17
Programming Chapter Three Address
Fig. 3-7-1
3.8 Address of meter(C)
The area is used as storing current counting value in meter. The address area is cleared to zero
when the power is turned on.
Type: 128 addresses.
3.9 Meter preset address(DC)
The address area is used to store the meter preset value. Since this area is nonvolatile, the
content of the memory do not disappear even when the power is turned off.
Type: 128 addresses.
3.10 Timer addresses(T)
The area is used as storing current counting value in timer. The initial data is the preset value
when the system is turned off. When preset value is 0, the current data is preset value.
Type: 128 addresses.
3.11 Addresses of timer preset value(DT)
The address area is used as storing preset value. Since this area is nonvolatile, the content of the
memory do not disappear even when the power is turned off.
Type: 128 addresses.
18
Loading...
+ 194 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.