ADS_DATA_TYPE_FLAGS: {
    Aligned: number;
    AnySizeArray: number;
    Attributes: number;
    BitValues: number;
    ContainsOnlineChangePtrRef: number;
    CopyMask: number;
    DataItem: number;
    DataType: number;
    DeRefTypeItem: number;
    EnumInfos: number;
    ExtendedEnumInfos: number;
    ExtendedFlags: number;
    HideSubItems: number;
    IgnorePersist: number;
    Incomplete: number;
    InitOnReset: number;
    MethodDeref: number;
    MethodInfos: number;
    None: number;
    Oversample: number;
    PersistantDatatype: number;
    Persistent: number;
    PlcPointerType: number;
    PropItem: number;
    RefactorInfo: number;
    ReferenceTo: number;
    SoftwareProtectionLevels: number;
    Static: number;
    TComInterfacePtr: number;
    toStringArray: ((flags: number) => string[]);
    TypeGuid: number;
} = ...

ADS data type flags

Source: TwinCAT.Ads.dll By Beckhoff

Type declaration

  • Aligned: number

    this flag is set if the datatype is aligned (ADSDATATYPEFLAG_ALIGNED)

  • AnySizeArray: number

    Any size array (ADSDATATYPEFLAG_ANYSIZEARRAY)

  • Attributes: number

    ADSDATATYPEFLAG_ATTRIBUTES

  • BitValues: number

    ADSDATATYPEFLAG_BITVALUES

  • ContainsOnlineChangePtrRef: number

    Type contains online change PTR reference (ADSDATATYPEFLAG_OCPTRREFTYPE, 0x08000000)

  • CopyMask: number

    ADSDATATYPEFLAG_COPYMASK

  • DataItem: number

    ADSDATATYPEFLAG_DATAITEM

  • DataType: number

    ADSDATATYPEFLAG_DATATYPE

  • DeRefTypeItem: number

    Deref Type Item (ADSDATATYPEFLAG_DEREFTYPEITEM, 0x10000000)

  • EnumInfos: number

    ADSDATATYPEFLAG_ENUMINFOS

  • ExtendedEnumInfos: number

    Extended Enum Infos. Comment and attributes for enum values (ADSDATATYPEFLAG_EXTENUMINFOS, 0x20000000)

  • ExtendedFlags: number

    Extended Flags used/added (ADSDATATYPEFLAG_EXTENDEDFLAGS, 0x80000000)

  • HideSubItems: number

    SubItems are hidden / will not be evaluated (ADSDATATYPEFLAG_HIDESUBITEMS, 0x02000000)

  • IgnorePersist: number

    do not restore persistent data (ADSDATATYPEFLAG_IGNOREPERSIST)

  • Incomplete: number

    The Type description is incomplete (ADSDATATYPEFLAG_INCOMPLETE, 0x04000000)

  • InitOnReset: number

    Persistent data will not restored after reset (cold) (ADSDATATYPEFLAG_INITONRESET,0x00400000)

  • MethodDeref: number

    ADSDATATYPEFLAG_METHODDEREF

  • MethodInfos: number

    ADSDATATYPEFLAG_METHODINFOS

  • None: number

    None / No Flag set

  • Oversample: number

    ADSDATATYPEFLAG_OVERSAMPLE

  • PersistantDatatype: number

    data type used for persistent variables -> should be saved with persistent data (ADSDATATYPEFLAG_PERSIST_DT,0x00200000)

  • Persistent: number

    ADSDATATYPEFLAG_PERSISTENT

  • PlcPointerType: number

    Indicates PLC Pointer types (ADSDATATYPEFLAG_PLCPOINTERTYPE, 0x00800000)

  • PropItem: number

    ADSDATATYPEFLAG_PROPITEM

  • RefactorInfo: number

    Refactoring information is added (ADSDATATYPEFLAG_REFACTORINFO, 0x01000000)

  • ReferenceTo: number

    ADSDATATYPEFLAG_REFERENCETO

  • SoftwareProtectionLevels: number

    Has Software Protection Levels for DataTypes.

  • Static: number

    data item is static - do not use offs (ADSDATATYPEFLAG_STATIC)

  • TComInterfacePtr: number

    ADSDATATYPEFLAG_TCCOMIFACEPTR

  • toStringArray: ((flags: number) => string[])

    Return given flag value as string array

      • (flags): string[]
      • Parameters

        • flags: number

        Returns string[]

  • TypeGuid: number

    ADSDATATYPEFLAG_TYPEGUID