Specifications
Chapter 5 - AsconMBCommLib
135
5-3-6 MODBUS MASTER 16WORD TO ARRAY
FB Prototype
MB_16WORD_TO_ARRAY
Input parameters
Output parameters
Description
The main goal of this function block is to pack 16 single word into an array of 16 word
elements. The first input word will be copied to the first array element, the second
input word to the second element and so on. This function block can be particularly
powerful if used in conjunction with the function block MB_MST_WR_WORD
because it allows to “prepare” the array required by its input WR_REG.
Input Type Description Range
WORD_1 WORD
1
st
word to be packed [num]
0... 65535
WORD_2 WORD
2
nd
word to be packed [num]
0... 65535
WORD_3 WORD
3
rd
word to be packed [num]
0... 65535
WORD_4 WORD
4th
word to be packed [num]
0... 65535
WORD_5 WORD 5th word to be packed [num] 0... 65535
WORD_6 WORD
6
th
word to be packed [num]
0... 65535
WORD_7 WORD
7
th
word to be packed [num]
0... 65535
WORD_8 WORD
8
th
word to be packed [num]
0... 65535
WORD_9 WORD
9
th
word to be packed [num]
0... 65535
WORD_10 WORD
10
th
word to be packed [num]
0... 65535
WORD_11 WORD
11
th
word to be packed [num]
0... 65535
WORD_12 WORD
12
th
word to be packed [num]
0... 65535
WORD_13 WORD
13
th
word to be packed [num]
0... 65535
WORD_14 WORD
14
th
word to be packed [num]
0... 65535
WORD_15 WORD
15
th
word to be packed [num]
0... 65535
WORD_16 WORD
16
th
word to be packed [num]
0... 65535
Label Type Description
WR_REG ARRAY [1..16] OF WORD Array including each single input word
WORD_1
WORD_2
WORD_3
WORD_4
WORD_5
WORD_6
WORD_7
WORD_8
WORD_9
WORD_10
WORD_11
WORD_12
WORD_13
WORD_14
WORD_15
WORD_16
WORD
WORD
WORD
WORD
WORD
WORD
WORD
WORD
WORD
WORD
WORD
WORD
WORD
WORD
WORD
WORD
¡
¡
¡
¡
¡
¡
¡
¡
¡
¡
¡
¡
¡
¡
¡
¡
ARRAY [1..16] OF WORD WR_REG
¡