RecvMeterValue

RecvMeterValue 1:

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.

RecvMeterValue 2:

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

RecvMeterValue 3: 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.

RecvMeterValue 4: Inputs

Name

Type

Description

hStationId

UDINT

Identifier of the OCPP client in the instance of the OCPP server.

RecvMeterValue 5:RecvMeterValue 6: Inputs/outputs

Name

Type

Description

arrSampleValues

ARRAY [*] OF ST_OCPP1_SampledValue

The sampled values sent by the client.

RecvMeterValue 7: Outputs

Name

Type

Description

hMessageId

T_OCPP_MessageId

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.