Yamaha P80 Keybed assembly

Hello to all fellow musicians and technicians

I want to know if you can help me. I have a very good Yamaha P80 piano with excellent sounds.

But I want to know if any of you have managed to use this piano by connecting it to an audio interface or what is the same as using it as a midi controller.

Thank you