Click or drag to resize

IAddressTranslatorServiceRegisterMap Method

Register an address mapping function.

Namespace: Demo3D.PLC.Comms
Assembly: PLC (in PLC.dll) Version: 19.00.00
Syntax
C#
void RegisterMap(
	Type from,
	Type to,
	Func<IAddress, IAddress?> mappingFunction,
	bool overwrite = true,
	Object? description = null
)

Parameters

from  Type
The type of data to map.
to  Type
The type of data that this mapping function creates.
mappingFunction  FuncIAddress, IAddress
The mapping function to register.
overwrite  Boolean  (Optional)
True to unregister any previous mapping function first.
description  Object  (Optional)
String or property bag to describe the mapping function (or null). Appears in the property grid.
See Also