Enum Class S7.DataType
- All Implemented Interfaces:
Serializable
,Comparable<S7.DataType>
,Constable
- Enclosing class:
- S7
Data types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAny data typeNumber of the data blockNumber of the function blockNumber of the functionNumber of the system data blockNumber of the counterMulti-instance FBMulti-instance SFBMemory accessNumber of the timerInvalid or unknown -
Method Summary
Modifier and TypeMethodDescriptionstatic S7.DataType
fromId
(int id) int
int
getId()
Get the data type id (or code), used for example in binary blocks interfaces or MC7 pointers.static S7.DataType
Returns the enum constant of this class with the specified name.static S7.DataType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Invalid or unknown -
BOOL
-
BYTE
-
CHAR
-
WORD
-
INT
-
DWORD
-
DINT
-
REAL
-
DATE
-
TIME_OF_DAY
-
TIME
-
S5TIME
-
DATE_AND_TIME
-
ARRAY
-
STRUCT
-
STRING
-
POINTER
Memory access -
MULTI_INST_FB
Multi-instance FB -
ANY
Any data type -
BLOCK_FB
Number of the function block -
BLOCK_FC
Number of the function -
BLOCK_DB
Number of the data block -
BLOCK_SDB
Number of the system data block -
MULTI_INST_SFB
Multi-instance SFB -
COUNTER
Number of the counter -
TIMER
Number of the timer
-
-
Method Details
-
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
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 nameNullPointerException
- 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
-