-Shenzhen Guanhong Automation Co.,Ltd.-
SZGH-CNC1000MDb Series
- 113 -
3) M99 in subprogram return to next block of M98;
4) M99 with P in the subroutine return to specified block in main program.
When the main program calls a subprogram, it is regarded as a one–level subprogram call.
Thus, subprogram calls can be nested up to four levels as shown below.
Eg.:Execution sequence of subprograms called from a main program.A subprogram can call
another subprogram in the same way as a main program calls a subprogram.
A single call command can repeatedly call a subprogram up to 9999 times.
4.3 Standard PLC M Command List
4.3.1 M Output Command List
Function
Code
Introduction
Statement
Spindle
M03
Spindle on CW
Functions interlocked and states
reserved
M04
Spindle on CCW
M05
Spindle Stop
Coolant
M08
Coolant ON
Functions interlocked and states
reserved
M09
Coolant OFF
Chuck
M10
Chuck Clamping
Functions interlocked and states
reserved
M11
Chuck Unclamping
Lubricate
M32
Lubrication ON
Functions interlocked and states
reserved
M33
Lubrication OFF
Huff
M59
Huff ON
Functions interlocked and states
reserved
M58
Huff OFF
Orientation
M61
Spindle Orientation
Functions interlocked and states
reserved
M60
1
M79
User-define Output 1 ON
Functions interlocked and states
reserved
M78
User-define Output 1 Off
2
M63
User-define Output 2 ON
User-define Output 2 Off
Functions interlocked and states
reserved
M62
3
M65
User-define Output 3 ON
User-define Output 3 Off
Functions interlocked and states
reserved
M64
4
M67
User-define Output 4 ON
Functions interlocked and states
Содержание SZGH-CNC1000MDb Series
Страница 220: ...Shenzhen Guanhong Automation Co Ltd SZGH CNC1000MDb Series 207 Appendix I Wiring Diagram of CN3 Plug...
Страница 221: ...Shenzhen Guanhong Automation Co Ltd SZGH CNC1000MDb Series 208 Appendix II Wiring Diagram of CN10 Plug...
Страница 222: ...Shenzhen Guanhong Automation Co Ltd SZGH CNC1000MDb Series 209 Appendix III Wiring Diagram of CN4 Plug...