F_TRIG is a function block that detects a falling edge of a Boolean signal. It has a Boolean input CLK and a Boolean output Q; Q becomes TRUE when a falling edge is detected. The source shows Structured Text declaration and call examples using an instance of the function block.
| Language | iec 61131 3 |
|---|---|
| Code | F TRIG |
| Group | Trigger |
| Syntax | FTRIGInst(CLK := VarBOOL1); VarBOOL2 := FTRIGInst.Q; |
| Dialect | CODESYS |
| Name | Data type | Description |
|---|---|---|
| CLK | BOOL | Input: Boolean signal to be checked. |
| Q | BOOL | Output: TRUE when a falling edge is detected. |