Click or drag to resize

MemorySymbolTableAddressTypeAdd Method (String, DataType, MemoryAddress, Boolean, String)

Adds a symbol to the current symbol table or branch.

Namespace:  Demo3D.PLC.Comms
Assembly:  PLC (in PLC.dll) Version: 15.0.2.11458
Syntax
C#
public MemorySymbolTable<AddressType> Add(
	string name,
	DataType dataType,
	MemoryAddress address,
	bool stronglyTyped = true,
	string? description = null
)

Parameters

name
Type: SystemString
The name of the symbol.
dataType
Type: Demo3D.PLC.CommsDataType
The data type of the symbol.
address
Type: Demo3D.PLC.CommsMemoryAddress
The address of the symbol, or null to automatically select the next address/>.
stronglyTyped (Optional)
Type: SystemBoolean
The symbol is strongly typed.
description (Optional)
Type: SystemString
The symbol description (or null).

Return Value

Type: MemorySymbolTableAddressType
The symbol container.
See Also