Fanuc has had this for a long time. Its an option I think. Variously called woodpecker or chopping or high precision oscillation. I think it is intended for jig-grinding type applications.
Fanuc Manual #B-64484EN_04 has quite a bit of info on setting up chopping
there is more than one way to achieve this motion with little effort,
the condition is important:
1. is this oscilation linked in any way to the linear axis movement, i.e. keep oscilating untill stopped by a code (like a fan ?),
2. if linked, what are the requierments, conditions, i.e. single oscilation linked to a linear motion.