![GSK 980TDi Скачать руководство пользователя страница 41](http://html1.mh-extra.com/html/gsk/980tdi/980tdi_user-manual_2275219041.webp)
Official GSK Agents in South Africa
Tel: +27 11 626 2720, [email protected]
Chapter 2 MSTF Command
25
Ⅰ
Programming
CHAPTER 2 MSTF COMMAND
2.1 M (Miscellaneous Function)
M command consists of command address M and its following 1
~
2 or 4 bit digits, used for
controlling the flow of executed program or outputting M commands to PLC.
M
□□□□
Command value (00~99, 9000~9999, the leading zero can be omitted)
Command address
M98, M99, M9000
~
M9999 is executed by NC separately and NC does not output M commands
to PLC.
M02, M03 are for ending of programs defined by NC, and NC outputs M commands to PLC
which can control spindle OFF, cooling OFF and so on.
M98, M99, M9000
~
M9999 are for calling programs, M02, M30 are for ending of program which
are not changed by PLC. Other M commands output to PLC and their function are defined by PLC.
Please refer to User Manual from machine manufacturer.
There is only one M command in one block, otherwise the system alarms.
Table 2-1 M commands to control program execution
Commands Functions
M02
End of program
M30
End of program
M98 Call
subprograms
M99
Return from a subprogram; it is executed repeatedly when the program
ends in M99(the current program is not called by other programs)
M9000
~
M9999
Call macro programs(their program numbers are more than 9000)
2.1.1 End of Program M02
Command format: M02 or M2
Command function: In Auto mode, after other commands of current block are executed, the
automatic run stops, and the cursor stops a block in M02 and does not
return to the start of program. The cursor must return to the start of program
when the program is executed again.
Besides 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.
2.1.2 End of Program run M30
Command format: M30
Command function: In Auto mode, after other commands 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).
If No.005 Bit 4 is set to 0, the cursor does not return to the beginning of program, and the cursor
Содержание 980TDi
Страница 17: ...Official GSK Agents in South Africa Tel 27 11 626 2720 design efamatic com 1 Programming I Programming...
Страница 225: ...Official GSK Agents in South Africa Tel 27 11 626 2720 design efamatic com 209 Operation II Operation...
Страница 379: ...Official GSK Agents in South Africa Tel 27 11 626 2720 design efamatic com 363 Connection III Connection...
Страница 539: ...Official GSK Agents in South Africa Tel 27 11 626 2720 design efamatic com 523 IV Appendix IV Appendix...