FB_OCPP1_Server

FB_OCPP1_Server 1:

This function block represents an OCPP server to which any number of OCPP clients can be connected. An OCPP client is identified via an ID. If a 1-to-1 relationship between OCPP client and OCPP server is required, the function block FB_OCPP1_Station can be used instead of this function block.

The Send methods are used when sending requests to the client. In these methods, the response from the client is processed directly and stored in the output parameters of the methods.

If, on the other hand, a request is received from the client using one of the Receive methods, the response must be sent using the appropriate Response method.

Syntax

FUNCTION BLOCK FB_OCPP1_Server
VAR_OUTPUT
    bValid              : BOOL;
    bBusy               : BOOL;
    bError              : BOOL;
    eErrorResult        : HRESULT;
    eErrorAction        : E_OCPP1_Action;
END_VAR

FB_OCPP1_Server 2: Outputs

Name

Type

Description

bValid

BOOL

The interface to the driver in the background exists.

bBusy

BOOL

Is TRUE as long as the function block is busy with processing.

bError

BOOL

Becomes TRUE when an error situation occurs.

eErrorResult

HRESULT

Last error present on the function block.

eErrorAction

E_OCPP1_Action

OCPP command for which the error occurred.

FB_OCPP1_Server 3: Properties

Name

Type

Access

Description

IsOpen

BOOL

Get

Connections can be established.

IsPending

BOOL

Get

Waiting for completion of the request.