Specifications

sigmadue - IEC 61131-3 Function Block Library
140
5-3-11 MODBUS MASTER CONVERSION TO 8 UDINT VALUES
FB Prototype
MB_MST_RD8_UDINT
Input parameters
Output parameters
Description
The function block can be used to unpack an array of 16 word elements into 8 single
variables as UDINT data type. The first and second elements of the array will be con-
verted, accordingly to the SWAP selection, into the first output UDINT 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 UDINT data type.
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
UDINT_1 UDINT
1
st
converted variable [num]
0... 4294967295
UDINT_2 UDINT
2
nd
converted variable [num]
0... 4294967295
UDINT_3 UDINT
3
rd
converted variable [num]
0... 4294967295
UDINT_4 UDINT
4
th
converted variable [num]
0... 4294967295
UDINT_5 UDINT
5
th
converted variable [num]
0... 4294967295
UDINT_6 UDINT
6
th
converted variable [num]
0... 4294967295
UDINT_7 UDINT
7
th
converted variable [num]
0... 4294967295
UDINT_8 UDINT
8
th
converted variable [num]
0... 4294967295
RD_REG
SWAP
ARRAY [1..16] OF WORD
BOOL
¡
¡
UDINT
UDINT
UDINT
UDINT
UDINT
UDINT
UDINT
UDINT
UDINT_1
UDINT_
2
UDINT_
3
UDINT_
4
UDINT_
5
UDINT_
6
UDINT_
7
UDINT_
8
¡
¡
¡
¡
¡
¡
¡
¡