Specifications

Chapter 5 - AsconMBCommLib
139
5-3-10 MODBUS MASTER CONVERSION TO 8 REAL VALUES
FB Prototype
MB_MST_RD8_REAL
Input parameters
Output parameters
Description
The function block can be used to unpack an array of 16 word elements into 8 single
variables as DINT data type. The first and second elements of the array will be con-
verted, accordingly to the SWAP selection, into the first output DINT variable, the
third and fourth elements into the second output variable and so on. This function
block has been designed to work in conjunction with MB_MST_RD_WORD function
block, when values coming from the slave device are formatted as DINT data type.
Default Values Table
Label Type Description Range
RD_REG
ARRAY [1..16]
OF WORD
Array including each single word to
be unpacked
SWAP BOOL
Swap activation between Low and
High word while converting data [bit]
FALSE = standard,
TRUE = swapped
Label Type Description Range
REAL_1 REAL
1
st
converted variable [num] -3.4E
-38
... 3.4E
+38
REAL_2 REAL
2
nd
converted variable [num] -3.4E
-38
... 3.4E
+38
REAL_3 REAL
3
rd
converted variable [num] -3.4E
-38
... 3.4E
+38
REAL_4 REAL
4
th
converted variable [num] -3.4E
-38
... 3.4E
+38
REAL_5 REAL
5
th
converted variable [num] -3.4E
-38
... 3.4E
+38
REAL_6 REAL
6
th
converted variable [num] -3.4E
-38
... 3.4E
+38
REAL_7 REAL
7
th
converted variable [num] -3.4E
-38
... 3.4E
+38
REAL_8 REAL
8
th
converted variable [num] -3.4E
-38
... 3.4E
+38
RD_REG
SWAP
ARRAY [1..16] OF WORD
BOOL
¡
¡
REAL
REAL
REAL
REAL
REAL
REAL
REAL
REAL
REAL_1
REAL_2
REAL_
3
REAL_
4
REAL_5
REAL_6
REAL_
7
REAL_8
¡
¡
¡
¡
¡
¡
¡
¡
Input Default Value
SWAP FALSE