CreateStation
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
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. |
Inputs
Name | Type | Description |
---|---|---|
sIdent | Identity of the OCPP client to be connected. | |
sAuthHash | Hash value for the respective OCPP client. The calculation is explained at Hash calculation. |
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.