Example 1: Read Parameters - Siemens Sinamics S120 Function Manual

Hide thumbs Also See for Sinamics S120:
Table of Contents

Advertisement

10.1.4.4

Example 1: read parameters

Requirements
1. The PROFIdrive controller has been commissioned and is fully operational.
2. PROFIdrive communication between the controller and the device is operational.
3. The controller can read and write data sets in conformance with PROFIdrive DPV1.
Task description
Following the occurrence of at least one fault (ZSW1.3 = "1") on drive 2 (also drive object
number 2), the active fault codes must be read from the fault buffer r0945[0] ... r0945[7].
The request is to be handled using a request and response data block.
Basic procedure
1. Create a request to read the parameters.
2. Invoke the request.
3. Evaluate the response.
Activity
1. Create the request.
Parameter request
Request header
parameter address
Information about the parameter request:
● Request reference:
● Request ID:
● Axis:
● No. of parameters:
Drive functions
Function Manual, (FH1), 01/2012, 6SL3097-4AB00-0BP2
Request reference = 25 hex Request ID = 01 hex
Axis = 02 hex
Attribute = 10 hex
Parameter no. = 945 dec
Subindex = 0 dec
The value is selected at random from the valid value range. The request reference
establishes the relationship between request and response.
01 hex → This identifier is required for a read request.
02 hex → Drive 2, fault buffer with drive- and device-specific faults
01 hex → One parameter is read.
10.1 Communication according to PROFIdrive
No. of parameters = 01 hex
No. of elements = 08 hex
Communication
Offset
0 + 1
2 + 3
4 + 5
6
8
589

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents