TcSymbols are indexable, in case they are structured types, and can nest children TcSymbols
.
Alternatively, if a TcSymbol
has Rpc Methods enabled, this methods can be also invoked over
the index.
Constructs a TcSymbol
, which is designed to interface with a ARRAY OF...
Symbol on the Target
PLC.
The Path of this Symbol, relative to its origin point
Potential parent of this TcSymbol
and to whom events will propagate to
The memory location of the Target PLC Symbol
The Type parameters of this Symbol
The Depth of this array, relative to the number of Dimensions in total
If enabled, will produce debug information
Access the TcBinding
of this TcSymbol
Returns the array value of this TcSymbol
from the Target PLC ARRAY OF...
Symbol,
which the TcSymbol.$binding
is linked to.
Access the total length of the array
Access the potential parent of this TcSymbol
Access the path of this TcSymbol
from its origin point
Returns true if this TcSymbol
is ReadOnly
Access the starting index of this array, due to TwinCAT allowing arrays to start at any number
Clears the data of the Target PLC Symbol to their implicit default values, or the explicitly specified ones
Removes a listener from the specified event
The event name, from which the listener is to be removed
The listener, which is to be removed from the specified event
Attached a listener to an event, which is only invoked once. For the full list
of events, see TcSymbol.$on()
The event name, which the listener will listen for
The listener, which is called when the event is emitted
Writes the provided array value to the Target PLC Symbol, and when completed returns what was written to the Target PLC Symbol
The array value that is to be written to the Target PLC Symbol
Activates value change detection of the Target PLC Symbol. The sampling rate can be explicitly set, in case the value changes uneseceraly too fast.
The speed at which change in the Target PLC Symbol value is detected
Deactivated value change detection of the Target PLC Symbol. Does not remove the event handlers though, they simply will not be invoked.
Internal function, for creating the children of the Array Symbol. If the array is multidimensional, it will create proxy-arrays to house each dimension
The Depth of the current array relative to the amount of dimensions
The Parameters of the Array, from which construction is made
Internal function, for handling multidimensional arrays, where it splits the current TcSymbolPointer
and creates proxy arrays, to house the different dimensions
The modified path for multidimensional arrays reference
The number of splits for this dimension
The current dimension depth, relative to the total amount of dimensions
The Parameters of the Array, from which construction is made
Invalidates all the TcSymbol
Children, before invalidating itself
Generated using TypeDoc
Class representing an instance of a PLC Symbol of
ARRAY OF...
Type.