TMU / TMUsec
Function Block - Up-counting stop watch.
Inputs
Input |
Data type |
Description |
IN |
BOOL |
The time counts when this input is TRUE. |
RST |
BOOL |
Timer is reset to 0 when this input is TRUE. |
PT |
TIME |
Programmed time. (TMU) |
PTsec |
UDINT |
Programmed time. (TMUsec - seconds) |
Outputs
Output |
Data type |
Description |
Q |
BOOL |
Timer elapsed output signal. |
ET |
TIME |
Elapsed time. (TMU) |
ETsec |
UDINT |
Elapsed time. (TMU - seconds) |
Time diagram
Remarks
The timer counts up when the IN input is TRUE. It stops when the programmed time is elapsed. The timer is reset when the RST input is TRUE. It is not reset when IN is false.
ST Language
MyTimer is a declared instance of TMU function block.
MyTimer (IN, RST, PT);
Q := MyTimer.Q;
ET := MyTimer.ET;
FBD Language
LD Language
|
TMU / TMUsec |
IEC 61131-3 Automation platform > Programming - Reference guide > Timers > TMU / TMUsec |
Created with the Personal Edition of HelpNDoc: Full-featured Help generator