RecvMeterValue
With this method, an OCPP server receives Meter Values from the connected OCPP client. To respond to the receipt of the Meter Values, the RespMeterValue method 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_IN_OUT
arrSampleValues : ARRAY[*] OF ST_OCPP1_SampledValue;
END_VAR
VAR_OUTPUT
hMessageId : T_OCPP_MessageId;
nConnectorId : UDINT;
nTransactionId : UDINT;
nSampleCount : UDINT;
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/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.