Documentation

Rising Edge Detection (IEC 61131)

Block name

R_TRIG

ST call

PROGRAM R_TRIG_DEMO
VAR
BOOL1,BOOL2: BOOL;
FB:R_TRIG;
END_VAR
FB(CLK:=BOOL1,Q=>BOOL2);
END_PROGRAM

Description

The block sends a pulse with duration of one cycle on the input signal's rising edge.

Inputs

Input Type Description Default value
CLK ANY_BOOL Input reading the rising edge of the signal False

Outputs

Output Type Description
Q BOOL Output signal

Application example