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 = 12
If 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 = 11
Interpreter aborting.
ITP_STATE_END = 9
Interpreter reached end.
ITP_STATE_FAULT = 13
Interpreter has a fault.
ITP_STATE_FLUSHBUFFERS = 17
Interpeter is flushing buffers.
ITP_STATE_IDLE = 1
The 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 = 0
Initilization of interpreter failed.
ITP_STATE_READY = 2
After 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 = 14
Interpreter is reset.
ITP_STATE_RUNNING = 5
Interpreter running.
ITP_STATE_SCANNING = 4
Interpreter scanning.
ITP_STATE_SEARCHLINE = 8
Interpreter block searching.
ITP_STATE_SINGLESTOP = 10
This 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 = 3
Interpreter started.
ITP_STATE_STAY_RUNNING = 6
Interpreter stay running.
ITP_STATE_STOP = 15
Interpreter is stopped.
ITP_STATE_WAITFUNC = 16
Interpreter is waiting for acknowledgement of M-functtion.
ITP_STATE_WRITETABLE = 7
Interpereter writing table.