Function Block - Rising pulse detection.

Inputs

Input

Data type

Description

CLK

BOOL

Boolean signal.

Outputs

Output

Data type

Description

Q

BOOL

TRUE when the input changes from FALSE to TRUE.

Truth table

CLK

CLK prev

Q

0

0

0

0

1

0

1

0

1

1

1

0

Remarks

Although ]P[ an ]N[ contacts may be used in LD language, it is recommended to use declared instances of R_TRIG or F_TRIG function blocks in order to avoid unexpected behaviour during an Online change.

ST Language

MyTrigger is declared as an instance of R_TRIG function block:

MyTrigger (CLK);
Q := MyTrigger.Q;

FBD Language

Fixed_Image

LD Language

The input signal is the rung - the rung is the output:

Fixed_Image

Fixed_Image See also

F_TRIG


Created with the Personal Edition of HelpNDoc: Make Your PDFs More Secure with Encryption and Password Protection