SendMeterValue
With this method, an OCPP client sends Meter Values to the corresponding OCPP server. The response from the OCPP server is processed directly within the method.
Syntax
METHOD SendMeterValue : BOOL
VAR_INPUT
nConnectorId : UDINT;
nTransactionId : UDINT := 0;
nSampleCount : UDINT;
END_VAR
VAR_IN_OUT
arrSampleValues : ARRAY[*] OF ST_OCPP1_SampledValue;
END_VAR
Return value
Name | Type | Description |
---|---|---|
SendMeterValue | 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 |
---|---|---|
nConnectorId | UDINT | ID of the Connector of a Charge Point. |
nTransactionId | UDINT | Optionally contains the ID of the transaction to which the specified Meter Values belong. |
nSampleCount | UDINT | The number of the following sampled values. |

Inputs/outputs
Name | Type | Description |
---|---|---|
arrSampleValues | ARRAY [*] OF ST_OCPP1_SampledValue | The sampled values to be sent to the Central System. |
Possible errors are output at the outputs bError and hrErrorCode of the function block instance.