9.2
Impulse generator
The following diagram illustrates the operating principle of the impulse generator:
Call
TP<instance> (IN, PT, TimeBase);
Inputs
Parameter
<Instance>
IN
PT
TimeBase
Outputs
Parameter
Q
ET
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.
Data type
Description
01 to xx (specify instance with two digits)
BOOL
Positive edge at IN sets Q for the time PT to TRUE
UINT
Time (unit: TimeBase), for Q = TRUE, IN = TRUE
UINT
Unit of PT:
1 = ms
2 = s
3 = min
Data type
Query; (* description *)
BOOL
OUT := TP<instance>.Q;
(* OUT = TRUE for the time PT, if IN := 0 -> 1 *)
UINT
OUT := TP<instance>.ET;
(* OUT = time passed since IN = TRUE until Q = FALSE (time
passed since the start of the active impulse phase) *)
9 Function modules
51