uTP block
Short summary
Name |
uTP |
→POU type |
|
Category |
|
Conform to →IEC-standard |
not defined in IEC-standard |
Graphical interface |
|
Available since |
version 1.45.0 (for logi.CAD 3) |
Functionality
Similar to the TP block, this is a pulse generator. In contrast to TP, the output ET is not provided for uTP.
Enter the length of the pulse at input PT. If input IN is →turned on and during the length of the pulse, output Q returns value TRUE (or an equivalent). If input PT is changed after input IN has been turned on, the behavior of the block is affected.
This block receives the current system time from the runtime system. This time remains constant while the same task is executed. However, in case of different tasks, it is possible that a different system time is used when the belonging programs are executed (even if the different tasks have the same cycle time).
The following illustration shows the behavior of uTP:
In-/outputs
|
Identifier |
Description |
|
Inputs: |
IN |
BOOL |
input/start |
PT |
TIME |
preset time |
|
Outputs: |
Q |
BOOL |
output |
Input EN and output ENO are available when →calling the block. See "Execution control: EN, ENO" for information on input EN and output ENO.
See:
"Blocks for safe logic" whether this block is supported for developing safety-relevant applications.
"Highlighting safe logic in the FBD-editor" for the effects when using the block as a block for safe logic .
Example for usage within ST-editor
PROGRAM Test
VAR
utp1 : uTP;
pulse : BOOL;
END_VAR
utp1(IN := TRUE, PT := T#2s, Q => pulse);
(* Instance of block
'uTP'
is called. Variable
'pulse'
delivers TRUE
for
2
seconds. *)
END_PROGRAM
When creating your application within the ST-editor, enter a call of a block by typing the text as requested by the syntax or use Content Assist.