S7
Industrial
IoT
String
Length of variable, max.
254 bytes
STRING
(
max. 254
bytes
)
DB15.DBSTRING10
The maximum string length
(Byte10) is read first. Then the
number of bytes that Byte10
indicates are number read. After
that the of bytes that Byte11
indicates are extracted from the
byte array that is the result of
second read operation.
For example:
- (Byte10)-30
- (Byte11)-4
- (Byte12-Byte15)-TEST
First read result: 30
Second read result: 4TEST
We will extract TEST from the
second read result by the second
read result by considering
Byte11's value.
String
Min. 100 bytes , max.
254 bytes
DB15.DBSTRING10,100
Reads 100 bytes of string starting
from offset 10.
¹⁾ When DOUBLE is used for integers, they are converted to a floating-point number.
²⁾ For the areas Inputs and Outputs only certain address examples work.
Signed values
If you want to read a signed value, you have to use the respective signed datablock.
Example:
DB1831.DBW508 is unsigned. You can use DB1831.DBINT508 instead.
Real data type
If you want to write a value to REAL data type, you have to use “REAL” instead of
“DBD” in the address.
Example:
DB15.DBD32 or DB15.REAL32 can be used for reading. You can use DB15.REAL32
for writing.
Area Types
S7 datapoint addresses must contain an area type.