Logic analyser function of cnc