AX#

Search Results for

    Show / Hide Table of Contents

    Interface ITwinPrimitive

    Provides basic contract for plc tag.

    Inherited Members
    ITwinElement.Symbol
    ITwinElement.AttributeName
    ITwinElement.GetAttributeName(CultureInfo)
    ITwinElement.GetHumanReadable(CultureInfo)
    ITwinElement.HumanReadable
    ITwinElement.GetParent()
    ITwinElement.GetSymbolTail()
    ITwinElement.Poll()
    ITwinElement.Interpreter
    Namespace: AXSharp.Connector
    Assembly: AXSharp.Connector.dll
    Syntax
    public interface ITwinPrimitive : ITwinElement

    Properties

    | Edit this page View Source

    AccessStatus

    Holds information about the data exchange between target system and the application.

    Declaration
    PrimitiveAccessStatus AccessStatus { get; }
    Property Value
    Type Description
    PrimitiveAccessStatus
    | Edit this page View Source

    EditValueChange

    Delegate invoked when the 'Edit' value changes.

    Declaration
    OnlinerBase.ValueChangeDelegate EditValueChange { get; set; }
    Property Value
    Type Description
    OnlinerBase.ValueChangeDelegate
    | Edit this page View Source

    PollingInterval

    Gets current polling interval.

    Declaration
    int PollingInterval { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    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
    | Edit this page View Source

    ReadWriteAccess

    Get access level from the application.

    Declaration
    ReadWriteAccess ReadWriteAccess { get; }
    Property Value
    Type Description
    ReadWriteAccess
    Remarks

    This limits only this applications access.

    | Edit this page View Source

    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 Source

    FromOnlineToShadow()

    Copies the value from the plc to the shadow value holder.

    Declaration
    void FromOnlineToShadow()
    | Edit this page View Source

    FromShadowToOnline()

    Copies the value from the shadow value holder to the respective plc variable.

    Declaration
    void FromShadowToOnline()
    | Edit this page View Source

    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()
    | Edit this page View Source

    MakeReadOnly()

    Makes this tag readonly for the current application.

    Declaration
    void MakeReadOnly()
    | Edit this page View Source

    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.

    | Edit this page View Source

    SubscribeForPeriodicReading()

    Subscribes this item for periodic reading.

    Declaration
    void SubscribeForPeriodicReading()
    | Edit this page View Source

    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

    Extension Methods

    TranslatorExtension.Translate(ITwinElement, string, CultureInfo)
    TwinObjectExtensions.HasAttribute<T>(ITwinElement)
    TwinObjectExtensions.StartPolling(ITwinElement, int, object)
    TwinObjectExtensions.StopPolling(ITwinElement, object)
    TwinPrimitiveExtensions.GetAttribute<T>(ITwinElement)
    TwinPrimitiveExtensions.GetPropertyInfoViaSymbol(ITwinElement)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFx. © MTS spol. s r.o., MTS spol. s r.o., and awesome contributors