RecvMeterValue
With this method, an OCPP server receives Meter Values from an OCPP client. To respond to the receipt of the Meter Values, the method RespMeterValue must be called.
Contrary to the specification, it is possible to receive Meter Value messages without Meter Values in order to increase compatibility with other vendors.
Syntax
METHOD RecvMeterValue : BOOL
VAR_INPUT
hStationId : UDINT;
END_VAR
VAR_IN_OUT
arrSampleValues : ARRAY[*] OF ST_OCPP1_SampledValue;
END_VAR
VAR_OUTPUT
hMessageId : T_OCPP_MessageId;
nConnectorId : UDINT;
nTransactionId : UDINT;
nSampleCount : UDINT;
END_VAR
Return value
Name | Type | Description |
---|---|---|
RecvMeterValue | BOOL | The method returns the return value TRUE if the call was successful. A method call is also considered successfully completed in the event of an error. |
Inputs
Name | Type | Description |
---|---|---|
hStationId | UDINT | Identifier of the OCPP client in the instance of the OCPP server. |

Inputs/outputs
Name | Type | Description |
---|---|---|
arrSampleValues | ARRAY [*] OF ST_OCPP1_SampledValue | The sampled values sent by the client. |
Outputs
Name | Type | Description |
---|---|---|
hMessageId | MessageId of the received message. | |
nConnectorId | UDINT | ID of the Connector of a Charge Point. |
nTransactionId | UDINT | The transaction to which the sampled values belong. |
nSampleCount | UDINT | The number of sampled values contained. |
Possible errors are output at the outputs bError and hrErrorCode of the function block instance.