EasyManua.ls Logo

Siemens S7-1200 - Page 683

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.3 Point-to-point (PtP) communication
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
683
Example 1:
Consider a message structured according to the following protocol:
STX
Len
(n)
Characters 3 to 14 counted by the length
ADR
PKE
INDEX
PWD
STW
HSW
BCC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
STX
0x0C
xx
xxxx
xxxx
xxxx
xxxx
xxxx
xx
Configure the receive message length parameters for this message as follows:
n = 2 (The message length starts with byte 2.)
Length size = 1 (The message length is defined in one byte.)
Length m = 0 (There are no additional characters following the length specifier that are
not counted in the length count. Twelve characters follow the length specifier.)
In this example, the characters from 3 to 14 inclusive are the characters counted by Len (n).
Example 2:
Consider another message structured according to the following protocol:
SD1
Len (n)
Len (n)
SD2
Characters 5 to 10 counted by length
FCS
ED
DA
SA
FA
Data unit=3 bytes
1
2
3
4
5
6
7
8
9
10
11
12
xx
0x06
0x06
xx
xx
xx
xx
xx
xx
xx
xx
xx
Configure the receive message length parameters for this message as follows:
n = 3 (The message length starts at byte 3.)
Length size = 1 (The message length is defined in one byte.)
Length m = 3 (There are three characters following the length specifier that are not
counted in the length. In the protocol of this example, the characters SD2, FCS, and ED
are not counted in the length count. The other six characters are counted in the length
count; therefore the total number of characters following the length specifier is nine.)
In this example, the characters from 5 to 10 inclusive are the characters counted by Len (n).

Table of Contents

Other manuals for Siemens S7-1200

Related product manuals