Back to FBD reference

Edges

R_TRIG

Rising-edge detector

The R_TRIG block compares the current IN value with the previous scan and emits a one-scan pulse on a rising edge.

Typical FBD symbol

IN
R_TRIG
Q
Typical FBD symbol for R_TRIG

Inputs

NameTypeRequiredDescription
INBOOLYesSignal whose rising edge is detected.

Outputs

NameTypeRequiredDescription
QBOOLYesTRUE only on the FALSE -> TRUE scan.

Stateful

Yes, the block keeps internal state between scans.

Behavior rule

Q = TRUE for one scan when IN changes from FALSE to TRUE.

Scan table

Rising-edge example.

ScanINprevious INQ
1FALSEFALSEFALSE
2TRUEFALSETRUE
3TRUETRUEFALSE
4FALSETRUEFALSE

Practical use

  • count one button press;
  • start a one-shot action;
  • pulse a counter input.

What to watch

  • Expecting Q to stay TRUE while IN is TRUE. R_TRIG emits one scan only.

Related blocks