You can write some g code and link it to a button. If you did a peck drilling cycle for example you would put in spindle speed and peck distance and depth. You might want to write code asking for those parameters. Some machines have a interface to do conventional tasks such as drilling. Think Mach has wizards to do something like this
Russ