Result codes for SCMD instructions
When a tag is assigned to store the result of an
Equipment Sequence
command (SCMD) instruction, the instruction returns one of these codes when it runs.Code (Dec) | Description |
0 | The command was successful. |
48 | The command was not executed because it was not possible at the time to generate an event to record the command.
|
24577 | The command is not valid. |
24578 | The command is not valid for the current state of the Equipment Sequence . For example, if the Equipment Sequence is in the running state, then a start command is not valid. |
24579 |
|
24582 |
|
24580 | The caller of the instruction is attached, but is not the current owner of the Equipment Sequence . A higher priority owner, such as Logix Designer , is commanding the Equipment Sequence . |
24594 | The Equipment Sequence is unscheduled, inhibited, or in a task that is inhibited. |
24604 | An equal or higher priority command is being processed. |
24631 | Too many sequence parameter or step tags are defined per step, so events cannot be handled and the START command failed. |
Use the
Result
operand to get a code that shows the success or failure of the SCMD instruction. The Result
operand should contain either 0
or a DINT tag, depending on whether ownership conflicts or other errors are likely to occur.- If ownership conflicts or other errors are not likely, enter0in theResultoperand.
- If ownership conflicts or other errors are likely, enter a DINT tag in theResultoperand. The DINT tag stores a code for the result of the execution of the instruction.
Provide Feedback