EasyManua.ls Logo

Siemens SIMATIC S7-1200 - Page 1198

Siemens SIMATIC S7-1200
1614 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Communication processor and Modbus TCP
13.5 Modbus communication
S7-1200 Programmable controller
1198 System Manual, V4.2, 09/2016, A5E02486680-AK
Tag
Data type
Default
Description
EN_DIAG_ALARM Bool 0 Activate diagnostics interrupt:
0 = not activated
1 = activated
STOP_BITS USInt 1 Number of stop bits:
1 = 1 stop bit
2 = 2 stop bits
0, 3 to 255 = reserved
Note
Required setting for the use of PROFIBUS cables with CM 1241 for RS485
Table 13- 73 Modbus_Comm_Load execution condition codes
1
STATUS (W#16#)
Description
0000
No error
8180
Invalid port ID value (wrong port/hardware identifier for communication module)
8181
Invalid baud rate value
8182
Invalid parity value
8183
Invalid flow control value
8184
Invalid response timeout value (response timeout less than the 5 ms minimum)
8185 MB_DB parameter is not an instance data block of a Modbus_Master or Modbus_Slave
instruction.
1
In addition to the Modbus_Comm_Load errors listed above, errors can be returned from the underlying PtP communica-
tion instructions.
Modbus_Master (Communicate using SIPLUS I/O or the PtP port as Modbus RTU master) instruction
Table 13- 74 Modbus_Master instruction
LAD / FBD
SCL
Description
"Modbus_Master_DB"(
REQ:=_bool_in_,
MB_ADDR:=_uint_in_,
MODE:=_usint_in_,
DATA_ADDR:=_udint_in_,
DATA_LEN:=_uint_in_,
DONE=>_bool_out_,
BUSY=>_bool_out_,
ERROR=>_bool_out_,
STATUS=>_word_out_,
DATA_PTR:=_variant_inout_);
The Modbus_Master instruction communicates as
a Modbus master using a port that was configured
by a previous execution of the Mod-
bus_Comm_Load instruction. An instance data
blo
ck is assigned automatically when you place the
Modbus_Master instruction in your program. This
Modbus_Master instance data block is used when
you specify the MB_DB parameter for the Mod-
bus_Comm_Load instruction.

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals