My controller is a Fanuc 0i-MD.

I'm doing some learning regarding PLCs, the relays in the electrical cabinet in my Sharp SV-2412SX and how I might access CNC data externally on a RasPi for display on a small screen.

I have an idea for something I want to make for my CNC which would involve getting signals from the CNC cabinet to the RasPi.

I'm a software engineer by trade. I have no PLC experience. So I'm hoping my project won't require any PLC programing and that I can just use macros and/or variables.

I am wondering if there is a way to use a signal from the CNC cabinet to a RasPi, so that I can determine the tool number in the spindle on the RasPi and display it on a small external monitor?

For now it serves no purpose other than learning. But this is where I need to start for my project idea.

Thanks!