154 • HRVS-DN Communication (Profibus protocol)
_____________________________________________________________________________________________
17.4 Operations that are Available in DPV1
Choose the registers that will display in DPV0 (cyclic). This was described in the previous section.
Read and write from random registers.
17.4.1 Read and Write from Random Registers via Data Request
Reading or writing by Data Request (DPV1) allows you to read or write up to 20 registers in a single request.
In order to read or write via Data Request (DPV1) you need to perform 2 operations:
First update the first register number that we want to read or write.
Second read or write the register.
To configure the first register number, define the following:
Slot Number = 1
Index = 2
Operation = Write
Write Data (hex) = the first register number
The length of the register number must always contain two bytes (word). If we want to read from register
number 5 we need to read from register number 0x0005. The first byte is the high part of the number (the
MSB).
To read or write multiple registers, we need to define the number of the words that we want to read or write.
The following example shows how to read from register number 0x80 to register number 0x83.
Step 1: Write the number 80 hex to Slot number 2 and Index number 2.
Figure 54 – Choosing register number 80 hex
Write to
Slot: 2
Index: 2
Register
number 80 hex