Specifications

sigmadue - IEC 61131-3 Function Block Library
144
5-3-15 MODBUS MASTER CONVERSION FROM 8 UDINT VALUES
FB Prototype
MB_MST_WR8_UDINT
Input parameters
Output parameters
Description
The function block can be used to convert and pack up to 8 UDINT data type
variables into an array of 16 word elements. The first UDINT variable will be
converted, accordingly to the SWAP selection, into the first and second element of
the output array, the second UDINT 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 UDINT data type.
Default Values Table
Label Type Description Range
UDINT_1 UDINT
1
st
variable to be converted [num]
0... 4294967295
UDINT_2 UDINT
2
nd
variable to be converted [num]
0... 4294967295
UDINT_3 UDINT
3
rd
variable to be converted [num]
0... 4294967295
UDINT_4 UDINT
4
th
variable to be converted [num]
0... 4294967295
UDINT_5 UDINT
5
th
variable to be converted [num]
0... 4294967295
UDINT_6 UDINT
6
th
variable to be converted [num]
0... 4294967295
UDINT_7 UDINT
7
th
variable to be converted [num]
0... 4294967295
UDINT_8 UDINT
8
th
variable to be converted [num]
0... 4294967295
NR_DATA UUINT
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)
Output 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
UDINT_1
UDINT_2
UDINT_3
UDINT_4
UDINT_5
UDINT_6
UDINT_7
UDINT_8
NR_DATA
SWAP
UDINT
UDINT
UDINT
UDINT
UDINT
UDINT
UDINT
UDINT
UINT
BOOL
¡
¡
¡
¡
¡
¡
¡
¡
¡
¡
UINT
ARRAY [1..16] OF WORD
NR_REG
WR_REG
¡
¡
Input Default Value
NR_DATA 0
SWAP FALSE