InitKeyValue

InitKeyValue 1:

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

Syntax

METHOD InitKeyValue : UDINT
VAR_INPUT
    eKey      : E_OCPP1_ConfigKey;
    sValue    : T_OCPP1_ConfigValue;
    bReadonly : BOOL;
END_VAR

InitKeyValue 2: Return value

Name

Type

Description

InitKeyValue

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.

InitKeyValue 3: Inputs

Name

Type

Description

eKey

E_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).