Official GSK Agents in South Africa
Tel: +27 11 626 2720, [email protected]
GSK218MC Series Machining Center CNC System PLC & Installation Connection Manual
30
Volume I
Programming
5.5 SP (Subprogram)
Function:
SP is used to generate a subprogram. The subprogram number is regarded as its name. The
range of the subprogram is specified by the SP code and the after-mentioned SPE code together.
Notice:
1. The subprogram should be compiled followed END2.
2. Another subprogram can not be set inside one subprogram.
Format:
SP
Subprogram
number
Fig. 5-5-1
Parameter:
Subprogram number: specify a called subprogram mark number, its range is 0
~
99.
5.6 SPE (End of Subprogram)
Function:
* Use SPE and SP together to specify the range of subprogram.
* The control will return to the main program of the called subprogram when this function
code is performed.
* The subprogram should be compiled after END2.
Figure format
SPE
Fig. 5-6-1
For example