Custom Canned Cycle
You can customize G command by programming subprograms in public.dat to customize canned cycle.
Subprogram No. 200~999 is used by internal parse engine. The code range of M command is 200~599, while that of G command is 600~999.
Therefore, G command (0~99) plus 600 is regarded as the corresponding subprogram.
Programming Example
Take a repeated canned cycle to drill holes as an example:
Programming is as follows:
N01 G90 X0 Y0 Z100.
N02 G00 X-50 Y51.963 M03 S800
N03 Z20 M08 F4000
N04 G91 G81 X20 Z-18 F4000 R-17 K4
N05 X10 Y-17.321
N06 X-20 K 4
N07 X-10 Y-17.321
N08 X20 K 5
N09 X10 Y-17.321
N10 X-20 K 6
N11 X10 Y-17.321
N12 X20 K 5
N13 X-10 Y-17.321
N14 X-20 K 4
N15 X10 Y-17.321
N16 X20 K 3
N17 G80 M09
N18 G90 G00 Z100.
N19 X0 Y0 M05
N20 M30