Temporary End (TND)
    The TND instruction conditionally ends a routine.
When enabled, the TND instruction acts as the end of the routine. If the TND instruction is in a subroutine, control returns to the calling routine. If the TND instruction is in a main routine, control returns to the next program within the current task.
Available Languages
Ladder Diagram
_v1.png/_jcr_content/renditions/original)
Structured Text
TND();
Operands
Ladder Diagram
None
Structured Text
None
Affects Math Status Flags
No
Major/Minor Faults
None specific to this instruction. See Common Attributes for operand-related faults.
Execution
Ladder Diagram
| Condition/State | Action Taken | 
|---|---|
| Prescan | N/A | 
| Rung-condition-in is false | N/A | 
| Rung-condition-in is true. | The routine ends. | 
| Postscan | N/A | 
Structured Text
| Condition/State | Action Taken | 
|---|---|
| Prescan | N/A | 
| Normal execution | The routine ends. | 
| Postscan | N/A | 
Provide Feedback