MemorySymbolTableAddressTypeAdd Method (String, Type, IAddressSpace, Int64, IReadOnlyListDataDimension, Int32, 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
Syntaxpublic MemorySymbolTable<AddressType> Add(
string name,
Type dataType,
IAddressSpace addressSpace,
long bitAddress,
IReadOnlyList<DataDimension> dimensions,
int sizeBits = -1,
string? description = null
)
Parameters
- name
- Type: SystemString
The name of the symbol. - dataType
- Type: SystemType
The data type of the symbol. For an array, this must be the type of one base element. - addressSpace
- Type: Demo3D.PLC.CommsIAddressSpace
The address space of the symbol, or null to automatically select the next address/>. - bitAddress
- Type: SystemInt64
The address of the symbol, or -1 to automatically select the next address/>. - dimensions
- Type: System.Collections.GenericIReadOnlyListDataDimension
The dimensions of the array (or null). - sizeBits (Optional)
- Type: SystemInt32
The size in bits, or -1 to use the default size. For an array this should be the size of one base element. - description (Optional)
- Type: SystemString
The symbol description (or null).
Return Value
Type:
MemorySymbolTableAddressTypeThe symbol container.
See Also