MemorySymbolTableAddressTypeAdd(String, Type, IAddressSpace, Int64, IReadOnlyListDataDimension, Int32, String) Method |
Adds a symbol to the current symbol table or branch.
Namespace: Demo3D.PLC.CommsAssembly: PLC (in PLC.dll) Version: 19.00.00
Syntaxpublic MemorySymbolTable<AddressType> Add(
string name,
Type dataType,
IAddressSpace addressSpace,
long bitAddress,
IReadOnlyList<DataDimension> dimensions,
int sizeBits = -1,
string? description = null
)
Parameters
- name String
- The name of the symbol.
- dataType Type
- The data type of the symbol. For an array, this must be the type of one base element.
- addressSpace IAddressSpace
- The address space of the symbol, or null to automatically select the next address/>.
- bitAddress Int64
- The address of the symbol, or -1 to automatically select the next address/>.
- dimensions IReadOnlyListDataDimension
- The dimensions of the array (or null).
- sizeBits Int32 (Optional)
- The size in bits, or -1 to use the default size. For an array this should be the size of one base element.
- description String (Optional)
- The symbol description (or null).
Return Value
MemorySymbolTableAddressTypeThe symbol container.
See Also