FB_JKMasterSlaveFlipFlop - General Information
Type: |
Function block |
Available as of: |
V1.0.3.0 |
Inherits from: |
- |
Implements: |
- |
Versions: |
Current version |
JK master-slave flip flop
JK master-slave flip flop with Set and Reset inputs.
In the case of a rising edge of the clock pulse i_xC, the input values i_xJ and i_xK are taken over. Unlike the FB_JKFlipFlop, output q_xQ of the FB_JKMasterSlaveFlipFlop is only updated at a falling edge of the clock pulse i_xC.
If i_xSet is set, output q_xQ is forced to TRUE independently of the clock pulse. If i_xReset is set, output q_xQ is forced to FALSE independently of the clock pulse. If the inputs i_xSet and i_xReset are equal, output q_xQ is set as defined by the JK master-slave flip flop.
If in the case of a rising edge of the clock pulse the inputs are set accordingly, the JK master-slave flip flop shows the following behaviour in the case of a falling edge:
i_xJ = 0 , i_xK = 0 -> q_xQ = unchanged
i_xJ = 0 , i_xK = 1 -> q_xQ = 0 (flip flop is reset)
i_xJ = 1 , i_xK = 0 -> q_xQ = 1 (flip flop is set)
i_xJ = 1 , i_xK = 1 -> q_xQ = State is changed (toggle)
Input |
Data type |
Description |
---|---|---|
i_xJ |
BOOL |
Setting input |
i_xK |
BOOL |
Resetting input |
i_xC |
BOOL |
Clock pulse |
i_xSet |
BOOL |
TRUE: By means of i_xReset = FALSE, q_xQ is forced to TRUE |
i_xReset |
BOOL |
TRUE: By means of i_xSet = FALSE, q_xQ is forced to FALSE |
Output |
Data type |
Description |
---|---|---|
q_etDiag |
General library-independent statement on the diagnostic. A value not equal to ET_Diag.Ok corresponds to an diagnostic message. |
|
q_etDiagExt |
POU-specific output on the diagnostic. q_etDiag = ET_Diag.Ok -> Status message q_etDiag <> ET_Diag.Ok -> Diagnostic message |
|
q_xQ |
BOOL |
Signal output of the JK flip flop |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
0 |
Ok |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
The flip flop works as defined.