51
9 Function modules
9.2 Impulse generator
The following diagram illustrates the operating principle of the impulse generator:
Call
TP<instance> (IN, PT, TimeBase);
Inputs
Outputs
Comment
The TimeBase parameter is an extension to DIN IEC 61131-3. This extension does not constitute a lim-
itation to the standard. According to the standard, the time limit is "implementation-dependent".
The values of the inputs/outputs are not retained when the power is turned off.
Parameter Data type Description
<Instance> 01 to xx (specify instance with two digits)
IN BOOL Positive edge at IN sets Q for the time PT to TRUE
PT UINT Time (unit: TimeBase), for Q = TRUE, IN = TRUE
TimeBase UINT Unit of PT:
1 = ms
2 = s
3 = min
Parameter Data type Query; (* description *)
Q BOOL OUT := TP<instance>.Q;
(* OUT = TRUE for the time PT, if IN := 0 -> 1 *)
ET UINT OUT := TP<instance>.ET;
(* OUT = time passed since IN = TRUE until Q = FALSE (time
passed since the start of the active impulse phase) *)