IG-267-EN versión 01; 07/04/2017
103
General Instructions
ekor
.rpa
Communications
Read/write functions
In principle, only two functions will be implemented, one
for reading and another for writing data.
Data reading
Question:
Start
Address
Function
Data
CRC
End
Silence
DESC
‘3’
ADDR-H
ADDR-L
NDATA-H
NDATA-L
16 bits
Silence
Table 12.2.
Data reading. Question
Response:
Start
Address
Function
Nº of Bytes
Data
CRC
End
Silence
DESC
‘3’
N
DATA1-H
DATA1-L
........
16 bits
Silence
Table 12.3.
Data reading. Response
where:
DESC Slave address
ADDR-H
High byte of the address for the first register to be read
ADDR-L
Low byte of the address for the first register to be read
NDATA-H
High byte of the number of registers to be read
NDATA-L
Low byte of the number of registers to be read
DATA1-H
High byte of the first register requested
DATA 1-L
Low byte of the first register requested
N
Total number of data bytes This will be equal to the number of registers requested
Data writing
This makes it possible to write a single register at the
address indicated.
Question:
Start
Address
Function
Data
CRC
End
Silence
DESC
‘6’
ADDR-H
ADDR-L
DATA-H
DATA-L
16 bits
Silence
Table 12.4.
Data writing. Question
Response:
The normal response is an echo of the query received.
where:
DESC Slave address
ADDR-H
High byte of the address for the register to be written
ADDR-L
Low byte of the address for the register to be written
DATA-H
High byte of the data to be written
DATA-L
Low byte of the data to be written
Summary of Contents for ekor.rpa Series
Page 115: ......