Specifications
sigmadue - IEC 61131-3 Function Block Library
138
5-3-9 MODBUS MASTER CONVERSION TO 8 DWORD VALUES
FB Prototype
MB_MST_RD8_DWORD
Input parameters
Output parameters
Description
The function block can be used to unpack an array of 16 word elements into 8 single
variables as DWORD data type. The first and second elements of the array will be
converted, accordingly to the SWAP selection, into the first output DWORD 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 DWORD 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
DWORD_1 DWORD
1
st
variable to be converted [num]
0... 4294967295
DWORD_2 DWORD
2
nd
variable to be converted [num]
0... 4294967295
DWORD_3 DWORD
3
rd
variable to be converted [num]
0... 4294967295
DWORD_4 DWORD
4
th
variable to be converted [num]
0... 4294967295
DWORD_5 DWORD
5
th
variable to be converted [num]
0... 4294967295
DWORD_6 DWORD
6
th
variable to be converted [num]
0... 4294967295
DWORD_7 DWORD
7
th
variable to be converted [num]
0... 4294967295
DWORD_8 DWORD
8
th
variable to be converted [num]
0... 4294967295
RD_REG
SWAP
ARRAY [1..16] OF WORD
BOOL
¡
¡
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD_1
DWORD_2
DWORD_3
DWORD_4
DWORD_5
DWORD_6
DWORD_7
DWORD_8
¡
¡
¡
¡
¡
¡
¡
¡
Input Default Value
SWAP FALSE