Click or drag to resize

MemorySymbolTableAddressTypeAdd(String, DataType, IAddressSpace, Int64, Boolean, String) Method

Adds a symbol to the current symbol table or branch.

Namespace: Demo3D.PLC.Comms
Assembly: PLC (in PLC.dll) Version: 19.00.00
Syntax
C#
public MemorySymbolTable<AddressType> Add(
	string name,
	DataType dataType,
	IAddressSpace? addressSpace = null,
	long bitAddress = -1,
	bool stronglyTyped = true,
	string? description = null
)

Parameters

name  String
The name of the symbol.
dataType  DataType
The data type of the symbol.
addressSpace  IAddressSpace  (Optional)
The address space of the symbol, or null to automatically select the next address/>.
bitAddress  Int64  (Optional)
The address of the symbol, or -1 to automatically select the next address/>.
stronglyTyped  Boolean  (Optional)
The symbol is strongly typed.
description  String  (Optional)
The symbol description (or null).

Return Value

MemorySymbolTableAddressType
The symbol container.
See Also