Stop command, Functions – Rockwell Automation 1775-KA PLC-3 Communication Adapter Module User Manual User Manual
Page 87
Message Procedure Commands
Chapter 6
6Ć9
command line 1
command line 2
ON_ERROR GOTO RECOVER
command line 3
command line 4
ON_ERROR ERR_CODE = $B2:16
command line 5
In this sequence, the first ON_ERROR command applies to command
lines 3 and 4, while the second ON_ERROR command applies to
command line 5.
Some command lines might not have an ON_ERROR command that
applies to them. If an error occurs in such a command line,the procedure
will stop executing.
Appendix B lists the error conditions.
The STOP command terminates execution of the MSG instruction in the
PLC–3 ladder diagram program. This means that the STOP command
stops execution of the current procedure and all procedures nested
together with the current one.
The format of the STOP command is simply the single letter
S
without any modifiers or parameters.
The STOP command is a drastic means of terminating a message
procedure, so it should be used only when no other action is possible. The
normal means of terminating a procedure is the EXIT command (section
titled EXIT Command). When the STOP command is used, it results in an
error code of 179 (Appendix B).
In addition to containing commands and nested procedures, a message
procedure can also contain functions. Functions can be used anywhere
expressions can be used.
STOP Command
Functions