- Studio 5000 Logix Designer
- Tasks, programs, and routines
- Add-On Instructions
- Controller Organizer
- Logical Organizer
- Alarms
- Tag-based alarms
- Tag Editor and Data Monitor
- Configure settings for Tag Editor and Data Monitor
- Equipment phases
- Equipment Sequences
- Equipment Sequence Diagrams
- Ladder Editor
- Structured Text Editor
- Sequential Function Chart Editor
- Define the steps of an SFC process
- PlantPAx instruction properties
- Controller Properties
- Editing Controller Properties
- Controller Security
- Source Protection
- License Source Protection for Routines and Add-On Instructions
- Module Information
- 1756 ControlLogix I/O Modules
- Instruction Set
Set Dominant (SETD)
This instruction applies to the
CompactLogix
5370, ControlLogix
5570, and ControlLogix
5580 controllers. The SETD instruction uses Set and Reset inputs to control latched outputs. The Set input has precedence over the Reset input.
Available Languages
Ladder Diagram
This instruction is not available in ladder diagram logic.
Function Block

Structured Text
SETD(SETD_tag);
Operands
Function Block
Operand | Type | Format | Description |
---|---|---|---|
SETD tag | DOMINANT_SET | structure | SETD structure |
Structured text
Operand | Type | Format | Description |
---|---|---|---|
SETD tag | DOMINANT_SET | structure | SETD structure |
See
Structured Text Syntax
for more information on the syntax of expressions within structured text.DOMINANT_SET Structure
Input Parameter | Data Type | Description |
---|---|---|
EnableIn | BOOL | Enable input. If cleared, the instruction does not execute and outputs are not updated.
Default is set. |
Set | BOOL | Set input to the instruction.
Default is cleared. |
Reset | BOOL | Reset input to the instruction.
Default is cleared. |
Output Parameter | Data Type | Description |
---|---|---|
EnableOut | BOOL | Indicates if instruction is enabled. |
Out | BOOL | The output of the instruction. |
OutNot | BOOL | The inverted output of the instruction. |
Description
The Set Dominant instruction uses the Set and Reset input parameters to control latched output parameters Out and OutNot. The Set input has precedence over the Reset input.
Out will be latched true whenever the Set input parameter is set true. Setting the Reset parameter to true will set Out to false only if the Set input is false. OutNot will be set to the opposite state of Out.
Affects Math Status Flags
No
Major/Minor Faults
None specific to this instruction. See
Common Attributes
for operand-related faults.Execution
Condition/State | Action Taken |
---|---|
Prescan | EnableIn and EnableOut bits are cleared to false. |
Tag.EnableIn is false | EnableIn and EnableOut bits are cleared to false. |
Tag.EnableIn is true | EnableIn and EnableOut bits are set to true. The instruction executes. |
Instruction first run | Out bit is set to true. OutNot is cleared to false. |
Instruction first scan | N/A |
Postscan | EnableIn and EnableOut bits are cleared to false. |
Structured Text
Condition/State | Action Taken |
---|---|
Prescan | See Prescan in the Function Block table. |
Normal Execution | See Tag.EnableIn is true in the Function Block table. |
Postscan | See Postscan in the Function Block table. |
Example
When Set is true, Out is set true. When Set is false and Reset is true, Out is cleared. The Set input has precedence over the Reset input. The SETD instruction sets OutNot to the opposite state of Out.
Function Block

Structured Text
SETD_01.Set := set_input;
SETD_01.Reset := reset_input;
SETD(SETD_01);
out_output := SETD_01.Out;
outNot_output := SETD_01.OutNot;
Provide Feedback