Enum Class S7.SectionType

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

@Ser public static enum S7.SectionType extends Enum<S7.SectionType>
Categories for interface sections.

Note: the ordering reflects the id's (also used by the Step7 editor). When it comes to mapping in memory for FC/FB/DB interfaces, the ordering is not the same (e.g. RET after IN)

  • Enum Constant Details

    • UNKNOWN

      public static final S7.SectionType UNKNOWN
    • IN

      public static final S7.SectionType IN
      Input data of a non-OB routine (FB, FC, SFB, SFC)
    • OUT

      public static final S7.SectionType OUT
      Output data of a non-OB routine (FB, FC, SFB, SFC)
    • IN_OUT

      public static final S7.SectionType IN_OUT
      Read/write data of a non-OB routine (FB, FC, SFB, SFC)
    • STAT

      public static final S7.SectionType STAT
      Static storage data of a FB/SFB (not for OB/FC/SFC), stored in an associated instance data block (DI)
    • TEMP

      public static final S7.SectionType TEMP
      Temporary data, a.k.a. Dynamic data: local data of a routine (OB, FB, FC, SFB, SFC)
    • RET

      public static final S7.SectionType RET
      Return data of function (FC, SFC)
  • Method Details

    • values

      public static S7.SectionType[] 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.SectionType 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()
    • fromId

      public static S7.SectionType fromId(int id)