474 Rockwell Automation Publication 1756-RM006K-EN-P - November 2018
regardless of ownership. If the SCMD instruction must execute regardless of
ownership, use an SOVR instruction instead of an SCMD instruction.
Important:
The SOVR instruction is intended for emergencies only. Control Engineers should use
caution when deciding to use it.
When a tag is assigned to store the result of an SCMD instruction, the instruction
returns one of five result codes when it runs. Result code 0 indicates that the
SCMD instruction ran successfully. The other four codes indicate that the
instruction did not run successfully and provide additional information about the
reason for the instruction failure.
Available Languages
The SCMD instruction is available in the following languages.
Ladder Diagram
Function Block
This instruction is not available in Function Block.
Structured Text
SCMD(SequenceName,Command,Result)
Supported Operands
The SCMD instruction uses the following operands.
Operand Type Format Description
Sequence Name Sequence Name of the Equipment
Sequence
Equipment Sequence to change to a different state. For
example, Make_Product_101.
Command Command Name of the command Command to send to the Equipment Sequence and change
state. Send one of these commands: START, RESTART, HOLD,
STOP, ABORT, or RESET.
Result DINT Immediate tag For an instruction to return a success or failure code, enter a
DINT tag where the result code is stored. Otherwise, enter 0.