TND is a conditional exit command. TND is typically used to abort a ladder scan.
In the ladder above, when P0 turns ON the ladder scan will be aborted.
It can also be used to exit from subroutines when a certain condition is met. In the ladder above, when P1 turns ON, the subroutine will be aborted, but the ladder scan will continue.