I'm currently working on a project in which the speed of a custom build tool needs to be measured continuously while the arm is executing a program and then output the speed to an external controller(arduino) so it can adapt some settings based on how fast the tool is moving. I have never worked with a fanuc before. After searching on google I found that tracking the system variable $SCR_GRP.$MCH_SPD in a background program would allow me to continuous measure the tools speed. However I can find no further explanation on how it to do this and how I can output the measured speed through I/O.
Can someone explain me how I can track the $SCR_GRP.$MCH_SPD variable and then output it?