Class RunningTime
Version 1.0
Modified 07-JUL-2017 13:58:14.00
Code nmps_plc_runtime.c
 Running time Measurement.

Running Time concept in ProviewR is a way to standardize the measurement of
running time for different machines.

The RunningTime object executes under the PLC. It uses a Boolean Input, and
measures the time and the running time for the signal.

All measured times are stored in the object. Times are stored as number of hours
(integer) and number of seconds up to 1 hour (float). There are measurements
for Total Time, Total running time, Trip time and Trip running time. We also note
number of starts for each period. The Running time as part of the total time in
percent is calculated for both total and trip.

There is also the possibility to reset the Trip measurement in each object. The
values from the last trip measurement is saved in the object as OldTrip.
We also note the time for the last start for the signal, and the time for the
last ResetTrip.

There should always be an object backup for each RunningTime object. The Backup
object can be connected to the 'sta'-output from the RunningTime object.

RtBody attributes pwr_sClass_RunningTime
Boolean Running run Input signal.
Boolean Start sta Output signal is True for one cycle when we detect edge of Running input.
Output pin is mainly used for connection of Backup-object.
String40 Description   Documentation only.
Boolean TripReset   Used to move Trip data to OldTrip, and to reset all Trip data.
Time StartTime   Date and time for latest edge of input.
Time ResetTime   Date and time for last Trip reset.
UInt32 TotalNOfStarts   Total number of detected starts.
UInt32 TotalRunHours   Total number of running hours.
Float32 TotalRunSeconds   Total number of running seconds up to one hour.
UInt32 TotalHours   Total number of calendar hours.
Float32 TotalSeconds   Total number of calendar secons up to one hour.
Float32 TotalUsage   Percent running time compared to time.
UInt32 TripNOfStarts   Total number of detected starts since Trip reset.
UInt32 TripRunHours   Total number of running hours since trip reset.
Float32 TripRunSeconds   Total number of running seconds since trip reset, up to one hour.
UInt32 TripHours   Total number of calendar hours since trip reset.
Float32 TripSeconds   Total number of calendar seconds since trip reset, up to one hour.
Float32 TripUsage   Precent running time compared to time.
UInt32 OldTripNOfStarts   Total number of detected starts between last Trip resets.
UInt32 OldTripRunHours   Total number of running hours between last trip resets.
Float32 OldTripRunSeconds   Total number of running seconds between last trip resets, up to one hour.
UInt32 OldTripHours   Total number of calendar hours between last trip resets.
Float32 OldTripSeconds   Total number of calendar seconds between last trip resets, up to one hour.
Float32 OldTripUsage   Precent running time compared to time.
Pointer to Float32 ScanTime   Internal attribute for calculation of time since last execution.
Date and time, or uptime depending on platform.

DevBody attributes 
pwrs:Class-$PlcNode PlcNode  


GraphPlcNode
object_type 11
parameters[0] 1
parameters[1] 0
parameters[2] 1
parameters[3] 0
graphmethod 0 (standard, individual attributes)
graphindex 0
default_mask[0] 1
default_mask[1] 1
segname_annotation 1
compmethod 4
compindex 0
tracemethod 0
traceindex 0
connectmethod 0
executeordermethod 2
objname RunningTime
graphname RunningTime


Template Object


Attributes detail


Running Input
Class Input
Type Boolean
Flags State|Noedit|Noinvert|Noremove
GraphName run
Body RtBody
Input signal.

Start Output
Class Output
Type Boolean
Flags Noedit
GraphName sta
Body RtBody
Output signal is True for one cycle when we detect edge of Running input.
Output pin is mainly used for connection of Backup-object.

Description Intern
Class Intern
Type String40
Flags
Body RtBody
Documentation only.

TripReset Intern
Class Intern
Type Boolean
Flags Noedit
Body RtBody
Used to move Trip data to OldTrip, and to reset all Trip data.

StartTime Intern
Class Intern
Type Time
Flags Noedit
Body RtBody
Date and time for latest edge of input.

ResetTime Intern
Class Intern
Type Time
Flags Noedit
Body RtBody
Date and time for last Trip reset.

TotalNOfStarts Intern
Class Intern
Type UInt32
Flags Noedit
Body RtBody
Total number of detected starts.

TotalRunHours Intern
Class Intern
Type UInt32
Flags Noedit
Body RtBody
Total number of running hours.

TotalRunSeconds Intern
Class Intern
Type Float32
Flags Noedit
Body RtBody
Total number of running seconds up to one hour.

TotalHours Intern
Class Intern
Type UInt32
Flags Noedit
Body RtBody
Total number of calendar hours.

TotalSeconds Intern
Class Intern
Type Float32
Flags Noedit
Body RtBody
Total number of calendar secons up to one hour.

TotalUsage Intern
Class Intern
Type Float32
Flags Noedit
Body RtBody
Percent running time compared to time.

TripNOfStarts Intern
Class Intern
Type UInt32
Flags Noedit
Body RtBody
Total number of detected starts since Trip reset.

TripRunHours Intern
Class Intern
Type UInt32
Flags Noedit
Body RtBody
Total number of running hours since trip reset.

TripRunSeconds Intern
Class Intern
Type Float32
Flags Noedit
Body RtBody
Total number of running seconds since trip reset, up to one hour.

TripHours Intern
Class Intern
Type UInt32
Flags Noedit
Body RtBody
Total number of calendar hours since trip reset.

TripSeconds Intern
Class Intern
Type Float32
Flags Noedit
Body RtBody
Total number of calendar seconds since trip reset, up to one hour.

TripUsage Intern
Class Intern
Type Float32
Flags Noedit
Body RtBody
Precent running time compared to time.

OldTripNOfStarts Intern
Class Intern
Type UInt32
Flags Noedit
Body RtBody
Total number of detected starts between last Trip resets.

OldTripRunHours Intern
Class Intern
Type UInt32
Flags Noedit
Body RtBody
Total number of running hours between last trip resets.

OldTripRunSeconds Intern
Class Intern
Type Float32
Flags Noedit
Body RtBody
Total number of running seconds between last trip resets, up to one hour.

OldTripHours Intern
Class Intern
Type UInt32
Flags Noedit
Body RtBody
Total number of calendar hours between last trip resets.

OldTripSeconds Intern
Class Intern
Type Float32
Flags Noedit
Body RtBody
Total number of calendar seconds between last trip resets, up to one hour.

OldTripUsage Intern
Class Intern
Type Float32
Flags Noedit
Body RtBody
Precent running time compared to time.

ScanTime Intern
Class Intern
Type Pointer to Float32
Flags Pointer|Invisible|Private
Body RtBody
Internal attribute for calculation of time since last execution.
Date and time, or uptime depending on platform.

PlcNode Buffer
Class Buffer
Type pwrs:Class-$PlcNode
Flags Invisible
Body DevBody