Specifications
Chapter 5 - AsconMBCommLib
141
5-3-12 MODBUS MASTER CONVERSION FROM 8 DINT VALUES
FB Prototype
MB_MST_WR8_DINT
Input parameters
Output parameters
Description
The function block can be used to convert and pack up to 8 DINT data type variables
into an array of 16 word elements. The first DINT variable will be converted, accordingly
to the SWAP selection, into the first and second element of the output array, the second
DINT variable into third and fourth element and so on. This function block has been
designed to better work in conjunction with MB_MST_WR_WORD function block, when
the values to be written into the slave device are formatted as DINT data type.
Default Values Table
Label Type Description Range
DINT_1 DINT
1
st
variable to be converted [num]
-2147483648... 2147483647
DINT_2 DINT
2
nd
variable to be converted [num]
-2147483648... 2147483647
DINT_3 DINT
3
rd
variable to be converted [num]
-2147483648... 2147483647
DINT_4 DINT
4
th
variable to be converted [num]
-2147483648... 2147483647
DINT_5 DINT
5
th
variable to be converted [num]
-2147483648... 2147483647
DINT_6 DINT
6
th
variable to be converted [num]
-2147483648... 2147483647
DINT_7 DINT
7
th
variable to be converted [num]
-2147483648... 2147483647
DINT_8 DINT
8
th
variable to be converted [num]
-2147483648... 2147483647
NR_DATA UINT
Number of input data to be
converted [num]
0... 8
SWAP BOOL
Swap activation between Low and
High word while converting data [bit]
FALSE = standard,
TRUE = swapped
Label Type Description
NR_REG UINT Number of WORD used by the converted variables
WR_REG
ARRAY [1..16]
OF WORD
Array including the converted variables
DINT_1
DINT_2
DINT_3
DINT_4
DINT_5
DINT_6
DINT_7
DINT_8
NR_DATA
SWAP
DINT
DINT
DINT
DINT
DINT
DINT
DINT
DINT
UINT
BOOL
¡
¡
¡
¡
¡
¡
¡
¡
¡
¡
UINT
ARRAY [1..16] OF WORD
NR_REG
WR_REG
¡
¡
Input Default Value
NR_DATA 0
SWAP FALSE