GSK980TDc Turning CNC System User Manual
24
Ⅰ
Progra
mming
Fig. 2-2
Subprogram calls can be nested up to four levels as shown in Fig. 2-3.
O 1 0 0 1 ;
. . .
. . .
. . .
M 9 8 P 1 0 0 2 ;
. . .
. . .
. . .
. . .
M 3 0 ;
M a in p ro g ram
L ev el 1
L ev el 2
O 1 0 0 3 ;
. . .
. . .
. . .
M 9 8 P 1 0 0 4 ;
. . .
. . .
. . .
. . .
M 9 9 ;
S u b p ro gr am
O 1 0 0 4 ;
. . .
. . .
. . .
M 9 8 P 1 0 0 5 ;
. . .
. . .
. . .
. . .
M 9 9 ;
S u bp ro g ram
O 1 0 0 2 ;
. . .
. . .
. . .
M 9 8 P 1 0 0 3 ;
. . .
. . .
. . .
. . .
M 9 9 ;
S ub p ro g ram
O 1 0 0 5 ;
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
M 9 9 ;
S u b pr og ra m
L e v el 3
Le vel 4
Fig. 2-3 Subprogram nesting
Macro program call M9000
~
M9999
Command format: M
□□□□
9000
~
9999
Command function: call macro programs corresponding to command values (O9000
~
O9999).
Macro programs: O9000
~
O9999 programs are for machine manufacturer, used for editing
subprogram with special functions, called macro programs. The system must have 2-level operation
level (machine manufacturer) when editing O9000
~
O9999, and macro programs calling commands
are executed to call with 3
~
5 operation level. M9000
~
M9999 are invalid in MDI mode.
M commands defined by standard PLC ladder diagram
Other M commands are defined by PLC except for the above-mentioned ones(M02, M30, M98,
M99, M9000
~
M9999). The following M commands are defined by standard PLC, and GSK980TDc
Turning Machine CNC system is used for controlling machine tool. Refer to commands of machine
manufacturer about functions, significations, control time sequence and logic of M commands.
M commands defined by standard PLC ladder diagram.
Summary of Contents for GSK980TDc
Page 17: ...I Programming ...
Page 18: ...GSK980TDc Turning CNC System User Manual ...
Page 190: ...GSK980TDc Turning CNC System User Manual 172 Ⅰ Programming ...
Page 191: ...Ⅱ Operation Ⅱ Operation ...
Page 192: ...GSK980TDc Turning CNC System User Manua Ⅱ Operation ...
Page 326: ...GSK980TDc Turning CNC System User Manual 306 Ⅱ Operation ...
Page 327: ...Ⅲ Connection Ⅲ Connection ...
Page 328: ...GSK980TDc Turning CNC System User Manual Ⅲ Connection ...
Page 470: ...GSK980TDc Turning CNC System User Manual 448 Ⅲ Connection ...