EasyManua.ls Logo

Siemens SINAMICS G120P - Read Parameter

Siemens SINAMICS G120P
244 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 via RS485
5.4 Communication using Modbus RTU
Fieldbuses
Function Manual, 04/2018, FW V4.7 SP10, A5E34229197B AE
141
5.4.7.1
Read parameter
Example: r0002 read acyclically
Table 5- 24 Write parameter request: Reading the parameter value of r0002 from slave number 17
Value
Byte
Description
11 h
0
Slave address
10 h
0258 h
0007 h
0E h
0001 h
2F0A h
8001 h
0101 h
1001 h
0002 h
0000 h
1
2,3
4,5
6
7,8
9,10
11,12
13,14
15,16
17,18
19,20
Function code (write multiple)
Register start address
Number of registers to be read (40601 … 40607)
Number of data bytes (7 registers, each 2 bytes = 14 bytes)
40601: DS47 Control = 1 (activate request)
40602: Function 2F h (47), request length 10 bytes (0A h)
40603: Request reference = 80 h, request identifier = 1 h
40604: DO-Id = 1, number of parameters = 1
40605: Attribute, number of elements = 1
40606: Parameter number = 2
40607: Subindex = 0
xx h
xx h
21
22
CRC "Low"
CRC "High"
Table 5- 25 Start parameter request: Reading the parameter value of r0002 from slave number 17
Value
Byte
Description
11 h
0
Slave address
03 h
0258 h
0007 h
0010 h
1
2,3
4,5
6,7
Function code (read)
Register start address
Number of registers to be read (40601 … 40607)
Number of registers
xx h
xx h
8
9
CRC "Low"
CRC "High"
Table 5- 26 Response for successful read operation
Value
Byte
Description
11 h
0
Slave address
03 h
20 h
0002 h
2F08 h
8001 h
0101 h
0301 h
001F h
1
2
3,4
5,6
7,8
9,10
11,12
13,14
Function code (read)
Number of following data bytes (20 h: 32 bytes
16 registers)
40601: DS47 Control = 2 (the request was executed)
40602: Function code 2F h (47), response lengths 8 bytes
40603: Request reference mirrored = 80 h,
response identifier = 1 (request parameter)
40604: DO-ID = 1, number of parameters = 1
40605: Format, number of elements = 1
40606: Parameter value = 1F h (31)
xx h
xx h
15
16
CRC "Low"
CRC "High"

Table of Contents

Other manuals for Siemens SINAMICS G120P

Related product manuals