CreateStation

CreateStation 1:

This method is used to create a new station in the OCPP server.

Syntax

METHOD CreateStation : HRESULT
VAR_INPUT
    sIdent     : T_OCPP_Identity;
    sAuthHash  : T_OCPP_Hash;
END_VAR
VAR_OUTPUT
    hStationId : UDINT;
END_VAR

CreateStation 2: Return value

Name

Type

Description

CreateStation

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.

CreateStation 3: Inputs

Name

Type

Description

sIdent

T_OCPP_Identity

Identity of the OCPP client to be connected.

sAuthHash

T_OCPP_Hash

Hash value for the respective OCPP client. The calculation is explained at Hash calculation.

CreateStation 4: Outputs

hStationId

UDINT

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

Possible errors are output at the outputs bError and hrErrorCode of the function block instance.