ST_OCPP1_SampledValue
From the point of view of the OCPP specification, a Meter Value is a Sampled Value with a timestamp. In this PLC library, the timestamp is also managed in the Sampled Value in order to have one structure level less.
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_TYPE
Parameter
Name | Type | Optional | Description |
---|---|---|---|
fValue | LREAL | No | Sampled Value as a decimal number ("Raw"). "SignedData" is not supported. |
nTimestamp | ULINT | Yes | Timestamp of the Sampled Value. |
eContext | Yes | Context in which the Sampled Value was recorded (start, end or sample). | |
eFormat | Yes | In this implementation, it is always the "Raw" format. | |
eMeasurand | Yes | Type of the Sampled Value. | |
ePhase | Yes | Information on the interpretation of the Sampled Value. | |
eLocation | Yes | Location of the Sampled Value. | |
eUnit | Yes | Unit of the Sampled Value. |