EasyManua.ls Logo

Siemens S7-1200 - Page 760

Siemens S7-1200
1028 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
12.5 Modbus communication
S7-1200 Programmable controller
760 System Manual, 03/2014, A5E02486680-AG
For example, after MB_SLAVE is placed in a LAD network, you can go to a previous network
and assign the HR_Start_Offset value. The value must be assigned prior to execution of
MB_SLAVE.
Entering a Modbus slave variable using the
default DB name:
1.
Set the cursor in the parameter field and
type an m character.
2.
Select "MB_SLAVE_DB" from the drop-list.
3.
Set the cursor at the right side of the DB
name (after the quote character) and ente
r
a period character.
4.
Select "MB_SLAVE_DB.HR_Start_Offset"
from the drop list.
Extended_Addressing
The Extended_Addressing variable is accessed in a similar way as the HR_Start_Offset
reference discussed above except that the Extended_Addressing variable is a Boolean
value. The Boolean value must be written by an output coil and not a move box.
Modbus slave addressing can be configured to be either a single byte (which is the Modbus
standard) or double byte. Extended addressing is used to address more than 247 devices
within a single network. Selecting extended addressing allows you to address a maximum of
64000 addresses. A Modbus function 1 frame is shown below as an example.
Table 12- 80 Single-byte slave address (byte 0)
Function 1
Byte 0
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Request
Slave addr.
F code
Start address
Length of coils
Valid Response
Slave addr.
F code
Length
Coil data
Error response
Slave addr.
0x81
E code
Table 12- 81 Double-byte slave address (byte 0 and byte 1)
Byte 0
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Byte 6
Request
Slave address
F code
Start address
Length of coils
Valid Response
Slave address
F code
Length
Coil data
Error response
Slave address
0x81
E code

Table of Contents

Other manuals for Siemens S7-1200

Related product manuals