Examples – NORD Drivesystems BU0590 User Manual

Page 30

Advertising
background image

PROFINET bus module for NORD frequency inverters SK 5xxE

30

Subject to technical amendments

BU 0590 GB-0312

4.2.4

Examples

4.2.4.1

Reading of module parameter P170 Index 0 (actual error)

Data record 100 is used:

Field

Data size

Byte

Date

Explanation

Order label

+

Parameter number

2 Byte

2

01 h

+492 h

_________

1492 h

Read parameter value (see Section 4.2.3 )

+

Parameter number P170 (+1000) = 492 h

Parameter index

2 Bytes

3

4

00 h

00 h

Parameter sub-index (see Section 4.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 26 Example telegram for reading parameter P170

S7 Code example:

CALL "WRREC" , DB53

WriteRequest

REQ :=#bStart

ID :=DW#16#7FC

Diagnosis address

INDEX

:=100

Data set 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 set 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