Enum InterpreterState
Enumeration of all possible states of the interpreter in TwinCAT NC. The interpreter state reflects the current state of the Interpreter State Machine. The complete list is given below.
public enum InterpreterState
Fields
ITP_STATE_ABORTED = 12If a runtime error occurs during the processing of an NC program, the interpreter goes into aborted state. The actual error code is given in Channel State.
ITP_STATE_ABORTING = 11Interpreter aborting.
ITP_STATE_END = 9Interpreter reached end.
ITP_STATE_FAULT = 13Interpreter has a fault.
ITP_STATE_FLUSHBUFFERS = 17Interpeter is flushing buffers.
ITP_STATE_IDLE = 1The interpreter is in idle state if no NC program is loaded yet or if a group reset is executed. The interpreter also goes into idle state when a current program is stopped. In the case a group reset must be executed in order to prevent error 0x42C5. It is therefore recommended to execute a group reset after stopping via the PLC.
ITP_STATE_INITFAILED = 0Initilization of interpreter failed.
ITP_STATE_READY = 2After successful loading of an NC program, the interpreter is in ready state. After a program has been successfully processed and exited, the interpreter goes into ready state. In the meantime, however, other states are accepted.
ITP_STATE_RESET = 14Interpreter is reset.
ITP_STATE_RUNNING = 5Interpreter running.
ITP_STATE_SCANNING = 4Interpreter scanning.
ITP_STATE_SEARCHLINE = 8Interpreter block searching.
ITP_STATE_SINGLESTOP = 10This state is only accepted in Single Block Mode. As soon as the entry has been sent from the interpreter to the NC core, the interpreter goes into this mode.
ITP_STATE_STARTED = 3Interpreter started.
ITP_STATE_STAY_RUNNING = 6Interpreter stay running.
ITP_STATE_STOP = 15Interpreter is stopped.
ITP_STATE_WAITFUNC = 16Interpreter is waiting for acknowledgement of M-functtion.
ITP_STATE_WRITETABLE = 7Interpereter writing table.