Specifications
sigmadue - IEC 61131-3 Function Block Library
142
5-3-13 MODBUS MASTER CONVERSION FROM 8 DWORD VALUES
FB Prototype
MB_MST_WR8_DWORD
Input parameters
Output parameters
Description
The function block can be used to convert and pack up to 8 DWORD data type
variables into an array of 16 word elements. The first DWORD variable will be
converted, accordingly to the SWAP selection, into the first and second element of
the output array, the second DWORD 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 DWORD data type.
Default Values Table
Label Type Description Range
DWORD_1 DWORD
1
st
converted variable [num]
0... 4294967295
DWORD_2 DWORD
2
nd
converted variable [num]
0... 4294967295
DWORD_3 DWORD
3
rd
converted variable [num]
0... 4294967295
DWORD_4 DWORD
4
th
converted variable [num]
0... 4294967295
DWORD_5 DWORD
5
th
converted variable [num]
0... 4294967295
DWORD_6 DWORD
6
th
converted variable [num]
0... 4294967295
DWORD_7 DWORD
7
th
converted variable [num]
0... 4294967295
DWORD_8 DWORD
8
th
converted variable [num]
0... 4294967295
NR_DATA DWORD
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
DWORD_1
DWORD_2
DWORD_3
DWORD_4
DWORD_5
DWORD_6
DWORD_7
DWORD_8
NR_DATA
SWAP
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
UINT
BOOL
¡
¡
¡
¡
¡
¡
¡
¡
¡
¡
UINT
ARRAY [1..16] OF WORD
NR_REG
WR_REG
¡
¡
Input Default Value
NR_DATA 0
SWAP FALSE