Specifications

Chapter 5 - AsconMBCommLib
143
5-3-14 MODBUS MASTER CONVERSION FROM 8 REAL VALUES
FB Prototype
MB_MST_WR8_REAL
Input parameters
Output parameters
Description
The function block can be used to convert and pack up to 8 REAL data type variables
into an array of 16 word elements. The first REAL variable will be converted,
accordigly to the SWAP selection, into the first and second element of the output
array, the second REAL 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 REAL data type.
Default Values Table
Label Type Description Range
REAL _1 REAL
1
st
variable to be converted [num]
-3.4E
-38
... 3.4E
+38
REAL _2 REAL
2
nd
variable to be converted [num]
-3.4E
-38
... 3.4E
+38
REAL _3 REAL
1
st
variable to be converted [num]
-3.4E
-38
... 3.4E
+38
REAL _4 REAL
2
nd
variable to be converted [num]
-3.4E
-38
... 3.4E
+38
REAL _5 REAL
3
rd
variable to be converted [num]
-3.4E
-38
... 3.4E
+38
REAL _6 REAL
4
th
variable to be converted [num]
-3.4E
-38
... 3.4E
+38
REAL _7 REAL
5
th
variable to be converted [num]
-3.4E
-38
... 3.4E
+38
REAL _8 REAL
6
th
variable to be converted [num]
-3.4E
-38
... 3.4E
+38
NR_DATA REAL
7
th
variable to be converted [num]
-3.4E
-38
... 3.4E
+38
SWAP BOOL
8
th
variable to be converted [num]
-3.4E
-38
... 3.4E
+38
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
REAL _1
REAL _2
REAL _3
REAL _4
REAL _5
REAL _6
REAL _7
REAL _8
NR_DATA
SWAP
REAL
REAL
REAL
REAL
REAL
REAL
REAL
REAL
UINT
BOOL
¡
¡
¡
¡
¡
¡
¡
¡
¡
¡
UINT
ARRAY [1..16] OF WORD
NR_REG
WR_REG
¡
¡
¡
¡
Input Default Value
NR_DATA 0
SWAP FALSE