Attention
IronPLC can only run very simple programs. The steps described are accurate but many language features are not yet supported.
TP¶
Pulse timer. Generates a pulse of duration PT on the rising edge of
input IN.
IEC 61131-3 |
Section 2.5.2.3.3 |
Support |
Not yet supported |
Inputs¶
Name |
Type |
Description |
|---|---|---|
|
|
Trigger input |
|
|
Pulse duration |
Outputs¶
Name |
Type |
Description |
|---|---|---|
|
|
Pulse output (TRUE during pulse) |
|
|
Elapsed time |
Behavior¶
When IN transitions from FALSE to TRUE (rising edge), the output
Q becomes TRUE and the elapsed time ET begins counting from
T#0s. The output Q remains TRUE until ET reaches the preset
time PT, at which point Q becomes FALSE. Changes to IN during
the pulse have no effect; the pulse always runs for the full duration PT.
Example¶
VAR
pulse1 : TP;
trigger : BOOL;
output : BOOL;
END_VAR
pulse1(IN := trigger, PT := T#1s);
output := pulse1.Q;