r_trig

PLCopen motion icon

 Function Block - Rising pulse detection.

  • It is recommended to use declared instances of R_TRIG or F_TRIG function blocks.
    • This is to avoid contingencies during an Online Change.

Inputs

Input

Data Type

See Data Types.

Range

Unit

Default

Description

CLK

BOOL

FALSE, TRUE

 

 

Boolean signal.

Outputs

Output

Data Type

See Data Types.

Range

Unit

Description

Q

BOOL

FALSE, TRUE

 

TRUE when the input changes from FALSE to TRUE.

Truth Table

CLK

CCLK (prev)

Q

0

0

0

0

1

0

1

0

1

1

1

0

FBD Language Example

FFLD Language Example

  • In the FFLD Language, ]P[ and ]N[ contacts can be used.
  • The input signal is the rung.
  • The rung is the output.

IL Language Example

Not available.

ST Language Example

(* MyTrigger is declared as an instance of R_TRIG function block *)
MyTrigger (CLK);
Q := MyTrigger.Q;

See Also