This is a detailed tour of making a program to grind a straight diameter and a combined diameter and shoulder grind with an angular infeed.
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.