Chapter 3 MSTF Codes
159
Ⅰ
Programming
Chapter 3 MSTF Codes
3.1 M (Miscellaneous Function)
M code consists of code address M and its following digits (the digit is set by No.3030), used for
controlling the flow of executed program or outputting M codes to PLC .
There is one valid M code in one block. There are most specified 3 M codes in one block(set by
NO.3404 Bit 7 (M3B) ). The corresponding relationship between M codes and their functions are
determined by the machine manufacturer. CNC sends M code signal and one strobe signal to PLC in
executing M codes.
Except for M98, M198, M99, all M codes are executed in PLC. Their functions, meanings, control
sequence and logic are referred to the machine manufacture’s manual books.
3.1.1 End of Program M02
Command format:
M02 or M2
Command function:
In Auto mode, after M02 is executed and other codes of current block are
executed, the automatic run stops. Whether the cursor returns the home
of program is set by No.3404 Bit5 (M02). The cursor must return to the
start of program when the program is executed again.
Except for the above-mentioned function executed by NC, M02 function is also defined by PLC
ladder diagram as follows: current output of CNC is reserved after M02 is executed.
3.1.2 End of Program Run M30
Command format:
M30
Command function:
In Auto mode, after other codes of current block are executed in M30, the
automatic run stops, the amount of workpiece is added 1, the tool nose
radius compensation is cancelled and the cursor returns to the start of
program (whether the cursor return to the start of program or not is defined
by parameters).
Besides the above-mentioned function executed by NC, M30 function is also defined by PLC
ladder diagram as follows: the system closes M03, M04 or M08 signal output and outputs M05
signal after M30 is executed.
3.1.3 Program Stop M00
Command format: M00 or M0
Command function: the system stops the automatic run after M00 block is executed, which is
Summary of Contents for GSK988TA
Page 6: ...GSK988TA GSK988TA1 GSK988TB Turning Center CNC System User Manual Programming Operation VI ...
Page 19: ...1 Ⅰ Programming PROGRAMMING ...
Page 227: ...209 Ⅱ Operation OPERATION ...
Page 369: ...Chater 10 Machining Example 351 Ⅱ Operation ...
Page 371: ...353 Appendix ...
Page 465: ...Appendix 1 Parameters 447 Appendix ...
Page 479: ...Appendix 3 Interface Explanation 461 Appendix ...
Page 527: ...Appendix 5 Installation Layout 509 Appendix ...