Specifications
Chapter 5 - AsconMBCommLib
155
5-3-26 MB_SLV_WR16_WORD
FB Prototype
MB_SLV_WR16_WORD
Input parameters
Output parameters
Description
This Function Block writes 16 WORD values passed with
DATA1 – DATA16
param-
eters to the memory area starting from the passed register (
REGISTER
). The output
of the module (
OPRS
) is used to detect if the operation is performed correctly.
The setting
AD_MODE
allows the user to select if the
REGISTER
input base is 0
(
AD_MODE = FALSE
) or 1 (
AD_MODE
= TRUE). The default value for
AD_MODE
is TRUE.
Reference
tables
Here are reported the range of the parameters used by the function block.
Protocol
OPRS
Label Type Description
PROTOCOL ASCON_SERIALPROTOCOL Reference Protocol
REGISTER UINT Register
DATA1 – DATA16 WORD Data
AD_MODE BOOL
Addressing Mode Setting
(default value = TRUE)
Label Type Description
OPRS USINT Function block result
PROTOCOL
REGISTER
DATA1
DATA2
DATA3
DATA4
DATA5
DATA6
DATA7
DATA8
DATA9
DATA10
DATA11
DATA12
DATA13
DATA14
DATA15
DATA16
AD_MODE
ASCON_SERIALPROTOCOL
UINT
WORD
WORD
WORD
WORD
WORD
WORD
WORD
WORD
WORD
WORD
WORD
WORD
WORD
WORD
WORD
WORD
BOOL
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
USINT OPR
S
→
Protocol Description
SLAVE1 Protocol Modbus Slave 1
SLAVE2 Protocol Modbus Slave 2
OPRS Description
0 Service executed correctly
1 Address not allowed
3 Protocol number not valid