Temporary End (TND)

This information applies to the
CompactLogix
5370,
ControlLogix
5570,
Compact GuardLogix
5370,
GuardLogix
5570,
Compact GuardLogix
5380,
CompactLogix
5380,
CompactLogix
5480,
ControlLogix
5580, and
GuardLogix
5580 controllers.
The TND instruction conditionally ends a routine.
Available Languages
Ladder Diagram
TND_LD_avail_v31
Function Block
This instruction is not available in function block.
Structured Text
TND();
Operands
Ladder Diagram
None
Structured Text
None
Description
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.
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
See Prescan in the Ladder Diagram table.
Normal execution
See rung-condition-in is true in the Ladder Diagram table
Postscan
See Postscan in the Ladder Digram table.
Structured Text
InputA[:=] OutputB;
IF (InputA) THEN
  TND();
END_IF;
InputE [:=] OutputF;
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.