FB_OCPP1_Server

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
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 | OCPP command for which the error occurred. |
Properties
Name | Type | Access | Description |
---|---|---|---|
IsOpen | BOOL | Get | Connections can be established. |
IsPending | BOOL | Get | Waiting for completion of the request. |
- CreateStation
- FB_Exit
- FB_Init
- GetStationId
- Init
- PollRequest
- RecvAuthorize
- RecvBootNotification
- RecvDataTransfer
- RecvDiagnosticsStatusNotification
- RecvFirmwareStatusNotification
- RecvHeartbeat
- RecvMeterValue
- RecvSecurityEventNotification
- RecvStartTransaction
- RecvStatusNotification
- RecvStopTransaction
- ReleaseStation
- Reset
- RespAuthorize
- RespBootNotification
- RespDataTransfer
- RespDiagnosticsStatusNotification
- RespError
- RespFirmwareStatusNotification
- RespHeartbeat
- RespMeterValue
- RespSecurityEventNotification
- RespStartTransaction
- RespStatusNotification
- RespStopTransaction
- SendCancelReservation
- SendChangeAvailability
- SendChangeConfiguration
- SendChargingProfile
- SendClearCache
- SendClearChargingProfile
- SendDataTransfer
- SendGetCompositeSchedule
- SendGetConfiguration
- SendGetDiagnostics
- SendGetLocalListVersion
- SendLocalList
- SendRemoteStartTransaction
- SendRemoteStartTransactionProfile
- SendRemoteStopTransaction
- SendReserveNow
- SendReset
- SendTriggerMessage
- SendUnlockConnector
- SendUpdateFirmware