Specifications

Chapter 5 - AsconMBCommLib
137
5-3-8 MODBUS MASTER CONVERSION TO 8 DINT VALUES
FB Prototype
MB_MST_RD8_DINT
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
DINT_1 DINT
1
st
converted variable [num]
-2147483648... 2147483647
DINT_2 DINT
2
nd
converted variable [num]
-2147483648... 2147483647
DINT_3 DINT
3
rd
converted variable [num]
-2147483648... 2147483647
DINT_4 DINT
4
th
converted variable [num]
-2147483648... 2147483647
DINT_5 DINT
5
th
converted variable [num]
-2147483648... 2147483647
DINT_6 DINT
6
th
converted variable [num]
-2147483648... 2147483647
DINT_7 DINT
7
th
converted variable [num]
-2147483648... 2147483647
DINT_8 DINT
8
th
converted variable [num]
-2147483648... 2147483647
RD_REG
SWAP
ARRAY [1..16] OF WORD
BOOL
¡
¡
DINT
DINT
DINT
DINT
DINT
DINT
DINT
DINT
DINT_1
DINT_2
DINT_
3
DINT_
4
DINT_5
DINT_
6
DINT_
7
DINT_
8
¡
¡
¡
¡
¡
¡
¡
¡
Input Default Value
SWAP FALSE