ST_OCPP1_SampledValue
Aus Sicht der OCPP-Spezifikation ist ein Meter Value ein Sampled Value mit Zeitstempel. In der vorliegenden SPS-Bibliothek wird der Zeitstempel ebenfalls im Sampled Value geführt, um eine Strukturebene weniger zu haben.
Syntax
TYPE ST_OCPP1_SampledValue :
STRUCT
    fValue     : LREAL;
    nTimestamp : ULINT := 0;
    eContext   : E_OCPP1_ReadingContext := E_OCPP_ReadingContext.SamplePeriodic;
    eFormat    : E_OCPP1_ValueFormat := E_OCPP_ValueFormat.Raw;
    eMeasurand : E_OCPP1_Measurand; 
    ePhase     : E_OCPP1_Phase;
    eLocation  : E_OCPP1_Location;
    eUnit      : E_OCPP1_Unit;
END_STRUCT
END_TYPEParameter
| Name | Typ | Optional | Beschreibung | 
|---|---|---|---|
| fValue | LREAL | Nein | Sampled Value als dezimale Zahl („Raw“). „SignedData“ wird nicht unterstützt. | 
| nTimestamp | ULINT | Ja | Zeitstempel des Sampled Values. | 
| eContext | Ja | Kontext, in dem der Sampled Value aufgenommen wurde (Start, Ende oder Sample). | |
| eFormat | Ja | In der vorliegenden Implementierung ist es immer das „Raw“-Format. | |
| eMeasurand | Ja | Typ des Sampled Values. | |
| ePhase | Ja | Informationen über die Interpretation des Sampled Values. | |
| eLocation | Ja | Ort des Sampled Values. | |
| eUnit | Ja | Einheit des Sampled Values. |