Name :Heartbeat rising edge

Symbol:R_TRIG

Illustrate:

        Using the Heartbeat Rising Rim command, you can detect the change in state from "0" to "1" in the input CLK. This directive compares the current value of the input CLK with the state of the last query (edge storage bit) saved in the specified instance. If the command detects that the state of the input CLK has changed from "0" to "1", it will generate a signal rising edge in the output Q, and the output value will be TRUE or "1" for one cycle.
        In all other cases, the signal status of the command output is "0".

Image:

Parameter:

Parameter | Statement | Type | Description
--- | --- | --- | ---
CLK | Input | BOOL |
    When a signal is reached, the edge of that signal will be queried
Q | Output | BOOL |
    The result of edge detection

Example:

LD:

ST:

R_TRIG_inst1(CLK := TagIn1, Q => TagOut);

Interpretation:

        If the signal status of the operand "TagIn1" is detected to change from "0" to "1", the signal status of the output "TagOut" is "1" for one cycle.