Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 884 Bytes

File metadata and controls

49 lines (38 loc) · 884 Bytes

Iec033 - Array element type has to be IEC compatible

Severity: Error Error

Checks user [Array]s (structs with the attribute [Array]). The Anchor has to be of a type that is compatible with IEC and not the type Any.

  • Explicitly allowed types are

    CSharp basic types:

    • bool
    • sbyte
    • short
    • int
    • long
    • byte
    • ushort
    • uint
    • ulong
    • float
    • double

    .Net basic types:

    • Boolean
    • SByte
    • Int16
    • Int32
    • Int64
    • Byte
    • UInt16
    • UInt32
    • UInt64
    • Single
    • Double

    IEC types:

    • IecStringEx
    • IecString80
    • IecWString
    • IecWString80
    • Structures attributed with [Structure], [Array] or [String]
    • enums attributed with [Enumeration]

Solution

Change the Anchor type to one of the explicitly allowed types.