Interface ITwinPrimitive
Provides basic contract for plc tag.
Inherited Members
Namespace: AXSharp.Connector
Assembly: AXSharp.Connector.dll
Syntax
public interface ITwinPrimitive : ITwinElement
Properties
| Edit this page View SourceAccessStatus
Holds information about the data exchange between target system and the application.
Declaration
PrimitiveAccessStatus AccessStatus { get; }
Property Value
Type | Description |
---|---|
PrimitiveAccessStatus |
EditValueChange
Delegate invoked when the 'Edit' value changes.
Declaration
OnlinerBase.ValueChangeDelegate EditValueChange { get; set; }
Property Value
Type | Description |
---|---|
OnlinerBase.ValueChangeDelegate |
PollingInterval
Gets current polling interval.
Declaration
int PollingInterval { get; }
Property Value
Type | Description |
---|---|
int |
ReadOnce
Indicates that the member should be accessed only once during the lifetime of the application when accessing using polling or cyclic access. Other types of access won't be affected (Batch/Direct).
Declaration
bool ReadOnce { get; }
Property Value
Type | Description |
---|---|
bool |
ReadWriteAccess
Get access level from the application.
Declaration
ReadWriteAccess ReadWriteAccess { get; }
Property Value
Type | Description |
---|---|
ReadWriteAccess |
Remarks
This limits only this applications access.
ShadowValueChange
Delegate invoked when the 'Shadow' value changes.
Declaration
OnlinerBase.ValueChangeDelegate ShadowValueChange { get; set; }
Property Value
Type | Description |
---|---|
OnlinerBase.ValueChangeDelegate |
Methods
| Edit this page View SourceFromOnlineToShadow()
Copies the value from the plc to the shadow value holder.
Declaration
void FromOnlineToShadow()
FromShadowToOnline()
Copies the value from the shadow value holder to the respective plc variable.
Declaration
void FromShadowToOnline()
MakeReadOnce()
Sets the member to be accessed only once during the lifetime of the application. This applies only on periodic (polling or cyclic reading)
Declaration
void MakeReadOnce()
MakeReadOnly()
Makes this tag readonly for the current application.
Declaration
void MakeReadOnly()
Subscribe(ValueChangedEventHandlerDelegate)
Subscribes this tag for cyclical reading and invokes ValueChangedEventHandlerDelegate when the value changes.
note
Tag will be set for cyclical reading.
Declaration
void Subscribe(ValueChangedEventHandlerDelegate handler)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventHandlerDelegate | handler | Handles the value change event. |
SubscribeForPeriodicReading()
Subscribes this item for periodic reading.
Declaration
void SubscribeForPeriodicReading()
UnSubscribe(ValueChangedEventHandlerDelegate)
Un-subscribes this tag from handling the value change.
note
The cyclical reading of this tag will not be cancelled.
Declaration
void UnSubscribe(ValueChangedEventHandlerDelegate handler)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventHandlerDelegate | handler |