West Control Solutions KS 800 Profibus Interface Manual User Manual

Page 19

Advertising
background image

Example 2:

(message structure with data request)

Reading the error code of self-tuning heating (MSG1) of controller (channel 2).

Start telegram:

Master sends: Byte 0

Byte 1

Byte 2

Byte 3

Byte 4

Byte 5

Byte 6

Byte 7

0x10

0

35

52

5

0

0

0

Controller

replies:

Byte 0

Byte 1

Byte 2

Byte 3

Byte 4

Byte 5

Byte 6

Byte 7

0x10

0

1

Datentelegramme:

Master sends: Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Controller replies: Byte 0 Byte 1 Byte 2 Byte 3

Byte 4 - 7

0x68

1

0x68

1

2 (ok)

End telegram:

Master sends: Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Controller replies: Byte 0 Byte 1

Byte 2 - 3

Byte 4 - 7

0x16

0x16

0

3.6.3

Block access (tens block)

This access (code x0) can be used for reading max. nine process values (always as REAL values) of a

function.
Example:(message structure with data request)

Reading the set-points (Wnvol and Wvol) of controller (channel3).
Start telegram:

Master sends: Byte 0

Byte 1

Byte 2

Byte 3

Byte 4

Byte 5

Byte 6

Byte 7

0x10

0

30

53

1

0

0

0

Controller

replies:

Byte 0

Byte 1

Byte 2

Byte 3

Byte 4

Byte 5

Byte 6

Byte 7

0x10

2

0

Data telegrams:

Master sends: Byte 0 Byte 1 Byte 2 Byte 3

Byte 4 - 7

Controller replies: Byte 0 Byte 1 Byte 2 Byte 3

Byte 4 - 7

0x68

1

0x68

1

150

Master sends: Byte 0 Byte 1 Byte 2 Byte 3

Byte 4 - 7

Controller replies: Byte 0 Byte 1 Byte 2 Byte 3

Byte 4 - 7

0x68

2

0x68

2

140

End telegram:

Master sends: Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Controller replies: Byte 0 Byte 1

Byte 2 - 3

Byte 4 - 7

0x16

0x16

0

3.6.4

Block acces (overall block)

This access can be used for reading or writing all parameter (code 178) and configuration data (code 179) of

a function. The following conditions are applicable to this access:

w

For writing the data with ‘code B3 = 179’, the instrument must be switched to the configuration mode

(Ä see page 27 ‘OpMod’). All entered new configuration data and parameters are effective only,

when the instrument was switched back to on-line.

w

All data of a message must be defined, omissions are not permissible.

w

The complete message must be transmitted also, if parts of a message in the controller are not used

(HW and SW options). Checking of the non-existing data is omitted.

w

With faulty block write accesses, the following is valid: a message is replied with NAK, if at least one

datum is faulty. Already valid values are accepted.

Process data

19

9499 040 50511

Advertising