Function Description
You can select one of 14 available network communication operations using the MBP_MSTR
function
block.
The MBP_MSTR block is supported on various hardware platforms.
EN
and ENO
can be configured as additional parameters.
MBP_MSTR
function block. Modbus Plus routing path structures are described in detail
in the communication architectures
manual and the Modbus Plus Network Planning and Installation Guide. If TCP/IP or SY/MAX Ethernet routing is implemented, use standard EtherNet IP router products.CREAD_REG
, CWRITE_REG
, READ_REG
, WRITE_REG
, and MBP_MSTR
function blocks use one data transaction path and require multiple
cycles to complete an operation. The number of transaction paths available
by module and by MAST cycle depends on the communication port used:
Modbus Plus embedded port or NOM modules support up to 4 blocks at the same time.
TCP/IP Ethernet embedded port support up to 4 blocks at the same time.
TCP/IP Ethernet NOE, NOC, and 140 CRP 312 00 modules support up to 16 blocks at the same time.
More communication function blocks may be programmed on the same communication port. However, a communication block exceeding the maximum number on that port is not serviced until one of the transaction paths is available. Then, the next block on the same port becomes active and begins using an available path.
CONTROL
and DATABUF
are directly connected to the I/O pins of the DFB.Example:
You can send MBP_MSTR.Enable:=(HSBY_NOEPLCMSTR_ON) AND (%SW61.1) AND NOT (%SW61.0)
or
You can create a boolean variable, primary_state:=(%SW61.1) AND NOT (%SW61.0), and insert it for executing the section
Example:
You can set MBP_MSTR.Enable:=(HSBY_NOEPLCMSTR_ON AND ECPU_HSBY_1.LOCAL_HSBY_STS.RUN_PRIMARY)
or
Use the boolean variable ECPU_HSBY_1.LOCAL_HSBY_STS.RUN_PRIMARY as condition for executing the section
Representation in FBD

Representation in LD

Input Parameters
Parameter |
Data Type |
Description |
---|---|---|
|
|
When ON, the operation specified
in the first element of the |
|
|
When ON, the currently active operation is aborted. |
Output Parameters
Parameter |
Data Type |
Description |
---|---|---|
|
|
ON when the operation is active. |
|
|
ON when the operation is aborted without success. |
|
|
ON when the operation concludes successfully. |
|
|
This field contains the control block. The first element CONTROL[1] contains the number of the operation code of the operation to be performed. The content of the sequence register is determined by the operation. Verify that the data field is declared as a located variable. The structure of the control block differs according to the network used. |
|
|
For operations providing data (for
example a With Ethernet CTE Verify that the data field is declared as a located variable. |
Runtime Error
In the
event of a detected error occurring during an MBP_MSTR
operation, a hexadecimal error code is displayed
in the CONTROL[2]
register of the control block for
one cycle.