4 examples, Examples – NORD Drivesystems BU0290 User Manual

Page 42

Advertising
background image

PROFINET bus module for NORD frequency inverters SK 200E

42

Subject to technical amendments

BU 0290 GB-4312

5.2.4

Examples

5.2.4.1

Reading of module parameter P170 Index 0 (actual error)

Data record 100 is used:

Field

Data size

Byte

Datum

Explanation

Order label

+

Parameter number

2 Byte




2

01

h

+
4 92 h
_________
1 4 92 h

Request parameter value (Read) (refer to Section 5.2.3.1)

+

Parameter number P170 (170

dec

+1000

dec

) = 492 h

Parameter index

2 Bytes

3

4

00 h

00 h

Parameter sub-index (refer to Section 5.2.3.2)

Parameter value

4 Bytes

5

6

7

8

00 h

00 h

00 h

00 h

Setting value not set with read order

Table 28 Example telegram for reading parameter P170


S7 Code example:

CALL "WRREC" , DB53

WriteRequest

REQ :=#bStart

ID :=DW#16#7FC

Diagnosis address

INDEX :=100

Data record 100

LEN :=8

Length: 8 Bytes

DONE :=#bEnde
BUSY :=#bBusy
ERROR :=#bError
STATUS:=#wStatus

RECORD:=P#DB10.DBX0.0 BYTE 8

Data: 14h,92h, 00h,00h, 00h,00h, 00h,00h

CALL "RDREC" , DB52

ReadResponse

REQ :=#bStart

ID :=DW#16#7FC

Diagnosis address

INDEX :=100

Data record 100

MLEN :=8
VALID := …
BUSY := …
ERROR := …
STATUS:= …
LEN := …

RECORD:=P#DB10.DBX12.0 BYTE 8

Response: 14h,92h, 00h,00h, 00h,00h, 03h,FCh

The value read is P170 = 1020 (03FCh).

Advertising