InitKeyValueEx

InitKeyValueEx 1:

This method can be used to add new Key/Value pairs for Configuration Keys. If a Key is transferred that is already known in the OCPP client, the value is overwritten. The method can be used to add user-defined Keys that are not part of the enumeration E_OCPP1_ConfigKey.

Syntax

METHOD InitKeyValueEx : UDINT
VAR_INPUT
    sKey      : T_OCPP1_ConfigKey;
    sValue    : T_OCPP1_ConfigValue;
    bReadonly : BOOL;
END_VAR

InitKeyValueEx 2: Return value

Name

Type

Description

InitKeyValueEx

UDINT

The assigned index of the Config Key. At present, however, this index is only used internally and does not need to be taken into account during programming.

InitKeyValueEx 3: Inputs

Name

Type

Description

sKey

T_OCPP1_ConfigKey

Configuration Key to be overwritten or added.

sValue

T_OCPP1_ConfigValue

Value of the associated Configuration Key.

bReadonly

BOOL

Determines the access right of the Central System, either the value may only be read (TRUE) or also written (FALSE).