GSK218M CNC System Connection and PLC Manual
6
Contents
VOLUME ONE PROGRAMMING................................………..12
1 SEQUENCE PROGRAM CREATING PROCESS.......................................... 13
1.1 GSK218M PLC specification........................................................................................................13
1.2 What is a sequence program .........................................................................................................13
1.3 Establishment of interface specifications
(
step 1
)
...................................................................14
1.4 Establishment of ladder diagram
(
step 2
)
................................................................................14
1.5 Sequence program check
(
step 3
)
............................................................................................14
2 SEQUENCE PROGRAM......................................................................... 15
2.1 Execution process of sequence program.....................................................................................15
2.2 Repetitive cycel................................................................................................................................16
2.3 Priority of execution(1
st
level, and 2
nd
level).................................................................................16
2.4 Sequence program structure.......................................................................................................... 17
2.5 Processing I/O (input/output) signals............................................................................................19
2.5.1 Input signal processing ........................................................................................................................... 20
2.5.2 Output singal processing........................................................................................................................ 20
2.5.3 Syncrhonous processing short pulse signal ..................................................................................... 20
2.5.4 Difference o fstate of signals between 1
st
level and 2
nd
level......................................................... 21
2.6 Interlocking..........................................................................................................................................22
3 ADDRESS........................................................................................... 23
3.1 Addresses from Machine tool to PLC
(
X
)
...................................................................................23
3.1.1 Assignment of IO module X address.................................................................................................... 23
3.1.2 Assignment of MDI panel X address................................................................................................... 24
3.2 Address (Y) from PLC to machine tool...........................................................................................25
3.2.1 Assignment of IO module Y address................................................................................................... 25
3.2.2 Assignment of IO module Y address.................................................................................................... 26
3.3 Address (G) from PLC to CNC.......................................................................................................27
3.4 Address (F) from CNC to PLC .......................................................................................................28
3.5 Internal relay address
(
R
)
...........................................................................................................29
3.6 Address of keep relay
(
K
)
...........................................................................................................29
3.7 Addresses(A) for message selection displayed on CRT............................................................29
3.8 Address of meter
(
C
)
...................................................................................................................30
3.9 Meter preset address(DC) ...............................................................................................................30
3.10 Timer addresses
(
T
)
....................................................................................................................30
3.11 Addresses of timer preset value
(
DT
)
.......................................................................................30
3.12 Address of data table
(
D
)
............................................................................................................31
3.13 Lable address
(
L
)
.........................................................................................................................31
3.14 Subprogram numbers
(
P
)
...........................................................................................................31
4 PLC BASIC INSTRUCTION.................................................................. 32
4.1 RD, RD.NOT, WRT, WRT.NOT........................................................................................................ 33
4.2 AND, AND.NOT instructions.............................................................................................................33
4.3 OR, OR.NOT instructions .................................................................................................................34
4.4 OR. STK instruction...........................................................................................................................34