DiagnosticsCounter (FB)

FUNCTION_BLOCK FINAL DiagnosticsCounter IMPLEMENTS IDiagnosticsCounter

Data structure for counting events for diagnostic purposes
See IDiagnosticsCounter for more details
InOut:

Scope

Name

Type

Comment

Input Const

eClassification

DiagnosticsClassification

eDiagnosticsLevel

DiagnosticsLevel

Output

udiValue

UDINT

Current Counter Value

xActive

BOOL

True 🠖 Counter is active

dtTimeStamp

DT

Timestamp when the counter changed

dtTimeFirstChange

DT

Timestamp when the counter changed from 0 to 1