ControllerConfigUtil.UpdateDataRecord (METH)

METHOD UpdateDataRecord : ConfigError

Get a data record parameter of a submodule.

By using this method together with GetDataRecord(), the settings / parameters of a module or device can be updated at runtime.

The device first has to be deactivated (DED.Reconfigure function block), then update the setting and re-activate it again. The updated parameters will be used, when the new connection is established.

InOut:

Scope

Name

Type

Comment

Return

UpdateDataRecord

ConfigError

Input

ID

DWORD

ID of the submodule that is owner of the data record

INDEX

UINT

Index of the data record

LEN

UDINT

Maximum length to be read

RECORD

POINTER TO BYTE

Data record