Toggles an output depending to the set, clear command and clock conditions
Programming Hint
A numeric input (if not Boolean) is read as true if the value is >= 0.5 and false if the value is < 0.5 including negative values.
Table 71. J-K Flip Flop switching conditions
Set |
Clear |
Clock |
Y |
FALSE |
FALSE |
TRUE or FALSE |
"Last output" |
TRUE |
TRUE |
TRUE or FALSE |
"Last output" |
FALSE |
FALSE |
changes from FALSE to TRUE |
Y = NOT Y |
TRUE |
TRUE |
changes from FALSE to TRUE |
Y = NOT Y |
TRUE |
FALSE |
don’t care |
1 |
FALSE |
TRUE |
don’t care |
0 |
Fig. 103. Wire-sheet Icon
Fig. 104. Property Sheet
Fig. 105. Slot Sheet
Table 72. Inputs
Inputs |
Type |
Functional description |
In Set |
boolean |
input value to set the output |
In Clock |
boolean |
input value to toggle the output |
In Reset |
boolean |
input value to reset the output |
In Enabled |
boolean |
If the input “In Enabled” is set to false disabled in the slot sheet, the output “Out” will be disabled and is set to the value “0”. |
Table 73. Outputs
Outputs |
Type |
Functional description |
Out |
boolean |
One output = output signal |
No parameters.