Communication Details - Siemens SINAMICS S120 Series Function Manual

Hide thumbs Also See for SINAMICS S120 Series:
Table of Contents

Advertisement

Communication via Modbus TCP
6.6 Communication via data set 47
6.6.1

Communication details

General parameter access is realized using the Modbus register 40601 ... 40722.
Communication via DS47 is controlled using 40601. 40602 contains the function code
(always = 47 = 2F hex) and the number of the following user data. User data are contained
in registers 40603 ... 40722.
Communication overview
40601
Error codes
1 hex: Invalid Length (invalid length)
2 hex: Invalid State (in the actual inverter state, this action is not permitted)
3 hex: Invalid function code (FC ≠ 2F hex)
4 hex: Response not ready (the response has still not been issued)
5 hex: Internal Error (general system error)
Incorrect access operations to parameters via data set 47 are logged in registers
40603 ... 40722. The error codes are described in the PROFIdrive profile.
6.6.2
Examples: Read parameter
Table 6- 10
Write parameter request: Reading parameter value of r0002 from device number 17
Value
Byte
Description
MBAP header
10 h
7
Function code (write multiple)
0258 h
8,9
Register start address
0007 h
10,11
Number of registers to be read (40601 ... 40607)
0E h
12
Number of data bytes (7 registers, each 2 bytes = 14 bytes)
0001 h
13,14
40601: DS47 Control = 1 (activate request)
2F0A h
15,16
40602: Function 2F h (47), request length 10 bytes (0A h)
8001 h
17,18
40603: Request reference = 80 h, request identifier = 1 h
0101 h
19,20
40604: DO-Id = 1, number of parameters = 1
1001 h
21,22
40605: Attribute, number of elements = 1
0002 h
23,24
40606: Parameter number = 2
0000 h
25,26
40607: Subindex = 0
176
Value in the register
40602
0
47
...
1
47
Request
length
[bytes]
2
47
Response
length
[bytes]
2
47
0
40603 ... 40722
...
Write values for acyclic access
Request data
Activate acyclic access
Response data
Response for a successful request
Error code
Response for an erronous request
Function Manual, 12/2018, 6SL3097-5BD00-0BP0
Explanation
Communication

Advertisement

Table of Contents
loading

Table of Contents