Reset Dominant (RESD)
The RESD instruction uses Set and Reset inputs to control latched outputs. The
Reset input has precedence over the Set input.
The Reset Dominant instruction uses the Set and Reset input parameters to control
latched output parameters Out and OutNot. The Reset input has precedence over
the Set input.
Out will be latched true whenever the Set input parameter is set true. Setting
the Reset parameter to true will override the current state of Out, setting Out
to false.
When Reset returns to false, Out will be latched to the current state of the Set
input parameter. OutNot will be set to the opposite state of Out.
Available Languages
Ladder Diagram
This instruction is not available for ladder diagram.
Structured Text
RESD(RESD_tag);
Operands
DOMINANT_RESET 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. |
Structured text
SeeStructured Text syntax for more information on the
syntax of expressions within structured text.
Affects Math Status Flags
No
Major/Minor Faults
None specific to this instruction. See Common Attributes for fault related
attributes.
Execution
Structured Text
Condition/State | Action Taken |
Prescan | EnableIn and EnableOut bits are cleared to false. |
Normal Execution | EnableIn and EnableOut bits are set to true. The instruction executes. |
Postscan | EnableIn and EnableOut bits are cleared to false. |
Example
When Set is true and Reset is false, Out is set true. When Reset is true, Out is
cleared. The Reset input has precedence over the Set input. The RESD instruction
sets OutNot to the opposite state of Out.
Structured Text
RESD_01.Set := set_input;
RESD_01.Reset := reset_input;
RESD(RESD_01);
out_output := RESD_01.Out;
outNot_output := RESD_01.OutNot;
Provide Feedback