Enum Class S7.DataType

java.lang.Object
java.lang.Enum<S7.DataType>
com.pnfsoftware.jeb.core.units.code.simatic.S7.DataType
All Implemented Interfaces:
Serializable, Comparable<S7.DataType>, Constable
Enclosing class:
S7

@Ser public static enum S7.DataType extends Enum<S7.DataType>
Data types.
  • Enum Constant Details

    • UNKNOWN

      public static final S7.DataType UNKNOWN
      Invalid or unknown
    • BOOL

      public static final S7.DataType BOOL
    • BYTE

      public static final S7.DataType BYTE
    • CHAR

      public static final S7.DataType CHAR
    • WORD

      public static final S7.DataType WORD
    • INT

      public static final S7.DataType INT
    • DWORD

      public static final S7.DataType DWORD
    • DINT

      public static final S7.DataType DINT
    • REAL

      public static final S7.DataType REAL
    • DATE

      public static final S7.DataType DATE
    • TIME_OF_DAY

      public static final S7.DataType TIME_OF_DAY
    • TIME

      public static final S7.DataType TIME
    • S5TIME

      public static final S7.DataType S5TIME
    • DATE_AND_TIME

      public static final S7.DataType DATE_AND_TIME
    • ARRAY

      public static final S7.DataType ARRAY
    • STRUCT

      public static final S7.DataType STRUCT
    • STRING

      public static final S7.DataType STRING
    • POINTER

      public static final S7.DataType POINTER
      Memory access
    • MULTI_INST_FB

      public static final S7.DataType MULTI_INST_FB
      Multi-instance FB
    • ANY

      public static final S7.DataType ANY
      Any data type
    • BLOCK_FB

      public static final S7.DataType BLOCK_FB
      Number of the function block
    • BLOCK_FC

      public static final S7.DataType BLOCK_FC
      Number of the function
    • BLOCK_DB

      public static final S7.DataType BLOCK_DB
      Number of the data block
    • BLOCK_SDB

      public static final S7.DataType BLOCK_SDB
      Number of the system data block
    • MULTI_INST_SFB

      public static final S7.DataType MULTI_INST_SFB
      Multi-instance SFB
    • COUNTER

      public static final S7.DataType COUNTER
      Number of the counter
    • TIMER

      public static final S7.DataType TIMER
      Number of the timer
  • Method Details

    • values

      public static S7.DataType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static S7.DataType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getId

      public int getId()
      Get the data type id (or code), used for example in binary blocks interfaces or MC7 pointers.
      Returns:
    • getBitsize

      public int getBitsize()
      Returns:
      bitsize in memory, -1 if unknown or variable
    • fromId

      public static S7.DataType fromId(int id)