RecvTriggerMessage

RecvTriggerMessage 1:

With this method, an OCPP client receives a Trigger Message request from the corresponding OCPP server. To respond to the request, the method RespTriggerMessage must be called.

RecvTriggerMessage 2:

Syntax

METHOD RecvTriggerMessage : BOOL
VAR_OUTPUT
    hMessageId        : T_OCPP_MessageId;
    eRequestedMessage : E_OCPP1_MessageTrigger;
    nConnectorId      : UDINT;
END_VAR

RecvTriggerMessage 3: Return value

Name

Type

Description

RecvTriggerMessage

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.

RecvTriggerMessage 4: Outputs

Name

Type

Description

hMessageId

T_OCPP_MessageId

MessageId of the received message.

eRequestedMessage

E_OCPP1_MessageTrigger

Requested message that the Charge Point should send to the Central System.

nConnectorId

UDINT

ID of the Connector of a Charge Point.

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