RS_FF_FB: Reset flip-flop (RS flip-flop)
The RS_FF_FB (FB407) block is used to reset or set the bit of a specified operand based on the signal state of the inputs [R] and [S]. The current signal state of the operand is transferred to output [Q] where it can be queried.
Functionality
Input [R] takes priority over input [S]. This means that when [R] is 1 (True), the signal state of [Q] will always be reset to 0 regardless of [S]. If [R] is 0 (False) and [S] is 1 (True), [Q] will be set to 1 (True).
If both R and S are 0 (False) the instruction is not performed and the operand remains unchanged.
Function table
Inputs | Outputs | ||
R | S | Q | QN (inverse) |
1 (True) | 0 (False) | 0 (False) | 1 (True) |
0 (False) | 1 (True) | 1 (True) | 0 (False) |
1 (True) | 1 (True) | 0 (False) | 1 (True) |
0 (False) | 0 (False) | Last state (no change) | Last state (no change) |
Inputs
Pin | E | Description |
S | pa | Set |
R | pa | Reset |
Outputs
Pin | E | Description |
Q | a | Output |
QN | a | Inverse output |
Input values
Pin | Description | Data Type | Default value | E.g. Engineering unit or Text group | Min. | Max. |
S | Set | Boolean | 0 (False) | False, True |
|
|
R | Reset | Boolean | 0 (False) | False, True |
|
|
Output values
Pin | Description | Data Type | Default value | E.g. Engineering unit or Text group | Min. | Max. |
Q | Output | Boolean | 0 (False) | False, True |
|
|
QN | Inverse output | Boolean | 1 (True) | False, True |
|
|
Process response
Standard (see General rules and information).
Troubleshooting
Standard (see General rules and information).