Display machining state and corresponding control program