public class PositionElementInStruct
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
ixBit
Positions of elements within the Variable of the FB, DB or UDT.
|
private int |
ixByte
Positions of elements within the Variable of the FB, DB or UDT.
|
Constructor and Description |
---|
PositionElementInStruct() |
Modifier and Type | Method and Description |
---|---|
void |
adjustNonBool(int sizeForAlign)
Adjusts the position if the next element has a size, which requests a new align.
|
int |
getIxBit() |
int |
getIxByte() |
int |
getMaskBit() |
void |
incrPos(int arrayStartIx,
int arrayEndIx,
int nrofBytesElement)
Increments the position because a variable is processed.
|
void |
incrPosInOriginalDb(int arrayStartIx,
int arrayEndIx,
int nrofBytesElement)
Deprecated.
|
void |
setStartPos(int pos) |
private int ixByte
#generateOneSclFile(String, VariablenBlock)
-
routine is started. Then there are incremented depending of the parse result of the variables
in the SCL-File, see #incrPosInOriginalDb(ZbnfVariable, TypeConversion)
.private int ixBit
#generateOneSclFile(String, VariablenBlock)
-
routine is started. Then there are incremented depending of the parse result of the variables
in the SCL-File, see #incrPosInOriginalDb(ZbnfVariable, TypeConversion)
.public int getIxByte()
public int getIxBit()
public int getMaskBit()
public void setStartPos(int pos)
public void adjustNonBool(int sizeForAlign)
sizeForAlign
- The size of the next element.@Deprecated public void incrPosInOriginalDb(int arrayStartIx, int arrayEndIx, int nrofBytesElement)
incrPos(int, int, int)
.arrayStartIx
- arrayEndIx
- nrofBytesElement
- public void incrPos(int arrayStartIx, int arrayEndIx, int nrofBytesElement)
arrayStartIx
- maybe an array [start..end], usual 0arrayEndIx
- if it is an array, it have to be > arrayStartIx.nrofBytesElement
- 0 for a bit in word (S7: BOOL).1..4 for the basic types, if it is an array: the element size.
Note that a bit array is possible, this parameter is 0, the (arrayStartIx - arrayEndIx +1) is the number of bits.