CM PTP - Configurations For Point-To-Point Connections - Modbus - Comm - Load - Configure Communication Module For Modbus
CM PTP - Configurations For Point-To-Point Connections - Modbus - Comm - Load - Configure Communication Module For Modbus
Note
Use with CM1241
The use of this instruction with a CM1241 is only possible from firmware version V2.1 of the
module.
Description
The Modbus_Comm_Load instruction configures a communication module for communication
by means of the Modbus RTU protocol. An instance data block is automatically assigned when
you add the Modbus_Comm_Load instruction in your program.
Configuration changes of Modbus_Comm_Load are saved on the CM and not in the CPU. With
voltage recovery and pulling/plugging, the CM is configured with the data saved in the device
configuration. The Modbus_Comm_Load instruction must be called in these scenarios.
Parameters
S7- S7-
1200/1500 300/400/
WinAC
REQ IN Bool FALSE Starts the instruction upon a positive edge of this input.
PORT IN Port Laddr 0 Specifies the communication module which is used for the
communication:
• For S7-1500/S7-1200: "HW identifier" from the device
configuration.
The symbolic port name is assigned in the "System
constants" tab of the PLC tag table and can be applied
from there.
• For S7-300/S7-400: "Input address" from the device
configuration.
In the S7-300/400/WinAC systems the PORT
parameter is assigned the input address assigned in
HWCN.
This document constitutes a free excerpt compiled by the user himself/herself from the documentation provided by Siemens for this product. Siemens disclaims
all liability for the completeness of this document. It shall only be used for the user's own internal purposes. It shall not be passed on to third parties.
6/13/2019
S7- S7-
1200/1500 300/400/
WinAC
MB_DB IN/OUT MB_BASE ‑ A reference to the instance data block of the Modbus_Master
or Modbus_Slave instructions.
The MB_DB parameter must be connected with the (static
and therefore not visible in the instruction) MB_DB
parameter of the Modbus_Master or Modbus_Slave
instruction.
DONE OUT Bool FALSE The DONE bit is TRUE for one cycle after the last request
has been completed without errors.
This document constitutes a free excerpt compiled by the user himself/herself from the documentation provided by Siemens for this product. Siemens disclaims
all liability for the completeness of this document. It shall only be used for the user's own internal purposes. It shall not be passed on to third parties.
6/13/2019
S7- S7-
1200/1500 300/400/
WinAC
ERROR OUT Bool FALSE The ERROR bit is TRUE for one cycle after the last request
has been completed with errors. The error code in the
STATUS parameter is only valid in the cycle in which
ERROR = TRUE.
Modbus_Comm_Load is executed to configure a port for the Modbus RTU protocol. Once you
have configured the port for the Modbus RTU protocol, it can only be used by the
Modbus_Master or Modbus_Slave instructions.
You have to run Modbus_Comm_Load for the configuration of each communication port that
is to be used for Modbus communication. You must assign a unique Modbus_Comm_Load
instance DB to each port that you use. Only run Modbus_Comm_Load again if you need to
change communication parameters, such as data transmission rate or parity, or in case the
network has returned.
For example, an instance data block is assigned to the instruction if you add Modbus_Master
or Modbus_Slave to your program. You need to connect the MB_DB parameter of the
Modbus_Comm_Load instruction to the MB_DB parameter of the Modbus_Master or
Modbus_Slave instruction.
S7- S7-
1200/150 300/400/
0 WinAC
ICHAR_GAP Word 0 Maximum character delay time between characters. This parameter is
specified in milliseconds and increases the anticipated period between
the received characters. The corresponding number of bit times for this
parameter is added to the Modbus default value of 35 bit times (3.5
character times).
RETRIES Word 2 Number of retries that the master executes before the error code
0x80C8 for "No response" is returned.
This document constitutes a free excerpt compiled by the user himself/herself from the documentation provided by Siemens for this product. Siemens disclaims
all liability for the completeness of this document. It shall only be used for the user's own internal purposes. It shall not be passed on to third parties.
6/13/2019
S7- S7-
1200/150 300/400/
0 WinAC
Instruction versions
Version 3.1 is functionally identical to version 3.0 and its version number was only incremented
due to internal measures.
This document constitutes a free excerpt compiled by the user himself/herself from the documentation provided by Siemens for this product. Siemens disclaims
all liability for the completeness of this document. It shall only be used for the user's own internal purposes. It shall not be passed on to third parties.
6/13/2019
See also
→ Error messages
This document constitutes a free excerpt compiled by the user himself/herself from the documentation provided by Siemens for this product. Siemens disclaims
all liability for the completeness of this document. It shall only be used for the user's own internal purposes. It shall not be passed on to third parties.
6/13/2019