Class S7AnyVarParameterItem
java.lang.Object
org.apache.plc4x.java.s7.netty.model.params.items.S7AnyVarParameterItem
- All Implemented Interfaces:
VarParameterItem
public class S7AnyVarParameterItem extends Object implements VarParameterItem
"Low-level" description of S7 Address range and the necessary size for transportation of values.
Is used as Arguments of
VarParameter object.
Contains the information to read one or more sequential values of the same datatype starting from given offset in a memory region
and also contains the transportation size of the datatype read.
In detail:
- transportSize -
TransportSizeof the datatype - numElements - number of consecutive elements to be read
- dataBlockNumber - number of the datablock
- bit / byteOffset where the adress starts
-
Constructor Summary
Constructors Constructor Description S7AnyVarParameterItem(SpecificationType specificationType, MemoryArea memoryArea, TransportSize dataType, int numElements, int dataBlockNumber, int byteOffset, byte bitOffset) -
Method Summary
Modifier and Type Method Description VariableAddressingModegetAddressingMode()bytegetBitOffset()intgetByteOffset()intgetDataBlockNumber()TransportSizegetDataType()MemoryAreagetMemoryArea()intgetNumElements()SpecificationTypegetSpecificationType()
-
Constructor Details
-
S7AnyVarParameterItem
public S7AnyVarParameterItem(SpecificationType specificationType, MemoryArea memoryArea, TransportSize dataType, int numElements, int dataBlockNumber, int byteOffset, byte bitOffset)
-
-
Method Details
-
getAddressingMode
- Specified by:
getAddressingModein interfaceVarParameterItem
-
getSpecificationType
-
getMemoryArea
-
getDataType
-
getNumElements
public int getNumElements() -
getDataBlockNumber
public int getDataBlockNumber() -
getByteOffset
public int getByteOffset() -
getBitOffset
public byte getBitOffset()
-