The RuntimeMeter function can set, start, stop and read out a 32-bit operating hours counter.
The number and availability of counters is PLC-specific; refer to the technical specifications.
Parameters:
| Name | Type | Section | Description |
|---|---|---|---|
| meterNumber | UINT |
Input | Number of the operating hours counter. |
| mode | RuntimeMeterMode |
Input | Controls the operating mode. |
| operatingHours | DINT |
Input | New value for the operating hours counter. |
| active | BOOL |
Output | Indicates whether the operating hours counter is active |
| currentOperatingHours | DINT |
Output | Current value of the operating hours counter. |
WORD |
Return value | Provides the result of the operation. |