PollRequest

PollRequest 1:

This method must be called in order to receive incoming requests from the OCPP server. The outputs of the method return both the message ID of the received message and the information about which OCPP request it is.

Syntax

METHOD PollRequest : BOOL
VAR_OUTPUT
    eAction    : E_OCPP1_Action;
    hMessageId : T_OCPP_MessageId;
END_VAR

PollRequest 2: Return value

Name

Type

Description

PollRequest

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.

PollRequest 3: Outputs

Name

Type

Description

eAction

E_OCPP1_Action

Type of OCPP request received from the server.

hMessageId

T_OCPP_MessageId

MessageId of the received message.

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