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
      Boolean value
    • BYTE

      public static final S7.DataType BYTE
      Unsigned 8-bit value
    • CHAR

      public static final S7.DataType CHAR
      8-bit character
    • WORD

      public static final S7.DataType WORD
      Unsigned 16-bit value
    • INT

      public static final S7.DataType INT
      Signed 16-bit integer
    • DWORD

      public static final S7.DataType DWORD
      Unsigned 32-bit value
    • DINT

      public static final S7.DataType DINT
      Signed 32-bit integer
    • REAL

      public static final S7.DataType REAL
      32-bit floating-point value
    • DATE

      public static final S7.DataType DATE
      Date value
    • TIME_OF_DAY

      public static final S7.DataType TIME_OF_DAY
      Time of day value
    • TIME

      public static final S7.DataType TIME
      Signed time span
    • S5TIME

      public static final S7.DataType S5TIME
      S5 time value
    • DATE_AND_TIME

      public static final S7.DataType DATE_AND_TIME
      Date and time value
    • ARRAY

      public static final S7.DataType ARRAY
      Array value
    • STRUCT

      public static final S7.DataType STRUCT
      Structure value
    • STRING

      public static final S7.DataType STRING
      String value
    • 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:
      data type id
    • getBitsize

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

      public static S7.DataType fromId(int id)
      Retrieve a data type from its id.
      Parameters:
      id - data type id
      Returns:
      data type, or UNKNOWN