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.
NOTE: In order to avoid naming collisions with the Symbols declared in the Target PLC, all public
methods of TcSymbol
start with the '$' character.
The TcSymbol
should not be directly created, as it serves as a Template for the Derived TcSymbols
Constructs the foundation of a TcSymbol
Object
The Path of this Symbol, relative to its origin point
Potential parent of this TcSymbol
and to whom events will propagate to
Flag which marks this TcSymbol
as a ReadOnly symbol, and no operation of write-type can be issued to the TcSymbol
If enabled, will produce debug information
Access the TcBinding
information of this TcSymbol
Returns the value of this TcSymbol
from the Target PLC Symbol,
which the TcSymbol.$binding
is linked to.
Access the potential parent of this TcSymbol
Access the path of this TcSymbol
from its origin point
Returns true if this TcSymbol
is ReadOnly
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 value to the Target PLC Symbol, and when completed returns what was written to the Target PLC Symbol
The 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.
Invalidates the TcBinding
of this symbol, as well as, if a callback as provided
in case of invalidation - will invoke it
Generated using TypeDoc
Class representing an instance of a PLC Symbol, mapped to the
TcContext
. TheTcSymbol
itself acts as a bridge to theTcBinding
, which has the responsibility of low-level ADS operations.NOTE: In order to avoid naming collisions with the Symbols declared in the Target PLC, all public methods of
TcSymbol
start with the '$' character.The
TcSymbol
should not be directly created, as it serves as a Template for the DerivedTcSymbols