FB_Init

FB_Init 1:

Syntax

METHOD FB_Init : BOOL
VAR_INPUT
    bInitRetains : BOOL;
    bInCopyCode  : BOOL;
    sIdent       : T_OCPP_Identity;
    sAuthHash    : T_OCPP_Hash;
    fbServer     : REFERENCE TO FB_OCPP1_Server;
END_VAR

FB_Init 2: Return value

Name

Type

Description

FB_Init

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.

FB_Init 3: Inputs

Name

Type

Description

bInitRetains

BOOL

If TRUE, the Retain variables are initialized (warm start/cold start).

bInCopyCode

BOOL

If TRUE, the Exit method is called to exit an instance, which is then copied (online change).

sIdent

T_OCPP_Identity

Identity of the OCPP client.

sAuthHash

T_OCPP_Hash

Hash generated from the identity and the password. More information on calculating the hash can be found in the appendix.

fbServer

REFERENCE TO FB_OCPP1_Server

OCPP server instance to be used for this station function block.