Here is a successfully written post for a jig grinder with 'C' Axis. In effect the code generator has to 'look ahead' to see what the next element is and it's relationship to the current element before outputting a line or arc.
The @CALCS section is a bit cumbersome and is over 200 lines long, but IT WORKS! Please ask if you want an explanation of how it works. It is however written for Heidenhain format but would not be too difficult to change for Fanuc format. Regards, Bill in the UK.
Heid.smf
Description: Binary data
heid.tmp
Description: Binary data
