Rockwell Automation Publication 1756-RM006K-EN-P - November 2018 407
Examples
When Clock goes from cleared to set, the JKFF instruction toggles Q. If Clear is
set, Q is always cleared. The JKFF instruction sets QNot to the opposite state of
Q.
Function Block
Structu
red Text
JKFF_01.Clear := clear_input;
JKFF_01.Clock := clock_input;
JKFF(JKFF_01);
q_output := JKFF_01.Q;
qNot_output := JKFF_01.QNot;
See also
Common Attributes on page 537
Structured Text Syntax on page 508
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 RESD instruction uses Set and Reset inputs to control latched outputs. The
Reset input has precedence over the Set input.
Available Languages
Ladder Diagram
This instruction is not available for ladder diagram.