The <delay> block is used to delay rising or falling edges; edge detection is performed by comparing the “in” input with the “in (n-1)” output. Note that on the first execution, the “out” output will be “invalid” because the “in (n-1)” output is not yet available. The “rise” and “delay” inputs are used to define the type of edges and the delay to be applied.
•« in » : This is the boolean variable for which you want to delay the edges.
•« rise » : Set to True to delay rising edges, or to False to delay falling edges.
•« delay » : Delay (in seconds) to be applied to the edges.
•« out » : This is the mirror image of the “in” input, but edges are delayed by “delay”.
•« rt » : (Remaining Time): This is the remaining time when an edge is delayed. This is a stored variable, which explains the apple-green background color. It is initialized to 0.
•« in (n-1) » : Represents the state of the “in” input from the previous execution; it is a stored variable, which explains the apple-green background color. It is not initialized, so it is invalid during the first execution.
All “in” and “rise” inputs, as well as the “out” and “in (n-1)” outputs, are of type bool.
The “delay” input and the “rt” output are of type float.