One Shot Rising with Input (OSRI)
This information applies to the
CompactLogix
5370, ControlLogix
5570, Compact GuardLogix
5370, GuardLogix
5570, Compact GuardLogix
5380, CompactLogix
5380, CompactLogix
5480, ControlLogix
5580, and GuardLogix
5580 controllers.The One Shot Rising with Input (OSRI) instruction sets the output bit for one execution cycle when the input bit toggles from cleared to set.
Available Languages
Ladder Diagram
This instruction is not available in ladder diagram.
Function Block
Structured Text
OSRI(OSRI_tag);
Operands
Structured Text
Operand | Type | Format | Description |
---|---|---|---|
OSRI tag | FBD_ONESHOT | Structure | OSRI structure |
Function Block
Operand | Type | Format | Description |
---|---|---|---|
OSRI tag | FBD_ONESHOT | Structure | OSRI structure |
FBD_ONESHOT Structure
Input Parameter | Data Type | Description |
---|---|---|
EnableIn | BOOL | If cleared, the instruction does not execute and outputs are not updated. If set, the instruction executes.
Default is set. |
InputBit | BOOL | Input bit.
Default is cleared. |
Output Parameter | Data Type | Description |
---|---|---|
EnableOut | BOOL | Indicates if instruction is enabled. |
OutputBit | BOOL | Output bit |
Description
If InputBit is true, and it was false the last time the instruction was scanned then OutputBit will be set, otherwise OutputBit will be cleared.
Affects Math Status Flags
No
Major/Minor Faults
None specific to this instruction. See Common Attributes for operand-related faults.
Execution
Function Block
Condition/State | Action Taken |
---|---|
Prescan | EnableIn and EnableOut bits are cleared to false. |
Tag.Enable-in is false | EnableIn and EnableOut bits are cleared to false. |
Tag.Enable-in is true | EnableIn and EnableOut bits are set to true. The instruction executes. |
Instruction first run | N/A |
Instruction first scan | Previous InputBit history is set to require a False to True transition of InputBit. |
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 |
Examples
Function Block
When limit_switch1 goes from cleared to set, the OSRI instruction sets OutputBit for one scan.
Structured Text
OSRI_01.InputBit := limit_switch1;
OSRI(OSRI_01);
State := OSRI_O1.OutputBit;
Provide Feedback