Temporary end (tnd), Suspend (sus) – Rockwell Automation 1761-HHP-B30 MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual
Page 223

Chapter 12
Using Program Flow Control Instructions
12–7
This instruction, when its rung is true, stops the controller from scanning the
rest of the program file, updates the I/O, and resumes scanning at rung 0 of
the main program (file 2). If this instruction’s rung is false, the controller
continues the scan until the next TND instruction or the END statement. Use
this instruction to progressively debug a program or conditionally omit the
balance of your current program file or subroutines.
Important: If you use this instruction inside a nested subroutine, execution
of all nested subroutines is terminated.
Do not execute this instruction from the user error fault routine
(file 3), high-speed counter interrupt routine (file 4), or
selectable timed interrupt routine (file 5), or a fault will occur.
Entering the Instruction
You enter the instruction from within the program monitor functional area.
P 0 0 6
T N D
When this instruction is executed, it causes the controller to enter the
Suspend Idle mode and stores the Suspend ID in word 7 (S7) at the status
file. All outputs are de-energized.
Use this instruction to trap and identify specific conditions for program
debugging and system troubleshooting.
Entering Parameters
Enter a suspend ID number from –32,768 to
+
32,767 when you program the
instruction.
Entering the Instruction
You enter the instruction from within the program monitor functional area.
Asterisks appear on the display to indicate that the HHP is waiting for data
entry (i.e., a number).
P 0 0 4
S U S
I D #
6 0 4
(TND)
Execution Times (
µ
sec) when:
True
False
7.78
3.16
Ladder representation:
Temporary End (TND)
6
3
U
ENT
1
FUN
To enter the function code, press:
SUS
SUSPEND
Suspend ID
604
Execution Times (
µ
sec) when:
True
False
10.85
7.87
Ladder representation:
Suspend (SUS)
7
3
U
ENT
1
FUN
To enter the function code, press: