FlipFlop

PLCopen motion icon

 Function BlockClosed A function block groups an algorithm and a set of private data. It has inputs and outputs. - Flipflop bistable.

Inputs

Input

Data Type

Range

Unit

Default

Description

IN

BOOL

 

 

 

Swap command (on rising edgeClosed The transition of a digital signal from low to high. AKA: positive edge.).

RST

BOOL

 

 

 

ResetClosed New start of the microprocessor. to FALSE.

Outputs

Output

Data Type

Range

Unit

Description

Q

BOOL

 

 

Output.

Remarks

  • The output is systematically reset to FALSE if RST is TRUE.
  • The output changes on each rising edge of the IN input, if RST is FALSE.

FBD Language Example

FFLD Language Example

IL Language Example

(* MyFlipFlop is declared as an instance of FLIPFLOP functionClosed A function calculates a result according to the current value of its inputs. 
A function has no internal data and is not linked to declared instances. block: *)
Op1: CAL MyFlipFlop (IN, RST)
     FFLD  MyFlipFlop.Q
     ST  Q1

ST Language Example

(* MyFlipFlop is declared as an instance of FLIPFLOP function block: *)
MyFlipFlop (IN, RST);
Q := MyFlipFlop.Q;

See Also

R

S

SR