12-40
12.3 Stop Control
HOLD (Statement) [Conforms to SLIM]
Function
Holds program processing for a time.
Format
HOLD <Message>
Explanation
This statement holds program processing and outputs the contents designated
in <Message> to the pendant. For contents of <Message>, refer to the
RINTMSG statement.
If you restart the system, it executes the suspended program from the next
statement after the HOLD statement.
The number of characters for a message is 60 letters (One-byte character).
Related Terms
DELAY, HALT, STOP
Example
DEFINT li1, li2
HOLD li1 + li2
'Holds program processing to set the system to the stop status in step
'mode and outputs value of (li1 + li2) to the pendant.
HOLD “stop”
'Holds program processing to set the system to the stop status in step
'mode and outputs a character string “stop” to the pendant.
Notes
When you use a type F variable and a type D variable as a message, the
system displays up to 4 digits after the decimal point.
Comments to this Manuals