What is the easiest way to get the value of machine/controller status (run/idle). Need to know the value to make decisions within the application. Any code/example I can investigate?